[2025-02-18 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:00:07 [end_date_ymd] => 2025-02-18 00:00:07 [RateCDR] => 1 ) [2025-02-18 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-17 21:00:07' and `end` < '2025-02-18 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-18 00:00:32] Production.INFO: count ==1118 [2025-02-18 00:00:33] Production.ERROR: pbx CDR StartTime 2025-02-17 21:00:07 - End Time 2025-02-18 00:00:07 [2025-02-18 00:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499253', 'tblTempUsageDetail_20' ) start [2025-02-18 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499253', 'tblTempUsageDetail_20' ) end [2025-02-18 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499253', 'tblTempVendorCDR_20' ) start [2025-02-18 00:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499253', 'tblTempVendorCDR_20' ) end [2025-02-18 00:00:33] Production.INFO: ProcessCDR(1,14499253,1,1,2) [2025-02-18 00:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499253', 'tblTempUsageDetail_20' ) start [2025-02-18 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499253', 'tblTempUsageDetail_20' ) end [2025-02-18 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:00:38] Production.INFO: ==20096== Releasing lock... [2025-02-18 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:00:38] Production.INFO: 37.5 MB #Memory Used# [2025-02-18 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:01:05 [end_date_ymd] => 2025-02-18 00:01:05 [RateCDR] => 1 ) [2025-02-18 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:01:05' and `end` < '2025-02-18 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:01:29] Production.INFO: count ==1111 [2025-02-18 00:01:30] Production.ERROR: pbx CDR StartTime 2025-02-17 21:01:05 - End Time 2025-02-18 00:01:05 [2025-02-18 00:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499258', 'tblTempUsageDetail_20' ) start [2025-02-18 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499258', 'tblTempUsageDetail_20' ) end [2025-02-18 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499258', 'tblTempVendorCDR_20' ) start [2025-02-18 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499258', 'tblTempVendorCDR_20' ) end [2025-02-18 00:01:30] Production.INFO: ProcessCDR(1,14499258,1,1,2) [2025-02-18 00:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499258', 'tblTempUsageDetail_20' ) start [2025-02-18 00:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499258', 'tblTempUsageDetail_20' ) end [2025-02-18 00:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:01:33] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:01:33] Production.INFO: ==20185== Releasing lock... [2025-02-18 00:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:01:33] Production.INFO: 36.5 MB #Memory Used# [2025-02-18 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:02:05 [end_date_ymd] => 2025-02-18 00:02:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:02:05' and `end` < '2025-02-18 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-18 00:02:28] Production.INFO: count ==673 [2025-02-18 00:02:29] Production.ERROR: pbx CDR StartTime 2025-02-17 21:02:05 - End Time 2025-02-18 00:02:05 [2025-02-18 00:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499263', 'tblTempUsageDetail_20' ) start [2025-02-18 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499263', 'tblTempUsageDetail_20' ) end [2025-02-18 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499263', 'tblTempVendorCDR_20' ) start [2025-02-18 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499263', 'tblTempVendorCDR_20' ) end [2025-02-18 00:02:29] Production.INFO: ProcessCDR(1,14499263,1,1,2) [2025-02-18 00:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499263', 'tblTempUsageDetail_20' ) start [2025-02-18 00:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499263', 'tblTempUsageDetail_20' ) end [2025-02-18 00:02:32] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:02:32] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:02:32] Production.INFO: ==20256== Releasing lock... [2025-02-18 00:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:02:32] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:03:04 [end_date_ymd] => 2025-02-18 00:03:04 [RateCDR] => 1 ) [2025-02-18 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:03:04' and `end` < '2025-02-18 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:03:27] Production.INFO: count ==675 [2025-02-18 00:03:27] Production.ERROR: pbx CDR StartTime 2025-02-17 21:03:04 - End Time 2025-02-18 00:03:04 [2025-02-18 00:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499268', 'tblTempUsageDetail_20' ) start [2025-02-18 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499268', 'tblTempUsageDetail_20' ) end [2025-02-18 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499268', 'tblTempVendorCDR_20' ) start [2025-02-18 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499268', 'tblTempVendorCDR_20' ) end [2025-02-18 00:03:27] Production.INFO: ProcessCDR(1,14499268,1,1,2) [2025-02-18 00:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499268', 'tblTempUsageDetail_20' ) start [2025-02-18 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499268', 'tblTempUsageDetail_20' ) end [2025-02-18 00:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:03:30] Production.INFO: ==20328== Releasing lock... [2025-02-18 00:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:03:30] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:04:05 [end_date_ymd] => 2025-02-18 00:04:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:04:05' and `end` < '2025-02-18 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-18 00:04:26] Production.INFO: count ==681 [2025-02-18 00:04:27] Production.ERROR: pbx CDR StartTime 2025-02-17 21:04:05 - End Time 2025-02-18 00:04:05 [2025-02-18 00:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499273', 'tblTempUsageDetail_20' ) start [2025-02-18 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499273', 'tblTempUsageDetail_20' ) end [2025-02-18 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499273', 'tblTempVendorCDR_20' ) start [2025-02-18 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499273', 'tblTempVendorCDR_20' ) end [2025-02-18 00:04:27] Production.INFO: ProcessCDR(1,14499273,1,1,2) [2025-02-18 00:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499273', 'tblTempUsageDetail_20' ) start [2025-02-18 00:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499273', 'tblTempUsageDetail_20' ) end [2025-02-18 00:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:04:30] Production.INFO: ==20402== Releasing lock... [2025-02-18 00:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:04:30] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:05:05 [end_date_ymd] => 2025-02-18 00:05:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:05:05' and `end` < '2025-02-18 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-18 00:05:18] Production.INFO: count ==677 [2025-02-18 00:05:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:05:05 - End Time 2025-02-18 00:05:05 [2025-02-18 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499278', 'tblTempUsageDetail_20' ) start [2025-02-18 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499278', 'tblTempUsageDetail_20' ) end [2025-02-18 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499278', 'tblTempVendorCDR_20' ) start [2025-02-18 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499278', 'tblTempVendorCDR_20' ) end [2025-02-18 00:05:18] Production.INFO: ProcessCDR(1,14499278,1,1,2) [2025-02-18 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499278', 'tblTempUsageDetail_20' ) start [2025-02-18 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499278', 'tblTempUsageDetail_20' ) end [2025-02-18 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:05:21] Production.INFO: ==20482== Releasing lock... [2025-02-18 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:06:05 [end_date_ymd] => 2025-02-18 00:06:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:06:05' and `end` < '2025-02-18 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-18 00:06:18] Production.INFO: count ==678 [2025-02-18 00:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:06:05 - End Time 2025-02-18 00:06:05 [2025-02-18 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499283', 'tblTempUsageDetail_20' ) start [2025-02-18 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499283', 'tblTempUsageDetail_20' ) end [2025-02-18 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499283', 'tblTempVendorCDR_20' ) start [2025-02-18 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499283', 'tblTempVendorCDR_20' ) end [2025-02-18 00:06:19] Production.INFO: ProcessCDR(1,14499283,1,1,2) [2025-02-18 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499283', 'tblTempUsageDetail_20' ) start [2025-02-18 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499283', 'tblTempUsageDetail_20' ) end [2025-02-18 00:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:06:24] Production.INFO: ==20560== Releasing lock... [2025-02-18 00:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:06:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:07:05 [end_date_ymd] => 2025-02-18 00:07:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:07:05' and `end` < '2025-02-18 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-18 00:07:19] Production.INFO: count ==675 [2025-02-18 00:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:07:05 - End Time 2025-02-18 00:07:05 [2025-02-18 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499288', 'tblTempUsageDetail_20' ) start [2025-02-18 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499288', 'tblTempUsageDetail_20' ) end [2025-02-18 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499288', 'tblTempVendorCDR_20' ) start [2025-02-18 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499288', 'tblTempVendorCDR_20' ) end [2025-02-18 00:07:19] Production.INFO: ProcessCDR(1,14499288,1,1,2) [2025-02-18 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499288', 'tblTempUsageDetail_20' ) start [2025-02-18 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499288', 'tblTempUsageDetail_20' ) end [2025-02-18 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:07:22] Production.INFO: ==20638== Releasing lock... [2025-02-18 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:07:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:08:05 [end_date_ymd] => 2025-02-18 00:08:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:08:05' and `end` < '2025-02-18 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-18 00:08:20] Production.INFO: count ==678 [2025-02-18 00:08:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:08:05 - End Time 2025-02-18 00:08:05 [2025-02-18 00:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499293', 'tblTempUsageDetail_20' ) start [2025-02-18 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499293', 'tblTempUsageDetail_20' ) end [2025-02-18 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499293', 'tblTempVendorCDR_20' ) start [2025-02-18 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499293', 'tblTempVendorCDR_20' ) end [2025-02-18 00:08:20] Production.INFO: ProcessCDR(1,14499293,1,1,2) [2025-02-18 00:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499293', 'tblTempUsageDetail_20' ) start [2025-02-18 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499293', 'tblTempUsageDetail_20' ) end [2025-02-18 00:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:08:24] Production.INFO: ==20720== Releasing lock... [2025-02-18 00:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:08:24] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:09:06 [end_date_ymd] => 2025-02-18 00:09:06 [RateCDR] => 1 ) [2025-02-18 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:09:06' and `end` < '2025-02-18 00: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-18 00:09:19] Production.INFO: count ==677 [2025-02-18 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:09:06 - End Time 2025-02-18 00:09:06 [2025-02-18 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499298', 'tblTempUsageDetail_20' ) start [2025-02-18 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499298', 'tblTempUsageDetail_20' ) end [2025-02-18 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499298', 'tblTempVendorCDR_20' ) start [2025-02-18 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499298', 'tblTempVendorCDR_20' ) end [2025-02-18 00:09:19] Production.INFO: ProcessCDR(1,14499298,1,1,2) [2025-02-18 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499298', 'tblTempUsageDetail_20' ) start [2025-02-18 00:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499298', 'tblTempUsageDetail_20' ) end [2025-02-18 00:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:09:24] Production.INFO: ==20796== Releasing lock... [2025-02-18 00:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:09:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:10:05 [end_date_ymd] => 2025-02-18 00:10:05 [RateCDR] => 1 ) [2025-02-18 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:10:05' and `end` < '2025-02-18 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:10:24] Production.INFO: count ==681 [2025-02-18 00:10:25] Production.ERROR: pbx CDR StartTime 2025-02-17 21:10:05 - End Time 2025-02-18 00:10:05 [2025-02-18 00:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499304', 'tblTempUsageDetail_20' ) start [2025-02-18 00:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499304', 'tblTempUsageDetail_20' ) end [2025-02-18 00:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499304', 'tblTempVendorCDR_20' ) start [2025-02-18 00:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499304', 'tblTempVendorCDR_20' ) end [2025-02-18 00:10:25] Production.INFO: ProcessCDR(1,14499304,1,1,2) [2025-02-18 00:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499304', 'tblTempUsageDetail_20' ) start [2025-02-18 00:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499304', 'tblTempUsageDetail_20' ) end [2025-02-18 00:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:10:28] Production.INFO: ==20921== Releasing lock... [2025-02-18 00:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:10:28] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:11:05 [end_date_ymd] => 2025-02-18 00:11:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:11:05' and `end` < '2025-02-18 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-18 00:11:23] Production.INFO: count ==685 [2025-02-18 00:11:23] Production.ERROR: pbx CDR StartTime 2025-02-17 21:11:05 - End Time 2025-02-18 00:11:05 [2025-02-18 00:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499309', 'tblTempUsageDetail_20' ) start [2025-02-18 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499309', 'tblTempUsageDetail_20' ) end [2025-02-18 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499309', 'tblTempVendorCDR_20' ) start [2025-02-18 00:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499309', 'tblTempVendorCDR_20' ) end [2025-02-18 00:11:23] Production.INFO: ProcessCDR(1,14499309,1,1,2) [2025-02-18 00:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499309', 'tblTempUsageDetail_20' ) start [2025-02-18 00:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499309', 'tblTempUsageDetail_20' ) end [2025-02-18 00:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:11:27] Production.INFO: ==20999== Releasing lock... [2025-02-18 00:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:11:27] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:12:05 [end_date_ymd] => 2025-02-18 00:12:05 [RateCDR] => 1 ) [2025-02-18 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:12:05' and `end` < '2025-02-18 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:12:24] Production.INFO: count ==685 [2025-02-18 00:12:25] Production.ERROR: pbx CDR StartTime 2025-02-17 21:12:05 - End Time 2025-02-18 00:12:05 [2025-02-18 00:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499314', 'tblTempUsageDetail_20' ) start [2025-02-18 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499314', 'tblTempUsageDetail_20' ) end [2025-02-18 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499314', 'tblTempVendorCDR_20' ) start [2025-02-18 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499314', 'tblTempVendorCDR_20' ) end [2025-02-18 00:12:25] Production.INFO: ProcessCDR(1,14499314,1,1,2) [2025-02-18 00:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499314', 'tblTempUsageDetail_20' ) start [2025-02-18 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499314', 'tblTempUsageDetail_20' ) end [2025-02-18 00:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:12:28] Production.INFO: ==21074== Releasing lock... [2025-02-18 00:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:12:28] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:13:05 [end_date_ymd] => 2025-02-18 00:13:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:13:05' and `end` < '2025-02-18 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-18 00:13:19] Production.INFO: count ==689 [2025-02-18 00:13:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:13:05 - End Time 2025-02-18 00:13:05 [2025-02-18 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499319', 'tblTempUsageDetail_20' ) start [2025-02-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499319', 'tblTempUsageDetail_20' ) end [2025-02-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499319', 'tblTempVendorCDR_20' ) start [2025-02-18 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499319', 'tblTempVendorCDR_20' ) end [2025-02-18 00:13:19] Production.INFO: ProcessCDR(1,14499319,1,1,2) [2025-02-18 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499319', 'tblTempUsageDetail_20' ) start [2025-02-18 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499319', 'tblTempUsageDetail_20' ) end [2025-02-18 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:13:23] Production.INFO: ==21155== Releasing lock... [2025-02-18 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:13:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:14:04 [end_date_ymd] => 2025-02-18 00:14:04 [RateCDR] => 1 ) [2025-02-18 00:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:14:04' and `end` < '2025-02-18 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:14:18] Production.INFO: count ==690 [2025-02-18 00:14:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:14:04 - End Time 2025-02-18 00:14:04 [2025-02-18 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499324', 'tblTempUsageDetail_20' ) start [2025-02-18 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499324', 'tblTempUsageDetail_20' ) end [2025-02-18 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499324', 'tblTempVendorCDR_20' ) start [2025-02-18 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499324', 'tblTempVendorCDR_20' ) end [2025-02-18 00:14:18] Production.INFO: ProcessCDR(1,14499324,1,1,2) [2025-02-18 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499324', 'tblTempUsageDetail_20' ) start [2025-02-18 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499324', 'tblTempUsageDetail_20' ) end [2025-02-18 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:14:21] Production.INFO: ==21231== Releasing lock... [2025-02-18 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:15:05 [end_date_ymd] => 2025-02-18 00:15:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:15:05' and `end` < '2025-02-18 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-18 00:15:18] Production.INFO: count ==689 [2025-02-18 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:15:05 - End Time 2025-02-18 00:15:05 [2025-02-18 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499329', 'tblTempUsageDetail_20' ) start [2025-02-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499329', 'tblTempUsageDetail_20' ) end [2025-02-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499329', 'tblTempVendorCDR_20' ) start [2025-02-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499329', 'tblTempVendorCDR_20' ) end [2025-02-18 00:15:18] Production.INFO: ProcessCDR(1,14499329,1,1,2) [2025-02-18 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499329', 'tblTempUsageDetail_20' ) start [2025-02-18 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499329', 'tblTempUsageDetail_20' ) end [2025-02-18 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:15:21] Production.INFO: ==21312== Releasing lock... [2025-02-18 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:15:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:16:05 [end_date_ymd] => 2025-02-18 00:16:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:16:05' and `end` < '2025-02-18 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-18 00:16:18] Production.INFO: count ==689 [2025-02-18 00:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:16:05 - End Time 2025-02-18 00:16:05 [2025-02-18 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499334', 'tblTempUsageDetail_20' ) start [2025-02-18 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499334', 'tblTempUsageDetail_20' ) end [2025-02-18 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499334', 'tblTempVendorCDR_20' ) start [2025-02-18 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499334', 'tblTempVendorCDR_20' ) end [2025-02-18 00:16:19] Production.INFO: ProcessCDR(1,14499334,1,1,2) [2025-02-18 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499334', 'tblTempUsageDetail_20' ) start [2025-02-18 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499334', 'tblTempUsageDetail_20' ) end [2025-02-18 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:16:22] Production.INFO: ==21397== Releasing lock... [2025-02-18 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:16:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:17:05 [end_date_ymd] => 2025-02-18 00:17:05 [RateCDR] => 1 ) [2025-02-18 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:17:05' and `end` < '2025-02-18 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:17:18] Production.INFO: count ==688 [2025-02-18 00:17:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:17:05 - End Time 2025-02-18 00:17:05 [2025-02-18 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499339', 'tblTempUsageDetail_20' ) start [2025-02-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499339', 'tblTempUsageDetail_20' ) end [2025-02-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499339', 'tblTempVendorCDR_20' ) start [2025-02-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499339', 'tblTempVendorCDR_20' ) end [2025-02-18 00:17:18] Production.INFO: ProcessCDR(1,14499339,1,1,2) [2025-02-18 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499339', 'tblTempUsageDetail_20' ) start [2025-02-18 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499339', 'tblTempUsageDetail_20' ) end [2025-02-18 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:17:21] Production.INFO: ==21471== Releasing lock... [2025-02-18 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:17:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:18:05 [end_date_ymd] => 2025-02-18 00:18:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:18:05' and `end` < '2025-02-18 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-18 00:18:19] Production.INFO: count ==686 [2025-02-18 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:18:05 - End Time 2025-02-18 00:18:05 [2025-02-18 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499344', 'tblTempUsageDetail_20' ) start [2025-02-18 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499344', 'tblTempUsageDetail_20' ) end [2025-02-18 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499344', 'tblTempVendorCDR_20' ) start [2025-02-18 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499344', 'tblTempVendorCDR_20' ) end [2025-02-18 00:18:19] Production.INFO: ProcessCDR(1,14499344,1,1,2) [2025-02-18 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499344', 'tblTempUsageDetail_20' ) start [2025-02-18 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499344', 'tblTempUsageDetail_20' ) end [2025-02-18 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:18:22] Production.INFO: ==21567== Releasing lock... [2025-02-18 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:18:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:19:05 [end_date_ymd] => 2025-02-18 00:19:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:19:05' and `end` < '2025-02-18 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-18 00:19:20] Production.INFO: count ==686 [2025-02-18 00:19:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:19:05 - End Time 2025-02-18 00:19:05 [2025-02-18 00:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499349', 'tblTempUsageDetail_20' ) start [2025-02-18 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499349', 'tblTempUsageDetail_20' ) end [2025-02-18 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499349', 'tblTempVendorCDR_20' ) start [2025-02-18 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499349', 'tblTempVendorCDR_20' ) end [2025-02-18 00:19:20] Production.INFO: ProcessCDR(1,14499349,1,1,2) [2025-02-18 00:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499349', 'tblTempUsageDetail_20' ) start [2025-02-18 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499349', 'tblTempUsageDetail_20' ) end [2025-02-18 00:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:19:24] Production.INFO: ==21644== Releasing lock... [2025-02-18 00:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:19:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:20:06 [end_date_ymd] => 2025-02-18 00:20:06 [RateCDR] => 1 ) [2025-02-18 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:20:06' and `end` < '2025-02-18 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:20:19] Production.INFO: count ==690 [2025-02-18 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:20:06 - End Time 2025-02-18 00:20:06 [2025-02-18 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499354', 'tblTempUsageDetail_20' ) start [2025-02-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499354', 'tblTempUsageDetail_20' ) end [2025-02-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499354', 'tblTempVendorCDR_20' ) start [2025-02-18 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499354', 'tblTempVendorCDR_20' ) end [2025-02-18 00:20:19] Production.INFO: ProcessCDR(1,14499354,1,1,2) [2025-02-18 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499354', 'tblTempUsageDetail_20' ) start [2025-02-18 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499354', 'tblTempUsageDetail_20' ) end [2025-02-18 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:20:23] Production.INFO: ==21745== Releasing lock... [2025-02-18 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:21:05 [end_date_ymd] => 2025-02-18 00:21:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:21:05' and `end` < '2025-02-18 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-18 00:21:18] Production.INFO: count ==702 [2025-02-18 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:21:05 - End Time 2025-02-18 00:21:05 [2025-02-18 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499360', 'tblTempUsageDetail_20' ) start [2025-02-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499360', 'tblTempUsageDetail_20' ) end [2025-02-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499360', 'tblTempVendorCDR_20' ) start [2025-02-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499360', 'tblTempVendorCDR_20' ) end [2025-02-18 00:21:18] Production.INFO: ProcessCDR(1,14499360,1,1,2) [2025-02-18 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499360', 'tblTempUsageDetail_20' ) start [2025-02-18 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499360', 'tblTempUsageDetail_20' ) end [2025-02-18 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:21:21] Production.INFO: ==21829== Releasing lock... [2025-02-18 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:22:05 [end_date_ymd] => 2025-02-18 00:22:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:22:05' and `end` < '2025-02-18 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-18 00:22:20] Production.INFO: count ==704 [2025-02-18 00:22:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:22:05 - End Time 2025-02-18 00:22:05 [2025-02-18 00:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499365', 'tblTempUsageDetail_20' ) start [2025-02-18 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499365', 'tblTempUsageDetail_20' ) end [2025-02-18 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499365', 'tblTempVendorCDR_20' ) start [2025-02-18 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499365', 'tblTempVendorCDR_20' ) end [2025-02-18 00:22:20] Production.INFO: ProcessCDR(1,14499365,1,1,2) [2025-02-18 00:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499365', 'tblTempUsageDetail_20' ) start [2025-02-18 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499365', 'tblTempUsageDetail_20' ) end [2025-02-18 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:22:23] Production.INFO: ==21908== Releasing lock... [2025-02-18 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:22:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:23:05 [end_date_ymd] => 2025-02-18 00:23:05 [RateCDR] => 1 ) [2025-02-18 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:23:05' and `end` < '2025-02-18 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:23:18] Production.INFO: count ==704 [2025-02-18 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:23:05 - End Time 2025-02-18 00:23:05 [2025-02-18 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499370', 'tblTempUsageDetail_20' ) start [2025-02-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499370', 'tblTempUsageDetail_20' ) end [2025-02-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499370', 'tblTempVendorCDR_20' ) start [2025-02-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499370', 'tblTempVendorCDR_20' ) end [2025-02-18 00:23:18] Production.INFO: ProcessCDR(1,14499370,1,1,2) [2025-02-18 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499370', 'tblTempUsageDetail_20' ) start [2025-02-18 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499370', 'tblTempUsageDetail_20' ) end [2025-02-18 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:23:22] Production.INFO: ==21986== Releasing lock... [2025-02-18 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:23:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:24:05 [end_date_ymd] => 2025-02-18 00:24:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:24:05' and `end` < '2025-02-18 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-18 00:24:19] Production.INFO: count ==704 [2025-02-18 00:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:24:05 - End Time 2025-02-18 00:24:05 [2025-02-18 00:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499375', 'tblTempUsageDetail_20' ) start [2025-02-18 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499375', 'tblTempUsageDetail_20' ) end [2025-02-18 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499375', 'tblTempVendorCDR_20' ) start [2025-02-18 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499375', 'tblTempVendorCDR_20' ) end [2025-02-18 00:24:20] Production.INFO: ProcessCDR(1,14499375,1,1,2) [2025-02-18 00:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499375', 'tblTempUsageDetail_20' ) start [2025-02-18 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499375', 'tblTempUsageDetail_20' ) end [2025-02-18 00:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:24:23] Production.INFO: ==22065== Releasing lock... [2025-02-18 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:24:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:25:05 [end_date_ymd] => 2025-02-18 00:25:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:25:05' and `end` < '2025-02-18 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-18 00:25:18] Production.INFO: count ==704 [2025-02-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:25:05 - End Time 2025-02-18 00:25:05 [2025-02-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499380', 'tblTempUsageDetail_20' ) start [2025-02-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499380', 'tblTempUsageDetail_20' ) end [2025-02-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499380', 'tblTempVendorCDR_20' ) start [2025-02-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499380', 'tblTempVendorCDR_20' ) end [2025-02-18 00:25:18] Production.INFO: ProcessCDR(1,14499380,1,1,2) [2025-02-18 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499380', 'tblTempUsageDetail_20' ) start [2025-02-18 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499380', 'tblTempUsageDetail_20' ) end [2025-02-18 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:25:21] Production.INFO: ==22141== Releasing lock... [2025-02-18 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:25:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:26:06 [end_date_ymd] => 2025-02-18 00:26:06 [RateCDR] => 1 ) [2025-02-18 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:26:06' and `end` < '2025-02-18 00: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-18 00:26:19] Production.INFO: count ==702 [2025-02-18 00:26:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:26:06 - End Time 2025-02-18 00:26:06 [2025-02-18 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499385', 'tblTempUsageDetail_20' ) start [2025-02-18 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499385', 'tblTempUsageDetail_20' ) end [2025-02-18 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499385', 'tblTempVendorCDR_20' ) start [2025-02-18 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499385', 'tblTempVendorCDR_20' ) end [2025-02-18 00:26:19] Production.INFO: ProcessCDR(1,14499385,1,1,2) [2025-02-18 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499385', 'tblTempUsageDetail_20' ) start [2025-02-18 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499385', 'tblTempUsageDetail_20' ) end [2025-02-18 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:26:22] Production.INFO: ==22261== Releasing lock... [2025-02-18 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:27:05 [end_date_ymd] => 2025-02-18 00:27:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:27:05' and `end` < '2025-02-18 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-18 00:27:21] Production.INFO: count ==706 [2025-02-18 00:27:21] Production.ERROR: pbx CDR StartTime 2025-02-17 21:27:05 - End Time 2025-02-18 00:27:05 [2025-02-18 00:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499390', 'tblTempUsageDetail_20' ) start [2025-02-18 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499390', 'tblTempUsageDetail_20' ) end [2025-02-18 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499390', 'tblTempVendorCDR_20' ) start [2025-02-18 00:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499390', 'tblTempVendorCDR_20' ) end [2025-02-18 00:27:21] Production.INFO: ProcessCDR(1,14499390,1,1,2) [2025-02-18 00:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499390', 'tblTempUsageDetail_20' ) start [2025-02-18 00:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499390', 'tblTempUsageDetail_20' ) end [2025-02-18 00:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:27:25] Production.INFO: ==22344== Releasing lock... [2025-02-18 00:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:27:25] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:28:06 [end_date_ymd] => 2025-02-18 00:28:06 [RateCDR] => 1 ) [2025-02-18 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:28:06' and `end` < '2025-02-18 00: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-18 00:28:19] Production.INFO: count ==705 [2025-02-18 00:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:28:06 - End Time 2025-02-18 00:28:06 [2025-02-18 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499395', 'tblTempUsageDetail_20' ) start [2025-02-18 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499395', 'tblTempUsageDetail_20' ) end [2025-02-18 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499395', 'tblTempVendorCDR_20' ) start [2025-02-18 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499395', 'tblTempVendorCDR_20' ) end [2025-02-18 00:28:19] Production.INFO: ProcessCDR(1,14499395,1,1,2) [2025-02-18 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499395', 'tblTempUsageDetail_20' ) start [2025-02-18 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499395', 'tblTempUsageDetail_20' ) end [2025-02-18 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:28:22] Production.INFO: ==22417== Releasing lock... [2025-02-18 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:28:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:29:04 [end_date_ymd] => 2025-02-18 00:29:04 [RateCDR] => 1 ) [2025-02-18 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-17 21:29:04' and `end` < '2025-02-18 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-18 00:29:18] Production.INFO: count ==704 [2025-02-18 00:29:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:29:04 - End Time 2025-02-18 00:29:04 [2025-02-18 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499400', 'tblTempUsageDetail_20' ) start [2025-02-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499400', 'tblTempUsageDetail_20' ) end [2025-02-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499400', 'tblTempVendorCDR_20' ) start [2025-02-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499400', 'tblTempVendorCDR_20' ) end [2025-02-18 00:29:18] Production.INFO: ProcessCDR(1,14499400,1,1,2) [2025-02-18 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499400', 'tblTempUsageDetail_20' ) start [2025-02-18 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499400', 'tblTempUsageDetail_20' ) end [2025-02-18 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:29:21] Production.INFO: ==22495== Releasing lock... [2025-02-18 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:29:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:30:06 [end_date_ymd] => 2025-02-18 00:30:06 [RateCDR] => 1 ) [2025-02-18 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-17 21:30:06' and `end` < '2025-02-18 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-18 00:30:20] Production.INFO: count ==715 [2025-02-18 00:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:30:06 - End Time 2025-02-18 00:30:06 [2025-02-18 00:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499406', 'tblTempUsageDetail_20' ) start [2025-02-18 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499406', 'tblTempUsageDetail_20' ) end [2025-02-18 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499406', 'tblTempVendorCDR_20' ) start [2025-02-18 00:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499406', 'tblTempVendorCDR_20' ) end [2025-02-18 00:30:20] Production.INFO: ProcessCDR(1,14499406,1,1,2) [2025-02-18 00:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499406', 'tblTempUsageDetail_20' ) start [2025-02-18 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499406', 'tblTempUsageDetail_20' ) end [2025-02-18 00:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:30:24] Production.INFO: ==22576== Releasing lock... [2025-02-18 00:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:30:24] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:31:05 [end_date_ymd] => 2025-02-18 00:31:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:31:05' and `end` < '2025-02-18 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-18 00:31:18] Production.INFO: count ==726 [2025-02-18 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:31:05 - End Time 2025-02-18 00:31:05 [2025-02-18 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499411', 'tblTempUsageDetail_20' ) start [2025-02-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499411', 'tblTempUsageDetail_20' ) end [2025-02-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499411', 'tblTempVendorCDR_20' ) start [2025-02-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499411', 'tblTempVendorCDR_20' ) end [2025-02-18 00:31:18] Production.INFO: ProcessCDR(1,14499411,1,1,2) [2025-02-18 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499411', 'tblTempUsageDetail_20' ) start [2025-02-18 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499411', 'tblTempUsageDetail_20' ) end [2025-02-18 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:31:21] Production.INFO: ==22657== Releasing lock... [2025-02-18 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:31:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:32:05 [end_date_ymd] => 2025-02-18 00:32:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:32:05' and `end` < '2025-02-18 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-18 00:32:18] Production.INFO: count ==718 [2025-02-18 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:32:05 - End Time 2025-02-18 00:32:05 [2025-02-18 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499416', 'tblTempUsageDetail_20' ) start [2025-02-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499416', 'tblTempUsageDetail_20' ) end [2025-02-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499416', 'tblTempVendorCDR_20' ) start [2025-02-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499416', 'tblTempVendorCDR_20' ) end [2025-02-18 00:32:18] Production.INFO: ProcessCDR(1,14499416,1,1,2) [2025-02-18 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499416', 'tblTempUsageDetail_20' ) start [2025-02-18 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499416', 'tblTempUsageDetail_20' ) end [2025-02-18 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:32:21] Production.INFO: ==22735== Releasing lock... [2025-02-18 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:32:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:33:04 [end_date_ymd] => 2025-02-18 00:33:04 [RateCDR] => 1 ) [2025-02-18 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:33:04' and `end` < '2025-02-18 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:33:19] Production.INFO: count ==718 [2025-02-18 00:33:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:33:04 - End Time 2025-02-18 00:33:04 [2025-02-18 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499421', 'tblTempUsageDetail_20' ) start [2025-02-18 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499421', 'tblTempUsageDetail_20' ) end [2025-02-18 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499421', 'tblTempVendorCDR_20' ) start [2025-02-18 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499421', 'tblTempVendorCDR_20' ) end [2025-02-18 00:33:19] Production.INFO: ProcessCDR(1,14499421,1,1,2) [2025-02-18 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499421', 'tblTempUsageDetail_20' ) start [2025-02-18 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499421', 'tblTempUsageDetail_20' ) end [2025-02-18 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:33:22] Production.INFO: ==22812== Releasing lock... [2025-02-18 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:33:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:34:05 [end_date_ymd] => 2025-02-18 00:34:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:34:05' and `end` < '2025-02-18 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-18 00:34:18] Production.INFO: count ==715 [2025-02-18 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:34:05 - End Time 2025-02-18 00:34:05 [2025-02-18 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499426', 'tblTempUsageDetail_20' ) start [2025-02-18 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499426', 'tblTempUsageDetail_20' ) end [2025-02-18 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499426', 'tblTempVendorCDR_20' ) start [2025-02-18 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499426', 'tblTempVendorCDR_20' ) end [2025-02-18 00:34:19] Production.INFO: ProcessCDR(1,14499426,1,1,2) [2025-02-18 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499426', 'tblTempUsageDetail_20' ) start [2025-02-18 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499426', 'tblTempUsageDetail_20' ) end [2025-02-18 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:34:22] Production.INFO: ==22890== Releasing lock... [2025-02-18 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:34:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:35:04 [end_date_ymd] => 2025-02-18 00:35:04 [RateCDR] => 1 ) [2025-02-18 00: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-17 21:35:04' and `end` < '2025-02-18 00: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-18 00:35:17] Production.INFO: count ==710 [2025-02-18 00:35:17] Production.ERROR: pbx CDR StartTime 2025-02-17 21:35:04 - End Time 2025-02-18 00:35:04 [2025-02-18 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499431', 'tblTempUsageDetail_20' ) start [2025-02-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499431', 'tblTempUsageDetail_20' ) end [2025-02-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499431', 'tblTempVendorCDR_20' ) start [2025-02-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499431', 'tblTempVendorCDR_20' ) end [2025-02-18 00:35:17] Production.INFO: ProcessCDR(1,14499431,1,1,2) [2025-02-18 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499431', 'tblTempUsageDetail_20' ) start [2025-02-18 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499431', 'tblTempUsageDetail_20' ) end [2025-02-18 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:35:21] Production.INFO: ==22968== Releasing lock... [2025-02-18 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:36:05 [end_date_ymd] => 2025-02-18 00:36:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:36:05' and `end` < '2025-02-18 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-18 00:36:18] Production.INFO: count ==712 [2025-02-18 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:36:05 - End Time 2025-02-18 00:36:05 [2025-02-18 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499436', 'tblTempUsageDetail_20' ) start [2025-02-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499436', 'tblTempUsageDetail_20' ) end [2025-02-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499436', 'tblTempVendorCDR_20' ) start [2025-02-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499436', 'tblTempVendorCDR_20' ) end [2025-02-18 00:36:18] Production.INFO: ProcessCDR(1,14499436,1,1,2) [2025-02-18 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499436', 'tblTempUsageDetail_20' ) start [2025-02-18 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499436', 'tblTempUsageDetail_20' ) end [2025-02-18 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:36:22] Production.INFO: ==23052== Releasing lock... [2025-02-18 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:36:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:37:06 [end_date_ymd] => 2025-02-18 00:37:06 [RateCDR] => 1 ) [2025-02-18 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:37:06' and `end` < '2025-02-18 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:37:19] Production.INFO: count ==711 [2025-02-18 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:37:06 - End Time 2025-02-18 00:37:06 [2025-02-18 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499441', 'tblTempUsageDetail_20' ) start [2025-02-18 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499441', 'tblTempUsageDetail_20' ) end [2025-02-18 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499441', 'tblTempVendorCDR_20' ) start [2025-02-18 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499441', 'tblTempVendorCDR_20' ) end [2025-02-18 00:37:19] Production.INFO: ProcessCDR(1,14499441,1,1,2) [2025-02-18 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499441', 'tblTempUsageDetail_20' ) start [2025-02-18 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499441', 'tblTempUsageDetail_20' ) end [2025-02-18 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:37:22] Production.INFO: ==23130== Releasing lock... [2025-02-18 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:37:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:38:05 [end_date_ymd] => 2025-02-18 00:38:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:38:05' and `end` < '2025-02-18 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-18 00:38:20] Production.INFO: count ==711 [2025-02-18 00:38:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:38:05 - End Time 2025-02-18 00:38:05 [2025-02-18 00:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499446', 'tblTempUsageDetail_20' ) start [2025-02-18 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499446', 'tblTempUsageDetail_20' ) end [2025-02-18 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499446', 'tblTempVendorCDR_20' ) start [2025-02-18 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499446', 'tblTempVendorCDR_20' ) end [2025-02-18 00:38:20] Production.INFO: ProcessCDR(1,14499446,1,1,2) [2025-02-18 00:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499446', 'tblTempUsageDetail_20' ) start [2025-02-18 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499446', 'tblTempUsageDetail_20' ) end [2025-02-18 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:38:23] Production.INFO: ==23211== Releasing lock... [2025-02-18 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:38:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:39:06 [end_date_ymd] => 2025-02-18 00:39:06 [RateCDR] => 1 ) [2025-02-18 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-17 21:39:06' and `end` < '2025-02-18 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-18 00:39:19] Production.INFO: count ==716 [2025-02-18 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:39:06 - End Time 2025-02-18 00:39:06 [2025-02-18 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499451', 'tblTempUsageDetail_20' ) start [2025-02-18 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499451', 'tblTempUsageDetail_20' ) end [2025-02-18 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499451', 'tblTempVendorCDR_20' ) start [2025-02-18 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499451', 'tblTempVendorCDR_20' ) end [2025-02-18 00:39:19] Production.INFO: ProcessCDR(1,14499451,1,1,2) [2025-02-18 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499451', 'tblTempUsageDetail_20' ) start [2025-02-18 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499451', 'tblTempUsageDetail_20' ) end [2025-02-18 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:39:24] Production.INFO: ==23286== Releasing lock... [2025-02-18 00:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:39:24] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:40:06 [end_date_ymd] => 2025-02-18 00:40:06 [RateCDR] => 1 ) [2025-02-18 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-17 21:40:06' and `end` < '2025-02-18 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-18 00:40:19] Production.INFO: count ==724 [2025-02-18 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:40:06 - End Time 2025-02-18 00:40:06 [2025-02-18 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499457', 'tblTempUsageDetail_20' ) start [2025-02-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499457', 'tblTempUsageDetail_20' ) end [2025-02-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499457', 'tblTempVendorCDR_20' ) start [2025-02-18 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499457', 'tblTempVendorCDR_20' ) end [2025-02-18 00:40:19] Production.INFO: ProcessCDR(1,14499457,1,1,2) [2025-02-18 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499457', 'tblTempUsageDetail_20' ) start [2025-02-18 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499457', 'tblTempUsageDetail_20' ) end [2025-02-18 00:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:40:24] Production.INFO: ==23365== Releasing lock... [2025-02-18 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:40:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:41:05 [end_date_ymd] => 2025-02-18 00:41:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:41:05' and `end` < '2025-02-18 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-18 00:41:20] Production.INFO: count ==727 [2025-02-18 00:41:21] Production.ERROR: pbx CDR StartTime 2025-02-17 21:41:05 - End Time 2025-02-18 00:41:05 [2025-02-18 00:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499462', 'tblTempUsageDetail_20' ) start [2025-02-18 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499462', 'tblTempUsageDetail_20' ) end [2025-02-18 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499462', 'tblTempVendorCDR_20' ) start [2025-02-18 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499462', 'tblTempVendorCDR_20' ) end [2025-02-18 00:41:21] Production.INFO: ProcessCDR(1,14499462,1,1,2) [2025-02-18 00:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499462', 'tblTempUsageDetail_20' ) start [2025-02-18 00:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499462', 'tblTempUsageDetail_20' ) end [2025-02-18 00:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:41:24] Production.INFO: ==23482== Releasing lock... [2025-02-18 00:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:41:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:42:05 [end_date_ymd] => 2025-02-18 00:42:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:42:05' and `end` < '2025-02-18 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-18 00:42:20] Production.INFO: count ==727 [2025-02-18 00:42:21] Production.ERROR: pbx CDR StartTime 2025-02-17 21:42:05 - End Time 2025-02-18 00:42:05 [2025-02-18 00:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499467', 'tblTempUsageDetail_20' ) start [2025-02-18 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499467', 'tblTempUsageDetail_20' ) end [2025-02-18 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499467', 'tblTempVendorCDR_20' ) start [2025-02-18 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499467', 'tblTempVendorCDR_20' ) end [2025-02-18 00:42:21] Production.INFO: ProcessCDR(1,14499467,1,1,2) [2025-02-18 00:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499467', 'tblTempUsageDetail_20' ) start [2025-02-18 00:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499467', 'tblTempUsageDetail_20' ) end [2025-02-18 00:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:42:24] Production.INFO: ==23565== Releasing lock... [2025-02-18 00:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:42:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:43:05 [end_date_ymd] => 2025-02-18 00:43:05 [RateCDR] => 1 ) [2025-02-18 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:43:05' and `end` < '2025-02-18 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:43:18] Production.INFO: count ==727 [2025-02-18 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:43:05 - End Time 2025-02-18 00:43:05 [2025-02-18 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499472', 'tblTempUsageDetail_20' ) start [2025-02-18 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499472', 'tblTempUsageDetail_20' ) end [2025-02-18 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499472', 'tblTempVendorCDR_20' ) start [2025-02-18 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499472', 'tblTempVendorCDR_20' ) end [2025-02-18 00:43:19] Production.INFO: ProcessCDR(1,14499472,1,1,2) [2025-02-18 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499472', 'tblTempUsageDetail_20' ) start [2025-02-18 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499472', 'tblTempUsageDetail_20' ) end [2025-02-18 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:43:22] Production.INFO: ==23636== Releasing lock... [2025-02-18 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:44:05 [end_date_ymd] => 2025-02-18 00:44:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:44:05' and `end` < '2025-02-18 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-18 00:44:19] Production.INFO: count ==728 [2025-02-18 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:44:05 - End Time 2025-02-18 00:44:05 [2025-02-18 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499477', 'tblTempUsageDetail_20' ) start [2025-02-18 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499477', 'tblTempUsageDetail_20' ) end [2025-02-18 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499477', 'tblTempVendorCDR_20' ) start [2025-02-18 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499477', 'tblTempVendorCDR_20' ) end [2025-02-18 00:44:20] Production.INFO: ProcessCDR(1,14499477,1,1,2) [2025-02-18 00:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499477', 'tblTempUsageDetail_20' ) start [2025-02-18 00:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499477', 'tblTempUsageDetail_20' ) end [2025-02-18 00:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:44:24] Production.INFO: ==23745== Releasing lock... [2025-02-18 00:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:44:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:45:05 [end_date_ymd] => 2025-02-18 00:45:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:45:05' and `end` < '2025-02-18 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-18 00:45:18] Production.INFO: count ==728 [2025-02-18 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:45:05 - End Time 2025-02-18 00:45:05 [2025-02-18 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499482', 'tblTempUsageDetail_20' ) start [2025-02-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499482', 'tblTempUsageDetail_20' ) end [2025-02-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499482', 'tblTempVendorCDR_20' ) start [2025-02-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499482', 'tblTempVendorCDR_20' ) end [2025-02-18 00:45:18] Production.INFO: ProcessCDR(1,14499482,1,1,2) [2025-02-18 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499482', 'tblTempUsageDetail_20' ) start [2025-02-18 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499482', 'tblTempUsageDetail_20' ) end [2025-02-18 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:45:21] Production.INFO: ==23863== Releasing lock... [2025-02-18 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:45:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:46:05 [end_date_ymd] => 2025-02-18 00:46:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:46:05' and `end` < '2025-02-18 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-18 00:46:20] Production.INFO: count ==728 [2025-02-18 00:46:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:46:05 - End Time 2025-02-18 00:46:05 [2025-02-18 00:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499487', 'tblTempUsageDetail_20' ) start [2025-02-18 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499487', 'tblTempUsageDetail_20' ) end [2025-02-18 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499487', 'tblTempVendorCDR_20' ) start [2025-02-18 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499487', 'tblTempVendorCDR_20' ) end [2025-02-18 00:46:20] Production.INFO: ProcessCDR(1,14499487,1,1,2) [2025-02-18 00:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499487', 'tblTempUsageDetail_20' ) start [2025-02-18 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499487', 'tblTempUsageDetail_20' ) end [2025-02-18 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:46:23] Production.INFO: ==23954== Releasing lock... [2025-02-18 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:47:05 [end_date_ymd] => 2025-02-18 00:47:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:47:05' and `end` < '2025-02-18 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-18 00:47:18] Production.INFO: count ==728 [2025-02-18 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:47:05 - End Time 2025-02-18 00:47:05 [2025-02-18 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499492', 'tblTempUsageDetail_20' ) start [2025-02-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499492', 'tblTempUsageDetail_20' ) end [2025-02-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499492', 'tblTempVendorCDR_20' ) start [2025-02-18 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499492', 'tblTempVendorCDR_20' ) end [2025-02-18 00:47:18] Production.INFO: ProcessCDR(1,14499492,1,1,2) [2025-02-18 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499492', 'tblTempUsageDetail_20' ) start [2025-02-18 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499492', 'tblTempUsageDetail_20' ) end [2025-02-18 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:47:21] Production.INFO: ==24024== Releasing lock... [2025-02-18 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:48:05 [end_date_ymd] => 2025-02-18 00:48:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:48:05' and `end` < '2025-02-18 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-18 00:48:20] Production.INFO: count ==728 [2025-02-18 00:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:48:05 - End Time 2025-02-18 00:48:05 [2025-02-18 00:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499497', 'tblTempUsageDetail_20' ) start [2025-02-18 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499497', 'tblTempUsageDetail_20' ) end [2025-02-18 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499497', 'tblTempVendorCDR_20' ) start [2025-02-18 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499497', 'tblTempVendorCDR_20' ) end [2025-02-18 00:48:20] Production.INFO: ProcessCDR(1,14499497,1,1,2) [2025-02-18 00:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499497', 'tblTempUsageDetail_20' ) start [2025-02-18 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499497', 'tblTempUsageDetail_20' ) end [2025-02-18 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:48:23] Production.INFO: ==24094== Releasing lock... [2025-02-18 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:48:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:49:04 [end_date_ymd] => 2025-02-18 00:49:04 [RateCDR] => 1 ) [2025-02-18 00: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-17 21:49:04' and `end` < '2025-02-18 00: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-18 00:49:18] Production.INFO: count ==728 [2025-02-18 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:49:04 - End Time 2025-02-18 00:49:04 [2025-02-18 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499502', 'tblTempUsageDetail_20' ) start [2025-02-18 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499502', 'tblTempUsageDetail_20' ) end [2025-02-18 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499502', 'tblTempVendorCDR_20' ) start [2025-02-18 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499502', 'tblTempVendorCDR_20' ) end [2025-02-18 00:49:19] Production.INFO: ProcessCDR(1,14499502,1,1,2) [2025-02-18 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499502', 'tblTempUsageDetail_20' ) start [2025-02-18 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499502', 'tblTempUsageDetail_20' ) end [2025-02-18 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:49:22] Production.INFO: ==24165== Releasing lock... [2025-02-18 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:49:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:50:06 [end_date_ymd] => 2025-02-18 00:50:06 [RateCDR] => 1 ) [2025-02-18 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:50:06' and `end` < '2025-02-18 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:50:20] Production.INFO: count ==725 [2025-02-18 00:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 21:50:06 - End Time 2025-02-18 00:50:06 [2025-02-18 00:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499508', 'tblTempUsageDetail_20' ) start [2025-02-18 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499508', 'tblTempUsageDetail_20' ) end [2025-02-18 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499508', 'tblTempVendorCDR_20' ) start [2025-02-18 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499508', 'tblTempVendorCDR_20' ) end [2025-02-18 00:50:20] Production.INFO: ProcessCDR(1,14499508,1,1,2) [2025-02-18 00:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499508', 'tblTempUsageDetail_20' ) start [2025-02-18 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499508', 'tblTempUsageDetail_20' ) end [2025-02-18 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:50:23] Production.INFO: ==24238== Releasing lock... [2025-02-18 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:51:05 [end_date_ymd] => 2025-02-18 00:51:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:51:05' and `end` < '2025-02-18 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-18 00:51:18] Production.INFO: count ==724 [2025-02-18 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:51:05 - End Time 2025-02-18 00:51:05 [2025-02-18 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499513', 'tblTempUsageDetail_20' ) start [2025-02-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499513', 'tblTempUsageDetail_20' ) end [2025-02-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499513', 'tblTempVendorCDR_20' ) start [2025-02-18 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499513', 'tblTempVendorCDR_20' ) end [2025-02-18 00:51:18] Production.INFO: ProcessCDR(1,14499513,1,1,2) [2025-02-18 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499513', 'tblTempUsageDetail_20' ) start [2025-02-18 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499513', 'tblTempUsageDetail_20' ) end [2025-02-18 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:51:22] Production.INFO: ==24310== Releasing lock... [2025-02-18 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:52:05 [end_date_ymd] => 2025-02-18 00:52:05 [RateCDR] => 1 ) [2025-02-18 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:52:05' and `end` < '2025-02-18 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:52:18] Production.INFO: count ==724 [2025-02-18 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:52:05 - End Time 2025-02-18 00:52:05 [2025-02-18 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499518', 'tblTempUsageDetail_20' ) start [2025-02-18 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499518', 'tblTempUsageDetail_20' ) end [2025-02-18 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499518', 'tblTempVendorCDR_20' ) start [2025-02-18 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499518', 'tblTempVendorCDR_20' ) end [2025-02-18 00:52:19] Production.INFO: ProcessCDR(1,14499518,1,1,2) [2025-02-18 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499518', 'tblTempUsageDetail_20' ) start [2025-02-18 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499518', 'tblTempUsageDetail_20' ) end [2025-02-18 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:52:22] Production.INFO: ==24383== Releasing lock... [2025-02-18 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:52:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:53:05 [end_date_ymd] => 2025-02-18 00:53:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:53:05' and `end` < '2025-02-18 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-18 00:53:18] Production.INFO: count ==724 [2025-02-18 00:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:53:05 - End Time 2025-02-18 00:53:05 [2025-02-18 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499523', 'tblTempUsageDetail_20' ) start [2025-02-18 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499523', 'tblTempUsageDetail_20' ) end [2025-02-18 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499523', 'tblTempVendorCDR_20' ) start [2025-02-18 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499523', 'tblTempVendorCDR_20' ) end [2025-02-18 00:53:19] Production.INFO: ProcessCDR(1,14499523,1,1,2) [2025-02-18 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499523', 'tblTempUsageDetail_20' ) start [2025-02-18 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499523', 'tblTempUsageDetail_20' ) end [2025-02-18 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:53:22] Production.INFO: ==24455== Releasing lock... [2025-02-18 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:53:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:54:05 [end_date_ymd] => 2025-02-18 00:54:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:54:05' and `end` < '2025-02-18 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-18 00:54:18] Production.INFO: count ==723 [2025-02-18 00:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:54:05 - End Time 2025-02-18 00:54:05 [2025-02-18 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499528', 'tblTempUsageDetail_20' ) start [2025-02-18 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499528', 'tblTempUsageDetail_20' ) end [2025-02-18 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499528', 'tblTempVendorCDR_20' ) start [2025-02-18 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499528', 'tblTempVendorCDR_20' ) end [2025-02-18 00:54:19] Production.INFO: ProcessCDR(1,14499528,1,1,2) [2025-02-18 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499528', 'tblTempUsageDetail_20' ) start [2025-02-18 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499528', 'tblTempUsageDetail_20' ) end [2025-02-18 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:54:22] Production.INFO: ==24529== Releasing lock... [2025-02-18 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:54:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:55:05 [end_date_ymd] => 2025-02-18 00:55:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:55:05' and `end` < '2025-02-18 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-18 00:55:18] Production.INFO: count ==726 [2025-02-18 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:55:05 - End Time 2025-02-18 00:55:05 [2025-02-18 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499533', 'tblTempUsageDetail_20' ) start [2025-02-18 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499533', 'tblTempUsageDetail_20' ) end [2025-02-18 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499533', 'tblTempVendorCDR_20' ) start [2025-02-18 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499533', 'tblTempVendorCDR_20' ) end [2025-02-18 00:55:18] Production.INFO: ProcessCDR(1,14499533,1,1,2) [2025-02-18 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499533', 'tblTempUsageDetail_20' ) start [2025-02-18 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499533', 'tblTempUsageDetail_20' ) end [2025-02-18 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:55:21] Production.INFO: ==24604== Releasing lock... [2025-02-18 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:56:06 [end_date_ymd] => 2025-02-18 00:56:06 [RateCDR] => 1 ) [2025-02-18 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:56:06' and `end` < '2025-02-18 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 00:56:19] Production.INFO: count ==727 [2025-02-18 00:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:56:06 - End Time 2025-02-18 00:56:06 [2025-02-18 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499538', 'tblTempUsageDetail_20' ) start [2025-02-18 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499538', 'tblTempUsageDetail_20' ) end [2025-02-18 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499538', 'tblTempVendorCDR_20' ) start [2025-02-18 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499538', 'tblTempVendorCDR_20' ) end [2025-02-18 00:56:19] Production.INFO: ProcessCDR(1,14499538,1,1,2) [2025-02-18 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499538', 'tblTempUsageDetail_20' ) start [2025-02-18 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499538', 'tblTempUsageDetail_20' ) end [2025-02-18 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:56:22] Production.INFO: ==24675== Releasing lock... [2025-02-18 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:57:05 [end_date_ymd] => 2025-02-18 00:57:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:57:05' and `end` < '2025-02-18 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-18 00:57:18] Production.INFO: count ==725 [2025-02-18 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:57:05 - End Time 2025-02-18 00:57:05 [2025-02-18 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499543', 'tblTempUsageDetail_20' ) start [2025-02-18 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499543', 'tblTempUsageDetail_20' ) end [2025-02-18 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499543', 'tblTempVendorCDR_20' ) start [2025-02-18 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499543', 'tblTempVendorCDR_20' ) end [2025-02-18 00:57:19] Production.INFO: ProcessCDR(1,14499543,1,1,2) [2025-02-18 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499543', 'tblTempUsageDetail_20' ) start [2025-02-18 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499543', 'tblTempUsageDetail_20' ) end [2025-02-18 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:57:22] Production.INFO: ==24787== Releasing lock... [2025-02-18 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:58:05 [end_date_ymd] => 2025-02-18 00:58:05 [RateCDR] => 1 ) [2025-02-18 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-17 21:58:05' and `end` < '2025-02-18 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-18 00:58:18] Production.INFO: count ==725 [2025-02-18 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-17 21:58:05 - End Time 2025-02-18 00:58:05 [2025-02-18 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499548', 'tblTempUsageDetail_20' ) start [2025-02-18 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499548', 'tblTempUsageDetail_20' ) end [2025-02-18 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499548', 'tblTempVendorCDR_20' ) start [2025-02-18 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499548', 'tblTempVendorCDR_20' ) end [2025-02-18 00:58:19] Production.INFO: ProcessCDR(1,14499548,1,1,2) [2025-02-18 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499548', 'tblTempUsageDetail_20' ) start [2025-02-18 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499548', 'tblTempUsageDetail_20' ) end [2025-02-18 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:58:22] Production.INFO: ==24858== Releasing lock... [2025-02-18 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 21:59:06 [end_date_ymd] => 2025-02-18 00:59:06 [RateCDR] => 1 ) [2025-02-18 00:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 21:59:06' and `end` < '2025-02-18 00: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-18 00:59:19] Production.INFO: count ==723 [2025-02-18 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-17 21:59:06 - End Time 2025-02-18 00:59:06 [2025-02-18 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499553', 'tblTempUsageDetail_20' ) start [2025-02-18 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499553', 'tblTempUsageDetail_20' ) end [2025-02-18 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499553', 'tblTempVendorCDR_20' ) start [2025-02-18 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499553', 'tblTempVendorCDR_20' ) end [2025-02-18 00:59:19] Production.INFO: ProcessCDR(1,14499553,1,1,2) [2025-02-18 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499553', 'tblTempUsageDetail_20' ) start [2025-02-18 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499553', 'tblTempUsageDetail_20' ) end [2025-02-18 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 00:59:22] Production.INFO: ==24931== Releasing lock... [2025-02-18 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 00:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:00:06 [end_date_ymd] => 2025-02-18 01:00:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:00:06' and `end` < '2025-02-18 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-18 01:00:20] Production.INFO: count ==731 [2025-02-18 01:00:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:00:06 - End Time 2025-02-18 01:00:06 [2025-02-18 01:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499559', 'tblTempUsageDetail_20' ) start [2025-02-18 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499559', 'tblTempUsageDetail_20' ) end [2025-02-18 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499559', 'tblTempVendorCDR_20' ) start [2025-02-18 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499559', 'tblTempVendorCDR_20' ) end [2025-02-18 01:00:20] Production.INFO: ProcessCDR(1,14499559,1,1,2) [2025-02-18 01:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499559', 'tblTempUsageDetail_20' ) start [2025-02-18 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499559', 'tblTempUsageDetail_20' ) end [2025-02-18 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:00:23] Production.INFO: ==25007== Releasing lock... [2025-02-18 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:00:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:01:06 [end_date_ymd] => 2025-02-18 01:01:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:01:06' and `end` < '2025-02-18 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-18 01:01:20] Production.INFO: count ==733 [2025-02-18 01:01:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:01:06 - End Time 2025-02-18 01:01:06 [2025-02-18 01:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499564', 'tblTempUsageDetail_20' ) start [2025-02-18 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499564', 'tblTempUsageDetail_20' ) end [2025-02-18 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499564', 'tblTempVendorCDR_20' ) start [2025-02-18 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499564', 'tblTempVendorCDR_20' ) end [2025-02-18 01:01:20] Production.INFO: ProcessCDR(1,14499564,1,1,2) [2025-02-18 01:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499564', 'tblTempUsageDetail_20' ) start [2025-02-18 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499564', 'tblTempUsageDetail_20' ) end [2025-02-18 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:01:23] Production.INFO: ==25094== Releasing lock... [2025-02-18 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:02:05 [end_date_ymd] => 2025-02-18 01:02:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:02:05' and `end` < '2025-02-18 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-18 01:02:19] Production.INFO: count ==733 [2025-02-18 01:02:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:02:05 - End Time 2025-02-18 01:02:05 [2025-02-18 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499569', 'tblTempUsageDetail_20' ) start [2025-02-18 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499569', 'tblTempUsageDetail_20' ) end [2025-02-18 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499569', 'tblTempVendorCDR_20' ) start [2025-02-18 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499569', 'tblTempVendorCDR_20' ) end [2025-02-18 01:02:19] Production.INFO: ProcessCDR(1,14499569,1,1,2) [2025-02-18 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499569', 'tblTempUsageDetail_20' ) start [2025-02-18 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499569', 'tblTempUsageDetail_20' ) end [2025-02-18 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:02:22] Production.INFO: ==25163== Releasing lock... [2025-02-18 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:02:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:03:05 [end_date_ymd] => 2025-02-18 01:03:05 [RateCDR] => 1 ) [2025-02-18 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:03:05' and `end` < '2025-02-18 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:03:18] Production.INFO: count ==732 [2025-02-18 01:03:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:03:05 - End Time 2025-02-18 01:03:05 [2025-02-18 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499573', 'tblTempUsageDetail_20' ) start [2025-02-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499573', 'tblTempUsageDetail_20' ) end [2025-02-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499573', 'tblTempVendorCDR_20' ) start [2025-02-18 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499573', 'tblTempVendorCDR_20' ) end [2025-02-18 01:03:18] Production.INFO: ProcessCDR(1,14499573,1,1,2) [2025-02-18 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499573', 'tblTempUsageDetail_20' ) start [2025-02-18 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499573', 'tblTempUsageDetail_20' ) end [2025-02-18 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:03:22] Production.INFO: ==25233== Releasing lock... [2025-02-18 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:04:05 [end_date_ymd] => 2025-02-18 01:04:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:04:05' and `end` < '2025-02-18 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-18 01:04:18] Production.INFO: count ==732 [2025-02-18 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:04:05 - End Time 2025-02-18 01:04:05 [2025-02-18 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499579', 'tblTempUsageDetail_20' ) start [2025-02-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499579', 'tblTempUsageDetail_20' ) end [2025-02-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499579', 'tblTempVendorCDR_20' ) start [2025-02-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499579', 'tblTempVendorCDR_20' ) end [2025-02-18 01:04:19] Production.INFO: ProcessCDR(1,14499579,1,1,2) [2025-02-18 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499579', 'tblTempUsageDetail_20' ) start [2025-02-18 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499579', 'tblTempUsageDetail_20' ) end [2025-02-18 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:04:22] Production.INFO: ==25305== Releasing lock... [2025-02-18 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:05:05 [end_date_ymd] => 2025-02-18 01:05:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:05:05' and `end` < '2025-02-18 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-18 01:05:18] Production.INFO: count ==730 [2025-02-18 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:05:05 - End Time 2025-02-18 01:05:05 [2025-02-18 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499583', 'tblTempUsageDetail_20' ) start [2025-02-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499583', 'tblTempUsageDetail_20' ) end [2025-02-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499583', 'tblTempVendorCDR_20' ) start [2025-02-18 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499583', 'tblTempVendorCDR_20' ) end [2025-02-18 01:05:18] Production.INFO: ProcessCDR(1,14499583,1,1,2) [2025-02-18 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499583', 'tblTempUsageDetail_20' ) start [2025-02-18 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499583', 'tblTempUsageDetail_20' ) end [2025-02-18 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:05:22] Production.INFO: ==25375== Releasing lock... [2025-02-18 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:05:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:06:05 [end_date_ymd] => 2025-02-18 01:06:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:06:05' and `end` < '2025-02-18 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-18 01:06:19] Production.INFO: count ==728 [2025-02-18 01:06:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:06:05 - End Time 2025-02-18 01:06:05 [2025-02-18 01:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499589', 'tblTempUsageDetail_20' ) start [2025-02-18 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499589', 'tblTempUsageDetail_20' ) end [2025-02-18 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499589', 'tblTempVendorCDR_20' ) start [2025-02-18 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499589', 'tblTempVendorCDR_20' ) end [2025-02-18 01:06:20] Production.INFO: ProcessCDR(1,14499589,1,1,2) [2025-02-18 01:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499589', 'tblTempUsageDetail_20' ) start [2025-02-18 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499589', 'tblTempUsageDetail_20' ) end [2025-02-18 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:06:23] Production.INFO: ==25447== Releasing lock... [2025-02-18 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:06:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:07:05 [end_date_ymd] => 2025-02-18 01:07:05 [RateCDR] => 1 ) [2025-02-18 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:07:05' and `end` < '2025-02-18 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:07:20] Production.INFO: count ==726 [2025-02-18 01:07:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:07:05 - End Time 2025-02-18 01:07:05 [2025-02-18 01:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499594', 'tblTempUsageDetail_20' ) start [2025-02-18 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499594', 'tblTempUsageDetail_20' ) end [2025-02-18 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499594', 'tblTempVendorCDR_20' ) start [2025-02-18 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499594', 'tblTempVendorCDR_20' ) end [2025-02-18 01:07:20] Production.INFO: ProcessCDR(1,14499594,1,1,2) [2025-02-18 01:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499594', 'tblTempUsageDetail_20' ) start [2025-02-18 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499594', 'tblTempUsageDetail_20' ) end [2025-02-18 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:07:24] Production.INFO: ==25519== Releasing lock... [2025-02-18 01:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:07:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:08:04 [end_date_ymd] => 2025-02-18 01:08:04 [RateCDR] => 1 ) [2025-02-18 01:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:08:04' and `end` < '2025-02-18 01: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-18 01:08:18] Production.INFO: count ==722 [2025-02-18 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:08:04 - End Time 2025-02-18 01:08:04 [2025-02-18 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499599', 'tblTempUsageDetail_20' ) start [2025-02-18 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499599', 'tblTempUsageDetail_20' ) end [2025-02-18 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499599', 'tblTempVendorCDR_20' ) start [2025-02-18 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499599', 'tblTempVendorCDR_20' ) end [2025-02-18 01:08:19] Production.INFO: ProcessCDR(1,14499599,1,1,2) [2025-02-18 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499599', 'tblTempUsageDetail_20' ) start [2025-02-18 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499599', 'tblTempUsageDetail_20' ) end [2025-02-18 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:08:22] Production.INFO: ==25592== Releasing lock... [2025-02-18 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:09:05 [end_date_ymd] => 2025-02-18 01:09:05 [RateCDR] => 1 ) [2025-02-18 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:09:05' and `end` < '2025-02-18 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:09:19] Production.INFO: count ==721 [2025-02-18 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:09:05 - End Time 2025-02-18 01:09:05 [2025-02-18 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499604', 'tblTempUsageDetail_20' ) start [2025-02-18 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499604', 'tblTempUsageDetail_20' ) end [2025-02-18 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499604', 'tblTempVendorCDR_20' ) start [2025-02-18 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499604', 'tblTempVendorCDR_20' ) end [2025-02-18 01:09:19] Production.INFO: ProcessCDR(1,14499604,1,1,2) [2025-02-18 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499604', 'tblTempUsageDetail_20' ) start [2025-02-18 01:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499604', 'tblTempUsageDetail_20' ) end [2025-02-18 01:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:09:23] Production.INFO: ==25663== Releasing lock... [2025-02-18 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:09:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:10:07 [end_date_ymd] => 2025-02-18 01:10:07 [RateCDR] => 1 ) [2025-02-18 01:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:10:07' and `end` < '2025-02-18 01: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-18 01:10:19] Production.INFO: count ==729 [2025-02-18 01:10:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:10:07 - End Time 2025-02-18 01:10:07 [2025-02-18 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499610', 'tblTempUsageDetail_20' ) start [2025-02-18 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499610', 'tblTempUsageDetail_20' ) end [2025-02-18 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499610', 'tblTempVendorCDR_20' ) start [2025-02-18 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499610', 'tblTempVendorCDR_20' ) end [2025-02-18 01:10:20] Production.INFO: ProcessCDR(1,14499610,1,1,2) [2025-02-18 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499610', 'tblTempUsageDetail_20' ) start [2025-02-18 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499610', 'tblTempUsageDetail_20' ) end [2025-02-18 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:10:23] Production.INFO: ==25740== Releasing lock... [2025-02-18 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:11:05 [end_date_ymd] => 2025-02-18 01:11:05 [RateCDR] => 1 ) [2025-02-18 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:11:05' and `end` < '2025-02-18 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-18 01:11:20] Production.INFO: count ==732 [2025-02-18 01:11:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:11:05 - End Time 2025-02-18 01:11:05 [2025-02-18 01:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499615', 'tblTempUsageDetail_20' ) start [2025-02-18 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499615', 'tblTempUsageDetail_20' ) end [2025-02-18 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499615', 'tblTempVendorCDR_20' ) start [2025-02-18 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499615', 'tblTempVendorCDR_20' ) end [2025-02-18 01:11:20] Production.INFO: ProcessCDR(1,14499615,1,1,2) [2025-02-18 01:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499615', 'tblTempUsageDetail_20' ) start [2025-02-18 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499615', 'tblTempUsageDetail_20' ) end [2025-02-18 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:11:23] Production.INFO: ==25829== Releasing lock... [2025-02-18 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:11:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:12:06 [end_date_ymd] => 2025-02-18 01:12:06 [RateCDR] => 1 ) [2025-02-18 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:12:06' and `end` < '2025-02-18 01: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-18 01:12:20] Production.INFO: count ==736 [2025-02-18 01:12:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:12:06 - End Time 2025-02-18 01:12:06 [2025-02-18 01:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499620', 'tblTempUsageDetail_20' ) start [2025-02-18 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499620', 'tblTempUsageDetail_20' ) end [2025-02-18 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499620', 'tblTempVendorCDR_20' ) start [2025-02-18 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499620', 'tblTempVendorCDR_20' ) end [2025-02-18 01:12:20] Production.INFO: ProcessCDR(1,14499620,1,1,2) [2025-02-18 01:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499620', 'tblTempUsageDetail_20' ) start [2025-02-18 01:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499620', 'tblTempUsageDetail_20' ) end [2025-02-18 01:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:12:24] Production.INFO: ==25941== Releasing lock... [2025-02-18 01:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:12:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:13:05 [end_date_ymd] => 2025-02-18 01:13:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:13:05' and `end` < '2025-02-18 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-18 01:13:18] Production.INFO: count ==736 [2025-02-18 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:13:05 - End Time 2025-02-18 01:13:05 [2025-02-18 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499625', 'tblTempUsageDetail_20' ) start [2025-02-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499625', 'tblTempUsageDetail_20' ) end [2025-02-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499625', 'tblTempVendorCDR_20' ) start [2025-02-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499625', 'tblTempVendorCDR_20' ) end [2025-02-18 01:13:18] Production.INFO: ProcessCDR(1,14499625,1,1,2) [2025-02-18 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499625', 'tblTempUsageDetail_20' ) start [2025-02-18 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499625', 'tblTempUsageDetail_20' ) end [2025-02-18 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:13:21] Production.INFO: ==26014== Releasing lock... [2025-02-18 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:13:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:14:06 [end_date_ymd] => 2025-02-18 01:14:06 [RateCDR] => 1 ) [2025-02-18 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:14:06' and `end` < '2025-02-18 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:14:19] Production.INFO: count ==731 [2025-02-18 01:14:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:14:06 - End Time 2025-02-18 01:14:06 [2025-02-18 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499630', 'tblTempUsageDetail_20' ) start [2025-02-18 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499630', 'tblTempUsageDetail_20' ) end [2025-02-18 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499630', 'tblTempVendorCDR_20' ) start [2025-02-18 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499630', 'tblTempVendorCDR_20' ) end [2025-02-18 01:14:19] Production.INFO: ProcessCDR(1,14499630,1,1,2) [2025-02-18 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499630', 'tblTempUsageDetail_20' ) start [2025-02-18 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499630', 'tblTempUsageDetail_20' ) end [2025-02-18 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:14:23] Production.INFO: ==26086== Releasing lock... [2025-02-18 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:14:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:15:05 [end_date_ymd] => 2025-02-18 01:15:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:15:05' and `end` < '2025-02-18 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-18 01:15:19] Production.INFO: count ==728 [2025-02-18 01:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:15:05 - End Time 2025-02-18 01:15:05 [2025-02-18 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499635', 'tblTempUsageDetail_20' ) start [2025-02-18 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499635', 'tblTempUsageDetail_20' ) end [2025-02-18 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499635', 'tblTempVendorCDR_20' ) start [2025-02-18 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499635', 'tblTempVendorCDR_20' ) end [2025-02-18 01:15:19] Production.INFO: ProcessCDR(1,14499635,1,1,2) [2025-02-18 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499635', 'tblTempUsageDetail_20' ) start [2025-02-18 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499635', 'tblTempUsageDetail_20' ) end [2025-02-18 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:15:23] Production.INFO: ==26167== Releasing lock... [2025-02-18 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:15:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:16:06 [end_date_ymd] => 2025-02-18 01:16:06 [RateCDR] => 1 ) [2025-02-18 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:16:06' and `end` < '2025-02-18 01: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-18 01:16:19] Production.INFO: count ==725 [2025-02-18 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:16:06 - End Time 2025-02-18 01:16:06 [2025-02-18 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499640', 'tblTempUsageDetail_20' ) start [2025-02-18 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499640', 'tblTempUsageDetail_20' ) end [2025-02-18 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499640', 'tblTempVendorCDR_20' ) start [2025-02-18 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499640', 'tblTempVendorCDR_20' ) end [2025-02-18 01:16:19] Production.INFO: ProcessCDR(1,14499640,1,1,2) [2025-02-18 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499640', 'tblTempUsageDetail_20' ) start [2025-02-18 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499640', 'tblTempUsageDetail_20' ) end [2025-02-18 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:16:22] Production.INFO: ==26244== Releasing lock... [2025-02-18 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:16:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:17:05 [end_date_ymd] => 2025-02-18 01:17:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:17:05' and `end` < '2025-02-18 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-18 01:17:19] Production.INFO: count ==726 [2025-02-18 01:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:17:05 - End Time 2025-02-18 01:17:05 [2025-02-18 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499645', 'tblTempUsageDetail_20' ) start [2025-02-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499645', 'tblTempUsageDetail_20' ) end [2025-02-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499645', 'tblTempVendorCDR_20' ) start [2025-02-18 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499645', 'tblTempVendorCDR_20' ) end [2025-02-18 01:17:19] Production.INFO: ProcessCDR(1,14499645,1,1,2) [2025-02-18 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499645', 'tblTempUsageDetail_20' ) start [2025-02-18 01:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499645', 'tblTempUsageDetail_20' ) end [2025-02-18 01:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:17:24] Production.INFO: ==26319== Releasing lock... [2025-02-18 01:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:17:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:18:05 [end_date_ymd] => 2025-02-18 01:18:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:18:05' and `end` < '2025-02-18 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-18 01:18:18] Production.INFO: count ==724 [2025-02-18 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:18:05 - End Time 2025-02-18 01:18:05 [2025-02-18 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499650', 'tblTempUsageDetail_20' ) start [2025-02-18 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499650', 'tblTempUsageDetail_20' ) end [2025-02-18 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499650', 'tblTempVendorCDR_20' ) start [2025-02-18 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499650', 'tblTempVendorCDR_20' ) end [2025-02-18 01:18:19] Production.INFO: ProcessCDR(1,14499650,1,1,2) [2025-02-18 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499650', 'tblTempUsageDetail_20' ) start [2025-02-18 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499650', 'tblTempUsageDetail_20' ) end [2025-02-18 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:18:22] Production.INFO: ==26394== Releasing lock... [2025-02-18 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:18:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:19:05 [end_date_ymd] => 2025-02-18 01:19:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:19:05' and `end` < '2025-02-18 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-18 01:19:18] Production.INFO: count ==724 [2025-02-18 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:19:05 - End Time 2025-02-18 01:19:05 [2025-02-18 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499655', 'tblTempUsageDetail_20' ) start [2025-02-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499655', 'tblTempUsageDetail_20' ) end [2025-02-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499655', 'tblTempVendorCDR_20' ) start [2025-02-18 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499655', 'tblTempVendorCDR_20' ) end [2025-02-18 01:19:18] Production.INFO: ProcessCDR(1,14499655,1,1,2) [2025-02-18 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499655', 'tblTempUsageDetail_20' ) start [2025-02-18 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499655', 'tblTempUsageDetail_20' ) end [2025-02-18 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:19:21] Production.INFO: ==26467== Releasing lock... [2025-02-18 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:19:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:20:06 [end_date_ymd] => 2025-02-18 01:20:06 [RateCDR] => 1 ) [2025-02-18 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:20:06' and `end` < '2025-02-18 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:20:19] Production.INFO: count ==723 [2025-02-18 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:20:06 - End Time 2025-02-18 01:20:06 [2025-02-18 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499661', 'tblTempUsageDetail_20' ) start [2025-02-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499661', 'tblTempUsageDetail_20' ) end [2025-02-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499661', 'tblTempVendorCDR_20' ) start [2025-02-18 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499661', 'tblTempVendorCDR_20' ) end [2025-02-18 01:20:19] Production.INFO: ProcessCDR(1,14499661,1,1,2) [2025-02-18 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499661', 'tblTempUsageDetail_20' ) start [2025-02-18 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499661', 'tblTempUsageDetail_20' ) end [2025-02-18 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:20:23] Production.INFO: ==26543== Releasing lock... [2025-02-18 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:20:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:21:06 [end_date_ymd] => 2025-02-18 01:21:06 [RateCDR] => 1 ) [2025-02-18 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:21:06' and `end` < '2025-02-18 01: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-18 01:21:19] Production.INFO: count ==715 [2025-02-18 01:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:21:06 - End Time 2025-02-18 01:21:06 [2025-02-18 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499666', 'tblTempUsageDetail_20' ) start [2025-02-18 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499666', 'tblTempUsageDetail_20' ) end [2025-02-18 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499666', 'tblTempVendorCDR_20' ) start [2025-02-18 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499666', 'tblTempVendorCDR_20' ) end [2025-02-18 01:21:19] Production.INFO: ProcessCDR(1,14499666,1,1,2) [2025-02-18 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499666', 'tblTempUsageDetail_20' ) start [2025-02-18 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499666', 'tblTempUsageDetail_20' ) end [2025-02-18 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:21:22] Production.INFO: ==26620== Releasing lock... [2025-02-18 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:21:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:22:05 [end_date_ymd] => 2025-02-18 01:22:05 [RateCDR] => 1 ) [2025-02-18 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:22:05' and `end` < '2025-02-18 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:22:18] Production.INFO: count ==713 [2025-02-18 01:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:22:05 - End Time 2025-02-18 01:22:05 [2025-02-18 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499671', 'tblTempUsageDetail_20' ) start [2025-02-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499671', 'tblTempUsageDetail_20' ) end [2025-02-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499671', 'tblTempVendorCDR_20' ) start [2025-02-18 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499671', 'tblTempVendorCDR_20' ) end [2025-02-18 01:22:18] Production.INFO: ProcessCDR(1,14499671,1,1,2) [2025-02-18 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499671', 'tblTempUsageDetail_20' ) start [2025-02-18 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499671', 'tblTempUsageDetail_20' ) end [2025-02-18 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:22:21] Production.INFO: ==26692== Releasing lock... [2025-02-18 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:23:06 [end_date_ymd] => 2025-02-18 01:23:06 [RateCDR] => 1 ) [2025-02-18 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:23:06' and `end` < '2025-02-18 01: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-18 01:23:19] Production.INFO: count ==714 [2025-02-18 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:23:06 - End Time 2025-02-18 01:23:06 [2025-02-18 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499676', 'tblTempUsageDetail_20' ) start [2025-02-18 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499676', 'tblTempUsageDetail_20' ) end [2025-02-18 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499676', 'tblTempVendorCDR_20' ) start [2025-02-18 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499676', 'tblTempVendorCDR_20' ) end [2025-02-18 01:23:19] Production.INFO: ProcessCDR(1,14499676,1,1,2) [2025-02-18 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499676', 'tblTempUsageDetail_20' ) start [2025-02-18 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499676', 'tblTempUsageDetail_20' ) end [2025-02-18 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:23:23] Production.INFO: ==26774== Releasing lock... [2025-02-18 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:23:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:24:05 [end_date_ymd] => 2025-02-18 01:24:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:24:05' and `end` < '2025-02-18 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-18 01:24:19] Production.INFO: count ==713 [2025-02-18 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:24:05 - End Time 2025-02-18 01:24:05 [2025-02-18 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499681', 'tblTempUsageDetail_20' ) start [2025-02-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499681', 'tblTempUsageDetail_20' ) end [2025-02-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499681', 'tblTempVendorCDR_20' ) start [2025-02-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499681', 'tblTempVendorCDR_20' ) end [2025-02-18 01:24:19] Production.INFO: ProcessCDR(1,14499681,1,1,2) [2025-02-18 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499681', 'tblTempUsageDetail_20' ) start [2025-02-18 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499681', 'tblTempUsageDetail_20' ) end [2025-02-18 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:24:22] Production.INFO: ==26858== Releasing lock... [2025-02-18 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:24:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:25:05 [end_date_ymd] => 2025-02-18 01:25:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:25:05' and `end` < '2025-02-18 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-18 01:25:18] Production.INFO: count ==708 [2025-02-18 01:25:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:25:05 - End Time 2025-02-18 01:25:05 [2025-02-18 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499686', 'tblTempUsageDetail_20' ) start [2025-02-18 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499686', 'tblTempUsageDetail_20' ) end [2025-02-18 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499686', 'tblTempVendorCDR_20' ) start [2025-02-18 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499686', 'tblTempVendorCDR_20' ) end [2025-02-18 01:25:19] Production.INFO: ProcessCDR(1,14499686,1,1,2) [2025-02-18 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499686', 'tblTempUsageDetail_20' ) start [2025-02-18 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499686', 'tblTempUsageDetail_20' ) end [2025-02-18 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:25:22] Production.INFO: ==26937== Releasing lock... [2025-02-18 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:25:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:26:05 [end_date_ymd] => 2025-02-18 01:26:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:26:05' and `end` < '2025-02-18 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-18 01:26:20] Production.INFO: count ==699 [2025-02-18 01:26:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:26:05 - End Time 2025-02-18 01:26:05 [2025-02-18 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499691', 'tblTempUsageDetail_20' ) start [2025-02-18 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499691', 'tblTempUsageDetail_20' ) end [2025-02-18 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499691', 'tblTempVendorCDR_20' ) start [2025-02-18 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499691', 'tblTempVendorCDR_20' ) end [2025-02-18 01:26:20] Production.INFO: ProcessCDR(1,14499691,1,1,2) [2025-02-18 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499691', 'tblTempUsageDetail_20' ) start [2025-02-18 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499691', 'tblTempUsageDetail_20' ) end [2025-02-18 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:26:23] Production.INFO: ==27012== Releasing lock... [2025-02-18 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:26:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:27:06 [end_date_ymd] => 2025-02-18 01:27:06 [RateCDR] => 1 ) [2025-02-18 01:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:27:06' and `end` < '2025-02-18 01:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:27:19] Production.INFO: count ==694 [2025-02-18 01:27:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:27:06 - End Time 2025-02-18 01:27:06 [2025-02-18 01:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499696', 'tblTempUsageDetail_20' ) start [2025-02-18 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499696', 'tblTempUsageDetail_20' ) end [2025-02-18 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499696', 'tblTempVendorCDR_20' ) start [2025-02-18 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499696', 'tblTempVendorCDR_20' ) end [2025-02-18 01:27:20] Production.INFO: ProcessCDR(1,14499696,1,1,2) [2025-02-18 01:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499696', 'tblTempUsageDetail_20' ) start [2025-02-18 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499696', 'tblTempUsageDetail_20' ) end [2025-02-18 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:27:23] Production.INFO: ==27088== Releasing lock... [2025-02-18 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:27:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:28:05 [end_date_ymd] => 2025-02-18 01:28:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:28:05' and `end` < '2025-02-18 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-18 01:28:19] Production.INFO: count ==690 [2025-02-18 01:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:28:05 - End Time 2025-02-18 01:28:05 [2025-02-18 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499701', 'tblTempUsageDetail_20' ) start [2025-02-18 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499701', 'tblTempUsageDetail_20' ) end [2025-02-18 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499701', 'tblTempVendorCDR_20' ) start [2025-02-18 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499701', 'tblTempVendorCDR_20' ) end [2025-02-18 01:28:19] Production.INFO: ProcessCDR(1,14499701,1,1,2) [2025-02-18 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499701', 'tblTempUsageDetail_20' ) start [2025-02-18 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499701', 'tblTempUsageDetail_20' ) end [2025-02-18 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:28:23] Production.INFO: ==27199== Releasing lock... [2025-02-18 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:28:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:29:05 [end_date_ymd] => 2025-02-18 01:29:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:29:05' and `end` < '2025-02-18 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-18 01:29:19] Production.INFO: count ==690 [2025-02-18 01:29:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:29:05 - End Time 2025-02-18 01:29:05 [2025-02-18 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499706', 'tblTempUsageDetail_20' ) start [2025-02-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499706', 'tblTempUsageDetail_20' ) end [2025-02-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499706', 'tblTempVendorCDR_20' ) start [2025-02-18 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499706', 'tblTempVendorCDR_20' ) end [2025-02-18 01:29:19] Production.INFO: ProcessCDR(1,14499706,1,1,2) [2025-02-18 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499706', 'tblTempUsageDetail_20' ) start [2025-02-18 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499706', 'tblTempUsageDetail_20' ) end [2025-02-18 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:29:22] Production.INFO: ==27272== Releasing lock... [2025-02-18 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:30:05 [end_date_ymd] => 2025-02-18 01:30:05 [RateCDR] => 1 ) [2025-02-18 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:30:05' and `end` < '2025-02-18 01: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-18 01:30:19] Production.INFO: count ==698 [2025-02-18 01:30:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:30:05 - End Time 2025-02-18 01:30:05 [2025-02-18 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499712', 'tblTempUsageDetail_20' ) start [2025-02-18 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499712', 'tblTempUsageDetail_20' ) end [2025-02-18 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499712', 'tblTempVendorCDR_20' ) start [2025-02-18 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499712', 'tblTempVendorCDR_20' ) end [2025-02-18 01:30:20] Production.INFO: ProcessCDR(1,14499712,1,1,2) [2025-02-18 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499712', 'tblTempUsageDetail_20' ) start [2025-02-18 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499712', 'tblTempUsageDetail_20' ) end [2025-02-18 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:30:23] Production.INFO: ==27351== Releasing lock... [2025-02-18 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:30:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:31:05 [end_date_ymd] => 2025-02-18 01:31:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:31:05' and `end` < '2025-02-18 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-18 01:31:19] Production.INFO: count ==704 [2025-02-18 01:31:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:31:05 - End Time 2025-02-18 01:31:05 [2025-02-18 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499717', 'tblTempUsageDetail_20' ) start [2025-02-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499717', 'tblTempUsageDetail_20' ) end [2025-02-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499717', 'tblTempVendorCDR_20' ) start [2025-02-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499717', 'tblTempVendorCDR_20' ) end [2025-02-18 01:31:19] Production.INFO: ProcessCDR(1,14499717,1,1,2) [2025-02-18 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499717', 'tblTempUsageDetail_20' ) start [2025-02-18 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499717', 'tblTempUsageDetail_20' ) end [2025-02-18 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:31:23] Production.INFO: ==27428== Releasing lock... [2025-02-18 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:31:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:32:05 [end_date_ymd] => 2025-02-18 01:32:05 [RateCDR] => 1 ) [2025-02-18 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:32:05' and `end` < '2025-02-18 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:32:18] Production.INFO: count ==704 [2025-02-18 01:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:32:05 - End Time 2025-02-18 01:32:05 [2025-02-18 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499722', 'tblTempUsageDetail_20' ) start [2025-02-18 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499722', 'tblTempUsageDetail_20' ) end [2025-02-18 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499722', 'tblTempVendorCDR_20' ) start [2025-02-18 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499722', 'tblTempVendorCDR_20' ) end [2025-02-18 01:32:19] Production.INFO: ProcessCDR(1,14499722,1,1,2) [2025-02-18 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499722', 'tblTempUsageDetail_20' ) start [2025-02-18 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499722', 'tblTempUsageDetail_20' ) end [2025-02-18 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:32:22] Production.INFO: ==27508== Releasing lock... [2025-02-18 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:33:05 [end_date_ymd] => 2025-02-18 01:33:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:33:05' and `end` < '2025-02-18 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-18 01:33:20] Production.INFO: count ==704 [2025-02-18 01:33:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:33:05 - End Time 2025-02-18 01:33:05 [2025-02-18 01:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499727', 'tblTempUsageDetail_20' ) start [2025-02-18 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499727', 'tblTempUsageDetail_20' ) end [2025-02-18 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499727', 'tblTempVendorCDR_20' ) start [2025-02-18 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499727', 'tblTempVendorCDR_20' ) end [2025-02-18 01:33:20] Production.INFO: ProcessCDR(1,14499727,1,1,2) [2025-02-18 01:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499727', 'tblTempUsageDetail_20' ) start [2025-02-18 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499727', 'tblTempUsageDetail_20' ) end [2025-02-18 01:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:33:24] Production.INFO: ==27585== Releasing lock... [2025-02-18 01:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:33:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:34:05 [end_date_ymd] => 2025-02-18 01:34:05 [RateCDR] => 1 ) [2025-02-18 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:34:05' and `end` < '2025-02-18 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:34:18] Production.INFO: count ==704 [2025-02-18 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:34:05 - End Time 2025-02-18 01:34:05 [2025-02-18 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499732', 'tblTempUsageDetail_20' ) start [2025-02-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499732', 'tblTempUsageDetail_20' ) end [2025-02-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499732', 'tblTempVendorCDR_20' ) start [2025-02-18 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499732', 'tblTempVendorCDR_20' ) end [2025-02-18 01:34:18] Production.INFO: ProcessCDR(1,14499732,1,1,2) [2025-02-18 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499732', 'tblTempUsageDetail_20' ) start [2025-02-18 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499732', 'tblTempUsageDetail_20' ) end [2025-02-18 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:34:22] Production.INFO: ==27666== Releasing lock... [2025-02-18 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:34:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:35:06 [end_date_ymd] => 2025-02-18 01:35:06 [RateCDR] => 1 ) [2025-02-18 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:35:06' and `end` < '2025-02-18 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:35:19] Production.INFO: count ==703 [2025-02-18 01:35:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:35:06 - End Time 2025-02-18 01:35:06 [2025-02-18 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499737', 'tblTempUsageDetail_20' ) start [2025-02-18 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499737', 'tblTempUsageDetail_20' ) end [2025-02-18 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499737', 'tblTempVendorCDR_20' ) start [2025-02-18 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499737', 'tblTempVendorCDR_20' ) end [2025-02-18 01:35:19] Production.INFO: ProcessCDR(1,14499737,1,1,2) [2025-02-18 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499737', 'tblTempUsageDetail_20' ) start [2025-02-18 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499737', 'tblTempUsageDetail_20' ) end [2025-02-18 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:35:23] Production.INFO: ==27739== Releasing lock... [2025-02-18 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:35:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:36:05 [end_date_ymd] => 2025-02-18 01:36:05 [RateCDR] => 1 ) [2025-02-18 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:36:05' and `end` < '2025-02-18 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:36:18] Production.INFO: count ==703 [2025-02-18 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:36:05 - End Time 2025-02-18 01:36:05 [2025-02-18 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499742', 'tblTempUsageDetail_20' ) start [2025-02-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499742', 'tblTempUsageDetail_20' ) end [2025-02-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499742', 'tblTempVendorCDR_20' ) start [2025-02-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499742', 'tblTempVendorCDR_20' ) end [2025-02-18 01:36:18] Production.INFO: ProcessCDR(1,14499742,1,1,2) [2025-02-18 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499742', 'tblTempUsageDetail_20' ) start [2025-02-18 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499742', 'tblTempUsageDetail_20' ) end [2025-02-18 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:36:22] Production.INFO: ==27814== Releasing lock... [2025-02-18 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:36:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:37:06 [end_date_ymd] => 2025-02-18 01:37:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:37:06' and `end` < '2025-02-18 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-18 01:37:20] Production.INFO: count ==703 [2025-02-18 01:37:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:37:06 - End Time 2025-02-18 01:37:06 [2025-02-18 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499747', 'tblTempUsageDetail_20' ) start [2025-02-18 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499747', 'tblTempUsageDetail_20' ) end [2025-02-18 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499747', 'tblTempVendorCDR_20' ) start [2025-02-18 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499747', 'tblTempVendorCDR_20' ) end [2025-02-18 01:37:20] Production.INFO: ProcessCDR(1,14499747,1,1,2) [2025-02-18 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499747', 'tblTempUsageDetail_20' ) start [2025-02-18 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499747', 'tblTempUsageDetail_20' ) end [2025-02-18 01:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:37:24] Production.INFO: ==27889== Releasing lock... [2025-02-18 01:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:37:24] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:38:05 [end_date_ymd] => 2025-02-18 01:38:05 [RateCDR] => 1 ) [2025-02-18 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:38:05' and `end` < '2025-02-18 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:38:19] Production.INFO: count ==703 [2025-02-18 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:38:05 - End Time 2025-02-18 01:38:05 [2025-02-18 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499752', 'tblTempUsageDetail_20' ) start [2025-02-18 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499752', 'tblTempUsageDetail_20' ) end [2025-02-18 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499752', 'tblTempVendorCDR_20' ) start [2025-02-18 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499752', 'tblTempVendorCDR_20' ) end [2025-02-18 01:38:19] Production.INFO: ProcessCDR(1,14499752,1,1,2) [2025-02-18 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499752', 'tblTempUsageDetail_20' ) start [2025-02-18 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499752', 'tblTempUsageDetail_20' ) end [2025-02-18 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:38:23] Production.INFO: ==27963== Releasing lock... [2025-02-18 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:38:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:39:06 [end_date_ymd] => 2025-02-18 01:39:06 [RateCDR] => 1 ) [2025-02-18 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:39:06' and `end` < '2025-02-18 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:39:20] Production.INFO: count ==703 [2025-02-18 01:39:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:39:06 - End Time 2025-02-18 01:39:06 [2025-02-18 01:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499757', 'tblTempUsageDetail_20' ) start [2025-02-18 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499757', 'tblTempUsageDetail_20' ) end [2025-02-18 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499757', 'tblTempVendorCDR_20' ) start [2025-02-18 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499757', 'tblTempVendorCDR_20' ) end [2025-02-18 01:39:20] Production.INFO: ProcessCDR(1,14499757,1,1,2) [2025-02-18 01:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499757', 'tblTempUsageDetail_20' ) start [2025-02-18 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499757', 'tblTempUsageDetail_20' ) end [2025-02-18 01:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:39:24] Production.INFO: ==28039== Releasing lock... [2025-02-18 01:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:39:24] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:40:06 [end_date_ymd] => 2025-02-18 01:40:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:40:06' and `end` < '2025-02-18 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-18 01:40:19] Production.INFO: count ==705 [2025-02-18 01:40:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:40:06 - End Time 2025-02-18 01:40:06 [2025-02-18 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499763', 'tblTempUsageDetail_20' ) start [2025-02-18 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499763', 'tblTempUsageDetail_20' ) end [2025-02-18 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499763', 'tblTempVendorCDR_20' ) start [2025-02-18 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499763', 'tblTempVendorCDR_20' ) end [2025-02-18 01:40:20] Production.INFO: ProcessCDR(1,14499763,1,1,2) [2025-02-18 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499763', 'tblTempUsageDetail_20' ) start [2025-02-18 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499763', 'tblTempUsageDetail_20' ) end [2025-02-18 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:40:23] Production.INFO: ==28113== Releasing lock... [2025-02-18 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:41:05 [end_date_ymd] => 2025-02-18 01:41:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:41:05' and `end` < '2025-02-18 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-18 01:41:18] Production.INFO: count ==705 [2025-02-18 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:41:05 - End Time 2025-02-18 01:41:05 [2025-02-18 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499768', 'tblTempUsageDetail_20' ) start [2025-02-18 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499768', 'tblTempUsageDetail_20' ) end [2025-02-18 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499768', 'tblTempVendorCDR_20' ) start [2025-02-18 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499768', 'tblTempVendorCDR_20' ) end [2025-02-18 01:41:19] Production.INFO: ProcessCDR(1,14499768,1,1,2) [2025-02-18 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499768', 'tblTempUsageDetail_20' ) start [2025-02-18 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499768', 'tblTempUsageDetail_20' ) end [2025-02-18 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:41:22] Production.INFO: ==28191== Releasing lock... [2025-02-18 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:41:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:42:05 [end_date_ymd] => 2025-02-18 01:42:05 [RateCDR] => 1 ) [2025-02-18 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:42:05' and `end` < '2025-02-18 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:42:19] Production.INFO: count ==705 [2025-02-18 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:42:05 - End Time 2025-02-18 01:42:05 [2025-02-18 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499773', 'tblTempUsageDetail_20' ) start [2025-02-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499773', 'tblTempUsageDetail_20' ) end [2025-02-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499773', 'tblTempVendorCDR_20' ) start [2025-02-18 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499773', 'tblTempVendorCDR_20' ) end [2025-02-18 01:42:19] Production.INFO: ProcessCDR(1,14499773,1,1,2) [2025-02-18 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499773', 'tblTempUsageDetail_20' ) start [2025-02-18 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499773', 'tblTempUsageDetail_20' ) end [2025-02-18 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:42:23] Production.INFO: ==28266== Releasing lock... [2025-02-18 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:42:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:43:06 [end_date_ymd] => 2025-02-18 01:43:06 [RateCDR] => 1 ) [2025-02-18 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:43:06' and `end` < '2025-02-18 01: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-18 01:43:19] Production.INFO: count ==704 [2025-02-18 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:43:06 - End Time 2025-02-18 01:43:06 [2025-02-18 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499778', 'tblTempUsageDetail_20' ) start [2025-02-18 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499778', 'tblTempUsageDetail_20' ) end [2025-02-18 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499778', 'tblTempVendorCDR_20' ) start [2025-02-18 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499778', 'tblTempVendorCDR_20' ) end [2025-02-18 01:43:19] Production.INFO: ProcessCDR(1,14499778,1,1,2) [2025-02-18 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499778', 'tblTempUsageDetail_20' ) start [2025-02-18 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499778', 'tblTempUsageDetail_20' ) end [2025-02-18 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:43:23] Production.INFO: ==28379== Releasing lock... [2025-02-18 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:43:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:44:05 [end_date_ymd] => 2025-02-18 01:44:05 [RateCDR] => 1 ) [2025-02-18 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:44:05' and `end` < '2025-02-18 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:44:18] Production.INFO: count ==704 [2025-02-18 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:44:05 - End Time 2025-02-18 01:44:05 [2025-02-18 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499783', 'tblTempUsageDetail_20' ) start [2025-02-18 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499783', 'tblTempUsageDetail_20' ) end [2025-02-18 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499783', 'tblTempVendorCDR_20' ) start [2025-02-18 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499783', 'tblTempVendorCDR_20' ) end [2025-02-18 01:44:19] Production.INFO: ProcessCDR(1,14499783,1,1,2) [2025-02-18 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499783', 'tblTempUsageDetail_20' ) start [2025-02-18 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499783', 'tblTempUsageDetail_20' ) end [2025-02-18 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:44:22] Production.INFO: ==28450== Releasing lock... [2025-02-18 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:45:06 [end_date_ymd] => 2025-02-18 01:45:06 [RateCDR] => 1 ) [2025-02-18 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:45:06' and `end` < '2025-02-18 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:45:19] Production.INFO: count ==704 [2025-02-18 01:45:20] Production.ERROR: pbx CDR StartTime 2025-02-17 22:45:06 - End Time 2025-02-18 01:45:06 [2025-02-18 01:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499788', 'tblTempUsageDetail_20' ) start [2025-02-18 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499788', 'tblTempUsageDetail_20' ) end [2025-02-18 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499788', 'tblTempVendorCDR_20' ) start [2025-02-18 01:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499788', 'tblTempVendorCDR_20' ) end [2025-02-18 01:45:20] Production.INFO: ProcessCDR(1,14499788,1,1,2) [2025-02-18 01:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499788', 'tblTempUsageDetail_20' ) start [2025-02-18 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499788', 'tblTempUsageDetail_20' ) end [2025-02-18 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:45:23] Production.INFO: ==28527== Releasing lock... [2025-02-18 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:45:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:46:06 [end_date_ymd] => 2025-02-18 01:46:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:46:06' and `end` < '2025-02-18 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-18 01:46:19] Production.INFO: count ==703 [2025-02-18 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:46:06 - End Time 2025-02-18 01:46:06 [2025-02-18 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499793', 'tblTempUsageDetail_20' ) start [2025-02-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499793', 'tblTempUsageDetail_20' ) end [2025-02-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499793', 'tblTempVendorCDR_20' ) start [2025-02-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499793', 'tblTempVendorCDR_20' ) end [2025-02-18 01:46:19] Production.INFO: ProcessCDR(1,14499793,1,1,2) [2025-02-18 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499793', 'tblTempUsageDetail_20' ) start [2025-02-18 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499793', 'tblTempUsageDetail_20' ) end [2025-02-18 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:46:22] Production.INFO: ==28600== Releasing lock... [2025-02-18 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:47:05 [end_date_ymd] => 2025-02-18 01:47:05 [RateCDR] => 1 ) [2025-02-18 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:47:05' and `end` < '2025-02-18 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:47:18] Production.INFO: count ==703 [2025-02-18 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:47:05 - End Time 2025-02-18 01:47:05 [2025-02-18 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499798', 'tblTempUsageDetail_20' ) start [2025-02-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499798', 'tblTempUsageDetail_20' ) end [2025-02-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499798', 'tblTempVendorCDR_20' ) start [2025-02-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499798', 'tblTempVendorCDR_20' ) end [2025-02-18 01:47:18] Production.INFO: ProcessCDR(1,14499798,1,1,2) [2025-02-18 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499798', 'tblTempUsageDetail_20' ) start [2025-02-18 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499798', 'tblTempUsageDetail_20' ) end [2025-02-18 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:47:22] Production.INFO: ==28672== Releasing lock... [2025-02-18 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:48:06 [end_date_ymd] => 2025-02-18 01:48:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:48:06' and `end` < '2025-02-18 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-18 01:48:19] Production.INFO: count ==701 [2025-02-18 01:48:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:48:06 - End Time 2025-02-18 01:48:06 [2025-02-18 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499803', 'tblTempUsageDetail_20' ) start [2025-02-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499803', 'tblTempUsageDetail_20' ) end [2025-02-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499803', 'tblTempVendorCDR_20' ) start [2025-02-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499803', 'tblTempVendorCDR_20' ) end [2025-02-18 01:48:19] Production.INFO: ProcessCDR(1,14499803,1,1,2) [2025-02-18 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499803', 'tblTempUsageDetail_20' ) start [2025-02-18 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499803', 'tblTempUsageDetail_20' ) end [2025-02-18 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:48:23] Production.INFO: ==28748== Releasing lock... [2025-02-18 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:48:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:49:05 [end_date_ymd] => 2025-02-18 01:49:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:49:05' and `end` < '2025-02-18 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-18 01:49:18] Production.INFO: count ==700 [2025-02-18 01:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:49:05 - End Time 2025-02-18 01:49:05 [2025-02-18 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499808', 'tblTempUsageDetail_20' ) start [2025-02-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499808', 'tblTempUsageDetail_20' ) end [2025-02-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499808', 'tblTempVendorCDR_20' ) start [2025-02-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499808', 'tblTempVendorCDR_20' ) end [2025-02-18 01:49:19] Production.INFO: ProcessCDR(1,14499808,1,1,2) [2025-02-18 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499808', 'tblTempUsageDetail_20' ) start [2025-02-18 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499808', 'tblTempUsageDetail_20' ) end [2025-02-18 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:49:22] Production.INFO: ==28821== Releasing lock... [2025-02-18 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:49:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:50:06 [end_date_ymd] => 2025-02-18 01:50:06 [RateCDR] => 1 ) [2025-02-18 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:50:06' and `end` < '2025-02-18 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:50:19] Production.INFO: count ==702 [2025-02-18 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:50:06 - End Time 2025-02-18 01:50:06 [2025-02-18 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499814', 'tblTempUsageDetail_20' ) start [2025-02-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499814', 'tblTempUsageDetail_20' ) end [2025-02-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499814', 'tblTempVendorCDR_20' ) start [2025-02-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499814', 'tblTempVendorCDR_20' ) end [2025-02-18 01:50:19] Production.INFO: ProcessCDR(1,14499814,1,1,2) [2025-02-18 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499814', 'tblTempUsageDetail_20' ) start [2025-02-18 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499814', 'tblTempUsageDetail_20' ) end [2025-02-18 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:50:23] Production.INFO: ==28899== Releasing lock... [2025-02-18 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:51:05 [end_date_ymd] => 2025-02-18 01:51:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:51:05' and `end` < '2025-02-18 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-18 01:51:19] Production.INFO: count ==700 [2025-02-18 01:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:51:05 - End Time 2025-02-18 01:51:05 [2025-02-18 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499819', 'tblTempUsageDetail_20' ) start [2025-02-18 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499819', 'tblTempUsageDetail_20' ) end [2025-02-18 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499819', 'tblTempVendorCDR_20' ) start [2025-02-18 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499819', 'tblTempVendorCDR_20' ) end [2025-02-18 01:51:19] Production.INFO: ProcessCDR(1,14499819,1,1,2) [2025-02-18 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499819', 'tblTempUsageDetail_20' ) start [2025-02-18 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499819', 'tblTempUsageDetail_20' ) end [2025-02-18 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:51:23] Production.INFO: ==28974== Releasing lock... [2025-02-18 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:51:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:52:06 [end_date_ymd] => 2025-02-18 01:52:06 [RateCDR] => 1 ) [2025-02-18 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:52:06' and `end` < '2025-02-18 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:52:19] Production.INFO: count ==699 [2025-02-18 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:52:06 - End Time 2025-02-18 01:52:06 [2025-02-18 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499824', 'tblTempUsageDetail_20' ) start [2025-02-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499824', 'tblTempUsageDetail_20' ) end [2025-02-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499824', 'tblTempVendorCDR_20' ) start [2025-02-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499824', 'tblTempVendorCDR_20' ) end [2025-02-18 01:52:19] Production.INFO: ProcessCDR(1,14499824,1,1,2) [2025-02-18 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499824', 'tblTempUsageDetail_20' ) start [2025-02-18 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499824', 'tblTempUsageDetail_20' ) end [2025-02-18 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:52:23] Production.INFO: ==29047== Releasing lock... [2025-02-18 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:53:05 [end_date_ymd] => 2025-02-18 01:53:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:53:05' and `end` < '2025-02-18 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-18 01:53:18] Production.INFO: count ==697 [2025-02-18 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:53:05 - End Time 2025-02-18 01:53:05 [2025-02-18 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499829', 'tblTempUsageDetail_20' ) start [2025-02-18 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499829', 'tblTempUsageDetail_20' ) end [2025-02-18 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499829', 'tblTempVendorCDR_20' ) start [2025-02-18 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499829', 'tblTempVendorCDR_20' ) end [2025-02-18 01:53:19] Production.INFO: ProcessCDR(1,14499829,1,1,2) [2025-02-18 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499829', 'tblTempUsageDetail_20' ) start [2025-02-18 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499829', 'tblTempUsageDetail_20' ) end [2025-02-18 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:53:22] Production.INFO: ==29133== Releasing lock... [2025-02-18 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:54:05 [end_date_ymd] => 2025-02-18 01:54:05 [RateCDR] => 1 ) [2025-02-18 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:54:05' and `end` < '2025-02-18 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:54:19] Production.INFO: count ==697 [2025-02-18 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:54:05 - End Time 2025-02-18 01:54:05 [2025-02-18 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499834', 'tblTempUsageDetail_20' ) start [2025-02-18 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499834', 'tblTempUsageDetail_20' ) end [2025-02-18 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499834', 'tblTempVendorCDR_20' ) start [2025-02-18 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499834', 'tblTempVendorCDR_20' ) end [2025-02-18 01:54:19] Production.INFO: ProcessCDR(1,14499834,1,1,2) [2025-02-18 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499834', 'tblTempUsageDetail_20' ) start [2025-02-18 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499834', 'tblTempUsageDetail_20' ) end [2025-02-18 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:54:23] Production.INFO: ==29204== Releasing lock... [2025-02-18 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:55:05 [end_date_ymd] => 2025-02-18 01:55:05 [RateCDR] => 1 ) [2025-02-18 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 22:55:05' and `end` < '2025-02-18 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 01:55:18] Production.INFO: count ==695 [2025-02-18 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:55:05 - End Time 2025-02-18 01:55:05 [2025-02-18 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499839', 'tblTempUsageDetail_20' ) start [2025-02-18 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499839', 'tblTempUsageDetail_20' ) end [2025-02-18 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499839', 'tblTempVendorCDR_20' ) start [2025-02-18 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499839', 'tblTempVendorCDR_20' ) end [2025-02-18 01:55:19] Production.INFO: ProcessCDR(1,14499839,1,1,2) [2025-02-18 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499839', 'tblTempUsageDetail_20' ) start [2025-02-18 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499839', 'tblTempUsageDetail_20' ) end [2025-02-18 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:55:22] Production.INFO: ==29278== Releasing lock... [2025-02-18 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:55:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:56:06 [end_date_ymd] => 2025-02-18 01:56:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:56:06' and `end` < '2025-02-18 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-18 01:56:19] Production.INFO: count ==695 [2025-02-18 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:56:06 - End Time 2025-02-18 01:56:06 [2025-02-18 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499844', 'tblTempUsageDetail_20' ) start [2025-02-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499844', 'tblTempUsageDetail_20' ) end [2025-02-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499844', 'tblTempVendorCDR_20' ) start [2025-02-18 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499844', 'tblTempVendorCDR_20' ) end [2025-02-18 01:56:19] Production.INFO: ProcessCDR(1,14499844,1,1,2) [2025-02-18 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499844', 'tblTempUsageDetail_20' ) start [2025-02-18 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499844', 'tblTempUsageDetail_20' ) end [2025-02-18 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:56:22] Production.INFO: ==29353== Releasing lock... [2025-02-18 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:56:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:57:05 [end_date_ymd] => 2025-02-18 01:57:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:57:05' and `end` < '2025-02-18 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-18 01:57:18] Production.INFO: count ==695 [2025-02-18 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:57:05 - End Time 2025-02-18 01:57:05 [2025-02-18 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499849', 'tblTempUsageDetail_20' ) start [2025-02-18 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499849', 'tblTempUsageDetail_20' ) end [2025-02-18 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499849', 'tblTempVendorCDR_20' ) start [2025-02-18 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499849', 'tblTempVendorCDR_20' ) end [2025-02-18 01:57:19] Production.INFO: ProcessCDR(1,14499849,1,1,2) [2025-02-18 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499849', 'tblTempUsageDetail_20' ) start [2025-02-18 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499849', 'tblTempUsageDetail_20' ) end [2025-02-18 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:57:22] Production.INFO: ==29430== Releasing lock... [2025-02-18 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:57:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:58:06 [end_date_ymd] => 2025-02-18 01:58:06 [RateCDR] => 1 ) [2025-02-18 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-17 22:58:06' and `end` < '2025-02-18 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-18 01:58:19] Production.INFO: count ==695 [2025-02-18 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-17 22:58:06 - End Time 2025-02-18 01:58:06 [2025-02-18 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499854', 'tblTempUsageDetail_20' ) start [2025-02-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499854', 'tblTempUsageDetail_20' ) end [2025-02-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499854', 'tblTempVendorCDR_20' ) start [2025-02-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499854', 'tblTempVendorCDR_20' ) end [2025-02-18 01:58:19] Production.INFO: ProcessCDR(1,14499854,1,1,2) [2025-02-18 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499854', 'tblTempUsageDetail_20' ) start [2025-02-18 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499854', 'tblTempUsageDetail_20' ) end [2025-02-18 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:58:22] Production.INFO: ==29542== Releasing lock... [2025-02-18 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:58:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 22:59:05 [end_date_ymd] => 2025-02-18 01:59:05 [RateCDR] => 1 ) [2025-02-18 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-17 22:59:05' and `end` < '2025-02-18 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-18 01:59:18] Production.INFO: count ==695 [2025-02-18 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-17 22:59:05 - End Time 2025-02-18 01:59:05 [2025-02-18 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499859', 'tblTempUsageDetail_20' ) start [2025-02-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499859', 'tblTempUsageDetail_20' ) end [2025-02-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499859', 'tblTempVendorCDR_20' ) start [2025-02-18 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499859', 'tblTempVendorCDR_20' ) end [2025-02-18 01:59:18] Production.INFO: ProcessCDR(1,14499859,1,1,2) [2025-02-18 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499859', 'tblTempUsageDetail_20' ) start [2025-02-18 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499859', 'tblTempUsageDetail_20' ) end [2025-02-18 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 01:59:22] Production.INFO: ==29615== Releasing lock... [2025-02-18 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 01:59:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:00:07 [end_date_ymd] => 2025-02-18 02:00:07 [RateCDR] => 1 ) [2025-02-18 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-17 23:00:07' and `end` < '2025-02-18 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-18 02:00:20] Production.INFO: count ==697 [2025-02-18 02:00:21] Production.ERROR: pbx CDR StartTime 2025-02-17 23:00:07 - End Time 2025-02-18 02:00:07 [2025-02-18 02:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499865', 'tblTempUsageDetail_20' ) start [2025-02-18 02:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499865', 'tblTempUsageDetail_20' ) end [2025-02-18 02:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499865', 'tblTempVendorCDR_20' ) start [2025-02-18 02:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499865', 'tblTempVendorCDR_20' ) end [2025-02-18 02:00:21] Production.INFO: ProcessCDR(1,14499865,1,1,2) [2025-02-18 02:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499865', 'tblTempUsageDetail_20' ) start [2025-02-18 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499865', 'tblTempUsageDetail_20' ) end [2025-02-18 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:00:25] Production.INFO: ==29693== Releasing lock... [2025-02-18 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:00:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:01:05 [end_date_ymd] => 2025-02-18 02:01:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:01:05' and `end` < '2025-02-18 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-18 02:01:18] Production.INFO: count ==697 [2025-02-18 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:01:05 - End Time 2025-02-18 02:01:05 [2025-02-18 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499870', 'tblTempUsageDetail_20' ) start [2025-02-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499870', 'tblTempUsageDetail_20' ) end [2025-02-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499870', 'tblTempVendorCDR_20' ) start [2025-02-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499870', 'tblTempVendorCDR_20' ) end [2025-02-18 02:01:19] Production.INFO: ProcessCDR(1,14499870,1,1,2) [2025-02-18 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499870', 'tblTempUsageDetail_20' ) start [2025-02-18 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499870', 'tblTempUsageDetail_20' ) end [2025-02-18 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:01:22] Production.INFO: ==29870== Releasing lock... [2025-02-18 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:02:06 [end_date_ymd] => 2025-02-18 02:02:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:02:06' and `end` < '2025-02-18 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-18 02:02:19] Production.INFO: count ==700 [2025-02-18 02:02:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:02:06 - End Time 2025-02-18 02:02:06 [2025-02-18 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499875', 'tblTempUsageDetail_20' ) start [2025-02-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499875', 'tblTempUsageDetail_20' ) end [2025-02-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499875', 'tblTempVendorCDR_20' ) start [2025-02-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499875', 'tblTempVendorCDR_20' ) end [2025-02-18 02:02:19] Production.INFO: ProcessCDR(1,14499875,1,1,2) [2025-02-18 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499875', 'tblTempUsageDetail_20' ) start [2025-02-18 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499875', 'tblTempUsageDetail_20' ) end [2025-02-18 02:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:02:24] Production.INFO: ==29947== Releasing lock... [2025-02-18 02:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:02:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:03:05 [end_date_ymd] => 2025-02-18 02:03:05 [RateCDR] => 1 ) [2025-02-18 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:03:05' and `end` < '2025-02-18 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:03:18] Production.INFO: count ==700 [2025-02-18 02:03:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:03:05 - End Time 2025-02-18 02:03:05 [2025-02-18 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499880', 'tblTempUsageDetail_20' ) start [2025-02-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499880', 'tblTempUsageDetail_20' ) end [2025-02-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499880', 'tblTempVendorCDR_20' ) start [2025-02-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499880', 'tblTempVendorCDR_20' ) end [2025-02-18 02:03:18] Production.INFO: ProcessCDR(1,14499880,1,1,2) [2025-02-18 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499880', 'tblTempUsageDetail_20' ) start [2025-02-18 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499880', 'tblTempUsageDetail_20' ) end [2025-02-18 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:03:22] Production.INFO: ==30022== Releasing lock... [2025-02-18 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:04:06 [end_date_ymd] => 2025-02-18 02:04:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:04:06' and `end` < '2025-02-18 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-18 02:04:19] Production.INFO: count ==699 [2025-02-18 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:04:06 - End Time 2025-02-18 02:04:06 [2025-02-18 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499885', 'tblTempUsageDetail_20' ) start [2025-02-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499885', 'tblTempUsageDetail_20' ) end [2025-02-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499885', 'tblTempVendorCDR_20' ) start [2025-02-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499885', 'tblTempVendorCDR_20' ) end [2025-02-18 02:04:19] Production.INFO: ProcessCDR(1,14499885,1,1,2) [2025-02-18 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499885', 'tblTempUsageDetail_20' ) start [2025-02-18 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499885', 'tblTempUsageDetail_20' ) end [2025-02-18 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:04:23] Production.INFO: ==30103== Releasing lock... [2025-02-18 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:05:06 [end_date_ymd] => 2025-02-18 02:05:06 [RateCDR] => 1 ) [2025-02-18 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:05:06' and `end` < '2025-02-18 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:05:20] Production.INFO: count ==699 [2025-02-18 02:05:20] Production.ERROR: pbx CDR StartTime 2025-02-17 23:05:06 - End Time 2025-02-18 02:05:06 [2025-02-18 02:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499890', 'tblTempUsageDetail_20' ) start [2025-02-18 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499890', 'tblTempUsageDetail_20' ) end [2025-02-18 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499890', 'tblTempVendorCDR_20' ) start [2025-02-18 02:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499890', 'tblTempVendorCDR_20' ) end [2025-02-18 02:05:20] Production.INFO: ProcessCDR(1,14499890,1,1,2) [2025-02-18 02:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499890', 'tblTempUsageDetail_20' ) start [2025-02-18 02:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499890', 'tblTempUsageDetail_20' ) end [2025-02-18 02:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:05:24] Production.INFO: ==30172== Releasing lock... [2025-02-18 02:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:05:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:06:05 [end_date_ymd] => 2025-02-18 02:06:05 [RateCDR] => 1 ) [2025-02-18 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:06:05' and `end` < '2025-02-18 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:06:18] Production.INFO: count ==699 [2025-02-18 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:06:05 - End Time 2025-02-18 02:06:05 [2025-02-18 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499895', 'tblTempUsageDetail_20' ) start [2025-02-18 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499895', 'tblTempUsageDetail_20' ) end [2025-02-18 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499895', 'tblTempVendorCDR_20' ) start [2025-02-18 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499895', 'tblTempVendorCDR_20' ) end [2025-02-18 02:06:19] Production.INFO: ProcessCDR(1,14499895,1,1,2) [2025-02-18 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499895', 'tblTempUsageDetail_20' ) start [2025-02-18 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499895', 'tblTempUsageDetail_20' ) end [2025-02-18 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:06:22] Production.INFO: ==30246== Releasing lock... [2025-02-18 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:06:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:07:06 [end_date_ymd] => 2025-02-18 02:07:06 [RateCDR] => 1 ) [2025-02-18 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:07:06' and `end` < '2025-02-18 02: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-18 02:07:19] Production.INFO: count ==699 [2025-02-18 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:07:06 - End Time 2025-02-18 02:07:06 [2025-02-18 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499900', 'tblTempUsageDetail_20' ) start [2025-02-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499900', 'tblTempUsageDetail_20' ) end [2025-02-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499900', 'tblTempVendorCDR_20' ) start [2025-02-18 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499900', 'tblTempVendorCDR_20' ) end [2025-02-18 02:07:19] Production.INFO: ProcessCDR(1,14499900,1,1,2) [2025-02-18 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499900', 'tblTempUsageDetail_20' ) start [2025-02-18 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499900', 'tblTempUsageDetail_20' ) end [2025-02-18 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:07:23] Production.INFO: ==30323== Releasing lock... [2025-02-18 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:08:05 [end_date_ymd] => 2025-02-18 02:08:05 [RateCDR] => 1 ) [2025-02-18 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:08:05' and `end` < '2025-02-18 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-18 02:08:18] Production.INFO: count ==697 [2025-02-18 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:08:05 - End Time 2025-02-18 02:08:05 [2025-02-18 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499905', 'tblTempUsageDetail_20' ) start [2025-02-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499905', 'tblTempUsageDetail_20' ) end [2025-02-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499905', 'tblTempVendorCDR_20' ) start [2025-02-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499905', 'tblTempVendorCDR_20' ) end [2025-02-18 02:08:18] Production.INFO: ProcessCDR(1,14499905,1,1,2) [2025-02-18 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499905', 'tblTempUsageDetail_20' ) start [2025-02-18 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499905', 'tblTempUsageDetail_20' ) end [2025-02-18 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:08:22] Production.INFO: ==30401== Releasing lock... [2025-02-18 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:09:06 [end_date_ymd] => 2025-02-18 02:09:06 [RateCDR] => 1 ) [2025-02-18 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:09:06' and `end` < '2025-02-18 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:09:19] Production.INFO: count ==697 [2025-02-18 02:09:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:09:06 - End Time 2025-02-18 02:09:06 [2025-02-18 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499910', 'tblTempUsageDetail_20' ) start [2025-02-18 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499910', 'tblTempUsageDetail_20' ) end [2025-02-18 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499910', 'tblTempVendorCDR_20' ) start [2025-02-18 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499910', 'tblTempVendorCDR_20' ) end [2025-02-18 02:09:19] Production.INFO: ProcessCDR(1,14499910,1,1,2) [2025-02-18 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499910', 'tblTempUsageDetail_20' ) start [2025-02-18 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499910', 'tblTempUsageDetail_20' ) end [2025-02-18 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:09:23] Production.INFO: ==30500== Releasing lock... [2025-02-18 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:09:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:10:06 [end_date_ymd] => 2025-02-18 02:10:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:10:06' and `end` < '2025-02-18 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-18 02:10:19] Production.INFO: count ==697 [2025-02-18 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:10:06 - End Time 2025-02-18 02:10:06 [2025-02-18 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499916', 'tblTempUsageDetail_20' ) start [2025-02-18 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499916', 'tblTempUsageDetail_20' ) end [2025-02-18 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499916', 'tblTempVendorCDR_20' ) start [2025-02-18 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499916', 'tblTempVendorCDR_20' ) end [2025-02-18 02:10:19] Production.INFO: ProcessCDR(1,14499916,1,1,2) [2025-02-18 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499916', 'tblTempUsageDetail_20' ) start [2025-02-18 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499916', 'tblTempUsageDetail_20' ) end [2025-02-18 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:10:23] Production.INFO: ==30606== Releasing lock... [2025-02-18 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:10:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:11:05 [end_date_ymd] => 2025-02-18 02:11:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:11:05' and `end` < '2025-02-18 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-18 02:11:19] Production.INFO: count ==696 [2025-02-18 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:11:05 - End Time 2025-02-18 02:11:05 [2025-02-18 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499921', 'tblTempUsageDetail_20' ) start [2025-02-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499921', 'tblTempUsageDetail_20' ) end [2025-02-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499921', 'tblTempVendorCDR_20' ) start [2025-02-18 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499921', 'tblTempVendorCDR_20' ) end [2025-02-18 02:11:19] Production.INFO: ProcessCDR(1,14499921,1,1,2) [2025-02-18 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499921', 'tblTempUsageDetail_20' ) start [2025-02-18 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499921', 'tblTempUsageDetail_20' ) end [2025-02-18 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:11:22] Production.INFO: ==30713== Releasing lock... [2025-02-18 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:12:05 [end_date_ymd] => 2025-02-18 02:12:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:12:05' and `end` < '2025-02-18 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-18 02:12:18] Production.INFO: count ==696 [2025-02-18 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:12:05 - End Time 2025-02-18 02:12:05 [2025-02-18 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499926', 'tblTempUsageDetail_20' ) start [2025-02-18 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499926', 'tblTempUsageDetail_20' ) end [2025-02-18 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499926', 'tblTempVendorCDR_20' ) start [2025-02-18 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499926', 'tblTempVendorCDR_20' ) end [2025-02-18 02:12:19] Production.INFO: ProcessCDR(1,14499926,1,1,2) [2025-02-18 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499926', 'tblTempUsageDetail_20' ) start [2025-02-18 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499926', 'tblTempUsageDetail_20' ) end [2025-02-18 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:12:22] Production.INFO: ==30814== Releasing lock... [2025-02-18 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:12:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:13:05 [end_date_ymd] => 2025-02-18 02:13:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:13:05' and `end` < '2025-02-18 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-18 02:13:19] Production.INFO: count ==696 [2025-02-18 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:13:05 - End Time 2025-02-18 02:13:05 [2025-02-18 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499931', 'tblTempUsageDetail_20' ) start [2025-02-18 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499931', 'tblTempUsageDetail_20' ) end [2025-02-18 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499931', 'tblTempVendorCDR_20' ) start [2025-02-18 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499931', 'tblTempVendorCDR_20' ) end [2025-02-18 02:13:19] Production.INFO: ProcessCDR(1,14499931,1,1,2) [2025-02-18 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499931', 'tblTempUsageDetail_20' ) start [2025-02-18 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499931', 'tblTempUsageDetail_20' ) end [2025-02-18 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:13:22] Production.INFO: ==30922== Releasing lock... [2025-02-18 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:13:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:14:05 [end_date_ymd] => 2025-02-18 02:14:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:14:05' and `end` < '2025-02-18 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-18 02:14:18] Production.INFO: count ==695 [2025-02-18 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:14:05 - End Time 2025-02-18 02:14:05 [2025-02-18 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499936', 'tblTempUsageDetail_20' ) start [2025-02-18 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499936', 'tblTempUsageDetail_20' ) end [2025-02-18 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499936', 'tblTempVendorCDR_20' ) start [2025-02-18 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499936', 'tblTempVendorCDR_20' ) end [2025-02-18 02:14:19] Production.INFO: ProcessCDR(1,14499936,1,1,2) [2025-02-18 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499936', 'tblTempUsageDetail_20' ) start [2025-02-18 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499936', 'tblTempUsageDetail_20' ) end [2025-02-18 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:14:22] Production.INFO: ==31066== Releasing lock... [2025-02-18 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:14:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:15:05 [end_date_ymd] => 2025-02-18 02:15:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:15:05' and `end` < '2025-02-18 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-18 02:15:19] Production.INFO: count ==695 [2025-02-18 02:15:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:15:05 - End Time 2025-02-18 02:15:05 [2025-02-18 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499941', 'tblTempUsageDetail_20' ) start [2025-02-18 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499941', 'tblTempUsageDetail_20' ) end [2025-02-18 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499941', 'tblTempVendorCDR_20' ) start [2025-02-18 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499941', 'tblTempVendorCDR_20' ) end [2025-02-18 02:15:19] Production.INFO: ProcessCDR(1,14499941,1,1,2) [2025-02-18 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499941', 'tblTempUsageDetail_20' ) start [2025-02-18 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499941', 'tblTempUsageDetail_20' ) end [2025-02-18 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:15:22] Production.INFO: ==31169== Releasing lock... [2025-02-18 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:15:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:16:06 [end_date_ymd] => 2025-02-18 02:16:06 [RateCDR] => 1 ) [2025-02-18 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:16:06' and `end` < '2025-02-18 02: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-18 02:16:19] Production.INFO: count ==695 [2025-02-18 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:16:06 - End Time 2025-02-18 02:16:06 [2025-02-18 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499946', 'tblTempUsageDetail_20' ) start [2025-02-18 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499946', 'tblTempUsageDetail_20' ) end [2025-02-18 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499946', 'tblTempVendorCDR_20' ) start [2025-02-18 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499946', 'tblTempVendorCDR_20' ) end [2025-02-18 02:16:19] Production.INFO: ProcessCDR(1,14499946,1,1,2) [2025-02-18 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499946', 'tblTempUsageDetail_20' ) start [2025-02-18 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499946', 'tblTempUsageDetail_20' ) end [2025-02-18 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:16:22] Production.INFO: ==31276== Releasing lock... [2025-02-18 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:17:05 [end_date_ymd] => 2025-02-18 02:17:05 [RateCDR] => 1 ) [2025-02-18 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:17:05' and `end` < '2025-02-18 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:17:19] Production.INFO: count ==694 [2025-02-18 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:17:05 - End Time 2025-02-18 02:17:05 [2025-02-18 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499951', 'tblTempUsageDetail_20' ) start [2025-02-18 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499951', 'tblTempUsageDetail_20' ) end [2025-02-18 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499951', 'tblTempVendorCDR_20' ) start [2025-02-18 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499951', 'tblTempVendorCDR_20' ) end [2025-02-18 02:17:19] Production.INFO: ProcessCDR(1,14499951,1,1,2) [2025-02-18 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499951', 'tblTempUsageDetail_20' ) start [2025-02-18 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499951', 'tblTempUsageDetail_20' ) end [2025-02-18 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:17:23] Production.INFO: ==31371== Releasing lock... [2025-02-18 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:17:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:18:06 [end_date_ymd] => 2025-02-18 02:18:06 [RateCDR] => 1 ) [2025-02-18 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:18:06' and `end` < '2025-02-18 02: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-18 02:18:19] Production.INFO: count ==694 [2025-02-18 02:18:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:18:06 - End Time 2025-02-18 02:18:06 [2025-02-18 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499956', 'tblTempUsageDetail_20' ) start [2025-02-18 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499956', 'tblTempUsageDetail_20' ) end [2025-02-18 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499956', 'tblTempVendorCDR_20' ) start [2025-02-18 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499956', 'tblTempVendorCDR_20' ) end [2025-02-18 02:18:19] Production.INFO: ProcessCDR(1,14499956,1,1,2) [2025-02-18 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499956', 'tblTempUsageDetail_20' ) start [2025-02-18 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499956', 'tblTempUsageDetail_20' ) end [2025-02-18 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:18:23] Production.INFO: ==31468== Releasing lock... [2025-02-18 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:18:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:19:05 [end_date_ymd] => 2025-02-18 02:19:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:19:05' and `end` < '2025-02-18 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-18 02:19:18] Production.INFO: count ==694 [2025-02-18 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:19:05 - End Time 2025-02-18 02:19:05 [2025-02-18 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499961', 'tblTempUsageDetail_20' ) start [2025-02-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499961', 'tblTempUsageDetail_20' ) end [2025-02-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499961', 'tblTempVendorCDR_20' ) start [2025-02-18 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499961', 'tblTempVendorCDR_20' ) end [2025-02-18 02:19:18] Production.INFO: ProcessCDR(1,14499961,1,1,2) [2025-02-18 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499961', 'tblTempUsageDetail_20' ) start [2025-02-18 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499961', 'tblTempUsageDetail_20' ) end [2025-02-18 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:19:22] Production.INFO: ==31562== Releasing lock... [2025-02-18 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:20:06 [end_date_ymd] => 2025-02-18 02:20:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:20:06' and `end` < '2025-02-18 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-18 02:20:19] Production.INFO: count ==694 [2025-02-18 02:20:20] Production.ERROR: pbx CDR StartTime 2025-02-17 23:20:06 - End Time 2025-02-18 02:20:06 [2025-02-18 02:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499967', 'tblTempUsageDetail_20' ) start [2025-02-18 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499967', 'tblTempUsageDetail_20' ) end [2025-02-18 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499967', 'tblTempVendorCDR_20' ) start [2025-02-18 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499967', 'tblTempVendorCDR_20' ) end [2025-02-18 02:20:20] Production.INFO: ProcessCDR(1,14499967,1,1,2) [2025-02-18 02:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499967', 'tblTempUsageDetail_20' ) start [2025-02-18 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499967', 'tblTempUsageDetail_20' ) end [2025-02-18 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:20:23] Production.INFO: ==31666== Releasing lock... [2025-02-18 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:21:05 [end_date_ymd] => 2025-02-18 02:21:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:21:05' and `end` < '2025-02-18 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-18 02:21:18] Production.INFO: count ==694 [2025-02-18 02:21:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:21:05 - End Time 2025-02-18 02:21:05 [2025-02-18 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499972', 'tblTempUsageDetail_20' ) start [2025-02-18 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499972', 'tblTempUsageDetail_20' ) end [2025-02-18 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499972', 'tblTempVendorCDR_20' ) start [2025-02-18 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499972', 'tblTempVendorCDR_20' ) end [2025-02-18 02:21:19] Production.INFO: ProcessCDR(1,14499972,1,1,2) [2025-02-18 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499972', 'tblTempUsageDetail_20' ) start [2025-02-18 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499972', 'tblTempUsageDetail_20' ) end [2025-02-18 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:21:22] Production.INFO: ==31764== Releasing lock... [2025-02-18 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:21:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:22:05 [end_date_ymd] => 2025-02-18 02:22:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:22:05' and `end` < '2025-02-18 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-18 02:22:18] Production.INFO: count ==693 [2025-02-18 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:22:05 - End Time 2025-02-18 02:22:05 [2025-02-18 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499977', 'tblTempUsageDetail_20' ) start [2025-02-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499977', 'tblTempUsageDetail_20' ) end [2025-02-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499977', 'tblTempVendorCDR_20' ) start [2025-02-18 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499977', 'tblTempVendorCDR_20' ) end [2025-02-18 02:22:18] Production.INFO: ProcessCDR(1,14499977,1,1,2) [2025-02-18 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499977', 'tblTempUsageDetail_20' ) start [2025-02-18 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499977', 'tblTempUsageDetail_20' ) end [2025-02-18 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:22:21] Production.INFO: ==31862== Releasing lock... [2025-02-18 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:23:05 [end_date_ymd] => 2025-02-18 02:23:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:23:05' and `end` < '2025-02-18 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-18 02:23:18] Production.INFO: count ==693 [2025-02-18 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:23:05 - End Time 2025-02-18 02:23:05 [2025-02-18 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499982', 'tblTempUsageDetail_20' ) start [2025-02-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499982', 'tblTempUsageDetail_20' ) end [2025-02-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499982', 'tblTempVendorCDR_20' ) start [2025-02-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499982', 'tblTempVendorCDR_20' ) end [2025-02-18 02:23:18] Production.INFO: ProcessCDR(1,14499982,1,1,2) [2025-02-18 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499982', 'tblTempUsageDetail_20' ) start [2025-02-18 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499982', 'tblTempUsageDetail_20' ) end [2025-02-18 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:23:21] Production.INFO: ==31960== Releasing lock... [2025-02-18 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:24:05 [end_date_ymd] => 2025-02-18 02:24:05 [RateCDR] => 1 ) [2025-02-18 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:24:05' and `end` < '2025-02-18 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:24:19] Production.INFO: count ==693 [2025-02-18 02:24:20] Production.ERROR: pbx CDR StartTime 2025-02-17 23:24:05 - End Time 2025-02-18 02:24:05 [2025-02-18 02:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499987', 'tblTempUsageDetail_20' ) start [2025-02-18 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499987', 'tblTempUsageDetail_20' ) end [2025-02-18 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499987', 'tblTempVendorCDR_20' ) start [2025-02-18 02:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499987', 'tblTempVendorCDR_20' ) end [2025-02-18 02:24:20] Production.INFO: ProcessCDR(1,14499987,1,1,2) [2025-02-18 02:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499987', 'tblTempUsageDetail_20' ) start [2025-02-18 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499987', 'tblTempUsageDetail_20' ) end [2025-02-18 02:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:24:23] Production.INFO: ==32060== Releasing lock... [2025-02-18 02:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:24:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:25:05 [end_date_ymd] => 2025-02-18 02:25:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:25:05' and `end` < '2025-02-18 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-18 02:25:17] Production.INFO: count ==692 [2025-02-18 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:25:05 - End Time 2025-02-18 02:25:05 [2025-02-18 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499992', 'tblTempUsageDetail_20' ) start [2025-02-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499992', 'tblTempUsageDetail_20' ) end [2025-02-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499992', 'tblTempVendorCDR_20' ) start [2025-02-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499992', 'tblTempVendorCDR_20' ) end [2025-02-18 02:25:18] Production.INFO: ProcessCDR(1,14499992,1,1,2) [2025-02-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499992', 'tblTempUsageDetail_20' ) start [2025-02-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499992', 'tblTempUsageDetail_20' ) end [2025-02-18 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:25:21] Production.INFO: ==32157== Releasing lock... [2025-02-18 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:26:05 [end_date_ymd] => 2025-02-18 02:26:05 [RateCDR] => 1 ) [2025-02-18 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:26:05' and `end` < '2025-02-18 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:26:18] Production.INFO: count ==691 [2025-02-18 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:26:05 - End Time 2025-02-18 02:26:05 [2025-02-18 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499997', 'tblTempUsageDetail_20' ) start [2025-02-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14499997', 'tblTempUsageDetail_20' ) end [2025-02-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499997', 'tblTempVendorCDR_20' ) start [2025-02-18 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14499997', 'tblTempVendorCDR_20' ) end [2025-02-18 02:26:18] Production.INFO: ProcessCDR(1,14499997,1,1,2) [2025-02-18 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14499997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14499997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14499997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14499997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499997', 'tblTempUsageDetail_20' ) start [2025-02-18 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14499997', 'tblTempUsageDetail_20' ) end [2025-02-18 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:26:21] Production.INFO: ==32254== Releasing lock... [2025-02-18 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:27:05 [end_date_ymd] => 2025-02-18 02:27:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:27:05' and `end` < '2025-02-18 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-18 02:27:17] Production.INFO: count ==691 [2025-02-18 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:27:05 - End Time 2025-02-18 02:27:05 [2025-02-18 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500002', 'tblTempUsageDetail_20' ) start [2025-02-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500002', 'tblTempUsageDetail_20' ) end [2025-02-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500002', 'tblTempVendorCDR_20' ) start [2025-02-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500002', 'tblTempVendorCDR_20' ) end [2025-02-18 02:27:18] Production.INFO: ProcessCDR(1,14500002,1,1,2) [2025-02-18 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500002', 'tblTempUsageDetail_20' ) start [2025-02-18 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500002', 'tblTempUsageDetail_20' ) end [2025-02-18 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:27:21] Production.INFO: ==32352== Releasing lock... [2025-02-18 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:28:06 [end_date_ymd] => 2025-02-18 02:28:06 [RateCDR] => 1 ) [2025-02-18 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:28:06' and `end` < '2025-02-18 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:28:19] Production.INFO: count ==689 [2025-02-18 02:28:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:28:06 - End Time 2025-02-18 02:28:06 [2025-02-18 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500007', 'tblTempUsageDetail_20' ) start [2025-02-18 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500007', 'tblTempUsageDetail_20' ) end [2025-02-18 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500007', 'tblTempVendorCDR_20' ) start [2025-02-18 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500007', 'tblTempVendorCDR_20' ) end [2025-02-18 02:28:19] Production.INFO: ProcessCDR(1,14500007,1,1,2) [2025-02-18 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500007', 'tblTempUsageDetail_20' ) start [2025-02-18 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500007', 'tblTempUsageDetail_20' ) end [2025-02-18 02:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:28:23] Production.INFO: ==32454== Releasing lock... [2025-02-18 02:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:28:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:29:04 [end_date_ymd] => 2025-02-18 02:29:04 [RateCDR] => 1 ) [2025-02-18 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:29:04' and `end` < '2025-02-18 02: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-18 02:29:18] Production.INFO: count ==688 [2025-02-18 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:29:04 - End Time 2025-02-18 02:29:04 [2025-02-18 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500012', 'tblTempUsageDetail_20' ) start [2025-02-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500012', 'tblTempUsageDetail_20' ) end [2025-02-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500012', 'tblTempVendorCDR_20' ) start [2025-02-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500012', 'tblTempVendorCDR_20' ) end [2025-02-18 02:29:18] Production.INFO: ProcessCDR(1,14500012,1,1,2) [2025-02-18 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500012', 'tblTempUsageDetail_20' ) start [2025-02-18 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500012', 'tblTempUsageDetail_20' ) end [2025-02-18 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:29:21] Production.INFO: ==32590== Releasing lock... [2025-02-18 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:29:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:30:06 [end_date_ymd] => 2025-02-18 02:30:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:30:06' and `end` < '2025-02-18 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-18 02:30:19] Production.INFO: count ==690 [2025-02-18 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:30:06 - End Time 2025-02-18 02:30:06 [2025-02-18 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500017', 'tblTempUsageDetail_20' ) start [2025-02-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500017', 'tblTempUsageDetail_20' ) end [2025-02-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500017', 'tblTempVendorCDR_20' ) start [2025-02-18 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500017', 'tblTempVendorCDR_20' ) end [2025-02-18 02:30:19] Production.INFO: ProcessCDR(1,14500017,1,1,2) [2025-02-18 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500017', 'tblTempUsageDetail_20' ) start [2025-02-18 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500017', 'tblTempUsageDetail_20' ) end [2025-02-18 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:30:23] Production.INFO: ==32672== Releasing lock... [2025-02-18 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:31:05 [end_date_ymd] => 2025-02-18 02:31:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:31:05' and `end` < '2025-02-18 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-18 02:31:18] Production.INFO: count ==657 [2025-02-18 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:31:05 - End Time 2025-02-18 02:31:05 [2025-02-18 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500023', 'tblTempUsageDetail_20' ) start [2025-02-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500023', 'tblTempUsageDetail_20' ) end [2025-02-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500023', 'tblTempVendorCDR_20' ) start [2025-02-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500023', 'tblTempVendorCDR_20' ) end [2025-02-18 02:31:18] Production.INFO: ProcessCDR(1,14500023,1,1,2) [2025-02-18 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500023', 'tblTempUsageDetail_20' ) start [2025-02-18 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500023', 'tblTempUsageDetail_20' ) end [2025-02-18 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:31:21] Production.INFO: ==32747== Releasing lock... [2025-02-18 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:31:21] Production.INFO: 33 MB #Memory Used# [2025-02-18 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:32:05 [end_date_ymd] => 2025-02-18 02:32:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:32:05' and `end` < '2025-02-18 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-18 02:32:19] Production.INFO: count ==576 [2025-02-18 02:32:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:32:05 - End Time 2025-02-18 02:32:05 [2025-02-18 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500028', 'tblTempUsageDetail_20' ) start [2025-02-18 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500028', 'tblTempUsageDetail_20' ) end [2025-02-18 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500028', 'tblTempVendorCDR_20' ) start [2025-02-18 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500028', 'tblTempVendorCDR_20' ) end [2025-02-18 02:32:19] Production.INFO: ProcessCDR(1,14500028,1,1,2) [2025-02-18 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500028', 'tblTempUsageDetail_20' ) start [2025-02-18 02:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500028', 'tblTempUsageDetail_20' ) end [2025-02-18 02:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:32:24] Production.INFO: ==375== Releasing lock... [2025-02-18 02:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:32:24] Production.INFO: 33 MB #Memory Used# [2025-02-18 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:33:05 [end_date_ymd] => 2025-02-18 02:33:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:33:05' and `end` < '2025-02-18 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-18 02:33:20] Production.INFO: count ==497 [2025-02-18 02:33:20] Production.ERROR: pbx CDR StartTime 2025-02-17 23:33:05 - End Time 2025-02-18 02:33:05 [2025-02-18 02:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500033', 'tblTempUsageDetail_20' ) start [2025-02-18 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500033', 'tblTempUsageDetail_20' ) end [2025-02-18 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500033', 'tblTempVendorCDR_20' ) start [2025-02-18 02:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500033', 'tblTempVendorCDR_20' ) end [2025-02-18 02:33:20] Production.INFO: ProcessCDR(1,14500033,1,1,2) [2025-02-18 02:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500033', 'tblTempUsageDetail_20' ) start [2025-02-18 02:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500033', 'tblTempUsageDetail_20' ) end [2025-02-18 02:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:33:25] Production.INFO: ==448== Releasing lock... [2025-02-18 02:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:33:25] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:34:04 [end_date_ymd] => 2025-02-18 02:34:04 [RateCDR] => 1 ) [2025-02-18 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-17 23:34:04' and `end` < '2025-02-18 02: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-18 02:34:18] Production.INFO: count ==438 [2025-02-18 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:34:04 - End Time 2025-02-18 02:34:04 [2025-02-18 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500038', 'tblTempUsageDetail_20' ) start [2025-02-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500038', 'tblTempUsageDetail_20' ) end [2025-02-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500038', 'tblTempVendorCDR_20' ) start [2025-02-18 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500038', 'tblTempVendorCDR_20' ) end [2025-02-18 02:34:18] Production.INFO: ProcessCDR(1,14500038,1,1,2) [2025-02-18 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500038', 'tblTempUsageDetail_20' ) start [2025-02-18 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500038', 'tblTempUsageDetail_20' ) end [2025-02-18 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:34:21] Production.INFO: ==522== Releasing lock... [2025-02-18 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:35:05 [end_date_ymd] => 2025-02-18 02:35:05 [RateCDR] => 1 ) [2025-02-18 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:35:05' and `end` < '2025-02-18 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:35:18] Production.INFO: count ==356 [2025-02-18 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:35:05 - End Time 2025-02-18 02:35:05 [2025-02-18 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500043', 'tblTempUsageDetail_20' ) start [2025-02-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500043', 'tblTempUsageDetail_20' ) end [2025-02-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500043', 'tblTempVendorCDR_20' ) start [2025-02-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500043', 'tblTempVendorCDR_20' ) end [2025-02-18 02:35:18] Production.INFO: ProcessCDR(1,14500043,1,1,2) [2025-02-18 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500043', 'tblTempUsageDetail_20' ) start [2025-02-18 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500043', 'tblTempUsageDetail_20' ) end [2025-02-18 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:35:21] Production.INFO: ==595== Releasing lock... [2025-02-18 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:35:21] Production.INFO: 31 MB #Memory Used# [2025-02-18 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:36:04 [end_date_ymd] => 2025-02-18 02:36:04 [RateCDR] => 1 ) [2025-02-18 02: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-17 23:36:04' and `end` < '2025-02-18 02: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-18 02:36:17] Production.INFO: count ==282 [2025-02-18 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:36:04 - End Time 2025-02-18 02:36:04 [2025-02-18 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500048', 'tblTempUsageDetail_20' ) start [2025-02-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500048', 'tblTempUsageDetail_20' ) end [2025-02-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500048', 'tblTempVendorCDR_20' ) start [2025-02-18 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500048', 'tblTempVendorCDR_20' ) end [2025-02-18 02:36:18] Production.INFO: ProcessCDR(1,14500048,1,1,2) [2025-02-18 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500048', 'tblTempUsageDetail_20' ) start [2025-02-18 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500048', 'tblTempUsageDetail_20' ) end [2025-02-18 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:36:21] Production.INFO: ==684== Releasing lock... [2025-02-18 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:37:05 [end_date_ymd] => 2025-02-18 02:37:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:37:05' and `end` < '2025-02-18 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-18 02:37:19] Production.INFO: count ==213 [2025-02-18 02:37:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:37:05 - End Time 2025-02-18 02:37:05 [2025-02-18 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500053', 'tblTempUsageDetail_20' ) start [2025-02-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500053', 'tblTempUsageDetail_20' ) end [2025-02-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500053', 'tblTempVendorCDR_20' ) start [2025-02-18 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500053', 'tblTempVendorCDR_20' ) end [2025-02-18 02:37:19] Production.INFO: ProcessCDR(1,14500053,1,1,2) [2025-02-18 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500053', 'tblTempUsageDetail_20' ) start [2025-02-18 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500053', 'tblTempUsageDetail_20' ) end [2025-02-18 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:37:22] Production.INFO: ==769== Releasing lock... [2025-02-18 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:38:05 [end_date_ymd] => 2025-02-18 02:38:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:38:05' and `end` < '2025-02-18 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-18 02:38:18] Production.INFO: count ==234 [2025-02-18 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:38:05 - End Time 2025-02-18 02:38:05 [2025-02-18 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500058', 'tblTempUsageDetail_20' ) start [2025-02-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500058', 'tblTempUsageDetail_20' ) end [2025-02-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500058', 'tblTempVendorCDR_20' ) start [2025-02-18 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500058', 'tblTempVendorCDR_20' ) end [2025-02-18 02:38:18] Production.INFO: ProcessCDR(1,14500058,1,1,2) [2025-02-18 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500058', 'tblTempUsageDetail_20' ) start [2025-02-18 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500058', 'tblTempUsageDetail_20' ) end [2025-02-18 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:38:21] Production.INFO: ==842== Releasing lock... [2025-02-18 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-18 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:39:05 [end_date_ymd] => 2025-02-18 02:39:05 [RateCDR] => 1 ) [2025-02-18 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:39:05' and `end` < '2025-02-18 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:39:18] Production.INFO: count ==274 [2025-02-18 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:39:05 - End Time 2025-02-18 02:39:05 [2025-02-18 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500063', 'tblTempUsageDetail_20' ) start [2025-02-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500063', 'tblTempUsageDetail_20' ) end [2025-02-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500063', 'tblTempVendorCDR_20' ) start [2025-02-18 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500063', 'tblTempVendorCDR_20' ) end [2025-02-18 02:39:18] Production.INFO: ProcessCDR(1,14500063,1,1,2) [2025-02-18 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500063', 'tblTempUsageDetail_20' ) start [2025-02-18 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500063', 'tblTempUsageDetail_20' ) end [2025-02-18 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:39:21] Production.INFO: ==916== Releasing lock... [2025-02-18 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-18 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:40:06 [end_date_ymd] => 2025-02-18 02:40:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:40:06' and `end` < '2025-02-18 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-18 02:40:19] Production.INFO: count ==322 [2025-02-18 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:40:06 - End Time 2025-02-18 02:40:06 [2025-02-18 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500068', 'tblTempUsageDetail_20' ) start [2025-02-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500068', 'tblTempUsageDetail_20' ) end [2025-02-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500068', 'tblTempVendorCDR_20' ) start [2025-02-18 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500068', 'tblTempVendorCDR_20' ) end [2025-02-18 02:40:19] Production.INFO: ProcessCDR(1,14500068,1,1,2) [2025-02-18 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500068', 'tblTempUsageDetail_20' ) start [2025-02-18 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500068', 'tblTempUsageDetail_20' ) end [2025-02-18 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:40:23] Production.INFO: ==990== Releasing lock... [2025-02-18 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:40:23] Production.INFO: 31 MB #Memory Used# [2025-02-18 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:41:05 [end_date_ymd] => 2025-02-18 02:41:05 [RateCDR] => 1 ) [2025-02-18 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:41:05' and `end` < '2025-02-18 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:41:18] Production.INFO: count ==371 [2025-02-18 02:41:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:41:05 - End Time 2025-02-18 02:41:05 [2025-02-18 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500074', 'tblTempUsageDetail_20' ) start [2025-02-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500074', 'tblTempUsageDetail_20' ) end [2025-02-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500074', 'tblTempVendorCDR_20' ) start [2025-02-18 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500074', 'tblTempVendorCDR_20' ) end [2025-02-18 02:41:18] Production.INFO: ProcessCDR(1,14500074,1,1,2) [2025-02-18 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500074', 'tblTempUsageDetail_20' ) start [2025-02-18 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500074', 'tblTempUsageDetail_20' ) end [2025-02-18 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:41:21] Production.INFO: ==1062== Releasing lock... [2025-02-18 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:42:06 [end_date_ymd] => 2025-02-18 02:42:06 [RateCDR] => 1 ) [2025-02-18 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:42:06' and `end` < '2025-02-18 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:42:19] Production.INFO: count ==412 [2025-02-18 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:42:06 - End Time 2025-02-18 02:42:06 [2025-02-18 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500079', 'tblTempUsageDetail_20' ) start [2025-02-18 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500079', 'tblTempUsageDetail_20' ) end [2025-02-18 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500079', 'tblTempVendorCDR_20' ) start [2025-02-18 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500079', 'tblTempVendorCDR_20' ) end [2025-02-18 02:42:19] Production.INFO: ProcessCDR(1,14500079,1,1,2) [2025-02-18 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500079', 'tblTempUsageDetail_20' ) start [2025-02-18 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500079', 'tblTempUsageDetail_20' ) end [2025-02-18 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:42:23] Production.INFO: ==1138== Releasing lock... [2025-02-18 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:42:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-18 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:43:05 [end_date_ymd] => 2025-02-18 02:43:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:43:05' and `end` < '2025-02-18 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-18 02:43:18] Production.INFO: count ==451 [2025-02-18 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:43:05 - End Time 2025-02-18 02:43:05 [2025-02-18 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500084', 'tblTempUsageDetail_20' ) start [2025-02-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500084', 'tblTempUsageDetail_20' ) end [2025-02-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500084', 'tblTempVendorCDR_20' ) start [2025-02-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500084', 'tblTempVendorCDR_20' ) end [2025-02-18 02:43:18] Production.INFO: ProcessCDR(1,14500084,1,1,2) [2025-02-18 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500084', 'tblTempUsageDetail_20' ) start [2025-02-18 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500084', 'tblTempUsageDetail_20' ) end [2025-02-18 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:43:21] Production.INFO: ==1213== Releasing lock... [2025-02-18 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:44:05 [end_date_ymd] => 2025-02-18 02:44:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:44:05' and `end` < '2025-02-18 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-18 02:44:18] Production.INFO: count ==489 [2025-02-18 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:44:05 - End Time 2025-02-18 02:44:05 [2025-02-18 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500089', 'tblTempUsageDetail_20' ) start [2025-02-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500089', 'tblTempUsageDetail_20' ) end [2025-02-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500089', 'tblTempVendorCDR_20' ) start [2025-02-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500089', 'tblTempVendorCDR_20' ) end [2025-02-18 02:44:18] Production.INFO: ProcessCDR(1,14500089,1,1,2) [2025-02-18 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500089', 'tblTempUsageDetail_20' ) start [2025-02-18 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500089', 'tblTempUsageDetail_20' ) end [2025-02-18 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:44:22] Production.INFO: ==1301== Releasing lock... [2025-02-18 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:45:05 [end_date_ymd] => 2025-02-18 02:45:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:45:05' and `end` < '2025-02-18 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-18 02:45:18] Production.INFO: count ==526 [2025-02-18 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:45:05 - End Time 2025-02-18 02:45:05 [2025-02-18 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500094', 'tblTempUsageDetail_20' ) start [2025-02-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500094', 'tblTempUsageDetail_20' ) end [2025-02-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500094', 'tblTempVendorCDR_20' ) start [2025-02-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500094', 'tblTempVendorCDR_20' ) end [2025-02-18 02:45:18] Production.INFO: ProcessCDR(1,14500094,1,1,2) [2025-02-18 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500094', 'tblTempUsageDetail_20' ) start [2025-02-18 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500094', 'tblTempUsageDetail_20' ) end [2025-02-18 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:45:21] Production.INFO: ==1410== Releasing lock... [2025-02-18 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:46:05 [end_date_ymd] => 2025-02-18 02:46:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:46:05' and `end` < '2025-02-18 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-18 02:46:18] Production.INFO: count ==853 [2025-02-18 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:46:05 - End Time 2025-02-18 02:46:05 [2025-02-18 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500099', 'tblTempUsageDetail_20' ) start [2025-02-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500099', 'tblTempUsageDetail_20' ) end [2025-02-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500099', 'tblTempVendorCDR_20' ) start [2025-02-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500099', 'tblTempVendorCDR_20' ) end [2025-02-18 02:46:19] Production.INFO: ProcessCDR(1,14500099,1,1,2) [2025-02-18 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500099', 'tblTempUsageDetail_20' ) start [2025-02-18 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500099', 'tblTempUsageDetail_20' ) end [2025-02-18 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:46:23] Production.INFO: ==1482== Releasing lock... [2025-02-18 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:47:05 [end_date_ymd] => 2025-02-18 02:47:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:47:05' and `end` < '2025-02-18 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-18 02:47:18] Production.INFO: count ==852 [2025-02-18 02:47:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:47:05 - End Time 2025-02-18 02:47:05 [2025-02-18 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500104', 'tblTempUsageDetail_20' ) start [2025-02-18 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500104', 'tblTempUsageDetail_20' ) end [2025-02-18 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500104', 'tblTempVendorCDR_20' ) start [2025-02-18 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500104', 'tblTempVendorCDR_20' ) end [2025-02-18 02:47:19] Production.INFO: ProcessCDR(1,14500104,1,1,2) [2025-02-18 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500104', 'tblTempUsageDetail_20' ) start [2025-02-18 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500104', 'tblTempUsageDetail_20' ) end [2025-02-18 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:47:22] Production.INFO: ==1589== Releasing lock... [2025-02-18 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:47:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:48:05 [end_date_ymd] => 2025-02-18 02:48:05 [RateCDR] => 1 ) [2025-02-18 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:48:05' and `end` < '2025-02-18 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:48:20] Production.INFO: count ==852 [2025-02-18 02:48:20] Production.ERROR: pbx CDR StartTime 2025-02-17 23:48:05 - End Time 2025-02-18 02:48:05 [2025-02-18 02:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500109', 'tblTempUsageDetail_20' ) start [2025-02-18 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500109', 'tblTempUsageDetail_20' ) end [2025-02-18 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500109', 'tblTempVendorCDR_20' ) start [2025-02-18 02:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500109', 'tblTempVendorCDR_20' ) end [2025-02-18 02:48:20] Production.INFO: ProcessCDR(1,14500109,1,1,2) [2025-02-18 02:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500109', 'tblTempUsageDetail_20' ) start [2025-02-18 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500109', 'tblTempUsageDetail_20' ) end [2025-02-18 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:48:24] Production.INFO: ==1662== Releasing lock... [2025-02-18 02:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:48:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:49:05 [end_date_ymd] => 2025-02-18 02:49:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:49:05' and `end` < '2025-02-18 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-18 02:49:18] Production.INFO: count ==852 [2025-02-18 02:49:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:49:05 - End Time 2025-02-18 02:49:05 [2025-02-18 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500114', 'tblTempUsageDetail_20' ) start [2025-02-18 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500114', 'tblTempUsageDetail_20' ) end [2025-02-18 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500114', 'tblTempVendorCDR_20' ) start [2025-02-18 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500114', 'tblTempVendorCDR_20' ) end [2025-02-18 02:49:19] Production.INFO: ProcessCDR(1,14500114,1,1,2) [2025-02-18 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500114', 'tblTempUsageDetail_20' ) start [2025-02-18 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500114', 'tblTempUsageDetail_20' ) end [2025-02-18 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:49:23] Production.INFO: ==1737== Releasing lock... [2025-02-18 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:49:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:50:07 [end_date_ymd] => 2025-02-18 02:50:07 [RateCDR] => 1 ) [2025-02-18 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:50:07' and `end` < '2025-02-18 02: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-18 02:50:20] Production.INFO: count ==852 [2025-02-18 02:50:20] Production.ERROR: pbx CDR StartTime 2025-02-17 23:50:07 - End Time 2025-02-18 02:50:07 [2025-02-18 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500120', 'tblTempUsageDetail_20' ) start [2025-02-18 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500120', 'tblTempUsageDetail_20' ) end [2025-02-18 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500120', 'tblTempVendorCDR_20' ) start [2025-02-18 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500120', 'tblTempVendorCDR_20' ) end [2025-02-18 02:50:20] Production.INFO: ProcessCDR(1,14500120,1,1,2) [2025-02-18 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500120', 'tblTempUsageDetail_20' ) start [2025-02-18 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500120', 'tblTempUsageDetail_20' ) end [2025-02-18 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:50:24] Production.INFO: ==1810== Releasing lock... [2025-02-18 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:50:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:51:05 [end_date_ymd] => 2025-02-18 02:51:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:51:05' and `end` < '2025-02-18 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-18 02:51:19] Production.INFO: count ==851 [2025-02-18 02:51:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:51:05 - End Time 2025-02-18 02:51:05 [2025-02-18 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500125', 'tblTempUsageDetail_20' ) start [2025-02-18 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500125', 'tblTempUsageDetail_20' ) end [2025-02-18 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500125', 'tblTempVendorCDR_20' ) start [2025-02-18 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500125', 'tblTempVendorCDR_20' ) end [2025-02-18 02:51:19] Production.INFO: ProcessCDR(1,14500125,1,1,2) [2025-02-18 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500125', 'tblTempUsageDetail_20' ) start [2025-02-18 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500125', 'tblTempUsageDetail_20' ) end [2025-02-18 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:51:22] Production.INFO: ==1891== Releasing lock... [2025-02-18 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:51:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:52:05 [end_date_ymd] => 2025-02-18 02:52:05 [RateCDR] => 1 ) [2025-02-18 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:52:05' and `end` < '2025-02-18 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:52:19] Production.INFO: count ==847 [2025-02-18 02:52:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:52:05 - End Time 2025-02-18 02:52:05 [2025-02-18 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500130', 'tblTempUsageDetail_20' ) start [2025-02-18 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500130', 'tblTempUsageDetail_20' ) end [2025-02-18 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500130', 'tblTempVendorCDR_20' ) start [2025-02-18 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500130', 'tblTempVendorCDR_20' ) end [2025-02-18 02:52:19] Production.INFO: ProcessCDR(1,14500130,1,1,2) [2025-02-18 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500130', 'tblTempUsageDetail_20' ) start [2025-02-18 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500130', 'tblTempUsageDetail_20' ) end [2025-02-18 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:52:23] Production.INFO: ==1963== Releasing lock... [2025-02-18 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:52:23] Production.INFO: 35 MB #Memory Used# [2025-02-18 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:53:05 [end_date_ymd] => 2025-02-18 02:53:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:53:05' and `end` < '2025-02-18 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-18 02:53:18] Production.INFO: count ==847 [2025-02-18 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:53:05 - End Time 2025-02-18 02:53:05 [2025-02-18 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500135', 'tblTempUsageDetail_20' ) start [2025-02-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500135', 'tblTempUsageDetail_20' ) end [2025-02-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500135', 'tblTempVendorCDR_20' ) start [2025-02-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500135', 'tblTempVendorCDR_20' ) end [2025-02-18 02:53:19] Production.INFO: ProcessCDR(1,14500135,1,1,2) [2025-02-18 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500135', 'tblTempUsageDetail_20' ) start [2025-02-18 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500135', 'tblTempUsageDetail_20' ) end [2025-02-18 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:53:22] Production.INFO: ==2037== Releasing lock... [2025-02-18 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:53:22] Production.INFO: 35 MB #Memory Used# [2025-02-18 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:54:06 [end_date_ymd] => 2025-02-18 02:54:06 [RateCDR] => 1 ) [2025-02-18 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-17 23:54:06' and `end` < '2025-02-18 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-18 02:54:19] Production.INFO: count ==847 [2025-02-18 02:54:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:54:06 - End Time 2025-02-18 02:54:06 [2025-02-18 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500140', 'tblTempUsageDetail_20' ) start [2025-02-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500140', 'tblTempUsageDetail_20' ) end [2025-02-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500140', 'tblTempVendorCDR_20' ) start [2025-02-18 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500140', 'tblTempVendorCDR_20' ) end [2025-02-18 02:54:19] Production.INFO: ProcessCDR(1,14500140,1,1,2) [2025-02-18 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500140', 'tblTempUsageDetail_20' ) start [2025-02-18 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500140', 'tblTempUsageDetail_20' ) end [2025-02-18 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:54:23] Production.INFO: ==2107== Releasing lock... [2025-02-18 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:54:23] Production.INFO: 35 MB #Memory Used# [2025-02-18 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:55:05 [end_date_ymd] => 2025-02-18 02:55:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:55:05' and `end` < '2025-02-18 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-18 02:55:18] Production.INFO: count ==846 [2025-02-18 02:55:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:55:05 - End Time 2025-02-18 02:55:05 [2025-02-18 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500145', 'tblTempUsageDetail_20' ) start [2025-02-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500145', 'tblTempUsageDetail_20' ) end [2025-02-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500145', 'tblTempVendorCDR_20' ) start [2025-02-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500145', 'tblTempVendorCDR_20' ) end [2025-02-18 02:55:18] Production.INFO: ProcessCDR(1,14500145,1,1,2) [2025-02-18 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500145', 'tblTempUsageDetail_20' ) start [2025-02-18 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500145', 'tblTempUsageDetail_20' ) end [2025-02-18 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:55:21] Production.INFO: ==2176== Releasing lock... [2025-02-18 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:55:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:56:05 [end_date_ymd] => 2025-02-18 02:56:05 [RateCDR] => 1 ) [2025-02-18 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-17 23:56:05' and `end` < '2025-02-18 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 02:56:19] Production.INFO: count ==846 [2025-02-18 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:56:05 - End Time 2025-02-18 02:56:05 [2025-02-18 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500150', 'tblTempUsageDetail_20' ) start [2025-02-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500150', 'tblTempUsageDetail_20' ) end [2025-02-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500150', 'tblTempVendorCDR_20' ) start [2025-02-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500150', 'tblTempVendorCDR_20' ) end [2025-02-18 02:56:19] Production.INFO: ProcessCDR(1,14500150,1,1,2) [2025-02-18 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500150', 'tblTempUsageDetail_20' ) start [2025-02-18 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500150', 'tblTempUsageDetail_20' ) end [2025-02-18 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:56:22] Production.INFO: ==2253== Releasing lock... [2025-02-18 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:57:05 [end_date_ymd] => 2025-02-18 02:57:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:57:05' and `end` < '2025-02-18 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-18 02:57:18] Production.INFO: count ==846 [2025-02-18 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:57:05 - End Time 2025-02-18 02:57:05 [2025-02-18 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500155', 'tblTempUsageDetail_20' ) start [2025-02-18 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500155', 'tblTempUsageDetail_20' ) end [2025-02-18 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500155', 'tblTempVendorCDR_20' ) start [2025-02-18 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500155', 'tblTempVendorCDR_20' ) end [2025-02-18 02:57:19] Production.INFO: ProcessCDR(1,14500155,1,1,2) [2025-02-18 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500155', 'tblTempUsageDetail_20' ) start [2025-02-18 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500155', 'tblTempUsageDetail_20' ) end [2025-02-18 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:57:22] Production.INFO: ==2324== Releasing lock... [2025-02-18 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:57:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:58:05 [end_date_ymd] => 2025-02-18 02:58:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:58:05' and `end` < '2025-02-18 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-18 02:58:18] Production.INFO: count ==846 [2025-02-18 02:58:19] Production.ERROR: pbx CDR StartTime 2025-02-17 23:58:05 - End Time 2025-02-18 02:58:05 [2025-02-18 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500160', 'tblTempUsageDetail_20' ) start [2025-02-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500160', 'tblTempUsageDetail_20' ) end [2025-02-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500160', 'tblTempVendorCDR_20' ) start [2025-02-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500160', 'tblTempVendorCDR_20' ) end [2025-02-18 02:58:19] Production.INFO: ProcessCDR(1,14500160,1,1,2) [2025-02-18 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500160', 'tblTempUsageDetail_20' ) start [2025-02-18 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500160', 'tblTempUsageDetail_20' ) end [2025-02-18 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:58:22] Production.INFO: ==2394== Releasing lock... [2025-02-18 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:58:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-17 23:59:05 [end_date_ymd] => 2025-02-18 02:59:05 [RateCDR] => 1 ) [2025-02-18 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-17 23:59:05' and `end` < '2025-02-18 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-18 02:59:18] Production.INFO: count ==846 [2025-02-18 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-17 23:59:05 - End Time 2025-02-18 02:59:05 [2025-02-18 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500165', 'tblTempUsageDetail_20' ) start [2025-02-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500165', 'tblTempUsageDetail_20' ) end [2025-02-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500165', 'tblTempVendorCDR_20' ) start [2025-02-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500165', 'tblTempVendorCDR_20' ) end [2025-02-18 02:59:18] Production.INFO: ProcessCDR(1,14500165,1,1,2) [2025-02-18 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500165', 'tblTempUsageDetail_20' ) start [2025-02-18 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500165', 'tblTempUsageDetail_20' ) end [2025-02-18 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 02:59:21] Production.INFO: ==2466== Releasing lock... [2025-02-18 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 02:59:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:00:06 [end_date_ymd] => 2025-02-18 03:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:00:06' and `end` < '2025-02-18 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-18 03:00:20] Production.INFO: count ==846 [2025-02-18 03:00:20] Production.ERROR: pbx CDR StartTime 2025-02-18 00:00:06 - End Time 2025-02-18 03:00:06 [2025-02-18 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500171', 'tblTempUsageDetail_20' ) start [2025-02-18 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500171', 'tblTempUsageDetail_20' ) end [2025-02-18 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500171', 'tblTempVendorCDR_20' ) start [2025-02-18 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500171', 'tblTempVendorCDR_20' ) end [2025-02-18 03:00:20] Production.INFO: ProcessCDR(1,14500171,1,1,2) [2025-02-18 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500171', 'tblTempUsageDetail_20' ) start [2025-02-18 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500171', 'tblTempUsageDetail_20' ) end [2025-02-18 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:00:24] Production.INFO: ==2581== Releasing lock... [2025-02-18 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:00:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:01:05 [end_date_ymd] => 2025-02-18 03:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:01:05' and `end` < '2025-02-18 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-18 03:01:18] Production.INFO: count ==846 [2025-02-18 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-18 00:01:05 - End Time 2025-02-18 03:01:05 [2025-02-18 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500176', 'tblTempUsageDetail_20' ) start [2025-02-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500176', 'tblTempUsageDetail_20' ) end [2025-02-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500176', 'tblTempVendorCDR_20' ) start [2025-02-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500176', 'tblTempVendorCDR_20' ) end [2025-02-18 03:01:19] Production.INFO: ProcessCDR(1,14500176,1,1,2) [2025-02-18 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500176', 'tblTempUsageDetail_20' ) start [2025-02-18 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500176', 'tblTempUsageDetail_20' ) end [2025-02-18 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:01:22] Production.INFO: ==2668== Releasing lock... [2025-02-18 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:01:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:02:05 [end_date_ymd] => 2025-02-18 03:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:02:05' and `end` < '2025-02-18 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-18 03:02:07] Production.INFO: count ==0 [2025-02-18 03:02:07] Production.ERROR: pbx CDR StartTime 2025-02-18 00:02:05 - End Time 2025-02-18 03:02:05 [2025-02-18 03:02:07] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:02:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500181', 'tblTempUsageDetail_20' ) start [2025-02-18 03:02:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500181', 'tblTempUsageDetail_20' ) end [2025-02-18 03:02:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500181', 'tblTempVendorCDR_20' ) start [2025-02-18 03:02:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500181', 'tblTempVendorCDR_20' ) end [2025-02-18 03:02:07] Production.INFO: ProcessCDR(1,14500181,1,1,2) [2025-02-18 03:02:07] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:02:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:02:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:02:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:02:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500181', 'tblTempUsageDetail_20' ) start [2025-02-18 03:02:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500181', 'tblTempUsageDetail_20' ) end [2025-02-18 03:02:12] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:02:12] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:02:12] Production.INFO: ==2816== Releasing lock... [2025-02-18 03:02:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:02:12] Production.INFO: 27.5 MB #Memory Used# [2025-02-18 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:03:05 [end_date_ymd] => 2025-02-18 03:03:05 [RateCDR] => 1 ) [2025-02-18 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:03:05' and `end` < '2025-02-18 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:04:17] Production.INFO: count ==839 [2025-02-18 03:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:03:05 - End Time 2025-02-18 03:03:05 [2025-02-18 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500186', 'tblTempUsageDetail_20' ) start [2025-02-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500186', 'tblTempUsageDetail_20' ) end [2025-02-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500186', 'tblTempVendorCDR_20' ) start [2025-02-18 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500186', 'tblTempVendorCDR_20' ) end [2025-02-18 03:04:17] Production.INFO: ProcessCDR(1,14500186,1,1,2) [2025-02-18 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500186', 'tblTempUsageDetail_20' ) start [2025-02-18 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500186', 'tblTempUsageDetail_20' ) end [2025-02-18 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:04:21] Production.INFO: ==2884== Releasing lock... [2025-02-18 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:04:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:05:05 [end_date_ymd] => 2025-02-18 03:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:05:05' and `end` < '2025-02-18 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-18 03:05:16] Production.INFO: count ==834 [2025-02-18 03:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:05:05 - End Time 2025-02-18 03:05:05 [2025-02-18 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500195', 'tblTempUsageDetail_20' ) start [2025-02-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500195', 'tblTempUsageDetail_20' ) end [2025-02-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500195', 'tblTempVendorCDR_20' ) start [2025-02-18 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500195', 'tblTempVendorCDR_20' ) end [2025-02-18 03:05:17] Production.INFO: ProcessCDR(1,14500195,1,1,2) [2025-02-18 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500195', 'tblTempUsageDetail_20' ) start [2025-02-18 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500195', 'tblTempUsageDetail_20' ) end [2025-02-18 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:05:20] Production.INFO: ==3021== Releasing lock... [2025-02-18 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:05:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:06:06 [end_date_ymd] => 2025-02-18 03:06:06 [RateCDR] => 1 ) [2025-02-18 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:06:06' and `end` < '2025-02-18 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:06:17] Production.INFO: count ==833 [2025-02-18 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:06:06 - End Time 2025-02-18 03:06:06 [2025-02-18 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500200', 'tblTempUsageDetail_20' ) start [2025-02-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500200', 'tblTempUsageDetail_20' ) end [2025-02-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500200', 'tblTempVendorCDR_20' ) start [2025-02-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500200', 'tblTempVendorCDR_20' ) end [2025-02-18 03:06:18] Production.INFO: ProcessCDR(1,14500200,1,1,2) [2025-02-18 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500200', 'tblTempUsageDetail_20' ) start [2025-02-18 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500200', 'tblTempUsageDetail_20' ) end [2025-02-18 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:06:21] Production.INFO: ==3170== Releasing lock... [2025-02-18 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:07:04 [end_date_ymd] => 2025-02-18 03:07:04 [RateCDR] => 1 ) [2025-02-18 03: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-18 00:07:04' and `end` < '2025-02-18 03: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-18 03:07:16] Production.INFO: count ==833 [2025-02-18 03:07:16] Production.ERROR: pbx CDR StartTime 2025-02-18 00:07:04 - End Time 2025-02-18 03:07:04 [2025-02-18 03:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500205', 'tblTempUsageDetail_20' ) start [2025-02-18 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500205', 'tblTempUsageDetail_20' ) end [2025-02-18 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500205', 'tblTempVendorCDR_20' ) start [2025-02-18 03:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500205', 'tblTempVendorCDR_20' ) end [2025-02-18 03:07:16] Production.INFO: ProcessCDR(1,14500205,1,1,2) [2025-02-18 03:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500205', 'tblTempUsageDetail_20' ) start [2025-02-18 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500205', 'tblTempUsageDetail_20' ) end [2025-02-18 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:07:20] Production.INFO: ==3237== Releasing lock... [2025-02-18 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:07:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:08:05 [end_date_ymd] => 2025-02-18 03:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:08:05' and `end` < '2025-02-18 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-18 03:08:09] Production.INFO: count ==0 [2025-02-18 03:08:09] Production.ERROR: pbx CDR StartTime 2025-02-18 00:08:05 - End Time 2025-02-18 03:08:05 [2025-02-18 03:08:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:08:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500210', 'tblTempUsageDetail_20' ) start [2025-02-18 03:08:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500210', 'tblTempUsageDetail_20' ) end [2025-02-18 03:08:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500210', 'tblTempVendorCDR_20' ) start [2025-02-18 03:08:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500210', 'tblTempVendorCDR_20' ) end [2025-02-18 03:08:09] Production.INFO: ProcessCDR(1,14500210,1,1,2) [2025-02-18 03:08:09] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:08:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:08:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:08:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:08:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500210', 'tblTempUsageDetail_20' ) start [2025-02-18 03:08:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500210', 'tblTempUsageDetail_20' ) end [2025-02-18 03:08:14] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:08:14] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:08:14] Production.INFO: ==3311== Releasing lock... [2025-02-18 03:08:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:08:14] Production.INFO: 27.5 MB #Memory Used# [2025-02-18 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:09:05 [end_date_ymd] => 2025-02-18 03:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:09:05' and `end` < '2025-02-18 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-18 03:09:20] Production.INFO: count ==831 [2025-02-18 03:09:21] Production.ERROR: pbx CDR StartTime 2025-02-18 00:09:05 - End Time 2025-02-18 03:09:05 [2025-02-18 03:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500215', 'tblTempUsageDetail_20' ) start [2025-02-18 03:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500215', 'tblTempUsageDetail_20' ) end [2025-02-18 03:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500215', 'tblTempVendorCDR_20' ) start [2025-02-18 03:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500215', 'tblTempVendorCDR_20' ) end [2025-02-18 03:09:21] Production.INFO: ProcessCDR(1,14500215,1,1,2) [2025-02-18 03:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500215', 'tblTempUsageDetail_20' ) start [2025-02-18 03:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500215', 'tblTempUsageDetail_20' ) end [2025-02-18 03:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:09:24] Production.INFO: ==3462== Releasing lock... [2025-02-18 03:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:09:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:10:06 [end_date_ymd] => 2025-02-18 03:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:10:06' and `end` < '2025-02-18 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-18 03:10:18] Production.INFO: count ==823 [2025-02-18 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:10:06 - End Time 2025-02-18 03:10:06 [2025-02-18 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500221', 'tblTempUsageDetail_20' ) start [2025-02-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500221', 'tblTempUsageDetail_20' ) end [2025-02-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500221', 'tblTempVendorCDR_20' ) start [2025-02-18 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500221', 'tblTempVendorCDR_20' ) end [2025-02-18 03:10:18] Production.INFO: ProcessCDR(1,14500221,1,1,2) [2025-02-18 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500221', 'tblTempUsageDetail_20' ) start [2025-02-18 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500221', 'tblTempUsageDetail_20' ) end [2025-02-18 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:10:21] Production.INFO: ==3534== Releasing lock... [2025-02-18 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:10:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:11:05 [end_date_ymd] => 2025-02-18 03:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:11:05' and `end` < '2025-02-18 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-18 03:11:17] Production.INFO: count ==821 [2025-02-18 03:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:11:05 - End Time 2025-02-18 03:11:05 [2025-02-18 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500226', 'tblTempUsageDetail_20' ) start [2025-02-18 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500226', 'tblTempUsageDetail_20' ) end [2025-02-18 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500226', 'tblTempVendorCDR_20' ) start [2025-02-18 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500226', 'tblTempVendorCDR_20' ) end [2025-02-18 03:11:17] Production.INFO: ProcessCDR(1,14500226,1,1,2) [2025-02-18 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500226', 'tblTempUsageDetail_20' ) start [2025-02-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500226', 'tblTempUsageDetail_20' ) end [2025-02-18 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:11:21] Production.INFO: ==3614== Releasing lock... [2025-02-18 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:12:05 [end_date_ymd] => 2025-02-18 03:12:05 [RateCDR] => 1 ) [2025-02-18 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:12:05' and `end` < '2025-02-18 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:12:16] Production.INFO: count ==821 [2025-02-18 03:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:12:05 - End Time 2025-02-18 03:12:05 [2025-02-18 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500231', 'tblTempUsageDetail_20' ) start [2025-02-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500231', 'tblTempUsageDetail_20' ) end [2025-02-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500231', 'tblTempVendorCDR_20' ) start [2025-02-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500231', 'tblTempVendorCDR_20' ) end [2025-02-18 03:12:17] Production.INFO: ProcessCDR(1,14500231,1,1,2) [2025-02-18 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500231', 'tblTempUsageDetail_20' ) start [2025-02-18 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500231', 'tblTempUsageDetail_20' ) end [2025-02-18 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:12:20] Production.INFO: ==3682== Releasing lock... [2025-02-18 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:12:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:13:05 [end_date_ymd] => 2025-02-18 03:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:13:05' and `end` < '2025-02-18 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-18 03:13:19] Production.INFO: count ==815 [2025-02-18 03:13:20] Production.ERROR: pbx CDR StartTime 2025-02-18 00:13:05 - End Time 2025-02-18 03:13:05 [2025-02-18 03:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500236', 'tblTempUsageDetail_20' ) start [2025-02-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500236', 'tblTempUsageDetail_20' ) end [2025-02-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500236', 'tblTempVendorCDR_20' ) start [2025-02-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500236', 'tblTempVendorCDR_20' ) end [2025-02-18 03:13:20] Production.INFO: ProcessCDR(1,14500236,1,1,2) [2025-02-18 03:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500236', 'tblTempUsageDetail_20' ) start [2025-02-18 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500236', 'tblTempUsageDetail_20' ) end [2025-02-18 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:13:23] Production.INFO: ==3831== Releasing lock... [2025-02-18 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:13:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:14:05 [end_date_ymd] => 2025-02-18 03:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:14:05' and `end` < '2025-02-18 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-18 03:14:16] Production.INFO: count ==815 [2025-02-18 03:14:16] Production.ERROR: pbx CDR StartTime 2025-02-18 00:14:05 - End Time 2025-02-18 03:14:05 [2025-02-18 03:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500241', 'tblTempUsageDetail_20' ) start [2025-02-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500241', 'tblTempUsageDetail_20' ) end [2025-02-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500241', 'tblTempVendorCDR_20' ) start [2025-02-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500241', 'tblTempVendorCDR_20' ) end [2025-02-18 03:14:17] Production.INFO: ProcessCDR(1,14500241,1,1,2) [2025-02-18 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500241', 'tblTempUsageDetail_20' ) start [2025-02-18 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500241', 'tblTempUsageDetail_20' ) end [2025-02-18 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:14:20] Production.INFO: ==3902== Releasing lock... [2025-02-18 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:14:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:15:05 [end_date_ymd] => 2025-02-18 03:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:15:05' and `end` < '2025-02-18 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-18 03:15:17] Production.INFO: count ==815 [2025-02-18 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:15:05 - End Time 2025-02-18 03:15:05 [2025-02-18 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500246', 'tblTempUsageDetail_20' ) start [2025-02-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500246', 'tblTempUsageDetail_20' ) end [2025-02-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500246', 'tblTempVendorCDR_20' ) start [2025-02-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500246', 'tblTempVendorCDR_20' ) end [2025-02-18 03:15:17] Production.INFO: ProcessCDR(1,14500246,1,1,2) [2025-02-18 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500246', 'tblTempUsageDetail_20' ) start [2025-02-18 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500246', 'tblTempUsageDetail_20' ) end [2025-02-18 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:15:21] Production.INFO: ==3977== Releasing lock... [2025-02-18 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:15:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:16:05 [end_date_ymd] => 2025-02-18 03:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:16:05' and `end` < '2025-02-18 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-18 03:16:16] Production.INFO: count ==816 [2025-02-18 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:16:05 - End Time 2025-02-18 03:16:05 [2025-02-18 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500251', 'tblTempUsageDetail_20' ) start [2025-02-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500251', 'tblTempUsageDetail_20' ) end [2025-02-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500251', 'tblTempVendorCDR_20' ) start [2025-02-18 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500251', 'tblTempVendorCDR_20' ) end [2025-02-18 03:16:17] Production.INFO: ProcessCDR(1,14500251,1,1,2) [2025-02-18 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500251', 'tblTempUsageDetail_20' ) start [2025-02-18 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500251', 'tblTempUsageDetail_20' ) end [2025-02-18 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:16:21] Production.INFO: ==4095== Releasing lock... [2025-02-18 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:16:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:17:05 [end_date_ymd] => 2025-02-18 03:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:17:05' and `end` < '2025-02-18 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-18 03:17:17] Production.INFO: count ==816 [2025-02-18 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:17:05 - End Time 2025-02-18 03:17:05 [2025-02-18 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500256', 'tblTempUsageDetail_20' ) start [2025-02-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500256', 'tblTempUsageDetail_20' ) end [2025-02-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500256', 'tblTempVendorCDR_20' ) start [2025-02-18 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500256', 'tblTempVendorCDR_20' ) end [2025-02-18 03:17:17] Production.INFO: ProcessCDR(1,14500256,1,1,2) [2025-02-18 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500256', 'tblTempUsageDetail_20' ) start [2025-02-18 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500256', 'tblTempUsageDetail_20' ) end [2025-02-18 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:17:20] Production.INFO: ==4247== Releasing lock... [2025-02-18 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:17:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:18:05 [end_date_ymd] => 2025-02-18 03:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:18:05' and `end` < '2025-02-18 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-18 03:18:16] Production.INFO: count ==820 [2025-02-18 03:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:18:05 - End Time 2025-02-18 03:18:05 [2025-02-18 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500261', 'tblTempUsageDetail_20' ) start [2025-02-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500261', 'tblTempUsageDetail_20' ) end [2025-02-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500261', 'tblTempVendorCDR_20' ) start [2025-02-18 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500261', 'tblTempVendorCDR_20' ) end [2025-02-18 03:18:17] Production.INFO: ProcessCDR(1,14500261,1,1,2) [2025-02-18 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500261', 'tblTempUsageDetail_20' ) start [2025-02-18 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500261', 'tblTempUsageDetail_20' ) end [2025-02-18 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:18:20] Production.INFO: ==4319== Releasing lock... [2025-02-18 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:18:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:19:05 [end_date_ymd] => 2025-02-18 03:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:19:05' and `end` < '2025-02-18 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-18 03:19:17] Production.INFO: count ==820 [2025-02-18 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:19:05 - End Time 2025-02-18 03:19:05 [2025-02-18 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500266', 'tblTempUsageDetail_20' ) start [2025-02-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500266', 'tblTempUsageDetail_20' ) end [2025-02-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500266', 'tblTempVendorCDR_20' ) start [2025-02-18 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500266', 'tblTempVendorCDR_20' ) end [2025-02-18 03:19:17] Production.INFO: ProcessCDR(1,14500266,1,1,2) [2025-02-18 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500266', 'tblTempUsageDetail_20' ) start [2025-02-18 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500266', 'tblTempUsageDetail_20' ) end [2025-02-18 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:19:20] Production.INFO: ==4397== Releasing lock... [2025-02-18 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:19:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:20:06 [end_date_ymd] => 2025-02-18 03:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:20:06' and `end` < '2025-02-18 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-18 03:20:18] Production.INFO: count ==812 [2025-02-18 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:20:06 - End Time 2025-02-18 03:20:06 [2025-02-18 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500271', 'tblTempUsageDetail_20' ) start [2025-02-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500271', 'tblTempUsageDetail_20' ) end [2025-02-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500271', 'tblTempVendorCDR_20' ) start [2025-02-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500271', 'tblTempVendorCDR_20' ) end [2025-02-18 03:20:18] Production.INFO: ProcessCDR(1,14500271,1,1,2) [2025-02-18 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500271', 'tblTempUsageDetail_20' ) start [2025-02-18 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500271', 'tblTempUsageDetail_20' ) end [2025-02-18 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:20:22] Production.INFO: ==4515== Releasing lock... [2025-02-18 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:20:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:21:05 [end_date_ymd] => 2025-02-18 03:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:21:05' and `end` < '2025-02-18 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-18 03:21:16] Production.INFO: count ==794 [2025-02-18 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:21:05 - End Time 2025-02-18 03:21:05 [2025-02-18 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500277', 'tblTempUsageDetail_20' ) start [2025-02-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500277', 'tblTempUsageDetail_20' ) end [2025-02-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500277', 'tblTempVendorCDR_20' ) start [2025-02-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500277', 'tblTempVendorCDR_20' ) end [2025-02-18 03:21:17] Production.INFO: ProcessCDR(1,14500277,1,1,2) [2025-02-18 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500277', 'tblTempUsageDetail_20' ) start [2025-02-18 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500277', 'tblTempUsageDetail_20' ) end [2025-02-18 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:21:20] Production.INFO: ==4599== Releasing lock... [2025-02-18 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:21:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:22:05 [end_date_ymd] => 2025-02-18 03:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:22:05' and `end` < '2025-02-18 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-18 03:22:17] Production.INFO: count ==790 [2025-02-18 03:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:22:05 - End Time 2025-02-18 03:22:05 [2025-02-18 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500282', 'tblTempUsageDetail_20' ) start [2025-02-18 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500282', 'tblTempUsageDetail_20' ) end [2025-02-18 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500282', 'tblTempVendorCDR_20' ) start [2025-02-18 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500282', 'tblTempVendorCDR_20' ) end [2025-02-18 03:22:17] Production.INFO: ProcessCDR(1,14500282,1,1,2) [2025-02-18 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500282', 'tblTempUsageDetail_20' ) start [2025-02-18 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500282', 'tblTempUsageDetail_20' ) end [2025-02-18 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:22:21] Production.INFO: ==4675== Releasing lock... [2025-02-18 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:22:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:23:05 [end_date_ymd] => 2025-02-18 03:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:23:05' and `end` < '2025-02-18 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-18 03:23:17] Production.INFO: count ==790 [2025-02-18 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:23:05 - End Time 2025-02-18 03:23:05 [2025-02-18 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500287', 'tblTempUsageDetail_20' ) start [2025-02-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500287', 'tblTempUsageDetail_20' ) end [2025-02-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500287', 'tblTempVendorCDR_20' ) start [2025-02-18 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500287', 'tblTempVendorCDR_20' ) end [2025-02-18 03:23:17] Production.INFO: ProcessCDR(1,14500287,1,1,2) [2025-02-18 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500287', 'tblTempUsageDetail_20' ) start [2025-02-18 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500287', 'tblTempUsageDetail_20' ) end [2025-02-18 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:23:20] Production.INFO: ==4754== Releasing lock... [2025-02-18 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:23:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:24:06 [end_date_ymd] => 2025-02-18 03:24:06 [RateCDR] => 1 ) [2025-02-18 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:24:06' and `end` < '2025-02-18 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:24:17] Production.INFO: count ==790 [2025-02-18 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:24:06 - End Time 2025-02-18 03:24:06 [2025-02-18 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500292', 'tblTempUsageDetail_20' ) start [2025-02-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500292', 'tblTempUsageDetail_20' ) end [2025-02-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500292', 'tblTempVendorCDR_20' ) start [2025-02-18 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500292', 'tblTempVendorCDR_20' ) end [2025-02-18 03:24:18] Production.INFO: ProcessCDR(1,14500292,1,1,2) [2025-02-18 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500292', 'tblTempUsageDetail_20' ) start [2025-02-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500292', 'tblTempUsageDetail_20' ) end [2025-02-18 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:24:21] Production.INFO: ==4834== Releasing lock... [2025-02-18 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:24:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:25:05 [end_date_ymd] => 2025-02-18 03:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:25:05' and `end` < '2025-02-18 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-18 03:25:17] Production.INFO: count ==790 [2025-02-18 03:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:25:05 - End Time 2025-02-18 03:25:05 [2025-02-18 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500297', 'tblTempUsageDetail_20' ) start [2025-02-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500297', 'tblTempUsageDetail_20' ) end [2025-02-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500297', 'tblTempVendorCDR_20' ) start [2025-02-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500297', 'tblTempVendorCDR_20' ) end [2025-02-18 03:25:17] Production.INFO: ProcessCDR(1,14500297,1,1,2) [2025-02-18 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500297', 'tblTempUsageDetail_20' ) start [2025-02-18 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500297', 'tblTempUsageDetail_20' ) end [2025-02-18 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:25:21] Production.INFO: ==4914== Releasing lock... [2025-02-18 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:25:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:26:05 [end_date_ymd] => 2025-02-18 03:26:05 [RateCDR] => 1 ) [2025-02-18 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:26:05' and `end` < '2025-02-18 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:26:17] Production.INFO: count ==787 [2025-02-18 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:26:05 - End Time 2025-02-18 03:26:05 [2025-02-18 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500302', 'tblTempUsageDetail_20' ) start [2025-02-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500302', 'tblTempUsageDetail_20' ) end [2025-02-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500302', 'tblTempVendorCDR_20' ) start [2025-02-18 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500302', 'tblTempVendorCDR_20' ) end [2025-02-18 03:26:17] Production.INFO: ProcessCDR(1,14500302,1,1,2) [2025-02-18 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500302', 'tblTempUsageDetail_20' ) start [2025-02-18 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500302', 'tblTempUsageDetail_20' ) end [2025-02-18 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:26:21] Production.INFO: ==4990== Releasing lock... [2025-02-18 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:27:05 [end_date_ymd] => 2025-02-18 03:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:27:05' and `end` < '2025-02-18 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-18 03:27:17] Production.INFO: count ==784 [2025-02-18 03:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:27:05 - End Time 2025-02-18 03:27:05 [2025-02-18 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500307', 'tblTempUsageDetail_20' ) start [2025-02-18 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500307', 'tblTempUsageDetail_20' ) end [2025-02-18 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500307', 'tblTempVendorCDR_20' ) start [2025-02-18 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500307', 'tblTempVendorCDR_20' ) end [2025-02-18 03:27:17] Production.INFO: ProcessCDR(1,14500307,1,1,2) [2025-02-18 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500307', 'tblTempUsageDetail_20' ) start [2025-02-18 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500307', 'tblTempUsageDetail_20' ) end [2025-02-18 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:27:20] Production.INFO: ==5066== Releasing lock... [2025-02-18 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:27:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:28:05 [end_date_ymd] => 2025-02-18 03:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:28:05' and `end` < '2025-02-18 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-18 03:28:16] Production.INFO: count ==782 [2025-02-18 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:28:05 - End Time 2025-02-18 03:28:05 [2025-02-18 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500312', 'tblTempUsageDetail_20' ) start [2025-02-18 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500312', 'tblTempUsageDetail_20' ) end [2025-02-18 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500312', 'tblTempVendorCDR_20' ) start [2025-02-18 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500312', 'tblTempVendorCDR_20' ) end [2025-02-18 03:28:17] Production.INFO: ProcessCDR(1,14500312,1,1,2) [2025-02-18 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500312', 'tblTempUsageDetail_20' ) start [2025-02-18 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500312', 'tblTempUsageDetail_20' ) end [2025-02-18 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:28:20] Production.INFO: ==5142== Releasing lock... [2025-02-18 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:28:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:29:05 [end_date_ymd] => 2025-02-18 03:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:29:05' and `end` < '2025-02-18 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-18 03:29:16] Production.INFO: count ==782 [2025-02-18 03:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:29:05 - End Time 2025-02-18 03:29:05 [2025-02-18 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500317', 'tblTempUsageDetail_20' ) start [2025-02-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500317', 'tblTempUsageDetail_20' ) end [2025-02-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500317', 'tblTempVendorCDR_20' ) start [2025-02-18 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500317', 'tblTempVendorCDR_20' ) end [2025-02-18 03:29:17] Production.INFO: ProcessCDR(1,14500317,1,1,2) [2025-02-18 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500317', 'tblTempUsageDetail_20' ) start [2025-02-18 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500317', 'tblTempUsageDetail_20' ) end [2025-02-18 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:29:20] Production.INFO: ==5219== Releasing lock... [2025-02-18 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:29:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:30:06 [end_date_ymd] => 2025-02-18 03:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:30:06' and `end` < '2025-02-18 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-18 03:30:17] Production.INFO: count ==773 [2025-02-18 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:30:06 - End Time 2025-02-18 03:30:06 [2025-02-18 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500322', 'tblTempUsageDetail_20' ) start [2025-02-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500322', 'tblTempUsageDetail_20' ) end [2025-02-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500322', 'tblTempVendorCDR_20' ) start [2025-02-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500322', 'tblTempVendorCDR_20' ) end [2025-02-18 03:30:18] Production.INFO: ProcessCDR(1,14500322,1,1,2) [2025-02-18 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500322', 'tblTempUsageDetail_20' ) start [2025-02-18 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500322', 'tblTempUsageDetail_20' ) end [2025-02-18 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:30:21] Production.INFO: ==5307== Releasing lock... [2025-02-18 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:30:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:31:05 [end_date_ymd] => 2025-02-18 03:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:31:05' and `end` < '2025-02-18 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-18 03:31:17] Production.INFO: count ==761 [2025-02-18 03:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:31:05 - End Time 2025-02-18 03:31:05 [2025-02-18 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500328', 'tblTempUsageDetail_20' ) start [2025-02-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500328', 'tblTempUsageDetail_20' ) end [2025-02-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500328', 'tblTempVendorCDR_20' ) start [2025-02-18 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500328', 'tblTempVendorCDR_20' ) end [2025-02-18 03:31:17] Production.INFO: ProcessCDR(1,14500328,1,1,2) [2025-02-18 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500328', 'tblTempUsageDetail_20' ) start [2025-02-18 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500328', 'tblTempUsageDetail_20' ) end [2025-02-18 03:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:31:20] Production.INFO: ==5392== Releasing lock... [2025-02-18 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:31:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:32:06 [end_date_ymd] => 2025-02-18 03:32:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:32:06' and `end` < '2025-02-18 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-18 03:32:17] Production.INFO: count ==761 [2025-02-18 03:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:32:06 - End Time 2025-02-18 03:32:06 [2025-02-18 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500333', 'tblTempUsageDetail_20' ) start [2025-02-18 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500333', 'tblTempUsageDetail_20' ) end [2025-02-18 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500333', 'tblTempVendorCDR_20' ) start [2025-02-18 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500333', 'tblTempVendorCDR_20' ) end [2025-02-18 03:32:17] Production.INFO: ProcessCDR(1,14500333,1,1,2) [2025-02-18 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500333', 'tblTempUsageDetail_20' ) start [2025-02-18 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500333', 'tblTempUsageDetail_20' ) end [2025-02-18 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:32:21] Production.INFO: ==5473== Releasing lock... [2025-02-18 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:32:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:33:05 [end_date_ymd] => 2025-02-18 03:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:33:05' and `end` < '2025-02-18 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-18 03:33:16] Production.INFO: count ==760 [2025-02-18 03:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:33:05 - End Time 2025-02-18 03:33:05 [2025-02-18 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500338', 'tblTempUsageDetail_20' ) start [2025-02-18 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500338', 'tblTempUsageDetail_20' ) end [2025-02-18 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500338', 'tblTempVendorCDR_20' ) start [2025-02-18 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500338', 'tblTempVendorCDR_20' ) end [2025-02-18 03:33:17] Production.INFO: ProcessCDR(1,14500338,1,1,2) [2025-02-18 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500338', 'tblTempUsageDetail_20' ) start [2025-02-18 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500338', 'tblTempUsageDetail_20' ) end [2025-02-18 03:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:33:20] Production.INFO: ==5593== Releasing lock... [2025-02-18 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:33:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:34:06 [end_date_ymd] => 2025-02-18 03:34:06 [RateCDR] => 1 ) [2025-02-18 03: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-18 00:34:06' and `end` < '2025-02-18 03: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-18 03:34:17] Production.INFO: count ==761 [2025-02-18 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:34:06 - End Time 2025-02-18 03:34:06 [2025-02-18 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500343', 'tblTempUsageDetail_20' ) start [2025-02-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500343', 'tblTempUsageDetail_20' ) end [2025-02-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500343', 'tblTempVendorCDR_20' ) start [2025-02-18 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500343', 'tblTempVendorCDR_20' ) end [2025-02-18 03:34:18] Production.INFO: ProcessCDR(1,14500343,1,1,2) [2025-02-18 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500343', 'tblTempUsageDetail_20' ) start [2025-02-18 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500343', 'tblTempUsageDetail_20' ) end [2025-02-18 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:34:23] Production.INFO: ==5676== Releasing lock... [2025-02-18 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:34:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:35:06 [end_date_ymd] => 2025-02-18 03:35:06 [RateCDR] => 1 ) [2025-02-18 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:35:06' and `end` < '2025-02-18 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:35:18] Production.INFO: count ==761 [2025-02-18 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:35:06 - End Time 2025-02-18 03:35:06 [2025-02-18 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500348', 'tblTempUsageDetail_20' ) start [2025-02-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500348', 'tblTempUsageDetail_20' ) end [2025-02-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500348', 'tblTempVendorCDR_20' ) start [2025-02-18 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500348', 'tblTempVendorCDR_20' ) end [2025-02-18 03:35:18] Production.INFO: ProcessCDR(1,14500348,1,1,2) [2025-02-18 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500348', 'tblTempUsageDetail_20' ) start [2025-02-18 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500348', 'tblTempUsageDetail_20' ) end [2025-02-18 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:35:22] Production.INFO: ==5755== Releasing lock... [2025-02-18 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:36:05 [end_date_ymd] => 2025-02-18 03:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:36:05' and `end` < '2025-02-18 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-18 03:36:17] Production.INFO: count ==752 [2025-02-18 03:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:36:05 - End Time 2025-02-18 03:36:05 [2025-02-18 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500353', 'tblTempUsageDetail_20' ) start [2025-02-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500353', 'tblTempUsageDetail_20' ) end [2025-02-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500353', 'tblTempVendorCDR_20' ) start [2025-02-18 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500353', 'tblTempVendorCDR_20' ) end [2025-02-18 03:36:17] Production.INFO: ProcessCDR(1,14500353,1,1,2) [2025-02-18 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500353', 'tblTempUsageDetail_20' ) start [2025-02-18 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500353', 'tblTempUsageDetail_20' ) end [2025-02-18 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:36:21] Production.INFO: ==5839== Releasing lock... [2025-02-18 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:37:06 [end_date_ymd] => 2025-02-18 03:37:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:37:06' and `end` < '2025-02-18 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-18 03:37:17] Production.INFO: count ==752 [2025-02-18 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:37:06 - End Time 2025-02-18 03:37:06 [2025-02-18 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500358', 'tblTempUsageDetail_20' ) start [2025-02-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500358', 'tblTempUsageDetail_20' ) end [2025-02-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500358', 'tblTempVendorCDR_20' ) start [2025-02-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500358', 'tblTempVendorCDR_20' ) end [2025-02-18 03:37:18] Production.INFO: ProcessCDR(1,14500358,1,1,2) [2025-02-18 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500358', 'tblTempUsageDetail_20' ) start [2025-02-18 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500358', 'tblTempUsageDetail_20' ) end [2025-02-18 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:37:21] Production.INFO: ==5923== Releasing lock... [2025-02-18 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:38:05 [end_date_ymd] => 2025-02-18 03:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:38:05' and `end` < '2025-02-18 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-18 03:38:17] Production.INFO: count ==748 [2025-02-18 03:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:38:05 - End Time 2025-02-18 03:38:05 [2025-02-18 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500363', 'tblTempUsageDetail_20' ) start [2025-02-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500363', 'tblTempUsageDetail_20' ) end [2025-02-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500363', 'tblTempVendorCDR_20' ) start [2025-02-18 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500363', 'tblTempVendorCDR_20' ) end [2025-02-18 03:38:17] Production.INFO: ProcessCDR(1,14500363,1,1,2) [2025-02-18 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500363', 'tblTempUsageDetail_20' ) start [2025-02-18 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500363', 'tblTempUsageDetail_20' ) end [2025-02-18 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:38:21] Production.INFO: ==6003== Releasing lock... [2025-02-18 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:39:06 [end_date_ymd] => 2025-02-18 03:39:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:39:06' and `end` < '2025-02-18 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-18 03:39:17] Production.INFO: count ==746 [2025-02-18 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:39:06 - End Time 2025-02-18 03:39:06 [2025-02-18 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500368', 'tblTempUsageDetail_20' ) start [2025-02-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500368', 'tblTempUsageDetail_20' ) end [2025-02-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500368', 'tblTempVendorCDR_20' ) start [2025-02-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500368', 'tblTempVendorCDR_20' ) end [2025-02-18 03:39:18] Production.INFO: ProcessCDR(1,14500368,1,1,2) [2025-02-18 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500368', 'tblTempUsageDetail_20' ) start [2025-02-18 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500368', 'tblTempUsageDetail_20' ) end [2025-02-18 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:39:21] Production.INFO: ==6085== Releasing lock... [2025-02-18 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:39:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:40:06 [end_date_ymd] => 2025-02-18 03:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:40:06' and `end` < '2025-02-18 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-18 03:40:18] Production.INFO: count ==737 [2025-02-18 03:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:40:06 - End Time 2025-02-18 03:40:06 [2025-02-18 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500373', 'tblTempUsageDetail_20' ) start [2025-02-18 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500373', 'tblTempUsageDetail_20' ) end [2025-02-18 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500373', 'tblTempVendorCDR_20' ) start [2025-02-18 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500373', 'tblTempVendorCDR_20' ) end [2025-02-18 03:40:18] Production.INFO: ProcessCDR(1,14500373,1,1,2) [2025-02-18 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500373', 'tblTempUsageDetail_20' ) start [2025-02-18 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500373', 'tblTempUsageDetail_20' ) end [2025-02-18 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:40:22] Production.INFO: ==6170== Releasing lock... [2025-02-18 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:41:05 [end_date_ymd] => 2025-02-18 03:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:41:05' and `end` < '2025-02-18 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-18 03:41:17] Production.INFO: count ==733 [2025-02-18 03:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:41:05 - End Time 2025-02-18 03:41:05 [2025-02-18 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500379', 'tblTempUsageDetail_20' ) start [2025-02-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500379', 'tblTempUsageDetail_20' ) end [2025-02-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500379', 'tblTempVendorCDR_20' ) start [2025-02-18 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500379', 'tblTempVendorCDR_20' ) end [2025-02-18 03:41:17] Production.INFO: ProcessCDR(1,14500379,1,1,2) [2025-02-18 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500379', 'tblTempUsageDetail_20' ) start [2025-02-18 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500379', 'tblTempUsageDetail_20' ) end [2025-02-18 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:41:21] Production.INFO: ==6255== Releasing lock... [2025-02-18 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:41:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:42:06 [end_date_ymd] => 2025-02-18 03:42:06 [RateCDR] => 1 ) [2025-02-18 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:42:06' and `end` < '2025-02-18 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:42:17] Production.INFO: count ==733 [2025-02-18 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:42:06 - End Time 2025-02-18 03:42:06 [2025-02-18 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500384', 'tblTempUsageDetail_20' ) start [2025-02-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500384', 'tblTempUsageDetail_20' ) end [2025-02-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500384', 'tblTempVendorCDR_20' ) start [2025-02-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500384', 'tblTempVendorCDR_20' ) end [2025-02-18 03:42:18] Production.INFO: ProcessCDR(1,14500384,1,1,2) [2025-02-18 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500384', 'tblTempUsageDetail_20' ) start [2025-02-18 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500384', 'tblTempUsageDetail_20' ) end [2025-02-18 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:42:21] Production.INFO: ==6338== Releasing lock... [2025-02-18 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:42:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:43:05 [end_date_ymd] => 2025-02-18 03:43:05 [RateCDR] => 1 ) [2025-02-18 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:43:05' and `end` < '2025-02-18 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:43:17] Production.INFO: count ==733 [2025-02-18 03:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:43:05 - End Time 2025-02-18 03:43:05 [2025-02-18 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500389', 'tblTempUsageDetail_20' ) start [2025-02-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500389', 'tblTempUsageDetail_20' ) end [2025-02-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500389', 'tblTempVendorCDR_20' ) start [2025-02-18 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500389', 'tblTempVendorCDR_20' ) end [2025-02-18 03:43:17] Production.INFO: ProcessCDR(1,14500389,1,1,2) [2025-02-18 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500389', 'tblTempUsageDetail_20' ) start [2025-02-18 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500389', 'tblTempUsageDetail_20' ) end [2025-02-18 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:43:21] Production.INFO: ==6416== Releasing lock... [2025-02-18 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:43:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:44:05 [end_date_ymd] => 2025-02-18 03:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:44:05' and `end` < '2025-02-18 03: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-18 03:44:17] Production.INFO: count ==732 [2025-02-18 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:44:05 - End Time 2025-02-18 03:44:05 [2025-02-18 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500394', 'tblTempUsageDetail_20' ) start [2025-02-18 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500394', 'tblTempUsageDetail_20' ) end [2025-02-18 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500394', 'tblTempVendorCDR_20' ) start [2025-02-18 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500394', 'tblTempVendorCDR_20' ) end [2025-02-18 03:44:17] Production.INFO: ProcessCDR(1,14500394,1,1,2) [2025-02-18 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500394', 'tblTempUsageDetail_20' ) start [2025-02-18 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500394', 'tblTempUsageDetail_20' ) end [2025-02-18 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:44:21] Production.INFO: ==6500== Releasing lock... [2025-02-18 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:44:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:45:05 [end_date_ymd] => 2025-02-18 03:45:05 [RateCDR] => 1 ) [2025-02-18 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:45:05' and `end` < '2025-02-18 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:45:17] Production.INFO: count ==732 [2025-02-18 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:45:05 - End Time 2025-02-18 03:45:05 [2025-02-18 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500399', 'tblTempUsageDetail_20' ) start [2025-02-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500399', 'tblTempUsageDetail_20' ) end [2025-02-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500399', 'tblTempVendorCDR_20' ) start [2025-02-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500399', 'tblTempVendorCDR_20' ) end [2025-02-18 03:45:17] Production.INFO: ProcessCDR(1,14500399,1,1,2) [2025-02-18 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500399', 'tblTempUsageDetail_20' ) start [2025-02-18 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500399', 'tblTempUsageDetail_20' ) end [2025-02-18 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:45:21] Production.INFO: ==6585== Releasing lock... [2025-02-18 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:45:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:46:05 [end_date_ymd] => 2025-02-18 03:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:46:05' and `end` < '2025-02-18 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-18 03:46:17] Production.INFO: count ==732 [2025-02-18 03:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:46:05 - End Time 2025-02-18 03:46:05 [2025-02-18 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500404', 'tblTempUsageDetail_20' ) start [2025-02-18 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500404', 'tblTempUsageDetail_20' ) end [2025-02-18 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500404', 'tblTempVendorCDR_20' ) start [2025-02-18 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500404', 'tblTempVendorCDR_20' ) end [2025-02-18 03:46:17] Production.INFO: ProcessCDR(1,14500404,1,1,2) [2025-02-18 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500404', 'tblTempUsageDetail_20' ) start [2025-02-18 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500404', 'tblTempUsageDetail_20' ) end [2025-02-18 03:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:46:20] Production.INFO: ==6668== Releasing lock... [2025-02-18 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:46:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:47:05 [end_date_ymd] => 2025-02-18 03:47:05 [RateCDR] => 1 ) [2025-02-18 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:47:05' and `end` < '2025-02-18 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:47:16] Production.INFO: count ==733 [2025-02-18 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:47:05 - End Time 2025-02-18 03:47:05 [2025-02-18 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500409', 'tblTempUsageDetail_20' ) start [2025-02-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500409', 'tblTempUsageDetail_20' ) end [2025-02-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500409', 'tblTempVendorCDR_20' ) start [2025-02-18 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500409', 'tblTempVendorCDR_20' ) end [2025-02-18 03:47:17] Production.INFO: ProcessCDR(1,14500409,1,1,2) [2025-02-18 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500409', 'tblTempUsageDetail_20' ) start [2025-02-18 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500409', 'tblTempUsageDetail_20' ) end [2025-02-18 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:47:21] Production.INFO: ==6740== Releasing lock... [2025-02-18 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:48:06 [end_date_ymd] => 2025-02-18 03:48:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:48:06' and `end` < '2025-02-18 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-18 03:48:17] Production.INFO: count ==733 [2025-02-18 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:48:06 - End Time 2025-02-18 03:48:06 [2025-02-18 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500414', 'tblTempUsageDetail_20' ) start [2025-02-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500414', 'tblTempUsageDetail_20' ) end [2025-02-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500414', 'tblTempVendorCDR_20' ) start [2025-02-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500414', 'tblTempVendorCDR_20' ) end [2025-02-18 03:48:18] Production.INFO: ProcessCDR(1,14500414,1,1,2) [2025-02-18 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500414', 'tblTempUsageDetail_20' ) start [2025-02-18 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500414', 'tblTempUsageDetail_20' ) end [2025-02-18 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:48:21] Production.INFO: ==6859== Releasing lock... [2025-02-18 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:49:05 [end_date_ymd] => 2025-02-18 03:49:05 [RateCDR] => 1 ) [2025-02-18 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:49:05' and `end` < '2025-02-18 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:49:17] Production.INFO: count ==733 [2025-02-18 03:49:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:49:05 - End Time 2025-02-18 03:49:05 [2025-02-18 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500419', 'tblTempUsageDetail_20' ) start [2025-02-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500419', 'tblTempUsageDetail_20' ) end [2025-02-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500419', 'tblTempVendorCDR_20' ) start [2025-02-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500419', 'tblTempVendorCDR_20' ) end [2025-02-18 03:49:17] Production.INFO: ProcessCDR(1,14500419,1,1,2) [2025-02-18 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500419', 'tblTempUsageDetail_20' ) start [2025-02-18 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500419', 'tblTempUsageDetail_20' ) end [2025-02-18 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:49:20] Production.INFO: ==6953== Releasing lock... [2025-02-18 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:49:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:50:06 [end_date_ymd] => 2025-02-18 03:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:50:06' and `end` < '2025-02-18 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-18 03:50:18] Production.INFO: count ==733 [2025-02-18 03:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:50:06 - End Time 2025-02-18 03:50:06 [2025-02-18 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500425', 'tblTempUsageDetail_20' ) start [2025-02-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500425', 'tblTempUsageDetail_20' ) end [2025-02-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500425', 'tblTempVendorCDR_20' ) start [2025-02-18 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500425', 'tblTempVendorCDR_20' ) end [2025-02-18 03:50:18] Production.INFO: ProcessCDR(1,14500425,1,1,2) [2025-02-18 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500425', 'tblTempUsageDetail_20' ) start [2025-02-18 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500425', 'tblTempUsageDetail_20' ) end [2025-02-18 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:50:22] Production.INFO: ==7037== Releasing lock... [2025-02-18 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:51:05 [end_date_ymd] => 2025-02-18 03:51:05 [RateCDR] => 1 ) [2025-02-18 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:51:05' and `end` < '2025-02-18 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:51:16] Production.INFO: count ==733 [2025-02-18 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:51:05 - End Time 2025-02-18 03:51:05 [2025-02-18 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500430', 'tblTempUsageDetail_20' ) start [2025-02-18 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500430', 'tblTempUsageDetail_20' ) end [2025-02-18 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500430', 'tblTempVendorCDR_20' ) start [2025-02-18 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500430', 'tblTempVendorCDR_20' ) end [2025-02-18 03:51:17] Production.INFO: ProcessCDR(1,14500430,1,1,2) [2025-02-18 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500430', 'tblTempUsageDetail_20' ) start [2025-02-18 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500430', 'tblTempUsageDetail_20' ) end [2025-02-18 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:51:20] Production.INFO: ==7117== Releasing lock... [2025-02-18 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:51:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:52:06 [end_date_ymd] => 2025-02-18 03:52:06 [RateCDR] => 1 ) [2025-02-18 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:52:06' and `end` < '2025-02-18 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:52:17] Production.INFO: count ==733 [2025-02-18 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:52:06 - End Time 2025-02-18 03:52:06 [2025-02-18 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500435', 'tblTempUsageDetail_20' ) start [2025-02-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500435', 'tblTempUsageDetail_20' ) end [2025-02-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500435', 'tblTempVendorCDR_20' ) start [2025-02-18 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500435', 'tblTempVendorCDR_20' ) end [2025-02-18 03:52:18] Production.INFO: ProcessCDR(1,14500435,1,1,2) [2025-02-18 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500435', 'tblTempUsageDetail_20' ) start [2025-02-18 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500435', 'tblTempUsageDetail_20' ) end [2025-02-18 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:52:21] Production.INFO: ==7204== Releasing lock... [2025-02-18 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:53:06 [end_date_ymd] => 2025-02-18 03:53:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:53:06' and `end` < '2025-02-18 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-18 03:53:18] Production.INFO: count ==733 [2025-02-18 03:53:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:53:06 - End Time 2025-02-18 03:53:06 [2025-02-18 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500440', 'tblTempUsageDetail_20' ) start [2025-02-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500440', 'tblTempUsageDetail_20' ) end [2025-02-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500440', 'tblTempVendorCDR_20' ) start [2025-02-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500440', 'tblTempVendorCDR_20' ) end [2025-02-18 03:53:18] Production.INFO: ProcessCDR(1,14500440,1,1,2) [2025-02-18 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500440', 'tblTempUsageDetail_20' ) start [2025-02-18 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500440', 'tblTempUsageDetail_20' ) end [2025-02-18 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:53:21] Production.INFO: ==7290== Releasing lock... [2025-02-18 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:54:06 [end_date_ymd] => 2025-02-18 03:54:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:54:06' and `end` < '2025-02-18 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-18 03:54:17] Production.INFO: count ==733 [2025-02-18 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:54:06 - End Time 2025-02-18 03:54:06 [2025-02-18 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500445', 'tblTempUsageDetail_20' ) start [2025-02-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500445', 'tblTempUsageDetail_20' ) end [2025-02-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500445', 'tblTempVendorCDR_20' ) start [2025-02-18 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500445', 'tblTempVendorCDR_20' ) end [2025-02-18 03:54:18] Production.INFO: ProcessCDR(1,14500445,1,1,2) [2025-02-18 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500445', 'tblTempUsageDetail_20' ) start [2025-02-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500445', 'tblTempUsageDetail_20' ) end [2025-02-18 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:54:21] Production.INFO: ==7363== Releasing lock... [2025-02-18 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:55:05 [end_date_ymd] => 2025-02-18 03:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:55:05' and `end` < '2025-02-18 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-18 03:55:17] Production.INFO: count ==730 [2025-02-18 03:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:55:05 - End Time 2025-02-18 03:55:05 [2025-02-18 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500450', 'tblTempUsageDetail_20' ) start [2025-02-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500450', 'tblTempUsageDetail_20' ) end [2025-02-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500450', 'tblTempVendorCDR_20' ) start [2025-02-18 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500450', 'tblTempVendorCDR_20' ) end [2025-02-18 03:55:17] Production.INFO: ProcessCDR(1,14500450,1,1,2) [2025-02-18 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500450', 'tblTempUsageDetail_20' ) start [2025-02-18 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500450', 'tblTempUsageDetail_20' ) end [2025-02-18 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:55:21] Production.INFO: ==7446== Releasing lock... [2025-02-18 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:56:06 [end_date_ymd] => 2025-02-18 03:56:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:56:06' and `end` < '2025-02-18 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-18 03:56:17] Production.INFO: count ==729 [2025-02-18 03:56:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:56:06 - End Time 2025-02-18 03:56:06 [2025-02-18 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500455', 'tblTempUsageDetail_20' ) start [2025-02-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500455', 'tblTempUsageDetail_20' ) end [2025-02-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500455', 'tblTempVendorCDR_20' ) start [2025-02-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500455', 'tblTempVendorCDR_20' ) end [2025-02-18 03:56:18] Production.INFO: ProcessCDR(1,14500455,1,1,2) [2025-02-18 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500455', 'tblTempUsageDetail_20' ) start [2025-02-18 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500455', 'tblTempUsageDetail_20' ) end [2025-02-18 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:56:22] Production.INFO: ==7526== Releasing lock... [2025-02-18 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:57:06 [end_date_ymd] => 2025-02-18 03:57:06 [RateCDR] => 1 ) [2025-02-18 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-18 00:57:06' and `end` < '2025-02-18 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-18 03:57:17] Production.INFO: count ==729 [2025-02-18 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:57:06 - End Time 2025-02-18 03:57:06 [2025-02-18 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500460', 'tblTempUsageDetail_20' ) start [2025-02-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500460', 'tblTempUsageDetail_20' ) end [2025-02-18 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500460', 'tblTempVendorCDR_20' ) start [2025-02-18 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500460', 'tblTempVendorCDR_20' ) end [2025-02-18 03:57:18] Production.INFO: ProcessCDR(1,14500460,1,1,2) [2025-02-18 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500460', 'tblTempUsageDetail_20' ) start [2025-02-18 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500460', 'tblTempUsageDetail_20' ) end [2025-02-18 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:57:21] Production.INFO: ==7602== Releasing lock... [2025-02-18 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:58:06 [end_date_ymd] => 2025-02-18 03:58:06 [RateCDR] => 1 ) [2025-02-18 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 00:58:06' and `end` < '2025-02-18 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 03:58:17] Production.INFO: count ==729 [2025-02-18 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-18 00:58:06 - End Time 2025-02-18 03:58:06 [2025-02-18 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500465', 'tblTempUsageDetail_20' ) start [2025-02-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500465', 'tblTempUsageDetail_20' ) end [2025-02-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500465', 'tblTempVendorCDR_20' ) start [2025-02-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500465', 'tblTempVendorCDR_20' ) end [2025-02-18 03:58:18] Production.INFO: ProcessCDR(1,14500465,1,1,2) [2025-02-18 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500465', 'tblTempUsageDetail_20' ) start [2025-02-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500465', 'tblTempUsageDetail_20' ) end [2025-02-18 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:58:21] Production.INFO: ==7680== Releasing lock... [2025-02-18 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 00:59:05 [end_date_ymd] => 2025-02-18 03:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 00:59:05' and `end` < '2025-02-18 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-18 03:59:17] Production.INFO: count ==729 [2025-02-18 03:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 00:59:05 - End Time 2025-02-18 03:59:05 [2025-02-18 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500470', 'tblTempUsageDetail_20' ) start [2025-02-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500470', 'tblTempUsageDetail_20' ) end [2025-02-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500470', 'tblTempVendorCDR_20' ) start [2025-02-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500470', 'tblTempVendorCDR_20' ) end [2025-02-18 03:59:17] Production.INFO: ProcessCDR(1,14500470,1,1,2) [2025-02-18 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500470', 'tblTempUsageDetail_20' ) start [2025-02-18 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500470', 'tblTempUsageDetail_20' ) end [2025-02-18 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 03:59:21] Production.INFO: ==7756== Releasing lock... [2025-02-18 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 03:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:00:07 [end_date_ymd] => 2025-02-18 04:00:07 [RateCDR] => 1 ) [2025-02-18 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-18 01:00:07' and `end` < '2025-02-18 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-18 04:00:19] Production.INFO: count ==719 [2025-02-18 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-18 01:00:07 - End Time 2025-02-18 04:00:07 [2025-02-18 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500477', 'tblTempUsageDetail_20' ) start [2025-02-18 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500477', 'tblTempUsageDetail_20' ) end [2025-02-18 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500477', 'tblTempVendorCDR_20' ) start [2025-02-18 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500477', 'tblTempVendorCDR_20' ) end [2025-02-18 04:00:20] Production.INFO: ProcessCDR(1,14500477,1,1,2) [2025-02-18 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500477', 'tblTempUsageDetail_20' ) start [2025-02-18 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500477', 'tblTempUsageDetail_20' ) end [2025-02-18 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:00:25] Production.INFO: ==7838== Releasing lock... [2025-02-18 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:00:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:01:06 [end_date_ymd] => 2025-02-18 04:01:06 [RateCDR] => 1 ) [2025-02-18 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:01:06' and `end` < '2025-02-18 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:01:17] Production.INFO: count ==717 [2025-02-18 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:01:06 - End Time 2025-02-18 04:01:06 [2025-02-18 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500482', 'tblTempUsageDetail_20' ) start [2025-02-18 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500482', 'tblTempUsageDetail_20' ) end [2025-02-18 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500482', 'tblTempVendorCDR_20' ) start [2025-02-18 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500482', 'tblTempVendorCDR_20' ) end [2025-02-18 04:01:18] Production.INFO: ProcessCDR(1,14500482,1,1,2) [2025-02-18 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500482', 'tblTempUsageDetail_20' ) start [2025-02-18 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500482', 'tblTempUsageDetail_20' ) end [2025-02-18 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:01:21] Production.INFO: ==7927== Releasing lock... [2025-02-18 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:01:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:02:06 [end_date_ymd] => 2025-02-18 04:02:06 [RateCDR] => 1 ) [2025-02-18 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:02:06' and `end` < '2025-02-18 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:02:18] Production.INFO: count ==717 [2025-02-18 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:02:06 - End Time 2025-02-18 04:02:06 [2025-02-18 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500487', 'tblTempUsageDetail_20' ) start [2025-02-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500487', 'tblTempUsageDetail_20' ) end [2025-02-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500487', 'tblTempVendorCDR_20' ) start [2025-02-18 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500487', 'tblTempVendorCDR_20' ) end [2025-02-18 04:02:18] Production.INFO: ProcessCDR(1,14500487,1,1,2) [2025-02-18 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500487', 'tblTempUsageDetail_20' ) start [2025-02-18 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500487', 'tblTempUsageDetail_20' ) end [2025-02-18 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:02:22] Production.INFO: ==8008== Releasing lock... [2025-02-18 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:02:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:03:06 [end_date_ymd] => 2025-02-18 04:03:06 [RateCDR] => 1 ) [2025-02-18 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:03:06' and `end` < '2025-02-18 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:03:18] Production.INFO: count ==717 [2025-02-18 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:03:06 - End Time 2025-02-18 04:03:06 [2025-02-18 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500492', 'tblTempUsageDetail_20' ) start [2025-02-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500492', 'tblTempUsageDetail_20' ) end [2025-02-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500492', 'tblTempVendorCDR_20' ) start [2025-02-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500492', 'tblTempVendorCDR_20' ) end [2025-02-18 04:03:18] Production.INFO: ProcessCDR(1,14500492,1,1,2) [2025-02-18 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500492', 'tblTempUsageDetail_20' ) start [2025-02-18 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500492', 'tblTempUsageDetail_20' ) end [2025-02-18 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:03:22] Production.INFO: ==8119== Releasing lock... [2025-02-18 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:03:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:04:05 [end_date_ymd] => 2025-02-18 04:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:04:05' and `end` < '2025-02-18 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-18 04:04:16] Production.INFO: count ==717 [2025-02-18 04:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:04:05 - End Time 2025-02-18 04:04:05 [2025-02-18 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500497', 'tblTempUsageDetail_20' ) start [2025-02-18 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500497', 'tblTempUsageDetail_20' ) end [2025-02-18 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500497', 'tblTempVendorCDR_20' ) start [2025-02-18 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500497', 'tblTempVendorCDR_20' ) end [2025-02-18 04:04:17] Production.INFO: ProcessCDR(1,14500497,1,1,2) [2025-02-18 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500497', 'tblTempUsageDetail_20' ) start [2025-02-18 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500497', 'tblTempUsageDetail_20' ) end [2025-02-18 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:04:20] Production.INFO: ==8197== Releasing lock... [2025-02-18 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:04:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:05:06 [end_date_ymd] => 2025-02-18 04:05:06 [RateCDR] => 1 ) [2025-02-18 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:05:06' and `end` < '2025-02-18 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:05:17] Production.INFO: count ==717 [2025-02-18 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:05:06 - End Time 2025-02-18 04:05:06 [2025-02-18 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500502', 'tblTempUsageDetail_20' ) start [2025-02-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500502', 'tblTempUsageDetail_20' ) end [2025-02-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500502', 'tblTempVendorCDR_20' ) start [2025-02-18 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500502', 'tblTempVendorCDR_20' ) end [2025-02-18 04:05:18] Production.INFO: ProcessCDR(1,14500502,1,1,2) [2025-02-18 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500502', 'tblTempUsageDetail_20' ) start [2025-02-18 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500502', 'tblTempUsageDetail_20' ) end [2025-02-18 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:05:21] Production.INFO: ==8270== Releasing lock... [2025-02-18 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:05:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:06:05 [end_date_ymd] => 2025-02-18 04:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:06:05' and `end` < '2025-02-18 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-18 04:06:16] Production.INFO: count ==717 [2025-02-18 04:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:06:05 - End Time 2025-02-18 04:06:05 [2025-02-18 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500507', 'tblTempUsageDetail_20' ) start [2025-02-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500507', 'tblTempUsageDetail_20' ) end [2025-02-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500507', 'tblTempVendorCDR_20' ) start [2025-02-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500507', 'tblTempVendorCDR_20' ) end [2025-02-18 04:06:17] Production.INFO: ProcessCDR(1,14500507,1,1,2) [2025-02-18 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500507', 'tblTempUsageDetail_20' ) start [2025-02-18 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500507', 'tblTempUsageDetail_20' ) end [2025-02-18 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:06:20] Production.INFO: ==8342== Releasing lock... [2025-02-18 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:06:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:07:06 [end_date_ymd] => 2025-02-18 04:07:06 [RateCDR] => 1 ) [2025-02-18 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:07:06' and `end` < '2025-02-18 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:07:17] Production.INFO: count ==717 [2025-02-18 04:07:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:07:06 - End Time 2025-02-18 04:07:06 [2025-02-18 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500512', 'tblTempUsageDetail_20' ) start [2025-02-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500512', 'tblTempUsageDetail_20' ) end [2025-02-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500512', 'tblTempVendorCDR_20' ) start [2025-02-18 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500512', 'tblTempVendorCDR_20' ) end [2025-02-18 04:07:18] Production.INFO: ProcessCDR(1,14500512,1,1,2) [2025-02-18 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500512', 'tblTempUsageDetail_20' ) start [2025-02-18 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500512', 'tblTempUsageDetail_20' ) end [2025-02-18 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:07:21] Production.INFO: ==8413== Releasing lock... [2025-02-18 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:07:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:08:06 [end_date_ymd] => 2025-02-18 04:08:06 [RateCDR] => 1 ) [2025-02-18 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:08:06' and `end` < '2025-02-18 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:08:17] Production.INFO: count ==717 [2025-02-18 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:08:06 - End Time 2025-02-18 04:08:06 [2025-02-18 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500517', 'tblTempUsageDetail_20' ) start [2025-02-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500517', 'tblTempUsageDetail_20' ) end [2025-02-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500517', 'tblTempVendorCDR_20' ) start [2025-02-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500517', 'tblTempVendorCDR_20' ) end [2025-02-18 04:08:17] Production.INFO: ProcessCDR(1,14500517,1,1,2) [2025-02-18 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500517', 'tblTempUsageDetail_20' ) start [2025-02-18 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500517', 'tblTempUsageDetail_20' ) end [2025-02-18 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:08:21] Production.INFO: ==8489== Releasing lock... [2025-02-18 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:08:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:09:06 [end_date_ymd] => 2025-02-18 04:09:06 [RateCDR] => 1 ) [2025-02-18 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:09:06' and `end` < '2025-02-18 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:09:17] Production.INFO: count ==717 [2025-02-18 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:09:06 - End Time 2025-02-18 04:09:06 [2025-02-18 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500522', 'tblTempUsageDetail_20' ) start [2025-02-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500522', 'tblTempUsageDetail_20' ) end [2025-02-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500522', 'tblTempVendorCDR_20' ) start [2025-02-18 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500522', 'tblTempVendorCDR_20' ) end [2025-02-18 04:09:17] Production.INFO: ProcessCDR(1,14500522,1,1,2) [2025-02-18 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500522', 'tblTempUsageDetail_20' ) start [2025-02-18 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500522', 'tblTempUsageDetail_20' ) end [2025-02-18 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:09:21] Production.INFO: ==8563== Releasing lock... [2025-02-18 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:09:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:10:06 [end_date_ymd] => 2025-02-18 04:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 01:10:06' and `end` < '2025-02-18 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-18 04:10:18] Production.INFO: count ==706 [2025-02-18 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:10:06 - End Time 2025-02-18 04:10:06 [2025-02-18 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500527', 'tblTempUsageDetail_20' ) start [2025-02-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500527', 'tblTempUsageDetail_20' ) end [2025-02-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500527', 'tblTempVendorCDR_20' ) start [2025-02-18 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500527', 'tblTempVendorCDR_20' ) end [2025-02-18 04:10:18] Production.INFO: ProcessCDR(1,14500527,1,1,2) [2025-02-18 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500527', 'tblTempUsageDetail_20' ) start [2025-02-18 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500527', 'tblTempUsageDetail_20' ) end [2025-02-18 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:10:22] Production.INFO: ==8637== Releasing lock... [2025-02-18 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:11:05 [end_date_ymd] => 2025-02-18 04:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:11:05' and `end` < '2025-02-18 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-18 04:11:17] Production.INFO: count ==702 [2025-02-18 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:11:05 - End Time 2025-02-18 04:11:05 [2025-02-18 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500533', 'tblTempUsageDetail_20' ) start [2025-02-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500533', 'tblTempUsageDetail_20' ) end [2025-02-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500533', 'tblTempVendorCDR_20' ) start [2025-02-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500533', 'tblTempVendorCDR_20' ) end [2025-02-18 04:11:17] Production.INFO: ProcessCDR(1,14500533,1,1,2) [2025-02-18 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500533', 'tblTempUsageDetail_20' ) start [2025-02-18 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500533', 'tblTempUsageDetail_20' ) end [2025-02-18 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:11:20] Production.INFO: ==8713== Releasing lock... [2025-02-18 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:11:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:12:05 [end_date_ymd] => 2025-02-18 04:12:05 [RateCDR] => 1 ) [2025-02-18 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:12:05' and `end` < '2025-02-18 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:12:16] Production.INFO: count ==701 [2025-02-18 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:12:05 - End Time 2025-02-18 04:12:05 [2025-02-18 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500538', 'tblTempUsageDetail_20' ) start [2025-02-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500538', 'tblTempUsageDetail_20' ) end [2025-02-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500538', 'tblTempVendorCDR_20' ) start [2025-02-18 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500538', 'tblTempVendorCDR_20' ) end [2025-02-18 04:12:17] Production.INFO: ProcessCDR(1,14500538,1,1,2) [2025-02-18 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500538', 'tblTempUsageDetail_20' ) start [2025-02-18 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500538', 'tblTempUsageDetail_20' ) end [2025-02-18 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:12:20] Production.INFO: ==8783== Releasing lock... [2025-02-18 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:12:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:13:06 [end_date_ymd] => 2025-02-18 04:13:06 [RateCDR] => 1 ) [2025-02-18 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-18 01:13:06' and `end` < '2025-02-18 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-18 04:13:17] Production.INFO: count ==701 [2025-02-18 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:13:06 - End Time 2025-02-18 04:13:06 [2025-02-18 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500543', 'tblTempUsageDetail_20' ) start [2025-02-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500543', 'tblTempUsageDetail_20' ) end [2025-02-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500543', 'tblTempVendorCDR_20' ) start [2025-02-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500543', 'tblTempVendorCDR_20' ) end [2025-02-18 04:13:18] Production.INFO: ProcessCDR(1,14500543,1,1,2) [2025-02-18 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500543', 'tblTempUsageDetail_20' ) start [2025-02-18 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500543', 'tblTempUsageDetail_20' ) end [2025-02-18 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:13:21] Production.INFO: ==8852== Releasing lock... [2025-02-18 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:13:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:14:05 [end_date_ymd] => 2025-02-18 04:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:14:05' and `end` < '2025-02-18 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-18 04:14:16] Production.INFO: count ==701 [2025-02-18 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:14:05 - End Time 2025-02-18 04:14:05 [2025-02-18 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500548', 'tblTempUsageDetail_20' ) start [2025-02-18 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500548', 'tblTempUsageDetail_20' ) end [2025-02-18 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500548', 'tblTempVendorCDR_20' ) start [2025-02-18 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500548', 'tblTempVendorCDR_20' ) end [2025-02-18 04:14:17] Production.INFO: ProcessCDR(1,14500548,1,1,2) [2025-02-18 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500548', 'tblTempUsageDetail_20' ) start [2025-02-18 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500548', 'tblTempUsageDetail_20' ) end [2025-02-18 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:14:20] Production.INFO: ==8924== Releasing lock... [2025-02-18 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:14:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:15:05 [end_date_ymd] => 2025-02-18 04:15:05 [RateCDR] => 1 ) [2025-02-18 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:15:05' and `end` < '2025-02-18 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:15:17] Production.INFO: count ==701 [2025-02-18 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:15:05 - End Time 2025-02-18 04:15:05 [2025-02-18 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500553', 'tblTempUsageDetail_20' ) start [2025-02-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500553', 'tblTempUsageDetail_20' ) end [2025-02-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500553', 'tblTempVendorCDR_20' ) start [2025-02-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500553', 'tblTempVendorCDR_20' ) end [2025-02-18 04:15:17] Production.INFO: ProcessCDR(1,14500553,1,1,2) [2025-02-18 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500553', 'tblTempUsageDetail_20' ) start [2025-02-18 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500553', 'tblTempUsageDetail_20' ) end [2025-02-18 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:15:21] Production.INFO: ==9003== Releasing lock... [2025-02-18 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:15:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:16:05 [end_date_ymd] => 2025-02-18 04:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:16:05' and `end` < '2025-02-18 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-18 04:16:16] Production.INFO: count ==705 [2025-02-18 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:16:05 - End Time 2025-02-18 04:16:05 [2025-02-18 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500558', 'tblTempUsageDetail_20' ) start [2025-02-18 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500558', 'tblTempUsageDetail_20' ) end [2025-02-18 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500558', 'tblTempVendorCDR_20' ) start [2025-02-18 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500558', 'tblTempVendorCDR_20' ) end [2025-02-18 04:16:17] Production.INFO: ProcessCDR(1,14500558,1,1,2) [2025-02-18 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500558', 'tblTempUsageDetail_20' ) start [2025-02-18 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500558', 'tblTempUsageDetail_20' ) end [2025-02-18 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:16:20] Production.INFO: ==9074== Releasing lock... [2025-02-18 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:16:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:17:05 [end_date_ymd] => 2025-02-18 04:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:17:05' and `end` < '2025-02-18 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-18 04:17:16] Production.INFO: count ==704 [2025-02-18 04:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:17:05 - End Time 2025-02-18 04:17:05 [2025-02-18 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500563', 'tblTempUsageDetail_20' ) start [2025-02-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500563', 'tblTempUsageDetail_20' ) end [2025-02-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500563', 'tblTempVendorCDR_20' ) start [2025-02-18 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500563', 'tblTempVendorCDR_20' ) end [2025-02-18 04:17:17] Production.INFO: ProcessCDR(1,14500563,1,1,2) [2025-02-18 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500563', 'tblTempUsageDetail_20' ) start [2025-02-18 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500563', 'tblTempUsageDetail_20' ) end [2025-02-18 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:17:20] Production.INFO: ==9150== Releasing lock... [2025-02-18 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:17:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:18:05 [end_date_ymd] => 2025-02-18 04:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:18:05' and `end` < '2025-02-18 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-18 04:18:17] Production.INFO: count ==704 [2025-02-18 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:18:05 - End Time 2025-02-18 04:18:05 [2025-02-18 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500568', 'tblTempUsageDetail_20' ) start [2025-02-18 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500568', 'tblTempUsageDetail_20' ) end [2025-02-18 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500568', 'tblTempVendorCDR_20' ) start [2025-02-18 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500568', 'tblTempVendorCDR_20' ) end [2025-02-18 04:18:17] Production.INFO: ProcessCDR(1,14500568,1,1,2) [2025-02-18 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500568', 'tblTempUsageDetail_20' ) start [2025-02-18 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500568', 'tblTempUsageDetail_20' ) end [2025-02-18 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:18:20] Production.INFO: ==9245== Releasing lock... [2025-02-18 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:18:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:19:05 [end_date_ymd] => 2025-02-18 04:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:19:05' and `end` < '2025-02-18 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-18 04:19:17] Production.INFO: count ==701 [2025-02-18 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:19:05 - End Time 2025-02-18 04:19:05 [2025-02-18 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500573', 'tblTempUsageDetail_20' ) start [2025-02-18 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500573', 'tblTempUsageDetail_20' ) end [2025-02-18 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500573', 'tblTempVendorCDR_20' ) start [2025-02-18 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500573', 'tblTempVendorCDR_20' ) end [2025-02-18 04:19:17] Production.INFO: ProcessCDR(1,14500573,1,1,2) [2025-02-18 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500573', 'tblTempUsageDetail_20' ) start [2025-02-18 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500573', 'tblTempUsageDetail_20' ) end [2025-02-18 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:19:20] Production.INFO: ==9354== Releasing lock... [2025-02-18 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:19:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:20:05 [end_date_ymd] => 2025-02-18 04:20:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:20:05' and `end` < '2025-02-18 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-18 04:20:17] Production.INFO: count ==695 [2025-02-18 04:20:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:20:05 - End Time 2025-02-18 04:20:05 [2025-02-18 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500577', 'tblTempUsageDetail_20' ) start [2025-02-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500577', 'tblTempUsageDetail_20' ) end [2025-02-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500577', 'tblTempVendorCDR_20' ) start [2025-02-18 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500577', 'tblTempVendorCDR_20' ) end [2025-02-18 04:20:17] Production.INFO: ProcessCDR(1,14500577,1,1,2) [2025-02-18 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500577', 'tblTempUsageDetail_20' ) start [2025-02-18 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500577', 'tblTempUsageDetail_20' ) end [2025-02-18 04:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:20:20] Production.INFO: ==9430== Releasing lock... [2025-02-18 04:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:20:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:21:05 [end_date_ymd] => 2025-02-18 04:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:21:05' and `end` < '2025-02-18 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-18 04:21:17] Production.INFO: count ==693 [2025-02-18 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:21:05 - End Time 2025-02-18 04:21:05 [2025-02-18 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500584', 'tblTempUsageDetail_20' ) start [2025-02-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500584', 'tblTempUsageDetail_20' ) end [2025-02-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500584', 'tblTempVendorCDR_20' ) start [2025-02-18 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500584', 'tblTempVendorCDR_20' ) end [2025-02-18 04:21:17] Production.INFO: ProcessCDR(1,14500584,1,1,2) [2025-02-18 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500584', 'tblTempUsageDetail_20' ) start [2025-02-18 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500584', 'tblTempUsageDetail_20' ) end [2025-02-18 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:21:20] Production.INFO: ==9502== Releasing lock... [2025-02-18 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:21:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:22:05 [end_date_ymd] => 2025-02-18 04:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:22:05' and `end` < '2025-02-18 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-18 04:22:17] Production.INFO: count ==693 [2025-02-18 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:22:05 - End Time 2025-02-18 04:22:05 [2025-02-18 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500589', 'tblTempUsageDetail_20' ) start [2025-02-18 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500589', 'tblTempUsageDetail_20' ) end [2025-02-18 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500589', 'tblTempVendorCDR_20' ) start [2025-02-18 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500589', 'tblTempVendorCDR_20' ) end [2025-02-18 04:22:17] Production.INFO: ProcessCDR(1,14500589,1,1,2) [2025-02-18 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500589', 'tblTempUsageDetail_20' ) start [2025-02-18 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500589', 'tblTempUsageDetail_20' ) end [2025-02-18 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:22:20] Production.INFO: ==9575== Releasing lock... [2025-02-18 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:22:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:23:05 [end_date_ymd] => 2025-02-18 04:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:23:05' and `end` < '2025-02-18 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-18 04:23:17] Production.INFO: count ==692 [2025-02-18 04:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:23:05 - End Time 2025-02-18 04:23:05 [2025-02-18 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500594', 'tblTempUsageDetail_20' ) start [2025-02-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500594', 'tblTempUsageDetail_20' ) end [2025-02-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500594', 'tblTempVendorCDR_20' ) start [2025-02-18 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500594', 'tblTempVendorCDR_20' ) end [2025-02-18 04:23:17] Production.INFO: ProcessCDR(1,14500594,1,1,2) [2025-02-18 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500594', 'tblTempUsageDetail_20' ) start [2025-02-18 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500594', 'tblTempUsageDetail_20' ) end [2025-02-18 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:23:20] Production.INFO: ==9645== Releasing lock... [2025-02-18 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:23:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:24:05 [end_date_ymd] => 2025-02-18 04:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:24:05' and `end` < '2025-02-18 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-18 04:24:16] Production.INFO: count ==692 [2025-02-18 04:24:16] Production.ERROR: pbx CDR StartTime 2025-02-18 01:24:05 - End Time 2025-02-18 04:24:05 [2025-02-18 04:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500599', 'tblTempUsageDetail_20' ) start [2025-02-18 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500599', 'tblTempUsageDetail_20' ) end [2025-02-18 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500599', 'tblTempVendorCDR_20' ) start [2025-02-18 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500599', 'tblTempVendorCDR_20' ) end [2025-02-18 04:24:17] Production.INFO: ProcessCDR(1,14500599,1,1,2) [2025-02-18 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500599', 'tblTempUsageDetail_20' ) start [2025-02-18 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500599', 'tblTempUsageDetail_20' ) end [2025-02-18 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:24:20] Production.INFO: ==9741== Releasing lock... [2025-02-18 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:24:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:25:05 [end_date_ymd] => 2025-02-18 04:25:05 [RateCDR] => 1 ) [2025-02-18 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:25:05' and `end` < '2025-02-18 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:25:17] Production.INFO: count ==692 [2025-02-18 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:25:05 - End Time 2025-02-18 04:25:05 [2025-02-18 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500604', 'tblTempUsageDetail_20' ) start [2025-02-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500604', 'tblTempUsageDetail_20' ) end [2025-02-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500604', 'tblTempVendorCDR_20' ) start [2025-02-18 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500604', 'tblTempVendorCDR_20' ) end [2025-02-18 04:25:17] Production.INFO: ProcessCDR(1,14500604,1,1,2) [2025-02-18 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500604', 'tblTempUsageDetail_20' ) start [2025-02-18 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500604', 'tblTempUsageDetail_20' ) end [2025-02-18 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:25:20] Production.INFO: ==9811== Releasing lock... [2025-02-18 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:25:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:26:06 [end_date_ymd] => 2025-02-18 04:26:06 [RateCDR] => 1 ) [2025-02-18 04: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-18 01:26:06' and `end` < '2025-02-18 04: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-18 04:26:17] Production.INFO: count ==692 [2025-02-18 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:26:06 - End Time 2025-02-18 04:26:06 [2025-02-18 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500609', 'tblTempUsageDetail_20' ) start [2025-02-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500609', 'tblTempUsageDetail_20' ) end [2025-02-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500609', 'tblTempVendorCDR_20' ) start [2025-02-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500609', 'tblTempVendorCDR_20' ) end [2025-02-18 04:26:18] Production.INFO: ProcessCDR(1,14500609,1,1,2) [2025-02-18 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500609', 'tblTempUsageDetail_20' ) start [2025-02-18 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500609', 'tblTempUsageDetail_20' ) end [2025-02-18 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:26:21] Production.INFO: ==9884== Releasing lock... [2025-02-18 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:27:05 [end_date_ymd] => 2025-02-18 04:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:27:05' and `end` < '2025-02-18 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-18 04:27:16] Production.INFO: count ==692 [2025-02-18 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:27:05 - End Time 2025-02-18 04:27:05 [2025-02-18 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500614', 'tblTempUsageDetail_20' ) start [2025-02-18 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500614', 'tblTempUsageDetail_20' ) end [2025-02-18 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500614', 'tblTempVendorCDR_20' ) start [2025-02-18 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500614', 'tblTempVendorCDR_20' ) end [2025-02-18 04:27:17] Production.INFO: ProcessCDR(1,14500614,1,1,2) [2025-02-18 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500614', 'tblTempUsageDetail_20' ) start [2025-02-18 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500614', 'tblTempUsageDetail_20' ) end [2025-02-18 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:27:20] Production.INFO: ==9956== Releasing lock... [2025-02-18 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:27:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:28:06 [end_date_ymd] => 2025-02-18 04:28:06 [RateCDR] => 1 ) [2025-02-18 04: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-18 01:28:06' and `end` < '2025-02-18 04: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-18 04:28:17] Production.INFO: count ==692 [2025-02-18 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:28:06 - End Time 2025-02-18 04:28:06 [2025-02-18 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500619', 'tblTempUsageDetail_20' ) start [2025-02-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500619', 'tblTempUsageDetail_20' ) end [2025-02-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500619', 'tblTempVendorCDR_20' ) start [2025-02-18 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500619', 'tblTempVendorCDR_20' ) end [2025-02-18 04:28:17] Production.INFO: ProcessCDR(1,14500619,1,1,2) [2025-02-18 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500619', 'tblTempUsageDetail_20' ) start [2025-02-18 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500619', 'tblTempUsageDetail_20' ) end [2025-02-18 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:28:21] Production.INFO: ==10032== Releasing lock... [2025-02-18 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:29:05 [end_date_ymd] => 2025-02-18 04:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:29:05' and `end` < '2025-02-18 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-18 04:29:16] Production.INFO: count ==692 [2025-02-18 04:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:29:05 - End Time 2025-02-18 04:29:05 [2025-02-18 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500624', 'tblTempUsageDetail_20' ) start [2025-02-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500624', 'tblTempUsageDetail_20' ) end [2025-02-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500624', 'tblTempVendorCDR_20' ) start [2025-02-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500624', 'tblTempVendorCDR_20' ) end [2025-02-18 04:29:17] Production.INFO: ProcessCDR(1,14500624,1,1,2) [2025-02-18 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500624', 'tblTempUsageDetail_20' ) start [2025-02-18 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500624', 'tblTempUsageDetail_20' ) end [2025-02-18 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:29:20] Production.INFO: ==10104== Releasing lock... [2025-02-18 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:29:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:30:06 [end_date_ymd] => 2025-02-18 04:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 01:30:06' and `end` < '2025-02-18 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-18 04:30:17] Production.INFO: count ==681 [2025-02-18 04:30:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:30:06 - End Time 2025-02-18 04:30:06 [2025-02-18 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500629', 'tblTempUsageDetail_20' ) start [2025-02-18 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500629', 'tblTempUsageDetail_20' ) end [2025-02-18 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500629', 'tblTempVendorCDR_20' ) start [2025-02-18 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500629', 'tblTempVendorCDR_20' ) end [2025-02-18 04:30:17] Production.INFO: ProcessCDR(1,14500629,1,1,2) [2025-02-18 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500629', 'tblTempUsageDetail_20' ) start [2025-02-18 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500629', 'tblTempUsageDetail_20' ) end [2025-02-18 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:30:21] Production.INFO: ==10177== Releasing lock... [2025-02-18 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:30:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:31:05 [end_date_ymd] => 2025-02-18 04:31:05 [RateCDR] => 1 ) [2025-02-18 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:31:05' and `end` < '2025-02-18 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:31:16] Production.INFO: count ==681 [2025-02-18 04:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:31:05 - End Time 2025-02-18 04:31:05 [2025-02-18 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500636', 'tblTempUsageDetail_20' ) start [2025-02-18 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500636', 'tblTempUsageDetail_20' ) end [2025-02-18 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500636', 'tblTempVendorCDR_20' ) start [2025-02-18 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500636', 'tblTempVendorCDR_20' ) end [2025-02-18 04:31:17] Production.INFO: ProcessCDR(1,14500636,1,1,2) [2025-02-18 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500636', 'tblTempUsageDetail_20' ) start [2025-02-18 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500636', 'tblTempUsageDetail_20' ) end [2025-02-18 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:31:21] Production.INFO: ==10253== Releasing lock... [2025-02-18 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:32:05 [end_date_ymd] => 2025-02-18 04:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:32:05' and `end` < '2025-02-18 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-18 04:32:17] Production.INFO: count ==681 [2025-02-18 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:32:05 - End Time 2025-02-18 04:32:05 [2025-02-18 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500641', 'tblTempUsageDetail_20' ) start [2025-02-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500641', 'tblTempUsageDetail_20' ) end [2025-02-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500641', 'tblTempVendorCDR_20' ) start [2025-02-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500641', 'tblTempVendorCDR_20' ) end [2025-02-18 04:32:17] Production.INFO: ProcessCDR(1,14500641,1,1,2) [2025-02-18 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500641', 'tblTempUsageDetail_20' ) start [2025-02-18 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500641', 'tblTempUsageDetail_20' ) end [2025-02-18 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:32:21] Production.INFO: ==10387== Releasing lock... [2025-02-18 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:32:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:33:05 [end_date_ymd] => 2025-02-18 04:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:33:05' and `end` < '2025-02-18 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-18 04:33:17] Production.INFO: count ==681 [2025-02-18 04:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:33:05 - End Time 2025-02-18 04:33:05 [2025-02-18 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500646', 'tblTempUsageDetail_20' ) start [2025-02-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500646', 'tblTempUsageDetail_20' ) end [2025-02-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500646', 'tblTempVendorCDR_20' ) start [2025-02-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500646', 'tblTempVendorCDR_20' ) end [2025-02-18 04:33:17] Production.INFO: ProcessCDR(1,14500646,1,1,2) [2025-02-18 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500646', 'tblTempUsageDetail_20' ) start [2025-02-18 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500646', 'tblTempUsageDetail_20' ) end [2025-02-18 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:33:20] Production.INFO: ==10459== Releasing lock... [2025-02-18 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:33:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:34:05 [end_date_ymd] => 2025-02-18 04:34:05 [RateCDR] => 1 ) [2025-02-18 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:34:05' and `end` < '2025-02-18 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:34:17] Production.INFO: count ==681 [2025-02-18 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:34:05 - End Time 2025-02-18 04:34:05 [2025-02-18 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500651', 'tblTempUsageDetail_20' ) start [2025-02-18 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500651', 'tblTempUsageDetail_20' ) end [2025-02-18 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500651', 'tblTempVendorCDR_20' ) start [2025-02-18 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500651', 'tblTempVendorCDR_20' ) end [2025-02-18 04:34:17] Production.INFO: ProcessCDR(1,14500651,1,1,2) [2025-02-18 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500651', 'tblTempUsageDetail_20' ) start [2025-02-18 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500651', 'tblTempUsageDetail_20' ) end [2025-02-18 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:34:20] Production.INFO: ==10570== Releasing lock... [2025-02-18 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:34:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:35:05 [end_date_ymd] => 2025-02-18 04:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:35:05' and `end` < '2025-02-18 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-18 04:35:16] Production.INFO: count ==681 [2025-02-18 04:35:16] Production.ERROR: pbx CDR StartTime 2025-02-18 01:35:05 - End Time 2025-02-18 04:35:05 [2025-02-18 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500656', 'tblTempUsageDetail_20' ) start [2025-02-18 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500656', 'tblTempUsageDetail_20' ) end [2025-02-18 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500656', 'tblTempVendorCDR_20' ) start [2025-02-18 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500656', 'tblTempVendorCDR_20' ) end [2025-02-18 04:35:16] Production.INFO: ProcessCDR(1,14500656,1,1,2) [2025-02-18 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500656', 'tblTempUsageDetail_20' ) start [2025-02-18 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500656', 'tblTempUsageDetail_20' ) end [2025-02-18 04:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:35:19] Production.INFO: ==10642== Releasing lock... [2025-02-18 04:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:35:19] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:36:05 [end_date_ymd] => 2025-02-18 04:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:36:05' and `end` < '2025-02-18 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-18 04:36:16] Production.INFO: count ==681 [2025-02-18 04:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:36:05 - End Time 2025-02-18 04:36:05 [2025-02-18 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500661', 'tblTempUsageDetail_20' ) start [2025-02-18 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500661', 'tblTempUsageDetail_20' ) end [2025-02-18 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500661', 'tblTempVendorCDR_20' ) start [2025-02-18 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500661', 'tblTempVendorCDR_20' ) end [2025-02-18 04:36:17] Production.INFO: ProcessCDR(1,14500661,1,1,2) [2025-02-18 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500661', 'tblTempUsageDetail_20' ) start [2025-02-18 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500661', 'tblTempUsageDetail_20' ) end [2025-02-18 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:36:20] Production.INFO: ==10715== Releasing lock... [2025-02-18 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:36:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:37:05 [end_date_ymd] => 2025-02-18 04:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:37:05' and `end` < '2025-02-18 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-18 04:37:16] Production.INFO: count ==681 [2025-02-18 04:37:16] Production.ERROR: pbx CDR StartTime 2025-02-18 01:37:05 - End Time 2025-02-18 04:37:05 [2025-02-18 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500666', 'tblTempUsageDetail_20' ) start [2025-02-18 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500666', 'tblTempUsageDetail_20' ) end [2025-02-18 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500666', 'tblTempVendorCDR_20' ) start [2025-02-18 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500666', 'tblTempVendorCDR_20' ) end [2025-02-18 04:37:16] Production.INFO: ProcessCDR(1,14500666,1,1,2) [2025-02-18 04:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500666', 'tblTempUsageDetail_20' ) start [2025-02-18 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500666', 'tblTempUsageDetail_20' ) end [2025-02-18 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:37:20] Production.INFO: ==10785== Releasing lock... [2025-02-18 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:37:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:38:05 [end_date_ymd] => 2025-02-18 04:38:05 [RateCDR] => 1 ) [2025-02-18 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:38:05' and `end` < '2025-02-18 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:38:17] Production.INFO: count ==681 [2025-02-18 04:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:38:05 - End Time 2025-02-18 04:38:05 [2025-02-18 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500671', 'tblTempUsageDetail_20' ) start [2025-02-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500671', 'tblTempUsageDetail_20' ) end [2025-02-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500671', 'tblTempVendorCDR_20' ) start [2025-02-18 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500671', 'tblTempVendorCDR_20' ) end [2025-02-18 04:38:17] Production.INFO: ProcessCDR(1,14500671,1,1,2) [2025-02-18 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500671', 'tblTempUsageDetail_20' ) start [2025-02-18 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500671', 'tblTempUsageDetail_20' ) end [2025-02-18 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:38:20] Production.INFO: ==10858== Releasing lock... [2025-02-18 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:38:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:39:06 [end_date_ymd] => 2025-02-18 04:39:06 [RateCDR] => 1 ) [2025-02-18 04:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:39:06' and `end` < '2025-02-18 04:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:39:17] Production.INFO: count ==681 [2025-02-18 04:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:39:06 - End Time 2025-02-18 04:39:06 [2025-02-18 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500676', 'tblTempUsageDetail_20' ) start [2025-02-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500676', 'tblTempUsageDetail_20' ) end [2025-02-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500676', 'tblTempVendorCDR_20' ) start [2025-02-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500676', 'tblTempVendorCDR_20' ) end [2025-02-18 04:39:17] Production.INFO: ProcessCDR(1,14500676,1,1,2) [2025-02-18 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500676', 'tblTempUsageDetail_20' ) start [2025-02-18 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500676', 'tblTempUsageDetail_20' ) end [2025-02-18 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:39:20] Production.INFO: ==10931== Releasing lock... [2025-02-18 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:39:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:40:06 [end_date_ymd] => 2025-02-18 04:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 01:40:06' and `end` < '2025-02-18 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-18 04:40:18] Production.INFO: count ==679 [2025-02-18 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:40:06 - End Time 2025-02-18 04:40:06 [2025-02-18 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500682', 'tblTempUsageDetail_20' ) start [2025-02-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500682', 'tblTempUsageDetail_20' ) end [2025-02-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500682', 'tblTempVendorCDR_20' ) start [2025-02-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500682', 'tblTempVendorCDR_20' ) end [2025-02-18 04:40:18] Production.INFO: ProcessCDR(1,14500682,1,1,2) [2025-02-18 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500682', 'tblTempUsageDetail_20' ) start [2025-02-18 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500682', 'tblTempUsageDetail_20' ) end [2025-02-18 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:40:21] Production.INFO: ==11005== Releasing lock... [2025-02-18 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:41:05 [end_date_ymd] => 2025-02-18 04:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:41:05' and `end` < '2025-02-18 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-18 04:41:16] Production.INFO: count ==679 [2025-02-18 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:41:05 - End Time 2025-02-18 04:41:05 [2025-02-18 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500687', 'tblTempUsageDetail_20' ) start [2025-02-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500687', 'tblTempUsageDetail_20' ) end [2025-02-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500687', 'tblTempVendorCDR_20' ) start [2025-02-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500687', 'tblTempVendorCDR_20' ) end [2025-02-18 04:41:17] Production.INFO: ProcessCDR(1,14500687,1,1,2) [2025-02-18 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500687', 'tblTempUsageDetail_20' ) start [2025-02-18 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500687', 'tblTempUsageDetail_20' ) end [2025-02-18 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:41:20] Production.INFO: ==11082== Releasing lock... [2025-02-18 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:41:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:42:05 [end_date_ymd] => 2025-02-18 04:42:05 [RateCDR] => 1 ) [2025-02-18 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:42:05' and `end` < '2025-02-18 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:42:17] Production.INFO: count ==679 [2025-02-18 04:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:42:05 - End Time 2025-02-18 04:42:05 [2025-02-18 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500692', 'tblTempUsageDetail_20' ) start [2025-02-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500692', 'tblTempUsageDetail_20' ) end [2025-02-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500692', 'tblTempVendorCDR_20' ) start [2025-02-18 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500692', 'tblTempVendorCDR_20' ) end [2025-02-18 04:42:17] Production.INFO: ProcessCDR(1,14500692,1,1,2) [2025-02-18 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500692', 'tblTempUsageDetail_20' ) start [2025-02-18 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500692', 'tblTempUsageDetail_20' ) end [2025-02-18 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:42:20] Production.INFO: ==11154== Releasing lock... [2025-02-18 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:42:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:43:05 [end_date_ymd] => 2025-02-18 04:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:43:05' and `end` < '2025-02-18 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-18 04:43:17] Production.INFO: count ==679 [2025-02-18 04:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:43:05 - End Time 2025-02-18 04:43:05 [2025-02-18 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500697', 'tblTempUsageDetail_20' ) start [2025-02-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500697', 'tblTempUsageDetail_20' ) end [2025-02-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500697', 'tblTempVendorCDR_20' ) start [2025-02-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500697', 'tblTempVendorCDR_20' ) end [2025-02-18 04:43:17] Production.INFO: ProcessCDR(1,14500697,1,1,2) [2025-02-18 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500697', 'tblTempUsageDetail_20' ) start [2025-02-18 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500697', 'tblTempUsageDetail_20' ) end [2025-02-18 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:43:20] Production.INFO: ==11224== Releasing lock... [2025-02-18 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:43:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:44:05 [end_date_ymd] => 2025-02-18 04:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:44:05' and `end` < '2025-02-18 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-18 04:44:16] Production.INFO: count ==680 [2025-02-18 04:44:16] Production.ERROR: pbx CDR StartTime 2025-02-18 01:44:05 - End Time 2025-02-18 04:44:05 [2025-02-18 04:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500702', 'tblTempUsageDetail_20' ) start [2025-02-18 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500702', 'tblTempUsageDetail_20' ) end [2025-02-18 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500702', 'tblTempVendorCDR_20' ) start [2025-02-18 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500702', 'tblTempVendorCDR_20' ) end [2025-02-18 04:44:16] Production.INFO: ProcessCDR(1,14500702,1,1,2) [2025-02-18 04:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500702', 'tblTempUsageDetail_20' ) start [2025-02-18 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500702', 'tblTempUsageDetail_20' ) end [2025-02-18 04:44:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:44:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:44:19] Production.INFO: ==11295== Releasing lock... [2025-02-18 04:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:44:19] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:45:05 [end_date_ymd] => 2025-02-18 04:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:45:05' and `end` < '2025-02-18 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-18 04:45:17] Production.INFO: count ==680 [2025-02-18 04:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:45:05 - End Time 2025-02-18 04:45:05 [2025-02-18 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500707', 'tblTempUsageDetail_20' ) start [2025-02-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500707', 'tblTempUsageDetail_20' ) end [2025-02-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500707', 'tblTempVendorCDR_20' ) start [2025-02-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500707', 'tblTempVendorCDR_20' ) end [2025-02-18 04:45:17] Production.INFO: ProcessCDR(1,14500707,1,1,2) [2025-02-18 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500707', 'tblTempUsageDetail_20' ) start [2025-02-18 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500707', 'tblTempUsageDetail_20' ) end [2025-02-18 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:45:20] Production.INFO: ==11368== Releasing lock... [2025-02-18 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:45:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:46:05 [end_date_ymd] => 2025-02-18 04:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:46:05' and `end` < '2025-02-18 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-18 04:46:16] Production.INFO: count ==680 [2025-02-18 04:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:46:05 - End Time 2025-02-18 04:46:05 [2025-02-18 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500712', 'tblTempUsageDetail_20' ) start [2025-02-18 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500712', 'tblTempUsageDetail_20' ) end [2025-02-18 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500712', 'tblTempVendorCDR_20' ) start [2025-02-18 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500712', 'tblTempVendorCDR_20' ) end [2025-02-18 04:46:17] Production.INFO: ProcessCDR(1,14500712,1,1,2) [2025-02-18 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500712', 'tblTempUsageDetail_20' ) start [2025-02-18 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500712', 'tblTempUsageDetail_20' ) end [2025-02-18 04:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:46:20] Production.INFO: ==11439== Releasing lock... [2025-02-18 04:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:46:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:47:05 [end_date_ymd] => 2025-02-18 04:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:47:05' and `end` < '2025-02-18 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-18 04:47:17] Production.INFO: count ==680 [2025-02-18 04:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:47:05 - End Time 2025-02-18 04:47:05 [2025-02-18 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500717', 'tblTempUsageDetail_20' ) start [2025-02-18 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500717', 'tblTempUsageDetail_20' ) end [2025-02-18 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500717', 'tblTempVendorCDR_20' ) start [2025-02-18 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500717', 'tblTempVendorCDR_20' ) end [2025-02-18 04:47:17] Production.INFO: ProcessCDR(1,14500717,1,1,2) [2025-02-18 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500717', 'tblTempUsageDetail_20' ) start [2025-02-18 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500717', 'tblTempUsageDetail_20' ) end [2025-02-18 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:47:21] Production.INFO: ==11508== Releasing lock... [2025-02-18 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:47:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:48:05 [end_date_ymd] => 2025-02-18 04:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:48:05' and `end` < '2025-02-18 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-18 04:48:16] Production.INFO: count ==680 [2025-02-18 04:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:48:05 - End Time 2025-02-18 04:48:05 [2025-02-18 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500722', 'tblTempUsageDetail_20' ) start [2025-02-18 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500722', 'tblTempUsageDetail_20' ) end [2025-02-18 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500722', 'tblTempVendorCDR_20' ) start [2025-02-18 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500722', 'tblTempVendorCDR_20' ) end [2025-02-18 04:48:17] Production.INFO: ProcessCDR(1,14500722,1,1,2) [2025-02-18 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500722', 'tblTempUsageDetail_20' ) start [2025-02-18 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500722', 'tblTempUsageDetail_20' ) end [2025-02-18 04:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:48:20] Production.INFO: ==11584== Releasing lock... [2025-02-18 04:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:48:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:49:05 [end_date_ymd] => 2025-02-18 04:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:49:05' and `end` < '2025-02-18 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-18 04:49:19] Production.INFO: count ==680 [2025-02-18 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-18 01:49:05 - End Time 2025-02-18 04:49:05 [2025-02-18 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500727', 'tblTempUsageDetail_20' ) start [2025-02-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500727', 'tblTempUsageDetail_20' ) end [2025-02-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500727', 'tblTempVendorCDR_20' ) start [2025-02-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500727', 'tblTempVendorCDR_20' ) end [2025-02-18 04:49:19] Production.INFO: ProcessCDR(1,14500727,1,1,2) [2025-02-18 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500727', 'tblTempUsageDetail_20' ) start [2025-02-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500727', 'tblTempUsageDetail_20' ) end [2025-02-18 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:49:22] Production.INFO: ==11656== Releasing lock... [2025-02-18 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:49:22] Production.INFO: 34 MB #Memory Used# [2025-02-18 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:50:06 [end_date_ymd] => 2025-02-18 04:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 01:50:06' and `end` < '2025-02-18 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-18 04:50:18] Production.INFO: count ==678 [2025-02-18 04:50:19] Production.ERROR: pbx CDR StartTime 2025-02-18 01:50:06 - End Time 2025-02-18 04:50:06 [2025-02-18 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500733', 'tblTempUsageDetail_20' ) start [2025-02-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500733', 'tblTempUsageDetail_20' ) end [2025-02-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500733', 'tblTempVendorCDR_20' ) start [2025-02-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500733', 'tblTempVendorCDR_20' ) end [2025-02-18 04:50:19] Production.INFO: ProcessCDR(1,14500733,1,1,2) [2025-02-18 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500733', 'tblTempUsageDetail_20' ) start [2025-02-18 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500733', 'tblTempUsageDetail_20' ) end [2025-02-18 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:50:22] Production.INFO: ==11767== Releasing lock... [2025-02-18 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:51:05 [end_date_ymd] => 2025-02-18 04:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:51:05' and `end` < '2025-02-18 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-18 04:51:18] Production.INFO: count ==678 [2025-02-18 04:51:19] Production.ERROR: pbx CDR StartTime 2025-02-18 01:51:05 - End Time 2025-02-18 04:51:05 [2025-02-18 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500738', 'tblTempUsageDetail_20' ) start [2025-02-18 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500738', 'tblTempUsageDetail_20' ) end [2025-02-18 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500738', 'tblTempVendorCDR_20' ) start [2025-02-18 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500738', 'tblTempVendorCDR_20' ) end [2025-02-18 04:51:19] Production.INFO: ProcessCDR(1,14500738,1,1,2) [2025-02-18 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500738', 'tblTempUsageDetail_20' ) start [2025-02-18 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500738', 'tblTempUsageDetail_20' ) end [2025-02-18 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:51:22] Production.INFO: ==11841== Releasing lock... [2025-02-18 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:52:06 [end_date_ymd] => 2025-02-18 04:52:06 [RateCDR] => 1 ) [2025-02-18 04: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-18 01:52:06' and `end` < '2025-02-18 04: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-18 04:52:20] Production.INFO: count ==679 [2025-02-18 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-18 01:52:06 - End Time 2025-02-18 04:52:06 [2025-02-18 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500743', 'tblTempUsageDetail_20' ) start [2025-02-18 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500743', 'tblTempUsageDetail_20' ) end [2025-02-18 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500743', 'tblTempVendorCDR_20' ) start [2025-02-18 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500743', 'tblTempVendorCDR_20' ) end [2025-02-18 04:52:20] Production.INFO: ProcessCDR(1,14500743,1,1,2) [2025-02-18 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500743', 'tblTempUsageDetail_20' ) start [2025-02-18 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500743', 'tblTempUsageDetail_20' ) end [2025-02-18 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:52:24] Production.INFO: ==11913== Releasing lock... [2025-02-18 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:52:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:53:05 [end_date_ymd] => 2025-02-18 04:53:05 [RateCDR] => 1 ) [2025-02-18 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:53:05' and `end` < '2025-02-18 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:53:17] Production.INFO: count ==679 [2025-02-18 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:53:05 - End Time 2025-02-18 04:53:05 [2025-02-18 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500748', 'tblTempUsageDetail_20' ) start [2025-02-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500748', 'tblTempUsageDetail_20' ) end [2025-02-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500748', 'tblTempVendorCDR_20' ) start [2025-02-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500748', 'tblTempVendorCDR_20' ) end [2025-02-18 04:53:18] Production.INFO: ProcessCDR(1,14500748,1,1,2) [2025-02-18 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500748', 'tblTempUsageDetail_20' ) start [2025-02-18 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500748', 'tblTempUsageDetail_20' ) end [2025-02-18 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:53:21] Production.INFO: ==11983== Releasing lock... [2025-02-18 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:54:05 [end_date_ymd] => 2025-02-18 04:54:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:54:05' and `end` < '2025-02-18 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-18 04:54:18] Production.INFO: count ==679 [2025-02-18 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:54:05 - End Time 2025-02-18 04:54:05 [2025-02-18 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500753', 'tblTempUsageDetail_20' ) start [2025-02-18 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500753', 'tblTempUsageDetail_20' ) end [2025-02-18 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500753', 'tblTempVendorCDR_20' ) start [2025-02-18 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500753', 'tblTempVendorCDR_20' ) end [2025-02-18 04:54:18] Production.INFO: ProcessCDR(1,14500753,1,1,2) [2025-02-18 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500753', 'tblTempUsageDetail_20' ) start [2025-02-18 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500753', 'tblTempUsageDetail_20' ) end [2025-02-18 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:54:21] Production.INFO: ==12059== Releasing lock... [2025-02-18 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:55:05 [end_date_ymd] => 2025-02-18 04:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:55:05' and `end` < '2025-02-18 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-18 04:55:18] Production.INFO: count ==679 [2025-02-18 04:55:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:55:05 - End Time 2025-02-18 04:55:05 [2025-02-18 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500758', 'tblTempUsageDetail_20' ) start [2025-02-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500758', 'tblTempUsageDetail_20' ) end [2025-02-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500758', 'tblTempVendorCDR_20' ) start [2025-02-18 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500758', 'tblTempVendorCDR_20' ) end [2025-02-18 04:55:18] Production.INFO: ProcessCDR(1,14500758,1,1,2) [2025-02-18 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500758', 'tblTempUsageDetail_20' ) start [2025-02-18 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500758', 'tblTempUsageDetail_20' ) end [2025-02-18 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:55:21] Production.INFO: ==12132== Releasing lock... [2025-02-18 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:56:05 [end_date_ymd] => 2025-02-18 04:56:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:56:05' and `end` < '2025-02-18 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-18 04:56:17] Production.INFO: count ==679 [2025-02-18 04:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:56:05 - End Time 2025-02-18 04:56:05 [2025-02-18 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500763', 'tblTempUsageDetail_20' ) start [2025-02-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500763', 'tblTempUsageDetail_20' ) end [2025-02-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500763', 'tblTempVendorCDR_20' ) start [2025-02-18 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500763', 'tblTempVendorCDR_20' ) end [2025-02-18 04:56:17] Production.INFO: ProcessCDR(1,14500763,1,1,2) [2025-02-18 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500763', 'tblTempUsageDetail_20' ) start [2025-02-18 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500763', 'tblTempUsageDetail_20' ) end [2025-02-18 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:56:20] Production.INFO: ==12207== Releasing lock... [2025-02-18 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:56:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:57:05 [end_date_ymd] => 2025-02-18 04:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:57:05' and `end` < '2025-02-18 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-18 04:57:17] Production.INFO: count ==679 [2025-02-18 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:57:05 - End Time 2025-02-18 04:57:05 [2025-02-18 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500768', 'tblTempUsageDetail_20' ) start [2025-02-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500768', 'tblTempUsageDetail_20' ) end [2025-02-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500768', 'tblTempVendorCDR_20' ) start [2025-02-18 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500768', 'tblTempVendorCDR_20' ) end [2025-02-18 04:57:18] Production.INFO: ProcessCDR(1,14500768,1,1,2) [2025-02-18 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500768', 'tblTempUsageDetail_20' ) start [2025-02-18 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500768', 'tblTempUsageDetail_20' ) end [2025-02-18 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:57:21] Production.INFO: ==12279== Releasing lock... [2025-02-18 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:57:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:58:05 [end_date_ymd] => 2025-02-18 04:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 01:58:05' and `end` < '2025-02-18 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-18 04:58:18] Production.INFO: count ==679 [2025-02-18 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-18 01:58:05 - End Time 2025-02-18 04:58:05 [2025-02-18 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500773', 'tblTempUsageDetail_20' ) start [2025-02-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500773', 'tblTempUsageDetail_20' ) end [2025-02-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500773', 'tblTempVendorCDR_20' ) start [2025-02-18 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500773', 'tblTempVendorCDR_20' ) end [2025-02-18 04:58:18] Production.INFO: ProcessCDR(1,14500773,1,1,2) [2025-02-18 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500773', 'tblTempUsageDetail_20' ) start [2025-02-18 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500773', 'tblTempUsageDetail_20' ) end [2025-02-18 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:58:21] Production.INFO: ==12348== Releasing lock... [2025-02-18 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 01:59:05 [end_date_ymd] => 2025-02-18 04:59:05 [RateCDR] => 1 ) [2025-02-18 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 01:59:05' and `end` < '2025-02-18 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 04:59:17] Production.INFO: count ==679 [2025-02-18 04:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 01:59:05 - End Time 2025-02-18 04:59:05 [2025-02-18 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500778', 'tblTempUsageDetail_20' ) start [2025-02-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500778', 'tblTempUsageDetail_20' ) end [2025-02-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500778', 'tblTempVendorCDR_20' ) start [2025-02-18 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500778', 'tblTempVendorCDR_20' ) end [2025-02-18 04:59:17] Production.INFO: ProcessCDR(1,14500778,1,1,2) [2025-02-18 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500778', 'tblTempUsageDetail_20' ) start [2025-02-18 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500778', 'tblTempUsageDetail_20' ) end [2025-02-18 04:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 04:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 04:59:20] Production.INFO: ==12419== Releasing lock... [2025-02-18 04:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 04:59:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:00:06 [end_date_ymd] => 2025-02-18 05:00:06 [RateCDR] => 1 ) [2025-02-18 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:00:06' and `end` < '2025-02-18 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:00:18] Production.INFO: count ==676 [2025-02-18 05:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:00:06 - End Time 2025-02-18 05:00:06 [2025-02-18 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500784', 'tblTempUsageDetail_20' ) start [2025-02-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500784', 'tblTempUsageDetail_20' ) end [2025-02-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500784', 'tblTempVendorCDR_20' ) start [2025-02-18 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500784', 'tblTempVendorCDR_20' ) end [2025-02-18 05:00:18] Production.INFO: ProcessCDR(1,14500784,1,1,2) [2025-02-18 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500784', 'tblTempUsageDetail_20' ) start [2025-02-18 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500784', 'tblTempUsageDetail_20' ) end [2025-02-18 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:00:21] Production.INFO: ==12493== Releasing lock... [2025-02-18 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:00:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:01:04 [end_date_ymd] => 2025-02-18 05:01:04 [RateCDR] => 1 ) [2025-02-18 05:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:01:04' and `end` < '2025-02-18 05:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:01:16] Production.INFO: count ==673 [2025-02-18 05:01:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:01:04 - End Time 2025-02-18 05:01:04 [2025-02-18 05:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500789', 'tblTempUsageDetail_20' ) start [2025-02-18 05:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500789', 'tblTempUsageDetail_20' ) end [2025-02-18 05:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500789', 'tblTempVendorCDR_20' ) start [2025-02-18 05:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500789', 'tblTempVendorCDR_20' ) end [2025-02-18 05:01:16] Production.INFO: ProcessCDR(1,14500789,1,1,2) [2025-02-18 05:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500789', 'tblTempUsageDetail_20' ) start [2025-02-18 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500789', 'tblTempUsageDetail_20' ) end [2025-02-18 05:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:01:20] Production.INFO: ==12577== Releasing lock... [2025-02-18 05:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:01:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:02:05 [end_date_ymd] => 2025-02-18 05:02:05 [RateCDR] => 1 ) [2025-02-18 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:02:05' and `end` < '2025-02-18 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:02:18] Production.INFO: count ==671 [2025-02-18 05:02:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:02:05 - End Time 2025-02-18 05:02:05 [2025-02-18 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500794', 'tblTempUsageDetail_20' ) start [2025-02-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500794', 'tblTempUsageDetail_20' ) end [2025-02-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500794', 'tblTempVendorCDR_20' ) start [2025-02-18 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500794', 'tblTempVendorCDR_20' ) end [2025-02-18 05:02:18] Production.INFO: ProcessCDR(1,14500794,1,1,2) [2025-02-18 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500794', 'tblTempUsageDetail_20' ) start [2025-02-18 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500794', 'tblTempUsageDetail_20' ) end [2025-02-18 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:02:21] Production.INFO: ==12647== Releasing lock... [2025-02-18 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:02:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:03:05 [end_date_ymd] => 2025-02-18 05:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:03:05' and `end` < '2025-02-18 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-18 05:03:17] Production.INFO: count ==670 [2025-02-18 05:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:03:05 - End Time 2025-02-18 05:03:05 [2025-02-18 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500799', 'tblTempUsageDetail_20' ) start [2025-02-18 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500799', 'tblTempUsageDetail_20' ) end [2025-02-18 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500799', 'tblTempVendorCDR_20' ) start [2025-02-18 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500799', 'tblTempVendorCDR_20' ) end [2025-02-18 05:03:17] Production.INFO: ProcessCDR(1,14500799,1,1,2) [2025-02-18 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500799', 'tblTempUsageDetail_20' ) start [2025-02-18 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500799', 'tblTempUsageDetail_20' ) end [2025-02-18 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:03:21] Production.INFO: ==12717== Releasing lock... [2025-02-18 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:04:05 [end_date_ymd] => 2025-02-18 05:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:04:05' and `end` < '2025-02-18 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-18 05:04:17] Production.INFO: count ==674 [2025-02-18 05:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:04:05 - End Time 2025-02-18 05:04:05 [2025-02-18 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500804', 'tblTempUsageDetail_20' ) start [2025-02-18 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500804', 'tblTempUsageDetail_20' ) end [2025-02-18 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500804', 'tblTempVendorCDR_20' ) start [2025-02-18 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500804', 'tblTempVendorCDR_20' ) end [2025-02-18 05:04:17] Production.INFO: ProcessCDR(1,14500804,1,1,2) [2025-02-18 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500804', 'tblTempUsageDetail_20' ) start [2025-02-18 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500804', 'tblTempUsageDetail_20' ) end [2025-02-18 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:04:21] Production.INFO: ==12788== Releasing lock... [2025-02-18 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:05:05 [end_date_ymd] => 2025-02-18 05:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:05:05' and `end` < '2025-02-18 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-18 05:05:18] Production.INFO: count ==674 [2025-02-18 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:05:05 - End Time 2025-02-18 05:05:05 [2025-02-18 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500809', 'tblTempUsageDetail_20' ) start [2025-02-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500809', 'tblTempUsageDetail_20' ) end [2025-02-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500809', 'tblTempVendorCDR_20' ) start [2025-02-18 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500809', 'tblTempVendorCDR_20' ) end [2025-02-18 05:05:18] Production.INFO: ProcessCDR(1,14500809,1,1,2) [2025-02-18 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500809', 'tblTempUsageDetail_20' ) start [2025-02-18 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500809', 'tblTempUsageDetail_20' ) end [2025-02-18 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:05:21] Production.INFO: ==12898== Releasing lock... [2025-02-18 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:06:05 [end_date_ymd] => 2025-02-18 05:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:06:05' and `end` < '2025-02-18 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-18 05:06:17] Production.INFO: count ==674 [2025-02-18 05:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:06:05 - End Time 2025-02-18 05:06:05 [2025-02-18 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500814', 'tblTempUsageDetail_20' ) start [2025-02-18 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500814', 'tblTempUsageDetail_20' ) end [2025-02-18 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500814', 'tblTempVendorCDR_20' ) start [2025-02-18 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500814', 'tblTempVendorCDR_20' ) end [2025-02-18 05:06:17] Production.INFO: ProcessCDR(1,14500814,1,1,2) [2025-02-18 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500814', 'tblTempUsageDetail_20' ) start [2025-02-18 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500814', 'tblTempUsageDetail_20' ) end [2025-02-18 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:06:21] Production.INFO: ==12968== Releasing lock... [2025-02-18 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:07:06 [end_date_ymd] => 2025-02-18 05:07:06 [RateCDR] => 1 ) [2025-02-18 05: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-18 02:07:06' and `end` < '2025-02-18 05: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-18 05:07:17] Production.INFO: count ==674 [2025-02-18 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:07:06 - End Time 2025-02-18 05:07:06 [2025-02-18 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500819', 'tblTempUsageDetail_20' ) start [2025-02-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500819', 'tblTempUsageDetail_20' ) end [2025-02-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500819', 'tblTempVendorCDR_20' ) start [2025-02-18 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500819', 'tblTempVendorCDR_20' ) end [2025-02-18 05:07:18] Production.INFO: ProcessCDR(1,14500819,1,1,2) [2025-02-18 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500819', 'tblTempUsageDetail_20' ) start [2025-02-18 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500819', 'tblTempUsageDetail_20' ) end [2025-02-18 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:07:21] Production.INFO: ==13047== Releasing lock... [2025-02-18 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:08:05 [end_date_ymd] => 2025-02-18 05:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:08:05' and `end` < '2025-02-18 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-18 05:08:17] Production.INFO: count ==674 [2025-02-18 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:08:05 - End Time 2025-02-18 05:08:05 [2025-02-18 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500824', 'tblTempUsageDetail_20' ) start [2025-02-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500824', 'tblTempUsageDetail_20' ) end [2025-02-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500824', 'tblTempVendorCDR_20' ) start [2025-02-18 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500824', 'tblTempVendorCDR_20' ) end [2025-02-18 05:08:17] Production.INFO: ProcessCDR(1,14500824,1,1,2) [2025-02-18 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500824', 'tblTempUsageDetail_20' ) start [2025-02-18 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500824', 'tblTempUsageDetail_20' ) end [2025-02-18 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:08:20] Production.INFO: ==13117== Releasing lock... [2025-02-18 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:08:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:09:05 [end_date_ymd] => 2025-02-18 05:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:09:05' and `end` < '2025-02-18 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-18 05:09:17] Production.INFO: count ==675 [2025-02-18 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:09:05 - End Time 2025-02-18 05:09:05 [2025-02-18 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500829', 'tblTempUsageDetail_20' ) start [2025-02-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500829', 'tblTempUsageDetail_20' ) end [2025-02-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500829', 'tblTempVendorCDR_20' ) start [2025-02-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500829', 'tblTempVendorCDR_20' ) end [2025-02-18 05:09:17] Production.INFO: ProcessCDR(1,14500829,1,1,2) [2025-02-18 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500829', 'tblTempUsageDetail_20' ) start [2025-02-18 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500829', 'tblTempUsageDetail_20' ) end [2025-02-18 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:09:21] Production.INFO: ==13186== Releasing lock... [2025-02-18 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:10:05 [end_date_ymd] => 2025-02-18 05:10:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:10:05' and `end` < '2025-02-18 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-18 05:10:17] Production.INFO: count ==675 [2025-02-18 05:10:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:10:05 - End Time 2025-02-18 05:10:05 [2025-02-18 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500834', 'tblTempUsageDetail_20' ) start [2025-02-18 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500834', 'tblTempUsageDetail_20' ) end [2025-02-18 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500834', 'tblTempVendorCDR_20' ) start [2025-02-18 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500834', 'tblTempVendorCDR_20' ) end [2025-02-18 05:10:17] Production.INFO: ProcessCDR(1,14500834,1,1,2) [2025-02-18 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500834', 'tblTempUsageDetail_20' ) start [2025-02-18 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500834', 'tblTempUsageDetail_20' ) end [2025-02-18 05:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:10:20] Production.INFO: ==13260== Releasing lock... [2025-02-18 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:10:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:11:05 [end_date_ymd] => 2025-02-18 05:11:05 [RateCDR] => 1 ) [2025-02-18 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:11:05' and `end` < '2025-02-18 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:11:17] Production.INFO: count ==675 [2025-02-18 05:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:11:05 - End Time 2025-02-18 05:11:05 [2025-02-18 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500840', 'tblTempUsageDetail_20' ) start [2025-02-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500840', 'tblTempUsageDetail_20' ) end [2025-02-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500840', 'tblTempVendorCDR_20' ) start [2025-02-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500840', 'tblTempVendorCDR_20' ) end [2025-02-18 05:11:17] Production.INFO: ProcessCDR(1,14500840,1,1,2) [2025-02-18 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500840', 'tblTempUsageDetail_20' ) start [2025-02-18 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500840', 'tblTempUsageDetail_20' ) end [2025-02-18 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:11:20] Production.INFO: ==13333== Releasing lock... [2025-02-18 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:11:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:12:04 [end_date_ymd] => 2025-02-18 05:12:04 [RateCDR] => 1 ) [2025-02-18 05:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:12:04' and `end` < '2025-02-18 05:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:12:16] Production.INFO: count ==675 [2025-02-18 05:12:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:12:04 - End Time 2025-02-18 05:12:04 [2025-02-18 05:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500845', 'tblTempUsageDetail_20' ) start [2025-02-18 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500845', 'tblTempUsageDetail_20' ) end [2025-02-18 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500845', 'tblTempVendorCDR_20' ) start [2025-02-18 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500845', 'tblTempVendorCDR_20' ) end [2025-02-18 05:12:16] Production.INFO: ProcessCDR(1,14500845,1,1,2) [2025-02-18 05:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:12:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500845', 'tblTempUsageDetail_20' ) start [2025-02-18 05:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500845', 'tblTempUsageDetail_20' ) end [2025-02-18 05:12:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:12:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:12:19] Production.INFO: ==13403== Releasing lock... [2025-02-18 05:12:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:12:19] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:13:05 [end_date_ymd] => 2025-02-18 05:13:05 [RateCDR] => 1 ) [2025-02-18 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:13:05' and `end` < '2025-02-18 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:13:17] Production.INFO: count ==675 [2025-02-18 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:13:05 - End Time 2025-02-18 05:13:05 [2025-02-18 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500850', 'tblTempUsageDetail_20' ) start [2025-02-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500850', 'tblTempUsageDetail_20' ) end [2025-02-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500850', 'tblTempVendorCDR_20' ) start [2025-02-18 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500850', 'tblTempVendorCDR_20' ) end [2025-02-18 05:13:17] Production.INFO: ProcessCDR(1,14500850,1,1,2) [2025-02-18 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500850', 'tblTempUsageDetail_20' ) start [2025-02-18 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500850', 'tblTempUsageDetail_20' ) end [2025-02-18 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:13:20] Production.INFO: ==13474== Releasing lock... [2025-02-18 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:13:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:14:06 [end_date_ymd] => 2025-02-18 05:14:06 [RateCDR] => 1 ) [2025-02-18 05: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-18 02:14:06' and `end` < '2025-02-18 05: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-18 05:14:17] Production.INFO: count ==675 [2025-02-18 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:14:06 - End Time 2025-02-18 05:14:06 [2025-02-18 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500855', 'tblTempUsageDetail_20' ) start [2025-02-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500855', 'tblTempUsageDetail_20' ) end [2025-02-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500855', 'tblTempVendorCDR_20' ) start [2025-02-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500855', 'tblTempVendorCDR_20' ) end [2025-02-18 05:14:18] Production.INFO: ProcessCDR(1,14500855,1,1,2) [2025-02-18 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500855', 'tblTempUsageDetail_20' ) start [2025-02-18 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500855', 'tblTempUsageDetail_20' ) end [2025-02-18 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:14:21] Production.INFO: ==13545== Releasing lock... [2025-02-18 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:15:05 [end_date_ymd] => 2025-02-18 05:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:15:05' and `end` < '2025-02-18 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-18 05:15:17] Production.INFO: count ==675 [2025-02-18 05:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:15:05 - End Time 2025-02-18 05:15:05 [2025-02-18 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500860', 'tblTempUsageDetail_20' ) start [2025-02-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500860', 'tblTempUsageDetail_20' ) end [2025-02-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500860', 'tblTempVendorCDR_20' ) start [2025-02-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500860', 'tblTempVendorCDR_20' ) end [2025-02-18 05:15:17] Production.INFO: ProcessCDR(1,14500860,1,1,2) [2025-02-18 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500860', 'tblTempUsageDetail_20' ) start [2025-02-18 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500860', 'tblTempUsageDetail_20' ) end [2025-02-18 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:15:20] Production.INFO: ==13615== Releasing lock... [2025-02-18 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:15:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:16:05 [end_date_ymd] => 2025-02-18 05:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:16:05' and `end` < '2025-02-18 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-18 05:16:17] Production.INFO: count ==675 [2025-02-18 05:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:16:05 - End Time 2025-02-18 05:16:05 [2025-02-18 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500865', 'tblTempUsageDetail_20' ) start [2025-02-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500865', 'tblTempUsageDetail_20' ) end [2025-02-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500865', 'tblTempVendorCDR_20' ) start [2025-02-18 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500865', 'tblTempVendorCDR_20' ) end [2025-02-18 05:16:17] Production.INFO: ProcessCDR(1,14500865,1,1,2) [2025-02-18 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500865', 'tblTempUsageDetail_20' ) start [2025-02-18 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500865', 'tblTempUsageDetail_20' ) end [2025-02-18 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:16:20] Production.INFO: ==13689== Releasing lock... [2025-02-18 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:16:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:17:05 [end_date_ymd] => 2025-02-18 05:17:05 [RateCDR] => 1 ) [2025-02-18 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:17:05' and `end` < '2025-02-18 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:17:17] Production.INFO: count ==675 [2025-02-18 05:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:17:05 - End Time 2025-02-18 05:17:05 [2025-02-18 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500870', 'tblTempUsageDetail_20' ) start [2025-02-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500870', 'tblTempUsageDetail_20' ) end [2025-02-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500870', 'tblTempVendorCDR_20' ) start [2025-02-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500870', 'tblTempVendorCDR_20' ) end [2025-02-18 05:17:17] Production.INFO: ProcessCDR(1,14500870,1,1,2) [2025-02-18 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500870', 'tblTempUsageDetail_20' ) start [2025-02-18 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500870', 'tblTempUsageDetail_20' ) end [2025-02-18 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:17:20] Production.INFO: ==13760== Releasing lock... [2025-02-18 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:17:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:18:06 [end_date_ymd] => 2025-02-18 05:18:06 [RateCDR] => 1 ) [2025-02-18 05: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-18 02:18:06' and `end` < '2025-02-18 05: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-18 05:18:17] Production.INFO: count ==675 [2025-02-18 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:18:06 - End Time 2025-02-18 05:18:06 [2025-02-18 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500875', 'tblTempUsageDetail_20' ) start [2025-02-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500875', 'tblTempUsageDetail_20' ) end [2025-02-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500875', 'tblTempVendorCDR_20' ) start [2025-02-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500875', 'tblTempVendorCDR_20' ) end [2025-02-18 05:18:18] Production.INFO: ProcessCDR(1,14500875,1,1,2) [2025-02-18 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500875', 'tblTempUsageDetail_20' ) start [2025-02-18 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500875', 'tblTempUsageDetail_20' ) end [2025-02-18 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:18:21] Production.INFO: ==13831== Releasing lock... [2025-02-18 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:19:05 [end_date_ymd] => 2025-02-18 05:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:19:05' and `end` < '2025-02-18 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-18 05:19:16] Production.INFO: count ==675 [2025-02-18 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:19:05 - End Time 2025-02-18 05:19:05 [2025-02-18 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500880', 'tblTempUsageDetail_20' ) start [2025-02-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500880', 'tblTempUsageDetail_20' ) end [2025-02-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500880', 'tblTempVendorCDR_20' ) start [2025-02-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500880', 'tblTempVendorCDR_20' ) end [2025-02-18 05:19:17] Production.INFO: ProcessCDR(1,14500880,1,1,2) [2025-02-18 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500880', 'tblTempUsageDetail_20' ) start [2025-02-18 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500880', 'tblTempUsageDetail_20' ) end [2025-02-18 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:19:20] Production.INFO: ==13904== Releasing lock... [2025-02-18 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:19:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:20:06 [end_date_ymd] => 2025-02-18 05:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 02:20:06' and `end` < '2025-02-18 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-18 05:20:18] Production.INFO: count ==675 [2025-02-18 05:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:20:06 - End Time 2025-02-18 05:20:06 [2025-02-18 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500886', 'tblTempUsageDetail_20' ) start [2025-02-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500886', 'tblTempUsageDetail_20' ) end [2025-02-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500886', 'tblTempVendorCDR_20' ) start [2025-02-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500886', 'tblTempVendorCDR_20' ) end [2025-02-18 05:20:18] Production.INFO: ProcessCDR(1,14500886,1,1,2) [2025-02-18 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500886', 'tblTempUsageDetail_20' ) start [2025-02-18 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500886', 'tblTempUsageDetail_20' ) end [2025-02-18 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:20:22] Production.INFO: ==13983== Releasing lock... [2025-02-18 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:21:05 [end_date_ymd] => 2025-02-18 05:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:21:05' and `end` < '2025-02-18 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-18 05:21:17] Production.INFO: count ==675 [2025-02-18 05:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:21:05 - End Time 2025-02-18 05:21:05 [2025-02-18 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500891', 'tblTempUsageDetail_20' ) start [2025-02-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500891', 'tblTempUsageDetail_20' ) end [2025-02-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500891', 'tblTempVendorCDR_20' ) start [2025-02-18 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500891', 'tblTempVendorCDR_20' ) end [2025-02-18 05:21:17] Production.INFO: ProcessCDR(1,14500891,1,1,2) [2025-02-18 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500891', 'tblTempUsageDetail_20' ) start [2025-02-18 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500891', 'tblTempUsageDetail_20' ) end [2025-02-18 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:21:21] Production.INFO: ==14108== Releasing lock... [2025-02-18 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:22:05 [end_date_ymd] => 2025-02-18 05:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:22:05' and `end` < '2025-02-18 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-18 05:22:17] Production.INFO: count ==675 [2025-02-18 05:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:22:05 - End Time 2025-02-18 05:22:05 [2025-02-18 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500896', 'tblTempUsageDetail_20' ) start [2025-02-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500896', 'tblTempUsageDetail_20' ) end [2025-02-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500896', 'tblTempVendorCDR_20' ) start [2025-02-18 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500896', 'tblTempVendorCDR_20' ) end [2025-02-18 05:22:17] Production.INFO: ProcessCDR(1,14500896,1,1,2) [2025-02-18 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500896', 'tblTempUsageDetail_20' ) start [2025-02-18 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500896', 'tblTempUsageDetail_20' ) end [2025-02-18 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:22:21] Production.INFO: ==14189== Releasing lock... [2025-02-18 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:23:05 [end_date_ymd] => 2025-02-18 05:23:05 [RateCDR] => 1 ) [2025-02-18 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:23:05' and `end` < '2025-02-18 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:23:17] Production.INFO: count ==675 [2025-02-18 05:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:23:05 - End Time 2025-02-18 05:23:05 [2025-02-18 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500901', 'tblTempUsageDetail_20' ) start [2025-02-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500901', 'tblTempUsageDetail_20' ) end [2025-02-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500901', 'tblTempVendorCDR_20' ) start [2025-02-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500901', 'tblTempVendorCDR_20' ) end [2025-02-18 05:23:17] Production.INFO: ProcessCDR(1,14500901,1,1,2) [2025-02-18 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500901', 'tblTempUsageDetail_20' ) start [2025-02-18 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500901', 'tblTempUsageDetail_20' ) end [2025-02-18 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:23:20] Production.INFO: ==14266== Releasing lock... [2025-02-18 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:23:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:24:05 [end_date_ymd] => 2025-02-18 05:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:24:05' and `end` < '2025-02-18 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-18 05:24:17] Production.INFO: count ==675 [2025-02-18 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:24:05 - End Time 2025-02-18 05:24:05 [2025-02-18 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500906', 'tblTempUsageDetail_20' ) start [2025-02-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500906', 'tblTempUsageDetail_20' ) end [2025-02-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500906', 'tblTempVendorCDR_20' ) start [2025-02-18 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500906', 'tblTempVendorCDR_20' ) end [2025-02-18 05:24:17] Production.INFO: ProcessCDR(1,14500906,1,1,2) [2025-02-18 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500906', 'tblTempUsageDetail_20' ) start [2025-02-18 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500906', 'tblTempUsageDetail_20' ) end [2025-02-18 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:24:21] Production.INFO: ==14351== Releasing lock... [2025-02-18 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:25:05 [end_date_ymd] => 2025-02-18 05:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:25:05' and `end` < '2025-02-18 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-18 05:25:16] Production.INFO: count ==675 [2025-02-18 05:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:25:05 - End Time 2025-02-18 05:25:05 [2025-02-18 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500911', 'tblTempUsageDetail_20' ) start [2025-02-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500911', 'tblTempUsageDetail_20' ) end [2025-02-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500911', 'tblTempVendorCDR_20' ) start [2025-02-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500911', 'tblTempVendorCDR_20' ) end [2025-02-18 05:25:17] Production.INFO: ProcessCDR(1,14500911,1,1,2) [2025-02-18 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500911', 'tblTempUsageDetail_20' ) start [2025-02-18 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500911', 'tblTempUsageDetail_20' ) end [2025-02-18 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:25:20] Production.INFO: ==14442== Releasing lock... [2025-02-18 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:25:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:26:05 [end_date_ymd] => 2025-02-18 05:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:26:05' and `end` < '2025-02-18 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-18 05:26:17] Production.INFO: count ==675 [2025-02-18 05:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:26:05 - End Time 2025-02-18 05:26:05 [2025-02-18 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500916', 'tblTempUsageDetail_20' ) start [2025-02-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500916', 'tblTempUsageDetail_20' ) end [2025-02-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500916', 'tblTempVendorCDR_20' ) start [2025-02-18 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500916', 'tblTempVendorCDR_20' ) end [2025-02-18 05:26:17] Production.INFO: ProcessCDR(1,14500916,1,1,2) [2025-02-18 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500916', 'tblTempUsageDetail_20' ) start [2025-02-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500916', 'tblTempUsageDetail_20' ) end [2025-02-18 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:26:21] Production.INFO: ==14541== Releasing lock... [2025-02-18 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:27:05 [end_date_ymd] => 2025-02-18 05:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:27:05' and `end` < '2025-02-18 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-18 05:27:17] Production.INFO: count ==675 [2025-02-18 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:27:05 - End Time 2025-02-18 05:27:05 [2025-02-18 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500921', 'tblTempUsageDetail_20' ) start [2025-02-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500921', 'tblTempUsageDetail_20' ) end [2025-02-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500921', 'tblTempVendorCDR_20' ) start [2025-02-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500921', 'tblTempVendorCDR_20' ) end [2025-02-18 05:27:17] Production.INFO: ProcessCDR(1,14500921,1,1,2) [2025-02-18 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500921', 'tblTempUsageDetail_20' ) start [2025-02-18 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500921', 'tblTempUsageDetail_20' ) end [2025-02-18 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:27:20] Production.INFO: ==14632== Releasing lock... [2025-02-18 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:27:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:28:05 [end_date_ymd] => 2025-02-18 05:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:28:05' and `end` < '2025-02-18 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-18 05:28:16] Production.INFO: count ==675 [2025-02-18 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:28:05 - End Time 2025-02-18 05:28:05 [2025-02-18 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500926', 'tblTempUsageDetail_20' ) start [2025-02-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500926', 'tblTempUsageDetail_20' ) end [2025-02-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500926', 'tblTempVendorCDR_20' ) start [2025-02-18 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500926', 'tblTempVendorCDR_20' ) end [2025-02-18 05:28:17] Production.INFO: ProcessCDR(1,14500926,1,1,2) [2025-02-18 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500926', 'tblTempUsageDetail_20' ) start [2025-02-18 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500926', 'tblTempUsageDetail_20' ) end [2025-02-18 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:28:20] Production.INFO: ==14725== Releasing lock... [2025-02-18 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:28:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:29:05 [end_date_ymd] => 2025-02-18 05:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:29:05' and `end` < '2025-02-18 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-18 05:29:17] Production.INFO: count ==675 [2025-02-18 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:29:05 - End Time 2025-02-18 05:29:05 [2025-02-18 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500931', 'tblTempUsageDetail_20' ) start [2025-02-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500931', 'tblTempUsageDetail_20' ) end [2025-02-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500931', 'tblTempVendorCDR_20' ) start [2025-02-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500931', 'tblTempVendorCDR_20' ) end [2025-02-18 05:29:17] Production.INFO: ProcessCDR(1,14500931,1,1,2) [2025-02-18 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500931', 'tblTempUsageDetail_20' ) start [2025-02-18 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500931', 'tblTempUsageDetail_20' ) end [2025-02-18 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:29:20] Production.INFO: ==14824== Releasing lock... [2025-02-18 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:29:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:30:06 [end_date_ymd] => 2025-02-18 05:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 02:30:06' and `end` < '2025-02-18 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-18 05:30:18] Production.INFO: count ==672 [2025-02-18 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:30:06 - End Time 2025-02-18 05:30:06 [2025-02-18 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500937', 'tblTempUsageDetail_20' ) start [2025-02-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500937', 'tblTempUsageDetail_20' ) end [2025-02-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500937', 'tblTempVendorCDR_20' ) start [2025-02-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500937', 'tblTempVendorCDR_20' ) end [2025-02-18 05:30:18] Production.INFO: ProcessCDR(1,14500937,1,1,2) [2025-02-18 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500937', 'tblTempUsageDetail_20' ) start [2025-02-18 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500937', 'tblTempUsageDetail_20' ) end [2025-02-18 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:30:22] Production.INFO: ==14920== Releasing lock... [2025-02-18 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:31:06 [end_date_ymd] => 2025-02-18 05:31:06 [RateCDR] => 1 ) [2025-02-18 05: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-18 02:31:06' and `end` < '2025-02-18 05: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-18 05:31:17] Production.INFO: count ==672 [2025-02-18 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:31:06 - End Time 2025-02-18 05:31:06 [2025-02-18 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500942', 'tblTempUsageDetail_20' ) start [2025-02-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500942', 'tblTempUsageDetail_20' ) end [2025-02-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500942', 'tblTempVendorCDR_20' ) start [2025-02-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500942', 'tblTempVendorCDR_20' ) end [2025-02-18 05:31:18] Production.INFO: ProcessCDR(1,14500942,1,1,2) [2025-02-18 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500942', 'tblTempUsageDetail_20' ) start [2025-02-18 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500942', 'tblTempUsageDetail_20' ) end [2025-02-18 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:31:21] Production.INFO: ==15021== Releasing lock... [2025-02-18 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:31:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:32:05 [end_date_ymd] => 2025-02-18 05:32:05 [RateCDR] => 1 ) [2025-02-18 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:32:05' and `end` < '2025-02-18 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:32:17] Production.INFO: count ==671 [2025-02-18 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:32:05 - End Time 2025-02-18 05:32:05 [2025-02-18 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500947', 'tblTempUsageDetail_20' ) start [2025-02-18 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500947', 'tblTempUsageDetail_20' ) end [2025-02-18 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500947', 'tblTempVendorCDR_20' ) start [2025-02-18 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500947', 'tblTempVendorCDR_20' ) end [2025-02-18 05:32:17] Production.INFO: ProcessCDR(1,14500947,1,1,2) [2025-02-18 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500947', 'tblTempUsageDetail_20' ) start [2025-02-18 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500947', 'tblTempUsageDetail_20' ) end [2025-02-18 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:32:20] Production.INFO: ==15117== Releasing lock... [2025-02-18 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:32:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:33:06 [end_date_ymd] => 2025-02-18 05:33:06 [RateCDR] => 1 ) [2025-02-18 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:33:06' and `end` < '2025-02-18 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:33:18] Production.INFO: count ==670 [2025-02-18 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:33:06 - End Time 2025-02-18 05:33:06 [2025-02-18 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500952', 'tblTempUsageDetail_20' ) start [2025-02-18 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500952', 'tblTempUsageDetail_20' ) end [2025-02-18 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500952', 'tblTempVendorCDR_20' ) start [2025-02-18 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500952', 'tblTempVendorCDR_20' ) end [2025-02-18 05:33:18] Production.INFO: ProcessCDR(1,14500952,1,1,2) [2025-02-18 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500952', 'tblTempUsageDetail_20' ) start [2025-02-18 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500952', 'tblTempUsageDetail_20' ) end [2025-02-18 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:33:22] Production.INFO: ==15211== Releasing lock... [2025-02-18 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:34:05 [end_date_ymd] => 2025-02-18 05:34:05 [RateCDR] => 1 ) [2025-02-18 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:34:05' and `end` < '2025-02-18 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:34:17] Production.INFO: count ==670 [2025-02-18 05:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:34:05 - End Time 2025-02-18 05:34:05 [2025-02-18 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500957', 'tblTempUsageDetail_20' ) start [2025-02-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500957', 'tblTempUsageDetail_20' ) end [2025-02-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500957', 'tblTempVendorCDR_20' ) start [2025-02-18 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500957', 'tblTempVendorCDR_20' ) end [2025-02-18 05:34:17] Production.INFO: ProcessCDR(1,14500957,1,1,2) [2025-02-18 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500957', 'tblTempUsageDetail_20' ) start [2025-02-18 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500957', 'tblTempUsageDetail_20' ) end [2025-02-18 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:34:20] Production.INFO: ==15305== Releasing lock... [2025-02-18 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:34:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:35:06 [end_date_ymd] => 2025-02-18 05:35:06 [RateCDR] => 1 ) [2025-02-18 05: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-18 02:35:06' and `end` < '2025-02-18 05: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-18 05:35:17] Production.INFO: count ==670 [2025-02-18 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-18 02:35:06 - End Time 2025-02-18 05:35:06 [2025-02-18 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500962', 'tblTempUsageDetail_20' ) start [2025-02-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500962', 'tblTempUsageDetail_20' ) end [2025-02-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500962', 'tblTempVendorCDR_20' ) start [2025-02-18 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500962', 'tblTempVendorCDR_20' ) end [2025-02-18 05:35:18] Production.INFO: ProcessCDR(1,14500962,1,1,2) [2025-02-18 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500962', 'tblTempUsageDetail_20' ) start [2025-02-18 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500962', 'tblTempUsageDetail_20' ) end [2025-02-18 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:35:21] Production.INFO: ==15404== Releasing lock... [2025-02-18 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:36:05 [end_date_ymd] => 2025-02-18 05:36:05 [RateCDR] => 1 ) [2025-02-18 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:36:05' and `end` < '2025-02-18 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:36:17] Production.INFO: count ==666 [2025-02-18 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:36:05 - End Time 2025-02-18 05:36:05 [2025-02-18 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500967', 'tblTempUsageDetail_20' ) start [2025-02-18 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500967', 'tblTempUsageDetail_20' ) end [2025-02-18 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500967', 'tblTempVendorCDR_20' ) start [2025-02-18 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500967', 'tblTempVendorCDR_20' ) end [2025-02-18 05:36:17] Production.INFO: ProcessCDR(1,14500967,1,1,2) [2025-02-18 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500967', 'tblTempUsageDetail_20' ) start [2025-02-18 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500967', 'tblTempUsageDetail_20' ) end [2025-02-18 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:36:20] Production.INFO: ==15541== Releasing lock... [2025-02-18 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:36:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:37:05 [end_date_ymd] => 2025-02-18 05:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:37:05' and `end` < '2025-02-18 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-18 05:37:17] Production.INFO: count ==666 [2025-02-18 05:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:37:05 - End Time 2025-02-18 05:37:05 [2025-02-18 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500972', 'tblTempUsageDetail_20' ) start [2025-02-18 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500972', 'tblTempUsageDetail_20' ) end [2025-02-18 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500972', 'tblTempVendorCDR_20' ) start [2025-02-18 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500972', 'tblTempVendorCDR_20' ) end [2025-02-18 05:37:17] Production.INFO: ProcessCDR(1,14500972,1,1,2) [2025-02-18 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500972', 'tblTempUsageDetail_20' ) start [2025-02-18 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500972', 'tblTempUsageDetail_20' ) end [2025-02-18 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:37:21] Production.INFO: ==15638== Releasing lock... [2025-02-18 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:37:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:38:05 [end_date_ymd] => 2025-02-18 05:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:38:05' and `end` < '2025-02-18 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-18 05:38:17] Production.INFO: count ==626 [2025-02-18 05:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:38:05 - End Time 2025-02-18 05:38:05 [2025-02-18 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500977', 'tblTempUsageDetail_20' ) start [2025-02-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500977', 'tblTempUsageDetail_20' ) end [2025-02-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500977', 'tblTempVendorCDR_20' ) start [2025-02-18 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500977', 'tblTempVendorCDR_20' ) end [2025-02-18 05:38:17] Production.INFO: ProcessCDR(1,14500977,1,1,2) [2025-02-18 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500977', 'tblTempUsageDetail_20' ) start [2025-02-18 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500977', 'tblTempUsageDetail_20' ) end [2025-02-18 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:38:20] Production.INFO: ==15737== Releasing lock... [2025-02-18 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:38:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:39:05 [end_date_ymd] => 2025-02-18 05:39:05 [RateCDR] => 1 ) [2025-02-18 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:39:05' and `end` < '2025-02-18 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:39:17] Production.INFO: count ==546 [2025-02-18 05:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:39:05 - End Time 2025-02-18 05:39:05 [2025-02-18 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500982', 'tblTempUsageDetail_20' ) start [2025-02-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500982', 'tblTempUsageDetail_20' ) end [2025-02-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500982', 'tblTempVendorCDR_20' ) start [2025-02-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500982', 'tblTempVendorCDR_20' ) end [2025-02-18 05:39:17] Production.INFO: ProcessCDR(1,14500982,1,1,2) [2025-02-18 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500982', 'tblTempUsageDetail_20' ) start [2025-02-18 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500982', 'tblTempUsageDetail_20' ) end [2025-02-18 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:39:20] Production.INFO: ==15827== Releasing lock... [2025-02-18 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:39:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:40:06 [end_date_ymd] => 2025-02-18 05:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 02:40:06' and `end` < '2025-02-18 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-18 05:40:17] Production.INFO: count ==457 [2025-02-18 05:40:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:40:06 - End Time 2025-02-18 05:40:06 [2025-02-18 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500988', 'tblTempUsageDetail_20' ) start [2025-02-18 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500988', 'tblTempUsageDetail_20' ) end [2025-02-18 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500988', 'tblTempVendorCDR_20' ) start [2025-02-18 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500988', 'tblTempVendorCDR_20' ) end [2025-02-18 05:40:17] Production.INFO: ProcessCDR(1,14500988,1,1,2) [2025-02-18 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500988', 'tblTempUsageDetail_20' ) start [2025-02-18 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500988', 'tblTempUsageDetail_20' ) end [2025-02-18 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:40:21] Production.INFO: ==15923== Releasing lock... [2025-02-18 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:40:21] Production.INFO: 32 MB #Memory Used# [2025-02-18 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:41:05 [end_date_ymd] => 2025-02-18 05:41:05 [RateCDR] => 1 ) [2025-02-18 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:41:05' and `end` < '2025-02-18 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:41:17] Production.INFO: count ==369 [2025-02-18 05:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:41:05 - End Time 2025-02-18 05:41:05 [2025-02-18 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500993', 'tblTempUsageDetail_20' ) start [2025-02-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500993', 'tblTempUsageDetail_20' ) end [2025-02-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500993', 'tblTempVendorCDR_20' ) start [2025-02-18 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500993', 'tblTempVendorCDR_20' ) end [2025-02-18 05:41:17] Production.INFO: ProcessCDR(1,14500993,1,1,2) [2025-02-18 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500993', 'tblTempUsageDetail_20' ) start [2025-02-18 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500993', 'tblTempUsageDetail_20' ) end [2025-02-18 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:41:20] Production.INFO: ==16019== Releasing lock... [2025-02-18 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:41:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-18 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:42:05 [end_date_ymd] => 2025-02-18 05:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:42:05' and `end` < '2025-02-18 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-18 05:42:16] Production.INFO: count ==287 [2025-02-18 05:42:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:42:05 - End Time 2025-02-18 05:42:05 [2025-02-18 05:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500998', 'tblTempUsageDetail_20' ) start [2025-02-18 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14500998', 'tblTempUsageDetail_20' ) end [2025-02-18 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500998', 'tblTempVendorCDR_20' ) start [2025-02-18 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14500998', 'tblTempVendorCDR_20' ) end [2025-02-18 05:42:16] Production.INFO: ProcessCDR(1,14500998,1,1,2) [2025-02-18 05:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14500998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14500998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14500998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14500998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500998', 'tblTempUsageDetail_20' ) start [2025-02-18 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14500998', 'tblTempUsageDetail_20' ) end [2025-02-18 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:42:20] Production.INFO: ==16117== Releasing lock... [2025-02-18 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:42:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:43:05 [end_date_ymd] => 2025-02-18 05:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:43:05' and `end` < '2025-02-18 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-18 05:43:17] Production.INFO: count ==207 [2025-02-18 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:43:05 - End Time 2025-02-18 05:43:05 [2025-02-18 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501003', 'tblTempUsageDetail_20' ) start [2025-02-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501003', 'tblTempUsageDetail_20' ) end [2025-02-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501003', 'tblTempVendorCDR_20' ) start [2025-02-18 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501003', 'tblTempVendorCDR_20' ) end [2025-02-18 05:43:17] Production.INFO: ProcessCDR(1,14501003,1,1,2) [2025-02-18 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501003', 'tblTempUsageDetail_20' ) start [2025-02-18 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501003', 'tblTempUsageDetail_20' ) end [2025-02-18 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:43:21] Production.INFO: ==16211== Releasing lock... [2025-02-18 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-18 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:44:06 [end_date_ymd] => 2025-02-18 05:44:06 [RateCDR] => 1 ) [2025-02-18 05: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-18 02:44:06' and `end` < '2025-02-18 05: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-18 05:44:17] Production.INFO: count ==129 [2025-02-18 05:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:44:06 - End Time 2025-02-18 05:44:06 [2025-02-18 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501008', 'tblTempUsageDetail_20' ) start [2025-02-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501008', 'tblTempUsageDetail_20' ) end [2025-02-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501008', 'tblTempVendorCDR_20' ) start [2025-02-18 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501008', 'tblTempVendorCDR_20' ) end [2025-02-18 05:44:18] Production.INFO: ProcessCDR(1,14501008,1,1,2) [2025-02-18 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501008', 'tblTempUsageDetail_20' ) start [2025-02-18 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501008', 'tblTempUsageDetail_20' ) end [2025-02-18 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:44:21] Production.INFO: ==16311== Releasing lock... [2025-02-18 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-18 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:45:05 [end_date_ymd] => 2025-02-18 05:45:05 [RateCDR] => 1 ) [2025-02-18 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:45:05' and `end` < '2025-02-18 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-18 05:45:16] Production.INFO: count ==53 [2025-02-18 05:45:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:45:05 - End Time 2025-02-18 05:45:05 [2025-02-18 05:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501013', 'tblTempUsageDetail_20' ) start [2025-02-18 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501013', 'tblTempUsageDetail_20' ) end [2025-02-18 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501013', 'tblTempVendorCDR_20' ) start [2025-02-18 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501013', 'tblTempVendorCDR_20' ) end [2025-02-18 05:45:16] Production.INFO: ProcessCDR(1,14501013,1,1,2) [2025-02-18 05:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501013', 'tblTempUsageDetail_20' ) start [2025-02-18 05:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501013', 'tblTempUsageDetail_20' ) end [2025-02-18 05:45:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:45:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:45:19] Production.INFO: ==16399== Releasing lock... [2025-02-18 05:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:45:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:46:05 [end_date_ymd] => 2025-02-18 05:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:46:05' and `end` < '2025-02-18 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-18 05:46:17] Production.INFO: count ==21 [2025-02-18 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:46:05 - End Time 2025-02-18 05:46:05 [2025-02-18 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501018', 'tblTempUsageDetail_20' ) start [2025-02-18 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501018', 'tblTempUsageDetail_20' ) end [2025-02-18 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501018', 'tblTempVendorCDR_20' ) start [2025-02-18 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501018', 'tblTempVendorCDR_20' ) end [2025-02-18 05:46:17] Production.INFO: ProcessCDR(1,14501018,1,1,2) [2025-02-18 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501018', 'tblTempUsageDetail_20' ) start [2025-02-18 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501018', 'tblTempUsageDetail_20' ) end [2025-02-18 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:46:20] Production.INFO: ==16501== Releasing lock... [2025-02-18 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:46:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:47:05 [end_date_ymd] => 2025-02-18 05:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:47:05' and `end` < '2025-02-18 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-18 05:47:16] Production.INFO: count ==21 [2025-02-18 05:47:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:47:05 - End Time 2025-02-18 05:47:05 [2025-02-18 05:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501023', 'tblTempUsageDetail_20' ) start [2025-02-18 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501023', 'tblTempUsageDetail_20' ) end [2025-02-18 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501023', 'tblTempVendorCDR_20' ) start [2025-02-18 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501023', 'tblTempVendorCDR_20' ) end [2025-02-18 05:47:16] Production.INFO: ProcessCDR(1,14501023,1,1,2) [2025-02-18 05:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501023', 'tblTempUsageDetail_20' ) start [2025-02-18 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501023', 'tblTempUsageDetail_20' ) end [2025-02-18 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:47:20] Production.INFO: ==16600== Releasing lock... [2025-02-18 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:47:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:48:05 [end_date_ymd] => 2025-02-18 05:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:48:05' and `end` < '2025-02-18 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-18 05:48:17] Production.INFO: count ==21 [2025-02-18 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:48:05 - End Time 2025-02-18 05:48:05 [2025-02-18 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501028', 'tblTempUsageDetail_20' ) start [2025-02-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501028', 'tblTempUsageDetail_20' ) end [2025-02-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501028', 'tblTempVendorCDR_20' ) start [2025-02-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501028', 'tblTempVendorCDR_20' ) end [2025-02-18 05:48:17] Production.INFO: ProcessCDR(1,14501028,1,1,2) [2025-02-18 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501028', 'tblTempUsageDetail_20' ) start [2025-02-18 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501028', 'tblTempUsageDetail_20' ) end [2025-02-18 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:48:20] Production.INFO: ==16699== Releasing lock... [2025-02-18 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:48:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:49:05 [end_date_ymd] => 2025-02-18 05:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:49:05' and `end` < '2025-02-18 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-18 05:49:17] Production.INFO: count ==21 [2025-02-18 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:49:05 - End Time 2025-02-18 05:49:05 [2025-02-18 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501033', 'tblTempUsageDetail_20' ) start [2025-02-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501033', 'tblTempUsageDetail_20' ) end [2025-02-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501033', 'tblTempVendorCDR_20' ) start [2025-02-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501033', 'tblTempVendorCDR_20' ) end [2025-02-18 05:49:17] Production.INFO: ProcessCDR(1,14501033,1,1,2) [2025-02-18 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501033', 'tblTempUsageDetail_20' ) start [2025-02-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501033', 'tblTempUsageDetail_20' ) end [2025-02-18 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:49:20] Production.INFO: ==16801== Releasing lock... [2025-02-18 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:49:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:50:06 [end_date_ymd] => 2025-02-18 05:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 02:50:06' and `end` < '2025-02-18 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-18 05:50:17] Production.INFO: count ==21 [2025-02-18 05:50:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:50:06 - End Time 2025-02-18 05:50:06 [2025-02-18 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501038', 'tblTempUsageDetail_20' ) start [2025-02-18 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501038', 'tblTempUsageDetail_20' ) end [2025-02-18 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501038', 'tblTempVendorCDR_20' ) start [2025-02-18 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501038', 'tblTempVendorCDR_20' ) end [2025-02-18 05:50:17] Production.INFO: ProcessCDR(1,14501038,1,1,2) [2025-02-18 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501038', 'tblTempUsageDetail_20' ) start [2025-02-18 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501038', 'tblTempUsageDetail_20' ) end [2025-02-18 05:50:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:50:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:50:20] Production.INFO: ==16899== Releasing lock... [2025-02-18 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:50:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:51:05 [end_date_ymd] => 2025-02-18 05:51:05 [RateCDR] => 1 ) [2025-02-18 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:51:05' and `end` < '2025-02-18 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:51:17] Production.INFO: count ==21 [2025-02-18 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:51:05 - End Time 2025-02-18 05:51:05 [2025-02-18 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501044', 'tblTempUsageDetail_20' ) start [2025-02-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501044', 'tblTempUsageDetail_20' ) end [2025-02-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501044', 'tblTempVendorCDR_20' ) start [2025-02-18 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501044', 'tblTempVendorCDR_20' ) end [2025-02-18 05:51:17] Production.INFO: ProcessCDR(1,14501044,1,1,2) [2025-02-18 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501044', 'tblTempUsageDetail_20' ) start [2025-02-18 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501044', 'tblTempUsageDetail_20' ) end [2025-02-18 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:51:20] Production.INFO: ==16989== Releasing lock... [2025-02-18 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:51:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:52:06 [end_date_ymd] => 2025-02-18 05:52:06 [RateCDR] => 1 ) [2025-02-18 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:52:06' and `end` < '2025-02-18 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:52:17] Production.INFO: count ==21 [2025-02-18 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:52:06 - End Time 2025-02-18 05:52:06 [2025-02-18 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501049', 'tblTempUsageDetail_20' ) start [2025-02-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501049', 'tblTempUsageDetail_20' ) end [2025-02-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501049', 'tblTempVendorCDR_20' ) start [2025-02-18 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501049', 'tblTempVendorCDR_20' ) end [2025-02-18 05:52:17] Production.INFO: ProcessCDR(1,14501049,1,1,2) [2025-02-18 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501049', 'tblTempUsageDetail_20' ) start [2025-02-18 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501049', 'tblTempUsageDetail_20' ) end [2025-02-18 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:52:21] Production.INFO: ==17124== Releasing lock... [2025-02-18 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:53:05 [end_date_ymd] => 2025-02-18 05:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:53:05' and `end` < '2025-02-18 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-18 05:53:16] Production.INFO: count ==21 [2025-02-18 05:53:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:53:05 - End Time 2025-02-18 05:53:05 [2025-02-18 05:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501054', 'tblTempUsageDetail_20' ) start [2025-02-18 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501054', 'tblTempUsageDetail_20' ) end [2025-02-18 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501054', 'tblTempVendorCDR_20' ) start [2025-02-18 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501054', 'tblTempVendorCDR_20' ) end [2025-02-18 05:53:16] Production.INFO: ProcessCDR(1,14501054,1,1,2) [2025-02-18 05:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501054', 'tblTempUsageDetail_20' ) start [2025-02-18 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501054', 'tblTempUsageDetail_20' ) end [2025-02-18 05:53:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:53:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:53:20] Production.INFO: ==17221== Releasing lock... [2025-02-18 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:53:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:54:05 [end_date_ymd] => 2025-02-18 05:54:05 [RateCDR] => 1 ) [2025-02-18 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 02:54:05' and `end` < '2025-02-18 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 05:54:17] Production.INFO: count ==22 [2025-02-18 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:54:05 - End Time 2025-02-18 05:54:05 [2025-02-18 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501059', 'tblTempUsageDetail_20' ) start [2025-02-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501059', 'tblTempUsageDetail_20' ) end [2025-02-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501059', 'tblTempVendorCDR_20' ) start [2025-02-18 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501059', 'tblTempVendorCDR_20' ) end [2025-02-18 05:54:17] Production.INFO: ProcessCDR(1,14501059,1,1,2) [2025-02-18 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501059', 'tblTempUsageDetail_20' ) start [2025-02-18 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501059', 'tblTempUsageDetail_20' ) end [2025-02-18 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:54:21] Production.INFO: ==17318== Releasing lock... [2025-02-18 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:55:05 [end_date_ymd] => 2025-02-18 05:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:55:05' and `end` < '2025-02-18 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-18 05:55:16] Production.INFO: count ==22 [2025-02-18 05:55:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:55:05 - End Time 2025-02-18 05:55:05 [2025-02-18 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501064', 'tblTempUsageDetail_20' ) start [2025-02-18 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501064', 'tblTempUsageDetail_20' ) end [2025-02-18 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501064', 'tblTempVendorCDR_20' ) start [2025-02-18 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501064', 'tblTempVendorCDR_20' ) end [2025-02-18 05:55:16] Production.INFO: ProcessCDR(1,14501064,1,1,2) [2025-02-18 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501064', 'tblTempUsageDetail_20' ) start [2025-02-18 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501064', 'tblTempUsageDetail_20' ) end [2025-02-18 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:55:20] Production.INFO: ==17413== Releasing lock... [2025-02-18 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:55:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:56:05 [end_date_ymd] => 2025-02-18 05:56:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:56:05' and `end` < '2025-02-18 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-18 05:56:17] Production.INFO: count ==22 [2025-02-18 05:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:56:05 - End Time 2025-02-18 05:56:05 [2025-02-18 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501069', 'tblTempUsageDetail_20' ) start [2025-02-18 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501069', 'tblTempUsageDetail_20' ) end [2025-02-18 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501069', 'tblTempVendorCDR_20' ) start [2025-02-18 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501069', 'tblTempVendorCDR_20' ) end [2025-02-18 05:56:17] Production.INFO: ProcessCDR(1,14501069,1,1,2) [2025-02-18 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501069', 'tblTempUsageDetail_20' ) start [2025-02-18 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501069', 'tblTempUsageDetail_20' ) end [2025-02-18 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:56:20] Production.INFO: ==17498== Releasing lock... [2025-02-18 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:56:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:57:05 [end_date_ymd] => 2025-02-18 05:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:57:05' and `end` < '2025-02-18 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-18 05:57:17] Production.INFO: count ==22 [2025-02-18 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:57:05 - End Time 2025-02-18 05:57:05 [2025-02-18 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501074', 'tblTempUsageDetail_20' ) start [2025-02-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501074', 'tblTempUsageDetail_20' ) end [2025-02-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501074', 'tblTempVendorCDR_20' ) start [2025-02-18 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501074', 'tblTempVendorCDR_20' ) end [2025-02-18 05:57:17] Production.INFO: ProcessCDR(1,14501074,1,1,2) [2025-02-18 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501074', 'tblTempUsageDetail_20' ) start [2025-02-18 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501074', 'tblTempUsageDetail_20' ) end [2025-02-18 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:57:20] Production.INFO: ==17589== Releasing lock... [2025-02-18 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:57:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:58:05 [end_date_ymd] => 2025-02-18 05:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:58:05' and `end` < '2025-02-18 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-18 05:58:17] Production.INFO: count ==22 [2025-02-18 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 02:58:05 - End Time 2025-02-18 05:58:05 [2025-02-18 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501079', 'tblTempUsageDetail_20' ) start [2025-02-18 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501079', 'tblTempUsageDetail_20' ) end [2025-02-18 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501079', 'tblTempVendorCDR_20' ) start [2025-02-18 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501079', 'tblTempVendorCDR_20' ) end [2025-02-18 05:58:17] Production.INFO: ProcessCDR(1,14501079,1,1,2) [2025-02-18 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501079', 'tblTempUsageDetail_20' ) start [2025-02-18 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501079', 'tblTempUsageDetail_20' ) end [2025-02-18 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:58:20] Production.INFO: ==17680== Releasing lock... [2025-02-18 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:58:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 02:59:05 [end_date_ymd] => 2025-02-18 05:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 02:59:05' and `end` < '2025-02-18 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-18 05:59:16] Production.INFO: count ==22 [2025-02-18 05:59:16] Production.ERROR: pbx CDR StartTime 2025-02-18 02:59:05 - End Time 2025-02-18 05:59:05 [2025-02-18 05:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501084', 'tblTempUsageDetail_20' ) start [2025-02-18 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501084', 'tblTempUsageDetail_20' ) end [2025-02-18 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501084', 'tblTempVendorCDR_20' ) start [2025-02-18 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501084', 'tblTempVendorCDR_20' ) end [2025-02-18 05:59:16] Production.INFO: ProcessCDR(1,14501084,1,1,2) [2025-02-18 05:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 05:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 05:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501084', 'tblTempUsageDetail_20' ) start [2025-02-18 05:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501084', 'tblTempUsageDetail_20' ) end [2025-02-18 05:59:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 05:59:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 05:59:19] Production.INFO: ==17765== Releasing lock... [2025-02-18 05:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 05:59:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:00:06 [end_date_ymd] => 2025-02-18 06:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 03:00:06' and `end` < '2025-02-18 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-18 06:00:18] Production.INFO: count ==22 [2025-02-18 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 03:00:06 - End Time 2025-02-18 06:00:06 [2025-02-18 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501090', 'tblTempUsageDetail_20' ) start [2025-02-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501090', 'tblTempUsageDetail_20' ) end [2025-02-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501090', 'tblTempVendorCDR_20' ) start [2025-02-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501090', 'tblTempVendorCDR_20' ) end [2025-02-18 06:00:18] Production.INFO: ProcessCDR(1,14501090,1,1,2) [2025-02-18 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501090', 'tblTempUsageDetail_20' ) start [2025-02-18 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501090', 'tblTempUsageDetail_20' ) end [2025-02-18 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:00:22] Production.INFO: ==17852== Releasing lock... [2025-02-18 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:01:05 [end_date_ymd] => 2025-02-18 06:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:01:05' and `end` < '2025-02-18 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-18 06:01:16] Production.INFO: count ==22 [2025-02-18 06:01:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:01:05 - End Time 2025-02-18 06:01:05 [2025-02-18 06:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501095', 'tblTempUsageDetail_20' ) start [2025-02-18 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501095', 'tblTempUsageDetail_20' ) end [2025-02-18 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501095', 'tblTempVendorCDR_20' ) start [2025-02-18 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501095', 'tblTempVendorCDR_20' ) end [2025-02-18 06:01:16] Production.INFO: ProcessCDR(1,14501095,1,1,2) [2025-02-18 06:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501095', 'tblTempUsageDetail_20' ) start [2025-02-18 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501095', 'tblTempUsageDetail_20' ) end [2025-02-18 06:01:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:01:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:01:19] Production.INFO: ==17954== Releasing lock... [2025-02-18 06:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:01:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:02:05 [end_date_ymd] => 2025-02-18 06:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:02:05' and `end` < '2025-02-18 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-18 06:02:17] Production.INFO: count ==22 [2025-02-18 06:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:02:05 - End Time 2025-02-18 06:02:05 [2025-02-18 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501100', 'tblTempUsageDetail_20' ) start [2025-02-18 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501100', 'tblTempUsageDetail_20' ) end [2025-02-18 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501100', 'tblTempVendorCDR_20' ) start [2025-02-18 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501100', 'tblTempVendorCDR_20' ) end [2025-02-18 06:02:17] Production.INFO: ProcessCDR(1,14501100,1,1,2) [2025-02-18 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501100', 'tblTempUsageDetail_20' ) start [2025-02-18 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501100', 'tblTempUsageDetail_20' ) end [2025-02-18 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:02:21] Production.INFO: ==18040== Releasing lock... [2025-02-18 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:03:06 [end_date_ymd] => 2025-02-18 06:03:06 [RateCDR] => 1 ) [2025-02-18 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-18 03:03:06' and `end` < '2025-02-18 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-18 06:03:17] Production.INFO: count ==22 [2025-02-18 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:03:06 - End Time 2025-02-18 06:03:06 [2025-02-18 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501105', 'tblTempUsageDetail_20' ) start [2025-02-18 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501105', 'tblTempUsageDetail_20' ) end [2025-02-18 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501105', 'tblTempVendorCDR_20' ) start [2025-02-18 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501105', 'tblTempVendorCDR_20' ) end [2025-02-18 06:03:17] Production.INFO: ProcessCDR(1,14501105,1,1,2) [2025-02-18 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501105', 'tblTempUsageDetail_20' ) start [2025-02-18 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501105', 'tblTempUsageDetail_20' ) end [2025-02-18 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:03:20] Production.INFO: ==18114== Releasing lock... [2025-02-18 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:03:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:04:05 [end_date_ymd] => 2025-02-18 06:04:05 [RateCDR] => 1 ) [2025-02-18 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:04:05' and `end` < '2025-02-18 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:04:17] Production.INFO: count ==22 [2025-02-18 06:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:04:05 - End Time 2025-02-18 06:04:05 [2025-02-18 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501110', 'tblTempUsageDetail_20' ) start [2025-02-18 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501110', 'tblTempUsageDetail_20' ) end [2025-02-18 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501110', 'tblTempVendorCDR_20' ) start [2025-02-18 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501110', 'tblTempVendorCDR_20' ) end [2025-02-18 06:04:17] Production.INFO: ProcessCDR(1,14501110,1,1,2) [2025-02-18 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501110', 'tblTempUsageDetail_20' ) start [2025-02-18 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501110', 'tblTempUsageDetail_20' ) end [2025-02-18 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:04:20] Production.INFO: ==18191== Releasing lock... [2025-02-18 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:04:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:05:06 [end_date_ymd] => 2025-02-18 06:05:06 [RateCDR] => 1 ) [2025-02-18 06:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:05:06' and `end` < '2025-02-18 06:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:05:17] Production.INFO: count ==22 [2025-02-18 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:05:06 - End Time 2025-02-18 06:05:06 [2025-02-18 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501115', 'tblTempUsageDetail_20' ) start [2025-02-18 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501115', 'tblTempUsageDetail_20' ) end [2025-02-18 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501115', 'tblTempVendorCDR_20' ) start [2025-02-18 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501115', 'tblTempVendorCDR_20' ) end [2025-02-18 06:05:17] Production.INFO: ProcessCDR(1,14501115,1,1,2) [2025-02-18 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501115', 'tblTempUsageDetail_20' ) start [2025-02-18 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501115', 'tblTempUsageDetail_20' ) end [2025-02-18 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:05:20] Production.INFO: ==18272== Releasing lock... [2025-02-18 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:05:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:06:05 [end_date_ymd] => 2025-02-18 06:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:06:05' and `end` < '2025-02-18 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-18 06:06:16] Production.INFO: count ==22 [2025-02-18 06:06:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:06:05 - End Time 2025-02-18 06:06:05 [2025-02-18 06:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501120', 'tblTempUsageDetail_20' ) start [2025-02-18 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501120', 'tblTempUsageDetail_20' ) end [2025-02-18 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501120', 'tblTempVendorCDR_20' ) start [2025-02-18 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501120', 'tblTempVendorCDR_20' ) end [2025-02-18 06:06:16] Production.INFO: ProcessCDR(1,14501120,1,1,2) [2025-02-18 06:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501120', 'tblTempUsageDetail_20' ) start [2025-02-18 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501120', 'tblTempUsageDetail_20' ) end [2025-02-18 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:06:20] Production.INFO: ==18341== Releasing lock... [2025-02-18 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:06:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:07:06 [end_date_ymd] => 2025-02-18 06:07:06 [RateCDR] => 1 ) [2025-02-18 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:07:06' and `end` < '2025-02-18 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:07:17] Production.INFO: count ==22 [2025-02-18 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:07:06 - End Time 2025-02-18 06:07:06 [2025-02-18 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501125', 'tblTempUsageDetail_20' ) start [2025-02-18 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501125', 'tblTempUsageDetail_20' ) end [2025-02-18 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501125', 'tblTempVendorCDR_20' ) start [2025-02-18 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501125', 'tblTempVendorCDR_20' ) end [2025-02-18 06:07:17] Production.INFO: ProcessCDR(1,14501125,1,1,2) [2025-02-18 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501125', 'tblTempUsageDetail_20' ) start [2025-02-18 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501125', 'tblTempUsageDetail_20' ) end [2025-02-18 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:07:21] Production.INFO: ==18455== Releasing lock... [2025-02-18 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:08:05 [end_date_ymd] => 2025-02-18 06:08:05 [RateCDR] => 1 ) [2025-02-18 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:08:05' and `end` < '2025-02-18 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:08:16] Production.INFO: count ==23 [2025-02-18 06:08:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:08:05 - End Time 2025-02-18 06:08:05 [2025-02-18 06:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501130', 'tblTempUsageDetail_20' ) start [2025-02-18 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501130', 'tblTempUsageDetail_20' ) end [2025-02-18 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501130', 'tblTempVendorCDR_20' ) start [2025-02-18 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501130', 'tblTempVendorCDR_20' ) end [2025-02-18 06:08:16] Production.INFO: ProcessCDR(1,14501130,1,1,2) [2025-02-18 06:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501130', 'tblTempUsageDetail_20' ) start [2025-02-18 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501130', 'tblTempUsageDetail_20' ) end [2025-02-18 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:08:21] Production.INFO: ==18531== Releasing lock... [2025-02-18 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:09:05 [end_date_ymd] => 2025-02-18 06:09:05 [RateCDR] => 1 ) [2025-02-18 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:09:05' and `end` < '2025-02-18 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:09:17] Production.INFO: count ==23 [2025-02-18 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:09:05 - End Time 2025-02-18 06:09:05 [2025-02-18 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501135', 'tblTempUsageDetail_20' ) start [2025-02-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501135', 'tblTempUsageDetail_20' ) end [2025-02-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501135', 'tblTempVendorCDR_20' ) start [2025-02-18 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501135', 'tblTempVendorCDR_20' ) end [2025-02-18 06:09:17] Production.INFO: ProcessCDR(1,14501135,1,1,2) [2025-02-18 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501135', 'tblTempUsageDetail_20' ) start [2025-02-18 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501135', 'tblTempUsageDetail_20' ) end [2025-02-18 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:09:20] Production.INFO: ==18605== Releasing lock... [2025-02-18 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:09:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:10:06 [end_date_ymd] => 2025-02-18 06:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 03:10:06' and `end` < '2025-02-18 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-18 06:10:17] Production.INFO: count ==31 [2025-02-18 06:10:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:10:06 - End Time 2025-02-18 06:10:06 [2025-02-18 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501141', 'tblTempUsageDetail_20' ) start [2025-02-18 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501141', 'tblTempUsageDetail_20' ) end [2025-02-18 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501141', 'tblTempVendorCDR_20' ) start [2025-02-18 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501141', 'tblTempVendorCDR_20' ) end [2025-02-18 06:10:17] Production.INFO: ProcessCDR(1,14501141,1,1,2) [2025-02-18 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501141', 'tblTempUsageDetail_20' ) start [2025-02-18 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501141', 'tblTempUsageDetail_20' ) end [2025-02-18 06:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:10:20] Production.INFO: ==18678== Releasing lock... [2025-02-18 06:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:10:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:11:05 [end_date_ymd] => 2025-02-18 06:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:11:05' and `end` < '2025-02-18 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-18 06:11:17] Production.INFO: count ==31 [2025-02-18 06:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:11:05 - End Time 2025-02-18 06:11:05 [2025-02-18 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501146', 'tblTempUsageDetail_20' ) start [2025-02-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501146', 'tblTempUsageDetail_20' ) end [2025-02-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501146', 'tblTempVendorCDR_20' ) start [2025-02-18 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501146', 'tblTempVendorCDR_20' ) end [2025-02-18 06:11:17] Production.INFO: ProcessCDR(1,14501146,1,1,2) [2025-02-18 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501146', 'tblTempUsageDetail_20' ) start [2025-02-18 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501146', 'tblTempUsageDetail_20' ) end [2025-02-18 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:11:20] Production.INFO: ==18754== Releasing lock... [2025-02-18 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:11:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:12:06 [end_date_ymd] => 2025-02-18 06:12:06 [RateCDR] => 1 ) [2025-02-18 06: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-18 03:12:06' and `end` < '2025-02-18 06: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-18 06:12:17] Production.INFO: count ==32 [2025-02-18 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:12:06 - End Time 2025-02-18 06:12:06 [2025-02-18 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501151', 'tblTempUsageDetail_20' ) start [2025-02-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501151', 'tblTempUsageDetail_20' ) end [2025-02-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501151', 'tblTempVendorCDR_20' ) start [2025-02-18 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501151', 'tblTempVendorCDR_20' ) end [2025-02-18 06:12:17] Production.INFO: ProcessCDR(1,14501151,1,1,2) [2025-02-18 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501151', 'tblTempUsageDetail_20' ) start [2025-02-18 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501151', 'tblTempUsageDetail_20' ) end [2025-02-18 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:12:20] Production.INFO: ==18833== Releasing lock... [2025-02-18 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:12:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:13:05 [end_date_ymd] => 2025-02-18 06:13:05 [RateCDR] => 1 ) [2025-02-18 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:13:05' and `end` < '2025-02-18 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:13:16] Production.INFO: count ==32 [2025-02-18 06:13:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:13:05 - End Time 2025-02-18 06:13:05 [2025-02-18 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501156', 'tblTempUsageDetail_20' ) start [2025-02-18 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501156', 'tblTempUsageDetail_20' ) end [2025-02-18 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501156', 'tblTempVendorCDR_20' ) start [2025-02-18 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501156', 'tblTempVendorCDR_20' ) end [2025-02-18 06:13:16] Production.INFO: ProcessCDR(1,14501156,1,1,2) [2025-02-18 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501156', 'tblTempUsageDetail_20' ) start [2025-02-18 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501156', 'tblTempUsageDetail_20' ) end [2025-02-18 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:13:20] Production.INFO: ==18905== Releasing lock... [2025-02-18 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:13:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:14:06 [end_date_ymd] => 2025-02-18 06:14:06 [RateCDR] => 1 ) [2025-02-18 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:14:06' and `end` < '2025-02-18 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:14:17] Production.INFO: count ==32 [2025-02-18 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:14:06 - End Time 2025-02-18 06:14:06 [2025-02-18 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501161', 'tblTempUsageDetail_20' ) start [2025-02-18 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501161', 'tblTempUsageDetail_20' ) end [2025-02-18 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501161', 'tblTempVendorCDR_20' ) start [2025-02-18 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501161', 'tblTempVendorCDR_20' ) end [2025-02-18 06:14:17] Production.INFO: ProcessCDR(1,14501161,1,1,2) [2025-02-18 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501161', 'tblTempUsageDetail_20' ) start [2025-02-18 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501161', 'tblTempUsageDetail_20' ) end [2025-02-18 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:14:21] Production.INFO: ==18984== Releasing lock... [2025-02-18 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:15:05 [end_date_ymd] => 2025-02-18 06:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:15:05' and `end` < '2025-02-18 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-18 06:15:16] Production.INFO: count ==32 [2025-02-18 06:15:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:15:05 - End Time 2025-02-18 06:15:05 [2025-02-18 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501166', 'tblTempUsageDetail_20' ) start [2025-02-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501166', 'tblTempUsageDetail_20' ) end [2025-02-18 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501166', 'tblTempVendorCDR_20' ) start [2025-02-18 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501166', 'tblTempVendorCDR_20' ) end [2025-02-18 06:15:17] Production.INFO: ProcessCDR(1,14501166,1,1,2) [2025-02-18 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501166', 'tblTempUsageDetail_20' ) start [2025-02-18 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501166', 'tblTempUsageDetail_20' ) end [2025-02-18 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:15:20] Production.INFO: ==19061== Releasing lock... [2025-02-18 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:15:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:16:05 [end_date_ymd] => 2025-02-18 06:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:16:05' and `end` < '2025-02-18 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-18 06:16:17] Production.INFO: count ==31 [2025-02-18 06:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:16:05 - End Time 2025-02-18 06:16:05 [2025-02-18 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501171', 'tblTempUsageDetail_20' ) start [2025-02-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501171', 'tblTempUsageDetail_20' ) end [2025-02-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501171', 'tblTempVendorCDR_20' ) start [2025-02-18 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501171', 'tblTempVendorCDR_20' ) end [2025-02-18 06:16:17] Production.INFO: ProcessCDR(1,14501171,1,1,2) [2025-02-18 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501171', 'tblTempUsageDetail_20' ) start [2025-02-18 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501171', 'tblTempUsageDetail_20' ) end [2025-02-18 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:16:20] Production.INFO: ==19142== Releasing lock... [2025-02-18 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:16:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:17:05 [end_date_ymd] => 2025-02-18 06:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:17:05' and `end` < '2025-02-18 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-18 06:17:16] Production.INFO: count ==31 [2025-02-18 06:17:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:17:05 - End Time 2025-02-18 06:17:05 [2025-02-18 06:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501176', 'tblTempUsageDetail_20' ) start [2025-02-18 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501176', 'tblTempUsageDetail_20' ) end [2025-02-18 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501176', 'tblTempVendorCDR_20' ) start [2025-02-18 06:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501176', 'tblTempVendorCDR_20' ) end [2025-02-18 06:17:16] Production.INFO: ProcessCDR(1,14501176,1,1,2) [2025-02-18 06:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501176', 'tblTempUsageDetail_20' ) start [2025-02-18 06:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501176', 'tblTempUsageDetail_20' ) end [2025-02-18 06:17:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:17:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:17:19] Production.INFO: ==19219== Releasing lock... [2025-02-18 06:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:17:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:18:06 [end_date_ymd] => 2025-02-18 06:18:06 [RateCDR] => 1 ) [2025-02-18 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:18:06' and `end` < '2025-02-18 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:18:17] Production.INFO: count ==27 [2025-02-18 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:18:06 - End Time 2025-02-18 06:18:06 [2025-02-18 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501181', 'tblTempUsageDetail_20' ) start [2025-02-18 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501181', 'tblTempUsageDetail_20' ) end [2025-02-18 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501181', 'tblTempVendorCDR_20' ) start [2025-02-18 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501181', 'tblTempVendorCDR_20' ) end [2025-02-18 06:18:17] Production.INFO: ProcessCDR(1,14501181,1,1,2) [2025-02-18 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501181', 'tblTempUsageDetail_20' ) start [2025-02-18 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501181', 'tblTempUsageDetail_20' ) end [2025-02-18 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:18:21] Production.INFO: ==19297== Releasing lock... [2025-02-18 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:19:05 [end_date_ymd] => 2025-02-18 06:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:19:05' and `end` < '2025-02-18 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-18 06:19:16] Production.INFO: count ==31 [2025-02-18 06:19:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:19:05 - End Time 2025-02-18 06:19:05 [2025-02-18 06:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501186', 'tblTempUsageDetail_20' ) start [2025-02-18 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501186', 'tblTempUsageDetail_20' ) end [2025-02-18 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501186', 'tblTempVendorCDR_20' ) start [2025-02-18 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501186', 'tblTempVendorCDR_20' ) end [2025-02-18 06:19:16] Production.INFO: ProcessCDR(1,14501186,1,1,2) [2025-02-18 06:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501186', 'tblTempUsageDetail_20' ) start [2025-02-18 06:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501186', 'tblTempUsageDetail_20' ) end [2025-02-18 06:19:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:19:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:19:19] Production.INFO: ==19373== Releasing lock... [2025-02-18 06:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:19:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:20:06 [end_date_ymd] => 2025-02-18 06:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 03:20:06' and `end` < '2025-02-18 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-18 06:20:18] Production.INFO: count ==33 [2025-02-18 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 03:20:06 - End Time 2025-02-18 06:20:06 [2025-02-18 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501192', 'tblTempUsageDetail_20' ) start [2025-02-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501192', 'tblTempUsageDetail_20' ) end [2025-02-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501192', 'tblTempVendorCDR_20' ) start [2025-02-18 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501192', 'tblTempVendorCDR_20' ) end [2025-02-18 06:20:18] Production.INFO: ProcessCDR(1,14501192,1,1,2) [2025-02-18 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501192', 'tblTempUsageDetail_20' ) start [2025-02-18 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501192', 'tblTempUsageDetail_20' ) end [2025-02-18 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:20:21] Production.INFO: ==19452== Releasing lock... [2025-02-18 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:21:05 [end_date_ymd] => 2025-02-18 06:21:05 [RateCDR] => 1 ) [2025-02-18 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:21:05' and `end` < '2025-02-18 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:21:16] Production.INFO: count ==33 [2025-02-18 06:21:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:21:05 - End Time 2025-02-18 06:21:05 [2025-02-18 06:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501197', 'tblTempUsageDetail_20' ) start [2025-02-18 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501197', 'tblTempUsageDetail_20' ) end [2025-02-18 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501197', 'tblTempVendorCDR_20' ) start [2025-02-18 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501197', 'tblTempVendorCDR_20' ) end [2025-02-18 06:21:16] Production.INFO: ProcessCDR(1,14501197,1,1,2) [2025-02-18 06:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501197', 'tblTempUsageDetail_20' ) start [2025-02-18 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501197', 'tblTempUsageDetail_20' ) end [2025-02-18 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:21:20] Production.INFO: ==19532== Releasing lock... [2025-02-18 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:21:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:22:05 [end_date_ymd] => 2025-02-18 06:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:22:05' and `end` < '2025-02-18 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-18 06:22:17] Production.INFO: count ==33 [2025-02-18 06:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:22:05 - End Time 2025-02-18 06:22:05 [2025-02-18 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501202', 'tblTempUsageDetail_20' ) start [2025-02-18 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501202', 'tblTempUsageDetail_20' ) end [2025-02-18 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501202', 'tblTempVendorCDR_20' ) start [2025-02-18 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501202', 'tblTempVendorCDR_20' ) end [2025-02-18 06:22:17] Production.INFO: ProcessCDR(1,14501202,1,1,2) [2025-02-18 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501202', 'tblTempUsageDetail_20' ) start [2025-02-18 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501202', 'tblTempUsageDetail_20' ) end [2025-02-18 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:22:20] Production.INFO: ==19651== Releasing lock... [2025-02-18 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:22:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:23:05 [end_date_ymd] => 2025-02-18 06:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:23:05' and `end` < '2025-02-18 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-18 06:23:17] Production.INFO: count ==33 [2025-02-18 06:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:23:05 - End Time 2025-02-18 06:23:05 [2025-02-18 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501207', 'tblTempUsageDetail_20' ) start [2025-02-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501207', 'tblTempUsageDetail_20' ) end [2025-02-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501207', 'tblTempVendorCDR_20' ) start [2025-02-18 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501207', 'tblTempVendorCDR_20' ) end [2025-02-18 06:23:17] Production.INFO: ProcessCDR(1,14501207,1,1,2) [2025-02-18 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501207', 'tblTempUsageDetail_20' ) start [2025-02-18 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501207', 'tblTempUsageDetail_20' ) end [2025-02-18 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:23:20] Production.INFO: ==19730== Releasing lock... [2025-02-18 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:23:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:24:06 [end_date_ymd] => 2025-02-18 06:24:06 [RateCDR] => 1 ) [2025-02-18 06: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-18 03:24:06' and `end` < '2025-02-18 06: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-18 06:24:17] Production.INFO: count ==33 [2025-02-18 06:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:24:06 - End Time 2025-02-18 06:24:06 [2025-02-18 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501212', 'tblTempUsageDetail_20' ) start [2025-02-18 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501212', 'tblTempUsageDetail_20' ) end [2025-02-18 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501212', 'tblTempVendorCDR_20' ) start [2025-02-18 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501212', 'tblTempVendorCDR_20' ) end [2025-02-18 06:24:17] Production.INFO: ProcessCDR(1,14501212,1,1,2) [2025-02-18 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501212', 'tblTempUsageDetail_20' ) start [2025-02-18 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501212', 'tblTempUsageDetail_20' ) end [2025-02-18 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:24:21] Production.INFO: ==19819== Releasing lock... [2025-02-18 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:25:04 [end_date_ymd] => 2025-02-18 06:25:04 [RateCDR] => 1 ) [2025-02-18 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:25:04' and `end` < '2025-02-18 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:25:16] Production.INFO: count ==33 [2025-02-18 06:25:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:25:04 - End Time 2025-02-18 06:25:04 [2025-02-18 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501217', 'tblTempUsageDetail_20' ) start [2025-02-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501217', 'tblTempUsageDetail_20' ) end [2025-02-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501217', 'tblTempVendorCDR_20' ) start [2025-02-18 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501217', 'tblTempVendorCDR_20' ) end [2025-02-18 06:25:16] Production.INFO: ProcessCDR(1,14501217,1,1,2) [2025-02-18 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501217', 'tblTempUsageDetail_20' ) start [2025-02-18 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501217', 'tblTempUsageDetail_20' ) end [2025-02-18 06:25:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:25:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:25:19] Production.INFO: ==19898== Releasing lock... [2025-02-18 06:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:25:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:26:05 [end_date_ymd] => 2025-02-18 06:26:05 [RateCDR] => 1 ) [2025-02-18 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:26:05' and `end` < '2025-02-18 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:26:16] Production.INFO: count ==33 [2025-02-18 06:26:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:26:05 - End Time 2025-02-18 06:26:05 [2025-02-18 06:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501222', 'tblTempUsageDetail_20' ) start [2025-02-18 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501222', 'tblTempUsageDetail_20' ) end [2025-02-18 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501222', 'tblTempVendorCDR_20' ) start [2025-02-18 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501222', 'tblTempVendorCDR_20' ) end [2025-02-18 06:26:16] Production.INFO: ProcessCDR(1,14501222,1,1,2) [2025-02-18 06:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501222', 'tblTempUsageDetail_20' ) start [2025-02-18 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501222', 'tblTempUsageDetail_20' ) end [2025-02-18 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:26:20] Production.INFO: ==19976== Releasing lock... [2025-02-18 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:26:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:27:05 [end_date_ymd] => 2025-02-18 06:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:27:05' and `end` < '2025-02-18 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-18 06:27:17] Production.INFO: count ==33 [2025-02-18 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:27:05 - End Time 2025-02-18 06:27:05 [2025-02-18 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501227', 'tblTempUsageDetail_20' ) start [2025-02-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501227', 'tblTempUsageDetail_20' ) end [2025-02-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501227', 'tblTempVendorCDR_20' ) start [2025-02-18 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501227', 'tblTempVendorCDR_20' ) end [2025-02-18 06:27:17] Production.INFO: ProcessCDR(1,14501227,1,1,2) [2025-02-18 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501227', 'tblTempUsageDetail_20' ) start [2025-02-18 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501227', 'tblTempUsageDetail_20' ) end [2025-02-18 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:27:20] Production.INFO: ==20056== Releasing lock... [2025-02-18 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:27:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:28:05 [end_date_ymd] => 2025-02-18 06:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:28:05' and `end` < '2025-02-18 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-18 06:28:17] Production.INFO: count ==33 [2025-02-18 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:28:05 - End Time 2025-02-18 06:28:05 [2025-02-18 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501232', 'tblTempUsageDetail_20' ) start [2025-02-18 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501232', 'tblTempUsageDetail_20' ) end [2025-02-18 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501232', 'tblTempVendorCDR_20' ) start [2025-02-18 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501232', 'tblTempVendorCDR_20' ) end [2025-02-18 06:28:17] Production.INFO: ProcessCDR(1,14501232,1,1,2) [2025-02-18 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501232', 'tblTempUsageDetail_20' ) start [2025-02-18 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501232', 'tblTempUsageDetail_20' ) end [2025-02-18 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:28:20] Production.INFO: ==20133== Releasing lock... [2025-02-18 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:28:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:29:06 [end_date_ymd] => 2025-02-18 06:29:06 [RateCDR] => 1 ) [2025-02-18 06: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-18 03:29:06' and `end` < '2025-02-18 06: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-18 06:29:17] Production.INFO: count ==33 [2025-02-18 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:29:06 - End Time 2025-02-18 06:29:06 [2025-02-18 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501237', 'tblTempUsageDetail_20' ) start [2025-02-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501237', 'tblTempUsageDetail_20' ) end [2025-02-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501237', 'tblTempVendorCDR_20' ) start [2025-02-18 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501237', 'tblTempVendorCDR_20' ) end [2025-02-18 06:29:17] Production.INFO: ProcessCDR(1,14501237,1,1,2) [2025-02-18 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501237', 'tblTempUsageDetail_20' ) start [2025-02-18 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501237', 'tblTempUsageDetail_20' ) end [2025-02-18 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:29:20] Production.INFO: ==20215== Releasing lock... [2025-02-18 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:29:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:30:06 [end_date_ymd] => 2025-02-18 06:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 03:30:06' and `end` < '2025-02-18 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-18 06:30:17] Production.INFO: count ==41 [2025-02-18 06:30:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:30:06 - End Time 2025-02-18 06:30:06 [2025-02-18 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501242', 'tblTempUsageDetail_20' ) start [2025-02-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501242', 'tblTempUsageDetail_20' ) end [2025-02-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501242', 'tblTempVendorCDR_20' ) start [2025-02-18 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501242', 'tblTempVendorCDR_20' ) end [2025-02-18 06:30:17] Production.INFO: ProcessCDR(1,14501242,1,1,2) [2025-02-18 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501242', 'tblTempUsageDetail_20' ) start [2025-02-18 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501242', 'tblTempUsageDetail_20' ) end [2025-02-18 06:30:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:30:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:30:21] Production.INFO: ==20301== Releasing lock... [2025-02-18 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:31:05 [end_date_ymd] => 2025-02-18 06:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:31:05' and `end` < '2025-02-18 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-18 06:31:16] Production.INFO: count ==42 [2025-02-18 06:31:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:31:05 - End Time 2025-02-18 06:31:05 [2025-02-18 06:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501248', 'tblTempUsageDetail_20' ) start [2025-02-18 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501248', 'tblTempUsageDetail_20' ) end [2025-02-18 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501248', 'tblTempVendorCDR_20' ) start [2025-02-18 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501248', 'tblTempVendorCDR_20' ) end [2025-02-18 06:31:16] Production.INFO: ProcessCDR(1,14501248,1,1,2) [2025-02-18 06:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501248', 'tblTempUsageDetail_20' ) start [2025-02-18 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501248', 'tblTempUsageDetail_20' ) end [2025-02-18 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:31:20] Production.INFO: ==20383== Releasing lock... [2025-02-18 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:31:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:32:05 [end_date_ymd] => 2025-02-18 06:32:05 [RateCDR] => 1 ) [2025-02-18 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:32:05' and `end` < '2025-02-18 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:32:17] Production.INFO: count ==42 [2025-02-18 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:32:05 - End Time 2025-02-18 06:32:05 [2025-02-18 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501253', 'tblTempUsageDetail_20' ) start [2025-02-18 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501253', 'tblTempUsageDetail_20' ) end [2025-02-18 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501253', 'tblTempVendorCDR_20' ) start [2025-02-18 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501253', 'tblTempVendorCDR_20' ) end [2025-02-18 06:32:17] Production.INFO: ProcessCDR(1,14501253,1,1,2) [2025-02-18 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501253', 'tblTempUsageDetail_20' ) start [2025-02-18 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501253', 'tblTempUsageDetail_20' ) end [2025-02-18 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:32:20] Production.INFO: ==20465== Releasing lock... [2025-02-18 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:32:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:33:05 [end_date_ymd] => 2025-02-18 06:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:33:05' and `end` < '2025-02-18 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-18 06:33:16] Production.INFO: count ==46 [2025-02-18 06:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:33:05 - End Time 2025-02-18 06:33:05 [2025-02-18 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501258', 'tblTempUsageDetail_20' ) start [2025-02-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501258', 'tblTempUsageDetail_20' ) end [2025-02-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501258', 'tblTempVendorCDR_20' ) start [2025-02-18 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501258', 'tblTempVendorCDR_20' ) end [2025-02-18 06:33:17] Production.INFO: ProcessCDR(1,14501258,1,1,2) [2025-02-18 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501258', 'tblTempUsageDetail_20' ) start [2025-02-18 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501258', 'tblTempUsageDetail_20' ) end [2025-02-18 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:33:20] Production.INFO: ==20546== Releasing lock... [2025-02-18 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:33:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:34:05 [end_date_ymd] => 2025-02-18 06:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:34:05' and `end` < '2025-02-18 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-18 06:34:17] Production.INFO: count ==46 [2025-02-18 06:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:34:05 - End Time 2025-02-18 06:34:05 [2025-02-18 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501263', 'tblTempUsageDetail_20' ) start [2025-02-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501263', 'tblTempUsageDetail_20' ) end [2025-02-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501263', 'tblTempVendorCDR_20' ) start [2025-02-18 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501263', 'tblTempVendorCDR_20' ) end [2025-02-18 06:34:17] Production.INFO: ProcessCDR(1,14501263,1,1,2) [2025-02-18 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501263', 'tblTempUsageDetail_20' ) start [2025-02-18 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501263', 'tblTempUsageDetail_20' ) end [2025-02-18 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:34:20] Production.INFO: ==20629== Releasing lock... [2025-02-18 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:34:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:35:05 [end_date_ymd] => 2025-02-18 06:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:35:05' and `end` < '2025-02-18 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-18 06:35:16] Production.INFO: count ==46 [2025-02-18 06:35:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:35:05 - End Time 2025-02-18 06:35:05 [2025-02-18 06:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501268', 'tblTempUsageDetail_20' ) start [2025-02-18 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501268', 'tblTempUsageDetail_20' ) end [2025-02-18 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501268', 'tblTempVendorCDR_20' ) start [2025-02-18 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501268', 'tblTempVendorCDR_20' ) end [2025-02-18 06:35:16] Production.INFO: ProcessCDR(1,14501268,1,1,2) [2025-02-18 06:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501268', 'tblTempUsageDetail_20' ) start [2025-02-18 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501268', 'tblTempUsageDetail_20' ) end [2025-02-18 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:35:20] Production.INFO: ==20709== Releasing lock... [2025-02-18 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:35:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:36:05 [end_date_ymd] => 2025-02-18 06:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:36:05' and `end` < '2025-02-18 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-18 06:36:17] Production.INFO: count ==46 [2025-02-18 06:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:36:05 - End Time 2025-02-18 06:36:05 [2025-02-18 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501273', 'tblTempUsageDetail_20' ) start [2025-02-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501273', 'tblTempUsageDetail_20' ) end [2025-02-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501273', 'tblTempVendorCDR_20' ) start [2025-02-18 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501273', 'tblTempVendorCDR_20' ) end [2025-02-18 06:36:17] Production.INFO: ProcessCDR(1,14501273,1,1,2) [2025-02-18 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501273', 'tblTempUsageDetail_20' ) start [2025-02-18 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501273', 'tblTempUsageDetail_20' ) end [2025-02-18 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:36:20] Production.INFO: ==20795== Releasing lock... [2025-02-18 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:36:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:37:05 [end_date_ymd] => 2025-02-18 06:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:37:05' and `end` < '2025-02-18 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-18 06:37:17] Production.INFO: count ==46 [2025-02-18 06:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:37:05 - End Time 2025-02-18 06:37:05 [2025-02-18 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501278', 'tblTempUsageDetail_20' ) start [2025-02-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501278', 'tblTempUsageDetail_20' ) end [2025-02-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501278', 'tblTempVendorCDR_20' ) start [2025-02-18 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501278', 'tblTempVendorCDR_20' ) end [2025-02-18 06:37:17] Production.INFO: ProcessCDR(1,14501278,1,1,2) [2025-02-18 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501278', 'tblTempUsageDetail_20' ) start [2025-02-18 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501278', 'tblTempUsageDetail_20' ) end [2025-02-18 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:37:20] Production.INFO: ==20880== Releasing lock... [2025-02-18 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:37:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:38:05 [end_date_ymd] => 2025-02-18 06:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:38:05' and `end` < '2025-02-18 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-18 06:38:16] Production.INFO: count ==46 [2025-02-18 06:38:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:38:05 - End Time 2025-02-18 06:38:05 [2025-02-18 06:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501283', 'tblTempUsageDetail_20' ) start [2025-02-18 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501283', 'tblTempUsageDetail_20' ) end [2025-02-18 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501283', 'tblTempVendorCDR_20' ) start [2025-02-18 06:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501283', 'tblTempVendorCDR_20' ) end [2025-02-18 06:38:16] Production.INFO: ProcessCDR(1,14501283,1,1,2) [2025-02-18 06:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501283', 'tblTempUsageDetail_20' ) start [2025-02-18 06:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501283', 'tblTempUsageDetail_20' ) end [2025-02-18 06:38:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:38:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:38:19] Production.INFO: ==20997== Releasing lock... [2025-02-18 06:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:38:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:39:05 [end_date_ymd] => 2025-02-18 06:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:39:05' and `end` < '2025-02-18 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-18 06:39:17] Production.INFO: count ==46 [2025-02-18 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:39:05 - End Time 2025-02-18 06:39:05 [2025-02-18 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501288', 'tblTempUsageDetail_20' ) start [2025-02-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501288', 'tblTempUsageDetail_20' ) end [2025-02-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501288', 'tblTempVendorCDR_20' ) start [2025-02-18 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501288', 'tblTempVendorCDR_20' ) end [2025-02-18 06:39:17] Production.INFO: ProcessCDR(1,14501288,1,1,2) [2025-02-18 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501288', 'tblTempUsageDetail_20' ) start [2025-02-18 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501288', 'tblTempUsageDetail_20' ) end [2025-02-18 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:39:20] Production.INFO: ==21082== Releasing lock... [2025-02-18 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:39:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:40:05 [end_date_ymd] => 2025-02-18 06:40:05 [RateCDR] => 1 ) [2025-02-18 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:40:05' and `end` < '2025-02-18 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:40:17] Production.INFO: count ==48 [2025-02-18 06:40:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:40:05 - End Time 2025-02-18 06:40:05 [2025-02-18 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501294', 'tblTempUsageDetail_20' ) start [2025-02-18 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501294', 'tblTempUsageDetail_20' ) end [2025-02-18 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501294', 'tblTempVendorCDR_20' ) start [2025-02-18 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501294', 'tblTempVendorCDR_20' ) end [2025-02-18 06:40:17] Production.INFO: ProcessCDR(1,14501294,1,1,2) [2025-02-18 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501294', 'tblTempUsageDetail_20' ) start [2025-02-18 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501294', 'tblTempUsageDetail_20' ) end [2025-02-18 06:40:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:40:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:40:20] Production.INFO: ==21164== Releasing lock... [2025-02-18 06:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:40:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:41:05 [end_date_ymd] => 2025-02-18 06:41:05 [RateCDR] => 1 ) [2025-02-18 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:41:05' and `end` < '2025-02-18 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:41:17] Production.INFO: count ==52 [2025-02-18 06:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:41:05 - End Time 2025-02-18 06:41:05 [2025-02-18 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501299', 'tblTempUsageDetail_20' ) start [2025-02-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501299', 'tblTempUsageDetail_20' ) end [2025-02-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501299', 'tblTempVendorCDR_20' ) start [2025-02-18 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501299', 'tblTempVendorCDR_20' ) end [2025-02-18 06:41:17] Production.INFO: ProcessCDR(1,14501299,1,1,2) [2025-02-18 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501299', 'tblTempUsageDetail_20' ) start [2025-02-18 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501299', 'tblTempUsageDetail_20' ) end [2025-02-18 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:41:20] Production.INFO: ==21275== Releasing lock... [2025-02-18 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:41:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:42:05 [end_date_ymd] => 2025-02-18 06:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:42:05' and `end` < '2025-02-18 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-18 06:42:16] Production.INFO: count ==52 [2025-02-18 06:42:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:42:05 - End Time 2025-02-18 06:42:05 [2025-02-18 06:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501304', 'tblTempUsageDetail_20' ) start [2025-02-18 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501304', 'tblTempUsageDetail_20' ) end [2025-02-18 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501304', 'tblTempVendorCDR_20' ) start [2025-02-18 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501304', 'tblTempVendorCDR_20' ) end [2025-02-18 06:42:16] Production.INFO: ProcessCDR(1,14501304,1,1,2) [2025-02-18 06:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501304', 'tblTempUsageDetail_20' ) start [2025-02-18 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501304', 'tblTempUsageDetail_20' ) end [2025-02-18 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:42:20] Production.INFO: ==21366== Releasing lock... [2025-02-18 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:42:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:43:05 [end_date_ymd] => 2025-02-18 06:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:43:05' and `end` < '2025-02-18 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-18 06:43:17] Production.INFO: count ==52 [2025-02-18 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:43:05 - End Time 2025-02-18 06:43:05 [2025-02-18 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501309', 'tblTempUsageDetail_20' ) start [2025-02-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501309', 'tblTempUsageDetail_20' ) end [2025-02-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501309', 'tblTempVendorCDR_20' ) start [2025-02-18 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501309', 'tblTempVendorCDR_20' ) end [2025-02-18 06:43:17] Production.INFO: ProcessCDR(1,14501309,1,1,2) [2025-02-18 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501309', 'tblTempUsageDetail_20' ) start [2025-02-18 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501309', 'tblTempUsageDetail_20' ) end [2025-02-18 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:43:20] Production.INFO: ==21448== Releasing lock... [2025-02-18 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:43:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:44:05 [end_date_ymd] => 2025-02-18 06:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:44:05' and `end` < '2025-02-18 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-18 06:44:17] Production.INFO: count ==52 [2025-02-18 06:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:44:05 - End Time 2025-02-18 06:44:05 [2025-02-18 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501314', 'tblTempUsageDetail_20' ) start [2025-02-18 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501314', 'tblTempUsageDetail_20' ) end [2025-02-18 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501314', 'tblTempVendorCDR_20' ) start [2025-02-18 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501314', 'tblTempVendorCDR_20' ) end [2025-02-18 06:44:17] Production.INFO: ProcessCDR(1,14501314,1,1,2) [2025-02-18 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501314', 'tblTempUsageDetail_20' ) start [2025-02-18 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501314', 'tblTempUsageDetail_20' ) end [2025-02-18 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:44:20] Production.INFO: ==21538== Releasing lock... [2025-02-18 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:44:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:45:05 [end_date_ymd] => 2025-02-18 06:45:05 [RateCDR] => 1 ) [2025-02-18 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:45:05' and `end` < '2025-02-18 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:45:16] Production.INFO: count ==52 [2025-02-18 06:45:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:45:05 - End Time 2025-02-18 06:45:05 [2025-02-18 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501319', 'tblTempUsageDetail_20' ) start [2025-02-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501319', 'tblTempUsageDetail_20' ) end [2025-02-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501319', 'tblTempVendorCDR_20' ) start [2025-02-18 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501319', 'tblTempVendorCDR_20' ) end [2025-02-18 06:45:16] Production.INFO: ProcessCDR(1,14501319,1,1,2) [2025-02-18 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501319', 'tblTempUsageDetail_20' ) start [2025-02-18 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501319', 'tblTempUsageDetail_20' ) end [2025-02-18 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:45:20] Production.INFO: ==21623== Releasing lock... [2025-02-18 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:45:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:46:05 [end_date_ymd] => 2025-02-18 06:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:46:05' and `end` < '2025-02-18 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-18 06:46:17] Production.INFO: count ==52 [2025-02-18 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:46:05 - End Time 2025-02-18 06:46:05 [2025-02-18 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501324', 'tblTempUsageDetail_20' ) start [2025-02-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501324', 'tblTempUsageDetail_20' ) end [2025-02-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501324', 'tblTempVendorCDR_20' ) start [2025-02-18 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501324', 'tblTempVendorCDR_20' ) end [2025-02-18 06:46:17] Production.INFO: ProcessCDR(1,14501324,1,1,2) [2025-02-18 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501324', 'tblTempUsageDetail_20' ) start [2025-02-18 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501324', 'tblTempUsageDetail_20' ) end [2025-02-18 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:46:20] Production.INFO: ==21710== Releasing lock... [2025-02-18 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:46:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:47:05 [end_date_ymd] => 2025-02-18 06:47:05 [RateCDR] => 1 ) [2025-02-18 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:47:05' and `end` < '2025-02-18 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:47:16] Production.INFO: count ==51 [2025-02-18 06:47:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:47:05 - End Time 2025-02-18 06:47:05 [2025-02-18 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501329', 'tblTempUsageDetail_20' ) start [2025-02-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501329', 'tblTempUsageDetail_20' ) end [2025-02-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501329', 'tblTempVendorCDR_20' ) start [2025-02-18 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501329', 'tblTempVendorCDR_20' ) end [2025-02-18 06:47:16] Production.INFO: ProcessCDR(1,14501329,1,1,2) [2025-02-18 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501329', 'tblTempUsageDetail_20' ) start [2025-02-18 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501329', 'tblTempUsageDetail_20' ) end [2025-02-18 06:47:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:47:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:47:19] Production.INFO: ==21793== Releasing lock... [2025-02-18 06:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:47:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:48:05 [end_date_ymd] => 2025-02-18 06:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:48:05' and `end` < '2025-02-18 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-18 06:48:17] Production.INFO: count ==51 [2025-02-18 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:48:05 - End Time 2025-02-18 06:48:05 [2025-02-18 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501334', 'tblTempUsageDetail_20' ) start [2025-02-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501334', 'tblTempUsageDetail_20' ) end [2025-02-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501334', 'tblTempVendorCDR_20' ) start [2025-02-18 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501334', 'tblTempVendorCDR_20' ) end [2025-02-18 06:48:17] Production.INFO: ProcessCDR(1,14501334,1,1,2) [2025-02-18 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501334', 'tblTempUsageDetail_20' ) start [2025-02-18 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501334', 'tblTempUsageDetail_20' ) end [2025-02-18 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:48:21] Production.INFO: ==21881== Releasing lock... [2025-02-18 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:49:04 [end_date_ymd] => 2025-02-18 06:49:04 [RateCDR] => 1 ) [2025-02-18 06: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-18 03:49:04' and `end` < '2025-02-18 06: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-18 06:49:16] Production.INFO: count ==51 [2025-02-18 06:49:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:49:04 - End Time 2025-02-18 06:49:04 [2025-02-18 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501339', 'tblTempUsageDetail_20' ) start [2025-02-18 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501339', 'tblTempUsageDetail_20' ) end [2025-02-18 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501339', 'tblTempVendorCDR_20' ) start [2025-02-18 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501339', 'tblTempVendorCDR_20' ) end [2025-02-18 06:49:16] Production.INFO: ProcessCDR(1,14501339,1,1,2) [2025-02-18 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501339', 'tblTempUsageDetail_20' ) start [2025-02-18 06:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501339', 'tblTempUsageDetail_20' ) end [2025-02-18 06:49:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:49:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:49:19] Production.INFO: ==21970== Releasing lock... [2025-02-18 06:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:49:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:50:05 [end_date_ymd] => 2025-02-18 06:50:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:50:05' and `end` < '2025-02-18 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-18 06:50:17] Production.INFO: count ==53 [2025-02-18 06:50:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:50:05 - End Time 2025-02-18 06:50:05 [2025-02-18 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501344', 'tblTempUsageDetail_20' ) start [2025-02-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501344', 'tblTempUsageDetail_20' ) end [2025-02-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501344', 'tblTempVendorCDR_20' ) start [2025-02-18 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501344', 'tblTempVendorCDR_20' ) end [2025-02-18 06:50:17] Production.INFO: ProcessCDR(1,14501344,1,1,2) [2025-02-18 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501344', 'tblTempUsageDetail_20' ) start [2025-02-18 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501344', 'tblTempUsageDetail_20' ) end [2025-02-18 06:50:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:50:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:50:20] Production.INFO: ==22053== Releasing lock... [2025-02-18 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:50:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:51:06 [end_date_ymd] => 2025-02-18 06:51:06 [RateCDR] => 1 ) [2025-02-18 06: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-18 03:51:06' and `end` < '2025-02-18 06: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-18 06:51:17] Production.INFO: count ==53 [2025-02-18 06:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:51:06 - End Time 2025-02-18 06:51:06 [2025-02-18 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501350', 'tblTempUsageDetail_20' ) start [2025-02-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501350', 'tblTempUsageDetail_20' ) end [2025-02-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501350', 'tblTempVendorCDR_20' ) start [2025-02-18 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501350', 'tblTempVendorCDR_20' ) end [2025-02-18 06:51:17] Production.INFO: ProcessCDR(1,14501350,1,1,2) [2025-02-18 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501350', 'tblTempUsageDetail_20' ) start [2025-02-18 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501350', 'tblTempUsageDetail_20' ) end [2025-02-18 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:51:20] Production.INFO: ==22146== Releasing lock... [2025-02-18 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:51:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:52:06 [end_date_ymd] => 2025-02-18 06:52:06 [RateCDR] => 1 ) [2025-02-18 06: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-18 03:52:06' and `end` < '2025-02-18 06: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-18 06:52:17] Production.INFO: count ==53 [2025-02-18 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:52:06 - End Time 2025-02-18 06:52:06 [2025-02-18 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501355', 'tblTempUsageDetail_20' ) start [2025-02-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501355', 'tblTempUsageDetail_20' ) end [2025-02-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501355', 'tblTempVendorCDR_20' ) start [2025-02-18 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501355', 'tblTempVendorCDR_20' ) end [2025-02-18 06:52:17] Production.INFO: ProcessCDR(1,14501355,1,1,2) [2025-02-18 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501355', 'tblTempUsageDetail_20' ) start [2025-02-18 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501355', 'tblTempUsageDetail_20' ) end [2025-02-18 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:52:21] Production.INFO: ==22236== Releasing lock... [2025-02-18 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:53:05 [end_date_ymd] => 2025-02-18 06:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:53:05' and `end` < '2025-02-18 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-18 06:53:17] Production.INFO: count ==53 [2025-02-18 06:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:53:05 - End Time 2025-02-18 06:53:05 [2025-02-18 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501360', 'tblTempUsageDetail_20' ) start [2025-02-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501360', 'tblTempUsageDetail_20' ) end [2025-02-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501360', 'tblTempVendorCDR_20' ) start [2025-02-18 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501360', 'tblTempVendorCDR_20' ) end [2025-02-18 06:53:17] Production.INFO: ProcessCDR(1,14501360,1,1,2) [2025-02-18 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501360', 'tblTempUsageDetail_20' ) start [2025-02-18 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501360', 'tblTempUsageDetail_20' ) end [2025-02-18 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:53:20] Production.INFO: ==22371== Releasing lock... [2025-02-18 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:53:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:54:05 [end_date_ymd] => 2025-02-18 06:54:05 [RateCDR] => 1 ) [2025-02-18 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:54:05' and `end` < '2025-02-18 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:54:17] Production.INFO: count ==53 [2025-02-18 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:54:05 - End Time 2025-02-18 06:54:05 [2025-02-18 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501365', 'tblTempUsageDetail_20' ) start [2025-02-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501365', 'tblTempUsageDetail_20' ) end [2025-02-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501365', 'tblTempVendorCDR_20' ) start [2025-02-18 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501365', 'tblTempVendorCDR_20' ) end [2025-02-18 06:54:17] Production.INFO: ProcessCDR(1,14501365,1,1,2) [2025-02-18 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501365', 'tblTempUsageDetail_20' ) start [2025-02-18 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501365', 'tblTempUsageDetail_20' ) end [2025-02-18 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:54:20] Production.INFO: ==22459== Releasing lock... [2025-02-18 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:54:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:55:05 [end_date_ymd] => 2025-02-18 06:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:55:05' and `end` < '2025-02-18 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-18 06:55:17] Production.INFO: count ==54 [2025-02-18 06:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:55:05 - End Time 2025-02-18 06:55:05 [2025-02-18 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501370', 'tblTempUsageDetail_20' ) start [2025-02-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501370', 'tblTempUsageDetail_20' ) end [2025-02-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501370', 'tblTempVendorCDR_20' ) start [2025-02-18 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501370', 'tblTempVendorCDR_20' ) end [2025-02-18 06:55:17] Production.INFO: ProcessCDR(1,14501370,1,1,2) [2025-02-18 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501370', 'tblTempUsageDetail_20' ) start [2025-02-18 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501370', 'tblTempUsageDetail_20' ) end [2025-02-18 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:55:20] Production.INFO: ==22550== Releasing lock... [2025-02-18 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:56:05 [end_date_ymd] => 2025-02-18 06:56:05 [RateCDR] => 1 ) [2025-02-18 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 03:56:05' and `end` < '2025-02-18 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 06:56:16] Production.INFO: count ==54 [2025-02-18 06:56:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:56:05 - End Time 2025-02-18 06:56:05 [2025-02-18 06:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501375', 'tblTempUsageDetail_20' ) start [2025-02-18 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501375', 'tblTempUsageDetail_20' ) end [2025-02-18 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501375', 'tblTempVendorCDR_20' ) start [2025-02-18 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501375', 'tblTempVendorCDR_20' ) end [2025-02-18 06:56:16] Production.INFO: ProcessCDR(1,14501375,1,1,2) [2025-02-18 06:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501375', 'tblTempUsageDetail_20' ) start [2025-02-18 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501375', 'tblTempUsageDetail_20' ) end [2025-02-18 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:56:20] Production.INFO: ==22642== Releasing lock... [2025-02-18 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:56:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:57:05 [end_date_ymd] => 2025-02-18 06:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:57:05' and `end` < '2025-02-18 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-18 06:57:17] Production.INFO: count ==54 [2025-02-18 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:57:05 - End Time 2025-02-18 06:57:05 [2025-02-18 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501380', 'tblTempUsageDetail_20' ) start [2025-02-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501380', 'tblTempUsageDetail_20' ) end [2025-02-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501380', 'tblTempVendorCDR_20' ) start [2025-02-18 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501380', 'tblTempVendorCDR_20' ) end [2025-02-18 06:57:17] Production.INFO: ProcessCDR(1,14501380,1,1,2) [2025-02-18 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501380', 'tblTempUsageDetail_20' ) start [2025-02-18 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501380', 'tblTempUsageDetail_20' ) end [2025-02-18 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:57:20] Production.INFO: ==22738== Releasing lock... [2025-02-18 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:57:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:58:05 [end_date_ymd] => 2025-02-18 06:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:58:05' and `end` < '2025-02-18 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-18 06:58:16] Production.INFO: count ==54 [2025-02-18 06:58:16] Production.ERROR: pbx CDR StartTime 2025-02-18 03:58:05 - End Time 2025-02-18 06:58:05 [2025-02-18 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501385', 'tblTempUsageDetail_20' ) start [2025-02-18 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501385', 'tblTempUsageDetail_20' ) end [2025-02-18 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501385', 'tblTempVendorCDR_20' ) start [2025-02-18 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501385', 'tblTempVendorCDR_20' ) end [2025-02-18 06:58:16] Production.INFO: ProcessCDR(1,14501385,1,1,2) [2025-02-18 06:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501385', 'tblTempUsageDetail_20' ) start [2025-02-18 06:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501385', 'tblTempUsageDetail_20' ) end [2025-02-18 06:58:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:58:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:58:19] Production.INFO: ==22826== Releasing lock... [2025-02-18 06:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:58:19] Production.INFO: 28 MB #Memory Used# [2025-02-18 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 03:59:05 [end_date_ymd] => 2025-02-18 06:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 03:59:05' and `end` < '2025-02-18 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-18 06:59:17] Production.INFO: count ==54 [2025-02-18 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 03:59:05 - End Time 2025-02-18 06:59:05 [2025-02-18 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501390', 'tblTempUsageDetail_20' ) start [2025-02-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501390', 'tblTempUsageDetail_20' ) end [2025-02-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501390', 'tblTempVendorCDR_20' ) start [2025-02-18 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501390', 'tblTempVendorCDR_20' ) end [2025-02-18 06:59:17] Production.INFO: ProcessCDR(1,14501390,1,1,2) [2025-02-18 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501390', 'tblTempUsageDetail_20' ) start [2025-02-18 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501390', 'tblTempUsageDetail_20' ) end [2025-02-18 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 06:59:20] Production.INFO: ==22922== Releasing lock... [2025-02-18 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 06:59:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:00:05 [end_date_ymd] => 2025-02-18 07:00:05 [RateCDR] => 1 ) [2025-02-18 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:00:05' and `end` < '2025-02-18 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:00:16] Production.INFO: count ==54 [2025-02-18 07:00:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:00:05 - End Time 2025-02-18 07:00:05 [2025-02-18 07:00:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:00:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501395', 'tblTempUsageDetail_20' ) start [2025-02-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501395', 'tblTempUsageDetail_20' ) end [2025-02-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501395', 'tblTempVendorCDR_20' ) start [2025-02-18 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501395', 'tblTempVendorCDR_20' ) end [2025-02-18 07:00:17] Production.INFO: ProcessCDR(1,14501395,1,1,2) [2025-02-18 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501395', 'tblTempUsageDetail_20' ) start [2025-02-18 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501395', 'tblTempUsageDetail_20' ) end [2025-02-18 07:00:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:00:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:00:20] Production.INFO: ==23016== Releasing lock... [2025-02-18 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:00:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:01:05 [end_date_ymd] => 2025-02-18 07:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:01:05' and `end` < '2025-02-18 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-18 07:01:17] Production.INFO: count ==54 [2025-02-18 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:01:05 - End Time 2025-02-18 07:01:05 [2025-02-18 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501401', 'tblTempUsageDetail_20' ) start [2025-02-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501401', 'tblTempUsageDetail_20' ) end [2025-02-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501401', 'tblTempVendorCDR_20' ) start [2025-02-18 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501401', 'tblTempVendorCDR_20' ) end [2025-02-18 07:01:17] Production.INFO: ProcessCDR(1,14501401,1,1,2) [2025-02-18 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501401', 'tblTempUsageDetail_20' ) start [2025-02-18 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501401', 'tblTempUsageDetail_20' ) end [2025-02-18 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:01:20] Production.INFO: ==23201== Releasing lock... [2025-02-18 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:01:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:02:05 [end_date_ymd] => 2025-02-18 07:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:02:05' and `end` < '2025-02-18 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-18 07:02:17] Production.INFO: count ==54 [2025-02-18 07:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:02:05 - End Time 2025-02-18 07:02:05 [2025-02-18 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501406', 'tblTempUsageDetail_20' ) start [2025-02-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501406', 'tblTempUsageDetail_20' ) end [2025-02-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501406', 'tblTempVendorCDR_20' ) start [2025-02-18 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501406', 'tblTempVendorCDR_20' ) end [2025-02-18 07:02:17] Production.INFO: ProcessCDR(1,14501406,1,1,2) [2025-02-18 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501406', 'tblTempUsageDetail_20' ) start [2025-02-18 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501406', 'tblTempUsageDetail_20' ) end [2025-02-18 07:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:02:20] Production.INFO: ==23295== Releasing lock... [2025-02-18 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:02:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:03:05 [end_date_ymd] => 2025-02-18 07:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:03:05' and `end` < '2025-02-18 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-18 07:03:18] Production.INFO: count ==54 [2025-02-18 07:03:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:03:05 - End Time 2025-02-18 07:03:05 [2025-02-18 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501411', 'tblTempUsageDetail_20' ) start [2025-02-18 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501411', 'tblTempUsageDetail_20' ) end [2025-02-18 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501411', 'tblTempVendorCDR_20' ) start [2025-02-18 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501411', 'tblTempVendorCDR_20' ) end [2025-02-18 07:03:18] Production.INFO: ProcessCDR(1,14501411,1,1,2) [2025-02-18 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501411', 'tblTempUsageDetail_20' ) start [2025-02-18 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501411', 'tblTempUsageDetail_20' ) end [2025-02-18 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:03:22] Production.INFO: ==23392== Releasing lock... [2025-02-18 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:03:22] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:04:05 [end_date_ymd] => 2025-02-18 07:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:04:05' and `end` < '2025-02-18 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-18 07:04:17] Production.INFO: count ==54 [2025-02-18 07:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:04:05 - End Time 2025-02-18 07:04:05 [2025-02-18 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501416', 'tblTempUsageDetail_20' ) start [2025-02-18 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501416', 'tblTempUsageDetail_20' ) end [2025-02-18 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501416', 'tblTempVendorCDR_20' ) start [2025-02-18 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501416', 'tblTempVendorCDR_20' ) end [2025-02-18 07:04:17] Production.INFO: ProcessCDR(1,14501416,1,1,2) [2025-02-18 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501416', 'tblTempUsageDetail_20' ) start [2025-02-18 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501416', 'tblTempUsageDetail_20' ) end [2025-02-18 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:04:21] Production.INFO: ==23487== Releasing lock... [2025-02-18 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:04:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:05:06 [end_date_ymd] => 2025-02-18 07:05:06 [RateCDR] => 1 ) [2025-02-18 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:05:06' and `end` < '2025-02-18 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:05:18] Production.INFO: count ==54 [2025-02-18 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:05:06 - End Time 2025-02-18 07:05:06 [2025-02-18 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501421', 'tblTempUsageDetail_20' ) start [2025-02-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501421', 'tblTempUsageDetail_20' ) end [2025-02-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501421', 'tblTempVendorCDR_20' ) start [2025-02-18 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501421', 'tblTempVendorCDR_20' ) end [2025-02-18 07:05:18] Production.INFO: ProcessCDR(1,14501421,1,1,2) [2025-02-18 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501421', 'tblTempUsageDetail_20' ) start [2025-02-18 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501421', 'tblTempUsageDetail_20' ) end [2025-02-18 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:05:21] Production.INFO: ==23655== Releasing lock... [2025-02-18 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:05:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:06:05 [end_date_ymd] => 2025-02-18 07:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:06:05' and `end` < '2025-02-18 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-18 07:06:18] Production.INFO: count ==54 [2025-02-18 07:06:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:06:05 - End Time 2025-02-18 07:06:05 [2025-02-18 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501426', 'tblTempUsageDetail_20' ) start [2025-02-18 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501426', 'tblTempUsageDetail_20' ) end [2025-02-18 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501426', 'tblTempVendorCDR_20' ) start [2025-02-18 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501426', 'tblTempVendorCDR_20' ) end [2025-02-18 07:06:18] Production.INFO: ProcessCDR(1,14501426,1,1,2) [2025-02-18 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501426', 'tblTempUsageDetail_20' ) start [2025-02-18 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501426', 'tblTempUsageDetail_20' ) end [2025-02-18 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:06:21] Production.INFO: ==23746== Releasing lock... [2025-02-18 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:06:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:07:05 [end_date_ymd] => 2025-02-18 07:07:05 [RateCDR] => 1 ) [2025-02-18 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:07:05' and `end` < '2025-02-18 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:07:18] Production.INFO: count ==55 [2025-02-18 07:07:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:07:05 - End Time 2025-02-18 07:07:05 [2025-02-18 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501431', 'tblTempUsageDetail_20' ) start [2025-02-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501431', 'tblTempUsageDetail_20' ) end [2025-02-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501431', 'tblTempVendorCDR_20' ) start [2025-02-18 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501431', 'tblTempVendorCDR_20' ) end [2025-02-18 07:07:18] Production.INFO: ProcessCDR(1,14501431,1,1,2) [2025-02-18 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501431', 'tblTempUsageDetail_20' ) start [2025-02-18 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501431', 'tblTempUsageDetail_20' ) end [2025-02-18 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:07:23] Production.INFO: ==23839== Releasing lock... [2025-02-18 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:07:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:08:05 [end_date_ymd] => 2025-02-18 07:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:08:05' and `end` < '2025-02-18 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-18 07:08:16] Production.INFO: count ==55 [2025-02-18 07:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:08:05 - End Time 2025-02-18 07:08:05 [2025-02-18 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501436', 'tblTempUsageDetail_20' ) start [2025-02-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501436', 'tblTempUsageDetail_20' ) end [2025-02-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501436', 'tblTempVendorCDR_20' ) start [2025-02-18 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501436', 'tblTempVendorCDR_20' ) end [2025-02-18 07:08:17] Production.INFO: ProcessCDR(1,14501436,1,1,2) [2025-02-18 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501436', 'tblTempUsageDetail_20' ) start [2025-02-18 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501436', 'tblTempUsageDetail_20' ) end [2025-02-18 07:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:08:20] Production.INFO: ==24005== Releasing lock... [2025-02-18 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:08:20] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:09:05 [end_date_ymd] => 2025-02-18 07:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:09:05' and `end` < '2025-02-18 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-18 07:09:18] Production.INFO: count ==55 [2025-02-18 07:09:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:09:05 - End Time 2025-02-18 07:09:05 [2025-02-18 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501441', 'tblTempUsageDetail_20' ) start [2025-02-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501441', 'tblTempUsageDetail_20' ) end [2025-02-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501441', 'tblTempVendorCDR_20' ) start [2025-02-18 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501441', 'tblTempVendorCDR_20' ) end [2025-02-18 07:09:18] Production.INFO: ProcessCDR(1,14501441,1,1,2) [2025-02-18 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501441', 'tblTempUsageDetail_20' ) start [2025-02-18 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501441', 'tblTempUsageDetail_20' ) end [2025-02-18 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:09:21] Production.INFO: ==24136== Releasing lock... [2025-02-18 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-18 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:10:06 [end_date_ymd] => 2025-02-18 07:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 04:10:06' and `end` < '2025-02-18 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-18 07:10:19] Production.INFO: count ==61 [2025-02-18 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-18 04:10:06 - End Time 2025-02-18 07:10:06 [2025-02-18 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501447', 'tblTempUsageDetail_20' ) start [2025-02-18 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501447', 'tblTempUsageDetail_20' ) end [2025-02-18 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501447', 'tblTempVendorCDR_20' ) start [2025-02-18 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501447', 'tblTempVendorCDR_20' ) end [2025-02-18 07:10:19] Production.INFO: ProcessCDR(1,14501447,1,1,2) [2025-02-18 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501447', 'tblTempUsageDetail_20' ) start [2025-02-18 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501447', 'tblTempUsageDetail_20' ) end [2025-02-18 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:10:22] Production.INFO: ==24223== Releasing lock... [2025-02-18 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:11:05 [end_date_ymd] => 2025-02-18 07:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:11:05' and `end` < '2025-02-18 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-18 07:11:19] Production.INFO: count ==62 [2025-02-18 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-18 04:11:05 - End Time 2025-02-18 07:11:05 [2025-02-18 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501452', 'tblTempUsageDetail_20' ) start [2025-02-18 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501452', 'tblTempUsageDetail_20' ) end [2025-02-18 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501452', 'tblTempVendorCDR_20' ) start [2025-02-18 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501452', 'tblTempVendorCDR_20' ) end [2025-02-18 07:11:19] Production.INFO: ProcessCDR(1,14501452,1,1,2) [2025-02-18 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501452', 'tblTempUsageDetail_20' ) start [2025-02-18 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501452', 'tblTempUsageDetail_20' ) end [2025-02-18 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:11:23] Production.INFO: ==24320== Releasing lock... [2025-02-18 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:11:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:12:05 [end_date_ymd] => 2025-02-18 07:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:12:05' and `end` < '2025-02-18 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-18 07:12:17] Production.INFO: count ==62 [2025-02-18 07:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:12:05 - End Time 2025-02-18 07:12:05 [2025-02-18 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501457', 'tblTempUsageDetail_20' ) start [2025-02-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501457', 'tblTempUsageDetail_20' ) end [2025-02-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501457', 'tblTempVendorCDR_20' ) start [2025-02-18 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501457', 'tblTempVendorCDR_20' ) end [2025-02-18 07:12:17] Production.INFO: ProcessCDR(1,14501457,1,1,2) [2025-02-18 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501457', 'tblTempUsageDetail_20' ) start [2025-02-18 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501457', 'tblTempUsageDetail_20' ) end [2025-02-18 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:12:21] Production.INFO: ==24483== Releasing lock... [2025-02-18 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:13:05 [end_date_ymd] => 2025-02-18 07:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:13:05' and `end` < '2025-02-18 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-18 07:13:17] Production.INFO: count ==62 [2025-02-18 07:13:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:13:05 - End Time 2025-02-18 07:13:05 [2025-02-18 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501462', 'tblTempUsageDetail_20' ) start [2025-02-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501462', 'tblTempUsageDetail_20' ) end [2025-02-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501462', 'tblTempVendorCDR_20' ) start [2025-02-18 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501462', 'tblTempVendorCDR_20' ) end [2025-02-18 07:13:17] Production.INFO: ProcessCDR(1,14501462,1,1,2) [2025-02-18 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501462', 'tblTempUsageDetail_20' ) start [2025-02-18 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501462', 'tblTempUsageDetail_20' ) end [2025-02-18 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:13:20] Production.INFO: ==24574== Releasing lock... [2025-02-18 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:14:06 [end_date_ymd] => 2025-02-18 07:14:06 [RateCDR] => 1 ) [2025-02-18 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:14:06' and `end` < '2025-02-18 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:14:18] Production.INFO: count ==62 [2025-02-18 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-18 04:14:06 - End Time 2025-02-18 07:14:06 [2025-02-18 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501467', 'tblTempUsageDetail_20' ) start [2025-02-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501467', 'tblTempUsageDetail_20' ) end [2025-02-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501467', 'tblTempVendorCDR_20' ) start [2025-02-18 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501467', 'tblTempVendorCDR_20' ) end [2025-02-18 07:14:19] Production.INFO: ProcessCDR(1,14501467,1,1,2) [2025-02-18 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501467', 'tblTempUsageDetail_20' ) start [2025-02-18 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501467', 'tblTempUsageDetail_20' ) end [2025-02-18 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:14:22] Production.INFO: ==24656== Releasing lock... [2025-02-18 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:15:05 [end_date_ymd] => 2025-02-18 07:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:15:05' and `end` < '2025-02-18 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-18 07:15:17] Production.INFO: count ==62 [2025-02-18 07:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:15:05 - End Time 2025-02-18 07:15:05 [2025-02-18 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501472', 'tblTempUsageDetail_20' ) start [2025-02-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501472', 'tblTempUsageDetail_20' ) end [2025-02-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501472', 'tblTempVendorCDR_20' ) start [2025-02-18 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501472', 'tblTempVendorCDR_20' ) end [2025-02-18 07:15:17] Production.INFO: ProcessCDR(1,14501472,1,1,2) [2025-02-18 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501472', 'tblTempUsageDetail_20' ) start [2025-02-18 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501472', 'tblTempUsageDetail_20' ) end [2025-02-18 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:15:21] Production.INFO: ==24826== Releasing lock... [2025-02-18 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:16:06 [end_date_ymd] => 2025-02-18 07:16:06 [RateCDR] => 1 ) [2025-02-18 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:16:06' and `end` < '2025-02-18 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:16:18] Production.INFO: count ==58 [2025-02-18 07:16:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:16:06 - End Time 2025-02-18 07:16:06 [2025-02-18 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501477', 'tblTempUsageDetail_20' ) start [2025-02-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501477', 'tblTempUsageDetail_20' ) end [2025-02-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501477', 'tblTempVendorCDR_20' ) start [2025-02-18 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501477', 'tblTempVendorCDR_20' ) end [2025-02-18 07:16:18] Production.INFO: ProcessCDR(1,14501477,1,1,2) [2025-02-18 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501477', 'tblTempUsageDetail_20' ) start [2025-02-18 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501477', 'tblTempUsageDetail_20' ) end [2025-02-18 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:16:22] Production.INFO: ==24911== Releasing lock... [2025-02-18 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:17:05 [end_date_ymd] => 2025-02-18 07:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:17:05' and `end` < '2025-02-18 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-18 07:17:17] Production.INFO: count ==58 [2025-02-18 07:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:17:05 - End Time 2025-02-18 07:17:05 [2025-02-18 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501482', 'tblTempUsageDetail_20' ) start [2025-02-18 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501482', 'tblTempUsageDetail_20' ) end [2025-02-18 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501482', 'tblTempVendorCDR_20' ) start [2025-02-18 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501482', 'tblTempVendorCDR_20' ) end [2025-02-18 07:17:17] Production.INFO: ProcessCDR(1,14501482,1,1,2) [2025-02-18 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501482', 'tblTempUsageDetail_20' ) start [2025-02-18 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501482', 'tblTempUsageDetail_20' ) end [2025-02-18 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:17:21] Production.INFO: ==24996== Releasing lock... [2025-02-18 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:18:06 [end_date_ymd] => 2025-02-18 07:18:06 [RateCDR] => 1 ) [2025-02-18 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:18:06' and `end` < '2025-02-18 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:18:18] Production.INFO: count ==58 [2025-02-18 07:18:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:18:06 - End Time 2025-02-18 07:18:06 [2025-02-18 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501487', 'tblTempUsageDetail_20' ) start [2025-02-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501487', 'tblTempUsageDetail_20' ) end [2025-02-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501487', 'tblTempVendorCDR_20' ) start [2025-02-18 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501487', 'tblTempVendorCDR_20' ) end [2025-02-18 07:18:18] Production.INFO: ProcessCDR(1,14501487,1,1,2) [2025-02-18 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501487', 'tblTempUsageDetail_20' ) start [2025-02-18 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501487', 'tblTempUsageDetail_20' ) end [2025-02-18 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:18:21] Production.INFO: ==25078== Releasing lock... [2025-02-18 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:19:05 [end_date_ymd] => 2025-02-18 07:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:19:05' and `end` < '2025-02-18 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-18 07:19:17] Production.INFO: count ==58 [2025-02-18 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:19:05 - End Time 2025-02-18 07:19:05 [2025-02-18 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501492', 'tblTempUsageDetail_20' ) start [2025-02-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501492', 'tblTempUsageDetail_20' ) end [2025-02-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501492', 'tblTempVendorCDR_20' ) start [2025-02-18 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501492', 'tblTempVendorCDR_20' ) end [2025-02-18 07:19:17] Production.INFO: ProcessCDR(1,14501492,1,1,2) [2025-02-18 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501492', 'tblTempUsageDetail_20' ) start [2025-02-18 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501492', 'tblTempUsageDetail_20' ) end [2025-02-18 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:19:20] Production.INFO: ==25170== Releasing lock... [2025-02-18 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:20:06 [end_date_ymd] => 2025-02-18 07:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 04:20:06' and `end` < '2025-02-18 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-18 07:20:18] Production.INFO: count ==58 [2025-02-18 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:20:06 - End Time 2025-02-18 07:20:06 [2025-02-18 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501498', 'tblTempUsageDetail_20' ) start [2025-02-18 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501498', 'tblTempUsageDetail_20' ) end [2025-02-18 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501498', 'tblTempVendorCDR_20' ) start [2025-02-18 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501498', 'tblTempVendorCDR_20' ) end [2025-02-18 07:20:18] Production.INFO: ProcessCDR(1,14501498,1,1,2) [2025-02-18 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501498', 'tblTempUsageDetail_20' ) start [2025-02-18 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501498', 'tblTempUsageDetail_20' ) end [2025-02-18 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:20:21] Production.INFO: ==25251== Releasing lock... [2025-02-18 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:21:04 [end_date_ymd] => 2025-02-18 07:21:04 [RateCDR] => 1 ) [2025-02-18 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-18 04:21:04' and `end` < '2025-02-18 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-18 07:21:16] Production.INFO: count ==58 [2025-02-18 07:21:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:21:04 - End Time 2025-02-18 07:21:04 [2025-02-18 07:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501503', 'tblTempUsageDetail_20' ) start [2025-02-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501503', 'tblTempUsageDetail_20' ) end [2025-02-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501503', 'tblTempVendorCDR_20' ) start [2025-02-18 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501503', 'tblTempVendorCDR_20' ) end [2025-02-18 07:21:16] Production.INFO: ProcessCDR(1,14501503,1,1,2) [2025-02-18 07:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501503', 'tblTempUsageDetail_20' ) start [2025-02-18 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501503', 'tblTempUsageDetail_20' ) end [2025-02-18 07:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:21:20] Production.INFO: ==25340== Releasing lock... [2025-02-18 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:22:05 [end_date_ymd] => 2025-02-18 07:22:05 [RateCDR] => 1 ) [2025-02-18 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:22:05' and `end` < '2025-02-18 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:22:17] Production.INFO: count ==58 [2025-02-18 07:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:22:05 - End Time 2025-02-18 07:22:05 [2025-02-18 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501508', 'tblTempUsageDetail_20' ) start [2025-02-18 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501508', 'tblTempUsageDetail_20' ) end [2025-02-18 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501508', 'tblTempVendorCDR_20' ) start [2025-02-18 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501508', 'tblTempVendorCDR_20' ) end [2025-02-18 07:22:17] Production.INFO: ProcessCDR(1,14501508,1,1,2) [2025-02-18 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501508', 'tblTempUsageDetail_20' ) start [2025-02-18 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501508', 'tblTempUsageDetail_20' ) end [2025-02-18 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:22:20] Production.INFO: ==25424== Releasing lock... [2025-02-18 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:23:04 [end_date_ymd] => 2025-02-18 07:23:04 [RateCDR] => 1 ) [2025-02-18 07:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:23:04' and `end` < '2025-02-18 07:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:23:16] Production.INFO: count ==58 [2025-02-18 07:23:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:23:04 - End Time 2025-02-18 07:23:04 [2025-02-18 07:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501513', 'tblTempUsageDetail_20' ) start [2025-02-18 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501513', 'tblTempUsageDetail_20' ) end [2025-02-18 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501513', 'tblTempVendorCDR_20' ) start [2025-02-18 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501513', 'tblTempVendorCDR_20' ) end [2025-02-18 07:23:16] Production.INFO: ProcessCDR(1,14501513,1,1,2) [2025-02-18 07:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501513', 'tblTempUsageDetail_20' ) start [2025-02-18 07:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501513', 'tblTempUsageDetail_20' ) end [2025-02-18 07:23:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:23:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:23:19] Production.INFO: ==25505== Releasing lock... [2025-02-18 07:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:23:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:24:05 [end_date_ymd] => 2025-02-18 07:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:24:05' and `end` < '2025-02-18 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-18 07:24:17] Production.INFO: count ==59 [2025-02-18 07:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:24:05 - End Time 2025-02-18 07:24:05 [2025-02-18 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501518', 'tblTempUsageDetail_20' ) start [2025-02-18 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501518', 'tblTempUsageDetail_20' ) end [2025-02-18 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501518', 'tblTempVendorCDR_20' ) start [2025-02-18 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501518', 'tblTempVendorCDR_20' ) end [2025-02-18 07:24:17] Production.INFO: ProcessCDR(1,14501518,1,1,2) [2025-02-18 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501518', 'tblTempUsageDetail_20' ) start [2025-02-18 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501518', 'tblTempUsageDetail_20' ) end [2025-02-18 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:24:20] Production.INFO: ==25625== Releasing lock... [2025-02-18 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:25:04 [end_date_ymd] => 2025-02-18 07:25:04 [RateCDR] => 1 ) [2025-02-18 07: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-18 04:25:04' and `end` < '2025-02-18 07: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-18 07:25:16] Production.INFO: count ==65 [2025-02-18 07:25:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:25:04 - End Time 2025-02-18 07:25:04 [2025-02-18 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501523', 'tblTempUsageDetail_20' ) start [2025-02-18 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501523', 'tblTempUsageDetail_20' ) end [2025-02-18 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501523', 'tblTempVendorCDR_20' ) start [2025-02-18 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501523', 'tblTempVendorCDR_20' ) end [2025-02-18 07:25:16] Production.INFO: ProcessCDR(1,14501523,1,1,2) [2025-02-18 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501523', 'tblTempUsageDetail_20' ) start [2025-02-18 07:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501523', 'tblTempUsageDetail_20' ) end [2025-02-18 07:25:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:25:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:25:19] Production.INFO: ==25701== Releasing lock... [2025-02-18 07:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:25:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:26:05 [end_date_ymd] => 2025-02-18 07:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:26:05' and `end` < '2025-02-18 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-18 07:26:17] Production.INFO: count ==68 [2025-02-18 07:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:26:05 - End Time 2025-02-18 07:26:05 [2025-02-18 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501528', 'tblTempUsageDetail_20' ) start [2025-02-18 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501528', 'tblTempUsageDetail_20' ) end [2025-02-18 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501528', 'tblTempVendorCDR_20' ) start [2025-02-18 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501528', 'tblTempVendorCDR_20' ) end [2025-02-18 07:26:17] Production.INFO: ProcessCDR(1,14501528,1,1,2) [2025-02-18 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501528', 'tblTempUsageDetail_20' ) start [2025-02-18 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501528', 'tblTempUsageDetail_20' ) end [2025-02-18 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:26:20] Production.INFO: ==25787== Releasing lock... [2025-02-18 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:27:06 [end_date_ymd] => 2025-02-18 07:27:06 [RateCDR] => 1 ) [2025-02-18 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:27:06' and `end` < '2025-02-18 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:27:18] Production.INFO: count ==68 [2025-02-18 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:27:06 - End Time 2025-02-18 07:27:06 [2025-02-18 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501533', 'tblTempUsageDetail_20' ) start [2025-02-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501533', 'tblTempUsageDetail_20' ) end [2025-02-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501533', 'tblTempVendorCDR_20' ) start [2025-02-18 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501533', 'tblTempVendorCDR_20' ) end [2025-02-18 07:27:18] Production.INFO: ProcessCDR(1,14501533,1,1,2) [2025-02-18 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501533', 'tblTempUsageDetail_20' ) start [2025-02-18 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501533', 'tblTempUsageDetail_20' ) end [2025-02-18 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:27:21] Production.INFO: ==25859== Releasing lock... [2025-02-18 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:28:05 [end_date_ymd] => 2025-02-18 07:28:05 [RateCDR] => 1 ) [2025-02-18 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:28:05' and `end` < '2025-02-18 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:28:17] Production.INFO: count ==71 [2025-02-18 07:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:28:05 - End Time 2025-02-18 07:28:05 [2025-02-18 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501538', 'tblTempUsageDetail_20' ) start [2025-02-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501538', 'tblTempUsageDetail_20' ) end [2025-02-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501538', 'tblTempVendorCDR_20' ) start [2025-02-18 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501538', 'tblTempVendorCDR_20' ) end [2025-02-18 07:28:17] Production.INFO: ProcessCDR(1,14501538,1,1,2) [2025-02-18 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501538', 'tblTempUsageDetail_20' ) start [2025-02-18 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501538', 'tblTempUsageDetail_20' ) end [2025-02-18 07:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:28:20] Production.INFO: ==25933== Releasing lock... [2025-02-18 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-18 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:29:05 [end_date_ymd] => 2025-02-18 07:29:05 [RateCDR] => 1 ) [2025-02-18 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:29:05' and `end` < '2025-02-18 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:29:17] Production.INFO: count ==78 [2025-02-18 07:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:29:05 - End Time 2025-02-18 07:29:05 [2025-02-18 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501543', 'tblTempUsageDetail_20' ) start [2025-02-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501543', 'tblTempUsageDetail_20' ) end [2025-02-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501543', 'tblTempVendorCDR_20' ) start [2025-02-18 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501543', 'tblTempVendorCDR_20' ) end [2025-02-18 07:29:17] Production.INFO: ProcessCDR(1,14501543,1,1,2) [2025-02-18 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501543', 'tblTempUsageDetail_20' ) start [2025-02-18 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501543', 'tblTempUsageDetail_20' ) end [2025-02-18 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:29:22] Production.INFO: ==26011== Releasing lock... [2025-02-18 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-18 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:30:06 [end_date_ymd] => 2025-02-18 07:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 04:30:06' and `end` < '2025-02-18 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-18 07:30:17] Production.INFO: count ==92 [2025-02-18 07:30:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:30:06 - End Time 2025-02-18 07:30:06 [2025-02-18 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501549', 'tblTempUsageDetail_20' ) start [2025-02-18 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501549', 'tblTempUsageDetail_20' ) end [2025-02-18 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501549', 'tblTempVendorCDR_20' ) start [2025-02-18 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501549', 'tblTempVendorCDR_20' ) end [2025-02-18 07:30:17] Production.INFO: ProcessCDR(1,14501549,1,1,2) [2025-02-18 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501549', 'tblTempUsageDetail_20' ) start [2025-02-18 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501549', 'tblTempUsageDetail_20' ) end [2025-02-18 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:30:21] Production.INFO: ==26088== Releasing lock... [2025-02-18 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-18 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:31:05 [end_date_ymd] => 2025-02-18 07:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:31:05' and `end` < '2025-02-18 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-18 07:31:17] Production.INFO: count ==92 [2025-02-18 07:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:31:05 - End Time 2025-02-18 07:31:05 [2025-02-18 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501554', 'tblTempUsageDetail_20' ) start [2025-02-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501554', 'tblTempUsageDetail_20' ) end [2025-02-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501554', 'tblTempVendorCDR_20' ) start [2025-02-18 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501554', 'tblTempVendorCDR_20' ) end [2025-02-18 07:31:17] Production.INFO: ProcessCDR(1,14501554,1,1,2) [2025-02-18 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501554', 'tblTempUsageDetail_20' ) start [2025-02-18 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501554', 'tblTempUsageDetail_20' ) end [2025-02-18 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:31:20] Production.INFO: ==26164== Releasing lock... [2025-02-18 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-18 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:32:04 [end_date_ymd] => 2025-02-18 07:32:04 [RateCDR] => 1 ) [2025-02-18 07:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:32:04' and `end` < '2025-02-18 07:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:32:16] Production.INFO: count ==98 [2025-02-18 07:32:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:32:04 - End Time 2025-02-18 07:32:04 [2025-02-18 07:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501559', 'tblTempUsageDetail_20' ) start [2025-02-18 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501559', 'tblTempUsageDetail_20' ) end [2025-02-18 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501559', 'tblTempVendorCDR_20' ) start [2025-02-18 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501559', 'tblTempVendorCDR_20' ) end [2025-02-18 07:32:16] Production.INFO: ProcessCDR(1,14501559,1,1,2) [2025-02-18 07:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501559', 'tblTempUsageDetail_20' ) start [2025-02-18 07:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501559', 'tblTempUsageDetail_20' ) end [2025-02-18 07:32:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:32:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:32:19] Production.INFO: ==26242== Releasing lock... [2025-02-18 07:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:32:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-18 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:33:05 [end_date_ymd] => 2025-02-18 07:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:33:05' and `end` < '2025-02-18 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-18 07:33:16] Production.INFO: count ==98 [2025-02-18 07:33:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:33:05 - End Time 2025-02-18 07:33:05 [2025-02-18 07:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501564', 'tblTempUsageDetail_20' ) start [2025-02-18 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501564', 'tblTempUsageDetail_20' ) end [2025-02-18 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501564', 'tblTempVendorCDR_20' ) start [2025-02-18 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501564', 'tblTempVendorCDR_20' ) end [2025-02-18 07:33:16] Production.INFO: ProcessCDR(1,14501564,1,1,2) [2025-02-18 07:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501564', 'tblTempUsageDetail_20' ) start [2025-02-18 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501564', 'tblTempUsageDetail_20' ) end [2025-02-18 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:33:20] Production.INFO: ==26313== Releasing lock... [2025-02-18 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-18 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:34:05 [end_date_ymd] => 2025-02-18 07:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:34:05' and `end` < '2025-02-18 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-18 07:34:16] Production.INFO: count ==99 [2025-02-18 07:34:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:34:05 - End Time 2025-02-18 07:34:05 [2025-02-18 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501569', 'tblTempUsageDetail_20' ) start [2025-02-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501569', 'tblTempUsageDetail_20' ) end [2025-02-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501569', 'tblTempVendorCDR_20' ) start [2025-02-18 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501569', 'tblTempVendorCDR_20' ) end [2025-02-18 07:34:16] Production.INFO: ProcessCDR(1,14501569,1,1,2) [2025-02-18 07:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501569', 'tblTempUsageDetail_20' ) start [2025-02-18 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501569', 'tblTempUsageDetail_20' ) end [2025-02-18 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:34:21] Production.INFO: ==26386== Releasing lock... [2025-02-18 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-18 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:35:05 [end_date_ymd] => 2025-02-18 07:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:35:05' and `end` < '2025-02-18 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-18 07:35:16] Production.INFO: count ==99 [2025-02-18 07:35:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:35:05 - End Time 2025-02-18 07:35:05 [2025-02-18 07:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501574', 'tblTempUsageDetail_20' ) start [2025-02-18 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501574', 'tblTempUsageDetail_20' ) end [2025-02-18 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501574', 'tblTempVendorCDR_20' ) start [2025-02-18 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501574', 'tblTempVendorCDR_20' ) end [2025-02-18 07:35:16] Production.INFO: ProcessCDR(1,14501574,1,1,2) [2025-02-18 07:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501574', 'tblTempUsageDetail_20' ) start [2025-02-18 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501574', 'tblTempUsageDetail_20' ) end [2025-02-18 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:35:20] Production.INFO: ==26457== Releasing lock... [2025-02-18 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-18 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:36:05 [end_date_ymd] => 2025-02-18 07:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:36:05' and `end` < '2025-02-18 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-18 07:36:16] Production.INFO: count ==105 [2025-02-18 07:36:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:36:05 - End Time 2025-02-18 07:36:05 [2025-02-18 07:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501579', 'tblTempUsageDetail_20' ) start [2025-02-18 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501579', 'tblTempUsageDetail_20' ) end [2025-02-18 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501579', 'tblTempVendorCDR_20' ) start [2025-02-18 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501579', 'tblTempVendorCDR_20' ) end [2025-02-18 07:36:16] Production.INFO: ProcessCDR(1,14501579,1,1,2) [2025-02-18 07:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501579', 'tblTempUsageDetail_20' ) start [2025-02-18 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501579', 'tblTempUsageDetail_20' ) end [2025-02-18 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:36:21] Production.INFO: ==26527== Releasing lock... [2025-02-18 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:36:21] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:37:05 [end_date_ymd] => 2025-02-18 07:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:37:05' and `end` < '2025-02-18 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-18 07:37:17] Production.INFO: count ==105 [2025-02-18 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:37:05 - End Time 2025-02-18 07:37:05 [2025-02-18 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501584', 'tblTempUsageDetail_20' ) start [2025-02-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501584', 'tblTempUsageDetail_20' ) end [2025-02-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501584', 'tblTempVendorCDR_20' ) start [2025-02-18 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501584', 'tblTempVendorCDR_20' ) end [2025-02-18 07:37:17] Production.INFO: ProcessCDR(1,14501584,1,1,2) [2025-02-18 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501584', 'tblTempUsageDetail_20' ) start [2025-02-18 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501584', 'tblTempUsageDetail_20' ) end [2025-02-18 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:37:20] Production.INFO: ==26598== Releasing lock... [2025-02-18 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:37:20] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:38:06 [end_date_ymd] => 2025-02-18 07:38:06 [RateCDR] => 1 ) [2025-02-18 07: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-18 04:38:06' and `end` < '2025-02-18 07: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-18 07:38:17] Production.INFO: count ==105 [2025-02-18 07:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:38:06 - End Time 2025-02-18 07:38:06 [2025-02-18 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501589', 'tblTempUsageDetail_20' ) start [2025-02-18 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501589', 'tblTempUsageDetail_20' ) end [2025-02-18 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501589', 'tblTempVendorCDR_20' ) start [2025-02-18 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501589', 'tblTempVendorCDR_20' ) end [2025-02-18 07:38:17] Production.INFO: ProcessCDR(1,14501589,1,1,2) [2025-02-18 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501589', 'tblTempUsageDetail_20' ) start [2025-02-18 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501589', 'tblTempUsageDetail_20' ) end [2025-02-18 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:38:20] Production.INFO: ==26670== Releasing lock... [2025-02-18 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:38:20] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:39:05 [end_date_ymd] => 2025-02-18 07:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:39:05' and `end` < '2025-02-18 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-18 07:39:17] Production.INFO: count ==107 [2025-02-18 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:39:05 - End Time 2025-02-18 07:39:05 [2025-02-18 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501594', 'tblTempUsageDetail_20' ) start [2025-02-18 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501594', 'tblTempUsageDetail_20' ) end [2025-02-18 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501594', 'tblTempVendorCDR_20' ) start [2025-02-18 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501594', 'tblTempVendorCDR_20' ) end [2025-02-18 07:39:17] Production.INFO: ProcessCDR(1,14501594,1,1,2) [2025-02-18 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501594', 'tblTempUsageDetail_20' ) start [2025-02-18 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501594', 'tblTempUsageDetail_20' ) end [2025-02-18 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:39:21] Production.INFO: ==26742== Releasing lock... [2025-02-18 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:39:21] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:40:06 [end_date_ymd] => 2025-02-18 07:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 04:40:06' and `end` < '2025-02-18 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-18 07:40:18] Production.INFO: count ==115 [2025-02-18 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:40:06 - End Time 2025-02-18 07:40:06 [2025-02-18 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501600', 'tblTempUsageDetail_20' ) start [2025-02-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501600', 'tblTempUsageDetail_20' ) end [2025-02-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501600', 'tblTempVendorCDR_20' ) start [2025-02-18 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501600', 'tblTempVendorCDR_20' ) end [2025-02-18 07:40:18] Production.INFO: ProcessCDR(1,14501600,1,1,2) [2025-02-18 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501600', 'tblTempUsageDetail_20' ) start [2025-02-18 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501600', 'tblTempUsageDetail_20' ) end [2025-02-18 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:40:23] Production.INFO: ==26853== Releasing lock... [2025-02-18 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:40:23] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:41:05 [end_date_ymd] => 2025-02-18 07:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:41:05' and `end` < '2025-02-18 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-18 07:41:17] Production.INFO: count ==115 [2025-02-18 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:41:05 - End Time 2025-02-18 07:41:05 [2025-02-18 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501605', 'tblTempUsageDetail_20' ) start [2025-02-18 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501605', 'tblTempUsageDetail_20' ) end [2025-02-18 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501605', 'tblTempVendorCDR_20' ) start [2025-02-18 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501605', 'tblTempVendorCDR_20' ) end [2025-02-18 07:41:17] Production.INFO: ProcessCDR(1,14501605,1,1,2) [2025-02-18 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501605', 'tblTempUsageDetail_20' ) start [2025-02-18 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501605', 'tblTempUsageDetail_20' ) end [2025-02-18 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:41:20] Production.INFO: ==26929== Releasing lock... [2025-02-18 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:41:20] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:42:05 [end_date_ymd] => 2025-02-18 07:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:42:05' and `end` < '2025-02-18 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-18 07:42:17] Production.INFO: count ==115 [2025-02-18 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:42:05 - End Time 2025-02-18 07:42:05 [2025-02-18 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501610', 'tblTempUsageDetail_20' ) start [2025-02-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501610', 'tblTempUsageDetail_20' ) end [2025-02-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501610', 'tblTempVendorCDR_20' ) start [2025-02-18 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501610', 'tblTempVendorCDR_20' ) end [2025-02-18 07:42:17] Production.INFO: ProcessCDR(1,14501610,1,1,2) [2025-02-18 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501610', 'tblTempUsageDetail_20' ) start [2025-02-18 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501610', 'tblTempUsageDetail_20' ) end [2025-02-18 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:42:21] Production.INFO: ==27005== Releasing lock... [2025-02-18 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:42:21] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:43:05 [end_date_ymd] => 2025-02-18 07:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:43:05' and `end` < '2025-02-18 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-18 07:43:16] Production.INFO: count ==115 [2025-02-18 07:43:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:43:05 - End Time 2025-02-18 07:43:05 [2025-02-18 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501615', 'tblTempUsageDetail_20' ) start [2025-02-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501615', 'tblTempUsageDetail_20' ) end [2025-02-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501615', 'tblTempVendorCDR_20' ) start [2025-02-18 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501615', 'tblTempVendorCDR_20' ) end [2025-02-18 07:43:16] Production.INFO: ProcessCDR(1,14501615,1,1,2) [2025-02-18 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501615', 'tblTempUsageDetail_20' ) start [2025-02-18 07:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501615', 'tblTempUsageDetail_20' ) end [2025-02-18 07:43:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:43:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:43:19] Production.INFO: ==27076== Releasing lock... [2025-02-18 07:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:43:19] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:44:06 [end_date_ymd] => 2025-02-18 07:44:06 [RateCDR] => 1 ) [2025-02-18 07:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:44:06' and `end` < '2025-02-18 07:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:44:17] Production.INFO: count ==115 [2025-02-18 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:44:06 - End Time 2025-02-18 07:44:06 [2025-02-18 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501620', 'tblTempUsageDetail_20' ) start [2025-02-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501620', 'tblTempUsageDetail_20' ) end [2025-02-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501620', 'tblTempVendorCDR_20' ) start [2025-02-18 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501620', 'tblTempVendorCDR_20' ) end [2025-02-18 07:44:17] Production.INFO: ProcessCDR(1,14501620,1,1,2) [2025-02-18 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501620', 'tblTempUsageDetail_20' ) start [2025-02-18 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501620', 'tblTempUsageDetail_20' ) end [2025-02-18 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:44:20] Production.INFO: ==27146== Releasing lock... [2025-02-18 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:44:20] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:45:05 [end_date_ymd] => 2025-02-18 07:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:45:05' and `end` < '2025-02-18 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-18 07:45:17] Production.INFO: count ==115 [2025-02-18 07:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:45:05 - End Time 2025-02-18 07:45:05 [2025-02-18 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501625', 'tblTempUsageDetail_20' ) start [2025-02-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501625', 'tblTempUsageDetail_20' ) end [2025-02-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501625', 'tblTempVendorCDR_20' ) start [2025-02-18 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501625', 'tblTempVendorCDR_20' ) end [2025-02-18 07:45:17] Production.INFO: ProcessCDR(1,14501625,1,1,2) [2025-02-18 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501625', 'tblTempUsageDetail_20' ) start [2025-02-18 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501625', 'tblTempUsageDetail_20' ) end [2025-02-18 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:45:20] Production.INFO: ==27219== Releasing lock... [2025-02-18 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:45:20] Production.INFO: 29 MB #Memory Used# [2025-02-18 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:46:05 [end_date_ymd] => 2025-02-18 07:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:46:05' and `end` < '2025-02-18 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-18 07:46:17] Production.INFO: count ==123 [2025-02-18 07:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:46:05 - End Time 2025-02-18 07:46:05 [2025-02-18 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501630', 'tblTempUsageDetail_20' ) start [2025-02-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501630', 'tblTempUsageDetail_20' ) end [2025-02-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501630', 'tblTempVendorCDR_20' ) start [2025-02-18 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501630', 'tblTempVendorCDR_20' ) end [2025-02-18 07:46:17] Production.INFO: ProcessCDR(1,14501630,1,1,2) [2025-02-18 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501630', 'tblTempUsageDetail_20' ) start [2025-02-18 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501630', 'tblTempUsageDetail_20' ) end [2025-02-18 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:46:21] Production.INFO: ==27296== Releasing lock... [2025-02-18 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-18 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:47:05 [end_date_ymd] => 2025-02-18 07:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:47:05' and `end` < '2025-02-18 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-18 07:47:17] Production.INFO: count ==123 [2025-02-18 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:47:05 - End Time 2025-02-18 07:47:05 [2025-02-18 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501635', 'tblTempUsageDetail_20' ) start [2025-02-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501635', 'tblTempUsageDetail_20' ) end [2025-02-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501635', 'tblTempVendorCDR_20' ) start [2025-02-18 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501635', 'tblTempVendorCDR_20' ) end [2025-02-18 07:47:17] Production.INFO: ProcessCDR(1,14501635,1,1,2) [2025-02-18 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501635', 'tblTempUsageDetail_20' ) start [2025-02-18 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501635', 'tblTempUsageDetail_20' ) end [2025-02-18 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:47:20] Production.INFO: ==27366== Releasing lock... [2025-02-18 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-18 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:48:05 [end_date_ymd] => 2025-02-18 07:48:05 [RateCDR] => 1 ) [2025-02-18 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:48:05' and `end` < '2025-02-18 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:48:17] Production.INFO: count ==123 [2025-02-18 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:48:05 - End Time 2025-02-18 07:48:05 [2025-02-18 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501640', 'tblTempUsageDetail_20' ) start [2025-02-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501640', 'tblTempUsageDetail_20' ) end [2025-02-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501640', 'tblTempVendorCDR_20' ) start [2025-02-18 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501640', 'tblTempVendorCDR_20' ) end [2025-02-18 07:48:17] Production.INFO: ProcessCDR(1,14501640,1,1,2) [2025-02-18 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501640', 'tblTempUsageDetail_20' ) start [2025-02-18 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501640', 'tblTempUsageDetail_20' ) end [2025-02-18 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:48:20] Production.INFO: ==27437== Releasing lock... [2025-02-18 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-18 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:49:05 [end_date_ymd] => 2025-02-18 07:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:49:05' and `end` < '2025-02-18 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-18 07:49:16] Production.INFO: count ==124 [2025-02-18 07:49:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:49:05 - End Time 2025-02-18 07:49:05 [2025-02-18 07:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501645', 'tblTempUsageDetail_20' ) start [2025-02-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501645', 'tblTempUsageDetail_20' ) end [2025-02-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501645', 'tblTempVendorCDR_20' ) start [2025-02-18 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501645', 'tblTempVendorCDR_20' ) end [2025-02-18 07:49:16] Production.INFO: ProcessCDR(1,14501645,1,1,2) [2025-02-18 07:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501645', 'tblTempUsageDetail_20' ) start [2025-02-18 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501645', 'tblTempUsageDetail_20' ) end [2025-02-18 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:49:20] Production.INFO: ==27508== Releasing lock... [2025-02-18 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-18 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:50:06 [end_date_ymd] => 2025-02-18 07:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 04:50:06' and `end` < '2025-02-18 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-18 07:50:18] Production.INFO: count ==135 [2025-02-18 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 04:50:06 - End Time 2025-02-18 07:50:06 [2025-02-18 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501650', 'tblTempUsageDetail_20' ) start [2025-02-18 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501650', 'tblTempUsageDetail_20' ) end [2025-02-18 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501650', 'tblTempVendorCDR_20' ) start [2025-02-18 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501650', 'tblTempVendorCDR_20' ) end [2025-02-18 07:50:18] Production.INFO: ProcessCDR(1,14501650,1,1,2) [2025-02-18 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501650', 'tblTempUsageDetail_20' ) start [2025-02-18 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501650', 'tblTempUsageDetail_20' ) end [2025-02-18 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:50:21] Production.INFO: ==27581== Releasing lock... [2025-02-18 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:51:05 [end_date_ymd] => 2025-02-18 07:51:05 [RateCDR] => 1 ) [2025-02-18 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:51:05' and `end` < '2025-02-18 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:51:17] Production.INFO: count ==139 [2025-02-18 07:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:51:05 - End Time 2025-02-18 07:51:05 [2025-02-18 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501656', 'tblTempUsageDetail_20' ) start [2025-02-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501656', 'tblTempUsageDetail_20' ) end [2025-02-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501656', 'tblTempVendorCDR_20' ) start [2025-02-18 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501656', 'tblTempVendorCDR_20' ) end [2025-02-18 07:51:17] Production.INFO: ProcessCDR(1,14501656,1,1,2) [2025-02-18 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501656', 'tblTempUsageDetail_20' ) start [2025-02-18 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501656', 'tblTempUsageDetail_20' ) end [2025-02-18 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:51:20] Production.INFO: ==27653== Releasing lock... [2025-02-18 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:52:05 [end_date_ymd] => 2025-02-18 07:52:05 [RateCDR] => 1 ) [2025-02-18 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:52:05' and `end` < '2025-02-18 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:52:17] Production.INFO: count ==141 [2025-02-18 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:52:05 - End Time 2025-02-18 07:52:05 [2025-02-18 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501661', 'tblTempUsageDetail_20' ) start [2025-02-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501661', 'tblTempUsageDetail_20' ) end [2025-02-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501661', 'tblTempVendorCDR_20' ) start [2025-02-18 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501661', 'tblTempVendorCDR_20' ) end [2025-02-18 07:52:17] Production.INFO: ProcessCDR(1,14501661,1,1,2) [2025-02-18 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501661', 'tblTempUsageDetail_20' ) start [2025-02-18 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501661', 'tblTempUsageDetail_20' ) end [2025-02-18 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:52:21] Production.INFO: ==27723== Releasing lock... [2025-02-18 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:53:05 [end_date_ymd] => 2025-02-18 07:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:53:05' and `end` < '2025-02-18 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-18 07:53:16] Production.INFO: count ==141 [2025-02-18 07:53:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:53:05 - End Time 2025-02-18 07:53:05 [2025-02-18 07:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501666', 'tblTempUsageDetail_20' ) start [2025-02-18 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501666', 'tblTempUsageDetail_20' ) end [2025-02-18 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501666', 'tblTempVendorCDR_20' ) start [2025-02-18 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501666', 'tblTempVendorCDR_20' ) end [2025-02-18 07:53:16] Production.INFO: ProcessCDR(1,14501666,1,1,2) [2025-02-18 07:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501666', 'tblTempUsageDetail_20' ) start [2025-02-18 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501666', 'tblTempUsageDetail_20' ) end [2025-02-18 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:53:20] Production.INFO: ==27793== Releasing lock... [2025-02-18 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:53:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:54:06 [end_date_ymd] => 2025-02-18 07:54:06 [RateCDR] => 1 ) [2025-02-18 07: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-18 04:54:06' and `end` < '2025-02-18 07: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-18 07:54:17] Production.INFO: count ==141 [2025-02-18 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:54:06 - End Time 2025-02-18 07:54:06 [2025-02-18 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501671', 'tblTempUsageDetail_20' ) start [2025-02-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501671', 'tblTempUsageDetail_20' ) end [2025-02-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501671', 'tblTempVendorCDR_20' ) start [2025-02-18 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501671', 'tblTempVendorCDR_20' ) end [2025-02-18 07:54:17] Production.INFO: ProcessCDR(1,14501671,1,1,2) [2025-02-18 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501671', 'tblTempUsageDetail_20' ) start [2025-02-18 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501671', 'tblTempUsageDetail_20' ) end [2025-02-18 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:54:21] Production.INFO: ==27863== Releasing lock... [2025-02-18 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:55:05 [end_date_ymd] => 2025-02-18 07:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:55:05' and `end` < '2025-02-18 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-18 07:55:17] Production.INFO: count ==142 [2025-02-18 07:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:55:05 - End Time 2025-02-18 07:55:05 [2025-02-18 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501676', 'tblTempUsageDetail_20' ) start [2025-02-18 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501676', 'tblTempUsageDetail_20' ) end [2025-02-18 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501676', 'tblTempVendorCDR_20' ) start [2025-02-18 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501676', 'tblTempVendorCDR_20' ) end [2025-02-18 07:55:17] Production.INFO: ProcessCDR(1,14501676,1,1,2) [2025-02-18 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501676', 'tblTempUsageDetail_20' ) start [2025-02-18 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501676', 'tblTempUsageDetail_20' ) end [2025-02-18 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:55:20] Production.INFO: ==27973== Releasing lock... [2025-02-18 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:56:06 [end_date_ymd] => 2025-02-18 07:56:06 [RateCDR] => 1 ) [2025-02-18 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 04:56:06' and `end` < '2025-02-18 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 07:56:17] Production.INFO: count ==144 [2025-02-18 07:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:56:06 - End Time 2025-02-18 07:56:06 [2025-02-18 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501681', 'tblTempUsageDetail_20' ) start [2025-02-18 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501681', 'tblTempUsageDetail_20' ) end [2025-02-18 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501681', 'tblTempVendorCDR_20' ) start [2025-02-18 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501681', 'tblTempVendorCDR_20' ) end [2025-02-18 07:56:17] Production.INFO: ProcessCDR(1,14501681,1,1,2) [2025-02-18 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501681', 'tblTempUsageDetail_20' ) start [2025-02-18 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501681', 'tblTempUsageDetail_20' ) end [2025-02-18 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:56:22] Production.INFO: ==28044== Releasing lock... [2025-02-18 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-18 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:57:05 [end_date_ymd] => 2025-02-18 07:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:57:05' and `end` < '2025-02-18 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-18 07:57:16] Production.INFO: count ==157 [2025-02-18 07:57:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:57:05 - End Time 2025-02-18 07:57:05 [2025-02-18 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501686', 'tblTempUsageDetail_20' ) start [2025-02-18 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501686', 'tblTempUsageDetail_20' ) end [2025-02-18 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501686', 'tblTempVendorCDR_20' ) start [2025-02-18 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501686', 'tblTempVendorCDR_20' ) end [2025-02-18 07:57:16] Production.INFO: ProcessCDR(1,14501686,1,1,2) [2025-02-18 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501686', 'tblTempUsageDetail_20' ) start [2025-02-18 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501686', 'tblTempUsageDetail_20' ) end [2025-02-18 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:57:20] Production.INFO: ==28115== Releasing lock... [2025-02-18 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:58:05 [end_date_ymd] => 2025-02-18 07:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:58:05' and `end` < '2025-02-18 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-18 07:58:17] Production.INFO: count ==157 [2025-02-18 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 04:58:05 - End Time 2025-02-18 07:58:05 [2025-02-18 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501691', 'tblTempUsageDetail_20' ) start [2025-02-18 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501691', 'tblTempUsageDetail_20' ) end [2025-02-18 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501691', 'tblTempVendorCDR_20' ) start [2025-02-18 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501691', 'tblTempVendorCDR_20' ) end [2025-02-18 07:58:17] Production.INFO: ProcessCDR(1,14501691,1,1,2) [2025-02-18 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501691', 'tblTempUsageDetail_20' ) start [2025-02-18 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501691', 'tblTempUsageDetail_20' ) end [2025-02-18 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:58:20] Production.INFO: ==28185== Releasing lock... [2025-02-18 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:58:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-18 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 04:59:05 [end_date_ymd] => 2025-02-18 07:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 04:59:05' and `end` < '2025-02-18 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-18 07:59:16] Production.INFO: count ==158 [2025-02-18 07:59:16] Production.ERROR: pbx CDR StartTime 2025-02-18 04:59:05 - End Time 2025-02-18 07:59:05 [2025-02-18 07:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501696', 'tblTempUsageDetail_20' ) start [2025-02-18 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501696', 'tblTempUsageDetail_20' ) end [2025-02-18 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501696', 'tblTempVendorCDR_20' ) start [2025-02-18 07:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501696', 'tblTempVendorCDR_20' ) end [2025-02-18 07:59:16] Production.INFO: ProcessCDR(1,14501696,1,1,2) [2025-02-18 07:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501696', 'tblTempUsageDetail_20' ) start [2025-02-18 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501696', 'tblTempUsageDetail_20' ) end [2025-02-18 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 07:59:21] Production.INFO: ==28258== Releasing lock... [2025-02-18 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 07:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-18 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:00:06 [end_date_ymd] => 2025-02-18 08:00:06 [RateCDR] => 1 ) [2025-02-18 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:00:06' and `end` < '2025-02-18 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:00:18] Production.INFO: count ==171 [2025-02-18 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:00:06 - End Time 2025-02-18 08:00:06 [2025-02-18 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501701', 'tblTempUsageDetail_20' ) start [2025-02-18 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501701', 'tblTempUsageDetail_20' ) end [2025-02-18 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501701', 'tblTempVendorCDR_20' ) start [2025-02-18 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501701', 'tblTempVendorCDR_20' ) end [2025-02-18 08:00:18] Production.INFO: ProcessCDR(1,14501701,1,1,2) [2025-02-18 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501701', 'tblTempUsageDetail_20' ) start [2025-02-18 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501701', 'tblTempUsageDetail_20' ) end [2025-02-18 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:00:23] Production.INFO: ==28335== Releasing lock... [2025-02-18 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-18 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:01:04 [end_date_ymd] => 2025-02-18 08:01:04 [RateCDR] => 1 ) [2025-02-18 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:01:04' and `end` < '2025-02-18 08:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:01:16] Production.INFO: count ==171 [2025-02-18 08:01:16] Production.ERROR: pbx CDR StartTime 2025-02-18 05:01:04 - End Time 2025-02-18 08:01:04 [2025-02-18 08:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501707', 'tblTempUsageDetail_20' ) start [2025-02-18 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501707', 'tblTempUsageDetail_20' ) end [2025-02-18 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501707', 'tblTempVendorCDR_20' ) start [2025-02-18 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501707', 'tblTempVendorCDR_20' ) end [2025-02-18 08:01:16] Production.INFO: ProcessCDR(1,14501707,1,1,2) [2025-02-18 08:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501707', 'tblTempUsageDetail_20' ) start [2025-02-18 08:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501707', 'tblTempUsageDetail_20' ) end [2025-02-18 08:01:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:01:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:01:19] Production.INFO: ==28425== Releasing lock... [2025-02-18 08:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:01:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-18 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:02:06 [end_date_ymd] => 2025-02-18 08:02:06 [RateCDR] => 1 ) [2025-02-18 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:02:06' and `end` < '2025-02-18 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:02:17] Production.INFO: count ==185 [2025-02-18 08:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:02:06 - End Time 2025-02-18 08:02:06 [2025-02-18 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501712', 'tblTempUsageDetail_20' ) start [2025-02-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501712', 'tblTempUsageDetail_20' ) end [2025-02-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501712', 'tblTempVendorCDR_20' ) start [2025-02-18 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501712', 'tblTempVendorCDR_20' ) end [2025-02-18 08:02:17] Production.INFO: ProcessCDR(1,14501712,1,1,2) [2025-02-18 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501712', 'tblTempUsageDetail_20' ) start [2025-02-18 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501712', 'tblTempUsageDetail_20' ) end [2025-02-18 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:02:21] Production.INFO: ==28496== Releasing lock... [2025-02-18 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:02:21] Production.INFO: 30 MB #Memory Used# [2025-02-18 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:03:05 [end_date_ymd] => 2025-02-18 08:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:03:05' and `end` < '2025-02-18 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-18 08:03:17] Production.INFO: count ==200 [2025-02-18 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:03:05 - End Time 2025-02-18 08:03:05 [2025-02-18 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501717', 'tblTempUsageDetail_20' ) start [2025-02-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501717', 'tblTempUsageDetail_20' ) end [2025-02-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501717', 'tblTempVendorCDR_20' ) start [2025-02-18 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501717', 'tblTempVendorCDR_20' ) end [2025-02-18 08:03:17] Production.INFO: ProcessCDR(1,14501717,1,1,2) [2025-02-18 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501717', 'tblTempUsageDetail_20' ) start [2025-02-18 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501717', 'tblTempUsageDetail_20' ) end [2025-02-18 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:03:20] Production.INFO: ==28567== Releasing lock... [2025-02-18 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:03:20] Production.INFO: 30 MB #Memory Used# [2025-02-18 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:04:05 [end_date_ymd] => 2025-02-18 08:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:04:05' and `end` < '2025-02-18 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-18 08:04:17] Production.INFO: count ==208 [2025-02-18 08:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:04:05 - End Time 2025-02-18 08:04:05 [2025-02-18 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501722', 'tblTempUsageDetail_20' ) start [2025-02-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501722', 'tblTempUsageDetail_20' ) end [2025-02-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501722', 'tblTempVendorCDR_20' ) start [2025-02-18 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501722', 'tblTempVendorCDR_20' ) end [2025-02-18 08:04:17] Production.INFO: ProcessCDR(1,14501722,1,1,2) [2025-02-18 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501722', 'tblTempUsageDetail_20' ) start [2025-02-18 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501722', 'tblTempUsageDetail_20' ) end [2025-02-18 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:04:21] Production.INFO: ==28638== Releasing lock... [2025-02-18 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-18 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:05:05 [end_date_ymd] => 2025-02-18 08:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:05:05' and `end` < '2025-02-18 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-18 08:05:16] Production.INFO: count ==217 [2025-02-18 08:05:16] Production.ERROR: pbx CDR StartTime 2025-02-18 05:05:05 - End Time 2025-02-18 08:05:05 [2025-02-18 08:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501727', 'tblTempUsageDetail_20' ) start [2025-02-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501727', 'tblTempUsageDetail_20' ) end [2025-02-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501727', 'tblTempVendorCDR_20' ) start [2025-02-18 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501727', 'tblTempVendorCDR_20' ) end [2025-02-18 08:05:17] Production.INFO: ProcessCDR(1,14501727,1,1,2) [2025-02-18 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501727', 'tblTempUsageDetail_20' ) start [2025-02-18 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501727', 'tblTempUsageDetail_20' ) end [2025-02-18 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:05:20] Production.INFO: ==28708== Releasing lock... [2025-02-18 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-18 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:06:06 [end_date_ymd] => 2025-02-18 08:06:06 [RateCDR] => 1 ) [2025-02-18 08: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-18 05:06:06' and `end` < '2025-02-18 08: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-18 08:06:17] Production.INFO: count ==250 [2025-02-18 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:06:06 - End Time 2025-02-18 08:06:06 [2025-02-18 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501732', 'tblTempUsageDetail_20' ) start [2025-02-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501732', 'tblTempUsageDetail_20' ) end [2025-02-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501732', 'tblTempVendorCDR_20' ) start [2025-02-18 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501732', 'tblTempVendorCDR_20' ) end [2025-02-18 08:06:17] Production.INFO: ProcessCDR(1,14501732,1,1,2) [2025-02-18 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501732', 'tblTempUsageDetail_20' ) start [2025-02-18 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501732', 'tblTempUsageDetail_20' ) end [2025-02-18 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:06:21] Production.INFO: ==28783== Releasing lock... [2025-02-18 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:06:21] Production.INFO: 30 MB #Memory Used# [2025-02-18 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:07:05 [end_date_ymd] => 2025-02-18 08:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:07:05' and `end` < '2025-02-18 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-18 08:07:16] Production.INFO: count ==281 [2025-02-18 08:07:16] Production.ERROR: pbx CDR StartTime 2025-02-18 05:07:05 - End Time 2025-02-18 08:07:05 [2025-02-18 08:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501737', 'tblTempUsageDetail_20' ) start [2025-02-18 08:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501737', 'tblTempUsageDetail_20' ) end [2025-02-18 08:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501737', 'tblTempVendorCDR_20' ) start [2025-02-18 08:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501737', 'tblTempVendorCDR_20' ) end [2025-02-18 08:07:16] Production.INFO: ProcessCDR(1,14501737,1,1,2) [2025-02-18 08:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501737', 'tblTempUsageDetail_20' ) start [2025-02-18 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501737', 'tblTempUsageDetail_20' ) end [2025-02-18 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:07:20] Production.INFO: ==28854== Releasing lock... [2025-02-18 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:07:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-18 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:08:05 [end_date_ymd] => 2025-02-18 08:08:05 [RateCDR] => 1 ) [2025-02-18 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:08:05' and `end` < '2025-02-18 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:08:17] Production.INFO: count ==286 [2025-02-18 08:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:08:05 - End Time 2025-02-18 08:08:05 [2025-02-18 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501742', 'tblTempUsageDetail_20' ) start [2025-02-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501742', 'tblTempUsageDetail_20' ) end [2025-02-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501742', 'tblTempVendorCDR_20' ) start [2025-02-18 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501742', 'tblTempVendorCDR_20' ) end [2025-02-18 08:08:17] Production.INFO: ProcessCDR(1,14501742,1,1,2) [2025-02-18 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501742', 'tblTempUsageDetail_20' ) start [2025-02-18 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501742', 'tblTempUsageDetail_20' ) end [2025-02-18 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:08:20] Production.INFO: ==28927== Releasing lock... [2025-02-18 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:08:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:09:06 [end_date_ymd] => 2025-02-18 08:09:06 [RateCDR] => 1 ) [2025-02-18 08: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-18 05:09:06' and `end` < '2025-02-18 08: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-18 08:09:17] Production.INFO: count ==286 [2025-02-18 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:09:06 - End Time 2025-02-18 08:09:06 [2025-02-18 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501747', 'tblTempUsageDetail_20' ) start [2025-02-18 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501747', 'tblTempUsageDetail_20' ) end [2025-02-18 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501747', 'tblTempVendorCDR_20' ) start [2025-02-18 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501747', 'tblTempVendorCDR_20' ) end [2025-02-18 08:09:18] Production.INFO: ProcessCDR(1,14501747,1,1,2) [2025-02-18 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501747', 'tblTempUsageDetail_20' ) start [2025-02-18 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501747', 'tblTempUsageDetail_20' ) end [2025-02-18 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:09:22] Production.INFO: ==28998== Releasing lock... [2025-02-18 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:09:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:10:06 [end_date_ymd] => 2025-02-18 08:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 05:10:06' and `end` < '2025-02-18 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-18 08:10:18] Production.INFO: count ==298 [2025-02-18 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:10:06 - End Time 2025-02-18 08:10:06 [2025-02-18 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501752', 'tblTempUsageDetail_20' ) start [2025-02-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501752', 'tblTempUsageDetail_20' ) end [2025-02-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501752', 'tblTempVendorCDR_20' ) start [2025-02-18 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501752', 'tblTempVendorCDR_20' ) end [2025-02-18 08:10:18] Production.INFO: ProcessCDR(1,14501752,1,1,2) [2025-02-18 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501752', 'tblTempUsageDetail_20' ) start [2025-02-18 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501752', 'tblTempUsageDetail_20' ) end [2025-02-18 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:10:21] Production.INFO: ==29109== Releasing lock... [2025-02-18 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:10:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:11:05 [end_date_ymd] => 2025-02-18 08:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:11:05' and `end` < '2025-02-18 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-18 08:11:17] Production.INFO: count ==324 [2025-02-18 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:11:05 - End Time 2025-02-18 08:11:05 [2025-02-18 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501758', 'tblTempUsageDetail_20' ) start [2025-02-18 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501758', 'tblTempUsageDetail_20' ) end [2025-02-18 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501758', 'tblTempVendorCDR_20' ) start [2025-02-18 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501758', 'tblTempVendorCDR_20' ) end [2025-02-18 08:11:17] Production.INFO: ProcessCDR(1,14501758,1,1,2) [2025-02-18 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501758', 'tblTempUsageDetail_20' ) start [2025-02-18 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501758', 'tblTempUsageDetail_20' ) end [2025-02-18 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:11:20] Production.INFO: ==29183== Releasing lock... [2025-02-18 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:11:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-18 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:12:05 [end_date_ymd] => 2025-02-18 08:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:12:05' and `end` < '2025-02-18 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-18 08:12:17] Production.INFO: count ==328 [2025-02-18 08:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:12:05 - End Time 2025-02-18 08:12:05 [2025-02-18 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501763', 'tblTempUsageDetail_20' ) start [2025-02-18 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501763', 'tblTempUsageDetail_20' ) end [2025-02-18 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501763', 'tblTempVendorCDR_20' ) start [2025-02-18 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501763', 'tblTempVendorCDR_20' ) end [2025-02-18 08:12:17] Production.INFO: ProcessCDR(1,14501763,1,1,2) [2025-02-18 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501763', 'tblTempUsageDetail_20' ) start [2025-02-18 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501763', 'tblTempUsageDetail_20' ) end [2025-02-18 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:12:21] Production.INFO: ==29258== Releasing lock... [2025-02-18 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-18 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:13:06 [end_date_ymd] => 2025-02-18 08:13:06 [RateCDR] => 1 ) [2025-02-18 08: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-18 05:13:06' and `end` < '2025-02-18 08: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-18 08:13:18] Production.INFO: count ==329 [2025-02-18 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:13:06 - End Time 2025-02-18 08:13:06 [2025-02-18 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501768', 'tblTempUsageDetail_20' ) start [2025-02-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501768', 'tblTempUsageDetail_20' ) end [2025-02-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501768', 'tblTempVendorCDR_20' ) start [2025-02-18 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501768', 'tblTempVendorCDR_20' ) end [2025-02-18 08:13:18] Production.INFO: ProcessCDR(1,14501768,1,1,2) [2025-02-18 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501768', 'tblTempUsageDetail_20' ) start [2025-02-18 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501768', 'tblTempUsageDetail_20' ) end [2025-02-18 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:13:21] Production.INFO: ==29330== Releasing lock... [2025-02-18 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-18 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:14:05 [end_date_ymd] => 2025-02-18 08:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:14:05' and `end` < '2025-02-18 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-18 08:14:17] Production.INFO: count ==337 [2025-02-18 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:14:05 - End Time 2025-02-18 08:14:05 [2025-02-18 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501773', 'tblTempUsageDetail_20' ) start [2025-02-18 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501773', 'tblTempUsageDetail_20' ) end [2025-02-18 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501773', 'tblTempVendorCDR_20' ) start [2025-02-18 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501773', 'tblTempVendorCDR_20' ) end [2025-02-18 08:14:17] Production.INFO: ProcessCDR(1,14501773,1,1,2) [2025-02-18 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501773', 'tblTempUsageDetail_20' ) start [2025-02-18 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501773', 'tblTempUsageDetail_20' ) end [2025-02-18 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:14:22] Production.INFO: ==29400== Releasing lock... [2025-02-18 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-18 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:15:05 [end_date_ymd] => 2025-02-18 08:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:15:05' and `end` < '2025-02-18 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-18 08:15:17] Production.INFO: count ==340 [2025-02-18 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:15:05 - End Time 2025-02-18 08:15:05 [2025-02-18 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501778', 'tblTempUsageDetail_20' ) start [2025-02-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501778', 'tblTempUsageDetail_20' ) end [2025-02-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501778', 'tblTempVendorCDR_20' ) start [2025-02-18 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501778', 'tblTempVendorCDR_20' ) end [2025-02-18 08:15:17] Production.INFO: ProcessCDR(1,14501778,1,1,2) [2025-02-18 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501778', 'tblTempUsageDetail_20' ) start [2025-02-18 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501778', 'tblTempUsageDetail_20' ) end [2025-02-18 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:15:21] Production.INFO: ==29472== Releasing lock... [2025-02-18 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:15:21] Production.INFO: 31 MB #Memory Used# [2025-02-18 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:16:05 [end_date_ymd] => 2025-02-18 08:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:16:05' and `end` < '2025-02-18 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-18 08:16:17] Production.INFO: count ==350 [2025-02-18 08:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:16:05 - End Time 2025-02-18 08:16:05 [2025-02-18 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501783', 'tblTempUsageDetail_20' ) start [2025-02-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501783', 'tblTempUsageDetail_20' ) end [2025-02-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501783', 'tblTempVendorCDR_20' ) start [2025-02-18 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501783', 'tblTempVendorCDR_20' ) end [2025-02-18 08:16:17] Production.INFO: ProcessCDR(1,14501783,1,1,2) [2025-02-18 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501783', 'tblTempUsageDetail_20' ) start [2025-02-18 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501783', 'tblTempUsageDetail_20' ) end [2025-02-18 08:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:16:20] Production.INFO: ==29544== Releasing lock... [2025-02-18 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-18 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:17:05 [end_date_ymd] => 2025-02-18 08:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:17:05' and `end` < '2025-02-18 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-18 08:17:17] Production.INFO: count ==357 [2025-02-18 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:17:05 - End Time 2025-02-18 08:17:05 [2025-02-18 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501788', 'tblTempUsageDetail_20' ) start [2025-02-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501788', 'tblTempUsageDetail_20' ) end [2025-02-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501788', 'tblTempVendorCDR_20' ) start [2025-02-18 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501788', 'tblTempVendorCDR_20' ) end [2025-02-18 08:17:17] Production.INFO: ProcessCDR(1,14501788,1,1,2) [2025-02-18 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501788', 'tblTempUsageDetail_20' ) start [2025-02-18 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501788', 'tblTempUsageDetail_20' ) end [2025-02-18 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:17:22] Production.INFO: ==29615== Releasing lock... [2025-02-18 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-18 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:18:05 [end_date_ymd] => 2025-02-18 08:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:18:05' and `end` < '2025-02-18 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-18 08:18:17] Production.INFO: count ==380 [2025-02-18 08:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:18:05 - End Time 2025-02-18 08:18:05 [2025-02-18 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501793', 'tblTempUsageDetail_20' ) start [2025-02-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501793', 'tblTempUsageDetail_20' ) end [2025-02-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501793', 'tblTempVendorCDR_20' ) start [2025-02-18 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501793', 'tblTempVendorCDR_20' ) end [2025-02-18 08:18:17] Production.INFO: ProcessCDR(1,14501793,1,1,2) [2025-02-18 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501793', 'tblTempUsageDetail_20' ) start [2025-02-18 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501793', 'tblTempUsageDetail_20' ) end [2025-02-18 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:18:22] Production.INFO: ==29697== Releasing lock... [2025-02-18 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-18 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:19:06 [end_date_ymd] => 2025-02-18 08:19:06 [RateCDR] => 1 ) [2025-02-18 08: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-18 05:19:06' and `end` < '2025-02-18 08: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-18 08:19:17] Production.INFO: count ==383 [2025-02-18 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:19:06 - End Time 2025-02-18 08:19:06 [2025-02-18 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501798', 'tblTempUsageDetail_20' ) start [2025-02-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501798', 'tblTempUsageDetail_20' ) end [2025-02-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501798', 'tblTempVendorCDR_20' ) start [2025-02-18 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501798', 'tblTempVendorCDR_20' ) end [2025-02-18 08:19:18] Production.INFO: ProcessCDR(1,14501798,1,1,2) [2025-02-18 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501798', 'tblTempUsageDetail_20' ) start [2025-02-18 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501798', 'tblTempUsageDetail_20' ) end [2025-02-18 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:19:22] Production.INFO: ==29769== Releasing lock... [2025-02-18 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-18 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:20:06 [end_date_ymd] => 2025-02-18 08:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 05:20:06' and `end` < '2025-02-18 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-18 08:20:18] Production.INFO: count ==399 [2025-02-18 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:20:06 - End Time 2025-02-18 08:20:06 [2025-02-18 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501804', 'tblTempUsageDetail_20' ) start [2025-02-18 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501804', 'tblTempUsageDetail_20' ) end [2025-02-18 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501804', 'tblTempVendorCDR_20' ) start [2025-02-18 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501804', 'tblTempVendorCDR_20' ) end [2025-02-18 08:20:18] Production.INFO: ProcessCDR(1,14501804,1,1,2) [2025-02-18 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501804', 'tblTempUsageDetail_20' ) start [2025-02-18 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501804', 'tblTempUsageDetail_20' ) end [2025-02-18 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:20:21] Production.INFO: ==29839== Releasing lock... [2025-02-18 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-18 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:21:05 [end_date_ymd] => 2025-02-18 08:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:21:05' and `end` < '2025-02-18 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-18 08:21:17] Production.INFO: count ==439 [2025-02-18 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:21:05 - End Time 2025-02-18 08:21:05 [2025-02-18 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501809', 'tblTempUsageDetail_20' ) start [2025-02-18 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501809', 'tblTempUsageDetail_20' ) end [2025-02-18 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501809', 'tblTempVendorCDR_20' ) start [2025-02-18 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501809', 'tblTempVendorCDR_20' ) end [2025-02-18 08:21:17] Production.INFO: ProcessCDR(1,14501809,1,1,2) [2025-02-18 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501809', 'tblTempUsageDetail_20' ) start [2025-02-18 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501809', 'tblTempUsageDetail_20' ) end [2025-02-18 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:21:22] Production.INFO: ==29917== Releasing lock... [2025-02-18 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:21:22] Production.INFO: 32 MB #Memory Used# [2025-02-18 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:22:05 [end_date_ymd] => 2025-02-18 08:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:22:05' and `end` < '2025-02-18 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-18 08:22:17] Production.INFO: count ==455 [2025-02-18 08:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:22:05 - End Time 2025-02-18 08:22:05 [2025-02-18 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501814', 'tblTempUsageDetail_20' ) start [2025-02-18 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501814', 'tblTempUsageDetail_20' ) end [2025-02-18 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501814', 'tblTempVendorCDR_20' ) start [2025-02-18 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501814', 'tblTempVendorCDR_20' ) end [2025-02-18 08:22:17] Production.INFO: ProcessCDR(1,14501814,1,1,2) [2025-02-18 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501814', 'tblTempUsageDetail_20' ) start [2025-02-18 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501814', 'tblTempUsageDetail_20' ) end [2025-02-18 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:22:21] Production.INFO: ==29988== Releasing lock... [2025-02-18 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:22:21] Production.INFO: 32 MB #Memory Used# [2025-02-18 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:23:05 [end_date_ymd] => 2025-02-18 08:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:23:05' and `end` < '2025-02-18 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-18 08:23:17] Production.INFO: count ==465 [2025-02-18 08:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:23:05 - End Time 2025-02-18 08:23:05 [2025-02-18 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501819', 'tblTempUsageDetail_20' ) start [2025-02-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501819', 'tblTempUsageDetail_20' ) end [2025-02-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501819', 'tblTempVendorCDR_20' ) start [2025-02-18 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501819', 'tblTempVendorCDR_20' ) end [2025-02-18 08:23:17] Production.INFO: ProcessCDR(1,14501819,1,1,2) [2025-02-18 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501819', 'tblTempUsageDetail_20' ) start [2025-02-18 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501819', 'tblTempUsageDetail_20' ) end [2025-02-18 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:23:22] Production.INFO: ==30059== Releasing lock... [2025-02-18 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:23:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:24:05 [end_date_ymd] => 2025-02-18 08:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:24:05' and `end` < '2025-02-18 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-18 08:24:17] Production.INFO: count ==468 [2025-02-18 08:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:24:05 - End Time 2025-02-18 08:24:05 [2025-02-18 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501824', 'tblTempUsageDetail_20' ) start [2025-02-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501824', 'tblTempUsageDetail_20' ) end [2025-02-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501824', 'tblTempVendorCDR_20' ) start [2025-02-18 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501824', 'tblTempVendorCDR_20' ) end [2025-02-18 08:24:17] Production.INFO: ProcessCDR(1,14501824,1,1,2) [2025-02-18 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501824', 'tblTempUsageDetail_20' ) start [2025-02-18 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501824', 'tblTempUsageDetail_20' ) end [2025-02-18 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:24:22] Production.INFO: ==30130== Releasing lock... [2025-02-18 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:24:22] Production.INFO: 32 MB #Memory Used# [2025-02-18 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:25:05 [end_date_ymd] => 2025-02-18 08:25:05 [RateCDR] => 1 ) [2025-02-18 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:25:05' and `end` < '2025-02-18 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:25:17] Production.INFO: count ==469 [2025-02-18 08:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:25:05 - End Time 2025-02-18 08:25:05 [2025-02-18 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501829', 'tblTempUsageDetail_20' ) start [2025-02-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501829', 'tblTempUsageDetail_20' ) end [2025-02-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501829', 'tblTempVendorCDR_20' ) start [2025-02-18 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501829', 'tblTempVendorCDR_20' ) end [2025-02-18 08:25:17] Production.INFO: ProcessCDR(1,14501829,1,1,2) [2025-02-18 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501829', 'tblTempUsageDetail_20' ) start [2025-02-18 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501829', 'tblTempUsageDetail_20' ) end [2025-02-18 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:25:21] Production.INFO: ==30205== Releasing lock... [2025-02-18 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:25:21] Production.INFO: 32 MB #Memory Used# [2025-02-18 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:26:05 [end_date_ymd] => 2025-02-18 08:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:26:05' and `end` < '2025-02-18 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-18 08:26:17] Production.INFO: count ==489 [2025-02-18 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:26:05 - End Time 2025-02-18 08:26:05 [2025-02-18 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501834', 'tblTempUsageDetail_20' ) start [2025-02-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501834', 'tblTempUsageDetail_20' ) end [2025-02-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501834', 'tblTempVendorCDR_20' ) start [2025-02-18 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501834', 'tblTempVendorCDR_20' ) end [2025-02-18 08:26:17] Production.INFO: ProcessCDR(1,14501834,1,1,2) [2025-02-18 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501834', 'tblTempUsageDetail_20' ) start [2025-02-18 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501834', 'tblTempUsageDetail_20' ) end [2025-02-18 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:26:20] Production.INFO: ==30321== Releasing lock... [2025-02-18 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:26:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-18 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:27:05 [end_date_ymd] => 2025-02-18 08:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:27:05' and `end` < '2025-02-18 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-18 08:27:17] Production.INFO: count ==500 [2025-02-18 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:27:05 - End Time 2025-02-18 08:27:05 [2025-02-18 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501839', 'tblTempUsageDetail_20' ) start [2025-02-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501839', 'tblTempUsageDetail_20' ) end [2025-02-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501839', 'tblTempVendorCDR_20' ) start [2025-02-18 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501839', 'tblTempVendorCDR_20' ) end [2025-02-18 08:27:17] Production.INFO: ProcessCDR(1,14501839,1,1,2) [2025-02-18 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501839', 'tblTempUsageDetail_20' ) start [2025-02-18 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501839', 'tblTempUsageDetail_20' ) end [2025-02-18 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:27:21] Production.INFO: ==30391== Releasing lock... [2025-02-18 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:28:05 [end_date_ymd] => 2025-02-18 08:28:05 [RateCDR] => 1 ) [2025-02-18 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:28:05' and `end` < '2025-02-18 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:28:17] Production.INFO: count ==508 [2025-02-18 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:28:05 - End Time 2025-02-18 08:28:05 [2025-02-18 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501844', 'tblTempUsageDetail_20' ) start [2025-02-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501844', 'tblTempUsageDetail_20' ) end [2025-02-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501844', 'tblTempVendorCDR_20' ) start [2025-02-18 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501844', 'tblTempVendorCDR_20' ) end [2025-02-18 08:28:17] Production.INFO: ProcessCDR(1,14501844,1,1,2) [2025-02-18 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501844', 'tblTempUsageDetail_20' ) start [2025-02-18 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501844', 'tblTempUsageDetail_20' ) end [2025-02-18 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:28:21] Production.INFO: ==30462== Releasing lock... [2025-02-18 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:29:05 [end_date_ymd] => 2025-02-18 08:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:29:05' and `end` < '2025-02-18 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-18 08:29:17] Production.INFO: count ==521 [2025-02-18 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:29:05 - End Time 2025-02-18 08:29:05 [2025-02-18 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501849', 'tblTempUsageDetail_20' ) start [2025-02-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501849', 'tblTempUsageDetail_20' ) end [2025-02-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501849', 'tblTempVendorCDR_20' ) start [2025-02-18 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501849', 'tblTempVendorCDR_20' ) end [2025-02-18 08:29:17] Production.INFO: ProcessCDR(1,14501849,1,1,2) [2025-02-18 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501849', 'tblTempUsageDetail_20' ) start [2025-02-18 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501849', 'tblTempUsageDetail_20' ) end [2025-02-18 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:29:22] Production.INFO: ==30535== Releasing lock... [2025-02-18 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:30:05 [end_date_ymd] => 2025-02-18 08:30:05 [RateCDR] => 1 ) [2025-02-18 08: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-18 05:30:05' and `end` < '2025-02-18 08: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-18 08:30:17] Production.INFO: count ==541 [2025-02-18 08:30:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:30:05 - End Time 2025-02-18 08:30:05 [2025-02-18 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501854', 'tblTempUsageDetail_20' ) start [2025-02-18 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501854', 'tblTempUsageDetail_20' ) end [2025-02-18 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501854', 'tblTempVendorCDR_20' ) start [2025-02-18 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501854', 'tblTempVendorCDR_20' ) end [2025-02-18 08:30:17] Production.INFO: ProcessCDR(1,14501854,1,1,2) [2025-02-18 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501854', 'tblTempUsageDetail_20' ) start [2025-02-18 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501854', 'tblTempUsageDetail_20' ) end [2025-02-18 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:30:21] Production.INFO: ==30608== Releasing lock... [2025-02-18 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:30:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:31:06 [end_date_ymd] => 2025-02-18 08:31:06 [RateCDR] => 1 ) [2025-02-18 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:31:06' and `end` < '2025-02-18 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:31:18] Production.INFO: count ==573 [2025-02-18 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:31:06 - End Time 2025-02-18 08:31:06 [2025-02-18 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501860', 'tblTempUsageDetail_20' ) start [2025-02-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501860', 'tblTempUsageDetail_20' ) end [2025-02-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501860', 'tblTempVendorCDR_20' ) start [2025-02-18 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501860', 'tblTempVendorCDR_20' ) end [2025-02-18 08:31:18] Production.INFO: ProcessCDR(1,14501860,1,1,2) [2025-02-18 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501860', 'tblTempUsageDetail_20' ) start [2025-02-18 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501860', 'tblTempUsageDetail_20' ) end [2025-02-18 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:31:21] Production.INFO: ==30683== Releasing lock... [2025-02-18 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:32:05 [end_date_ymd] => 2025-02-18 08:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:32:05' and `end` < '2025-02-18 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-18 08:32:17] Production.INFO: count ==574 [2025-02-18 08:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:32:05 - End Time 2025-02-18 08:32:05 [2025-02-18 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501865', 'tblTempUsageDetail_20' ) start [2025-02-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501865', 'tblTempUsageDetail_20' ) end [2025-02-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501865', 'tblTempVendorCDR_20' ) start [2025-02-18 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501865', 'tblTempVendorCDR_20' ) end [2025-02-18 08:32:17] Production.INFO: ProcessCDR(1,14501865,1,1,2) [2025-02-18 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501865', 'tblTempUsageDetail_20' ) start [2025-02-18 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501865', 'tblTempUsageDetail_20' ) end [2025-02-18 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:32:20] Production.INFO: ==30782== Releasing lock... [2025-02-18 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:32:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:33:05 [end_date_ymd] => 2025-02-18 08:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:33:05' and `end` < '2025-02-18 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-18 08:33:17] Production.INFO: count ==582 [2025-02-18 08:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:33:05 - End Time 2025-02-18 08:33:05 [2025-02-18 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501870', 'tblTempUsageDetail_20' ) start [2025-02-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501870', 'tblTempUsageDetail_20' ) end [2025-02-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501870', 'tblTempVendorCDR_20' ) start [2025-02-18 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501870', 'tblTempVendorCDR_20' ) end [2025-02-18 08:33:17] Production.INFO: ProcessCDR(1,14501870,1,1,2) [2025-02-18 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501870', 'tblTempUsageDetail_20' ) start [2025-02-18 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501870', 'tblTempUsageDetail_20' ) end [2025-02-18 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:33:22] Production.INFO: ==30894== Releasing lock... [2025-02-18 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:33:22] Production.INFO: 33 MB #Memory Used# [2025-02-18 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:34:05 [end_date_ymd] => 2025-02-18 08:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:34:05' and `end` < '2025-02-18 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-18 08:34:17] Production.INFO: count ==595 [2025-02-18 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:34:05 - End Time 2025-02-18 08:34:05 [2025-02-18 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501875', 'tblTempUsageDetail_20' ) start [2025-02-18 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501875', 'tblTempUsageDetail_20' ) end [2025-02-18 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501875', 'tblTempVendorCDR_20' ) start [2025-02-18 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501875', 'tblTempVendorCDR_20' ) end [2025-02-18 08:34:17] Production.INFO: ProcessCDR(1,14501875,1,1,2) [2025-02-18 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501875', 'tblTempUsageDetail_20' ) start [2025-02-18 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501875', 'tblTempUsageDetail_20' ) end [2025-02-18 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:34:22] Production.INFO: ==31006== Releasing lock... [2025-02-18 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:34:22] Production.INFO: 33 MB #Memory Used# [2025-02-18 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:35:05 [end_date_ymd] => 2025-02-18 08:35:05 [RateCDR] => 1 ) [2025-02-18 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:35:05' and `end` < '2025-02-18 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:35:16] Production.INFO: count ==612 [2025-02-18 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:35:05 - End Time 2025-02-18 08:35:05 [2025-02-18 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501880', 'tblTempUsageDetail_20' ) start [2025-02-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501880', 'tblTempUsageDetail_20' ) end [2025-02-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501880', 'tblTempVendorCDR_20' ) start [2025-02-18 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501880', 'tblTempVendorCDR_20' ) end [2025-02-18 08:35:17] Production.INFO: ProcessCDR(1,14501880,1,1,2) [2025-02-18 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501880', 'tblTempUsageDetail_20' ) start [2025-02-18 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501880', 'tblTempUsageDetail_20' ) end [2025-02-18 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:35:22] Production.INFO: ==31118== Releasing lock... [2025-02-18 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:36:06 [end_date_ymd] => 2025-02-18 08:36:06 [RateCDR] => 1 ) [2025-02-18 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:36:06' and `end` < '2025-02-18 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:36:18] Production.INFO: count ==625 [2025-02-18 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:36:06 - End Time 2025-02-18 08:36:06 [2025-02-18 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501885', 'tblTempUsageDetail_20' ) start [2025-02-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501885', 'tblTempUsageDetail_20' ) end [2025-02-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501885', 'tblTempVendorCDR_20' ) start [2025-02-18 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501885', 'tblTempVendorCDR_20' ) end [2025-02-18 08:36:18] Production.INFO: ProcessCDR(1,14501885,1,1,2) [2025-02-18 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501885', 'tblTempUsageDetail_20' ) start [2025-02-18 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501885', 'tblTempUsageDetail_20' ) end [2025-02-18 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:36:23] Production.INFO: ==31234== Releasing lock... [2025-02-18 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:36:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:37:05 [end_date_ymd] => 2025-02-18 08:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:37:05' and `end` < '2025-02-18 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-18 08:37:16] Production.INFO: count ==639 [2025-02-18 08:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:37:05 - End Time 2025-02-18 08:37:05 [2025-02-18 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501890', 'tblTempUsageDetail_20' ) start [2025-02-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501890', 'tblTempUsageDetail_20' ) end [2025-02-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501890', 'tblTempVendorCDR_20' ) start [2025-02-18 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501890', 'tblTempVendorCDR_20' ) end [2025-02-18 08:37:17] Production.INFO: ProcessCDR(1,14501890,1,1,2) [2025-02-18 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501890', 'tblTempUsageDetail_20' ) start [2025-02-18 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501890', 'tblTempUsageDetail_20' ) end [2025-02-18 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:37:20] Production.INFO: ==31344== Releasing lock... [2025-02-18 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:37:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:38:05 [end_date_ymd] => 2025-02-18 08:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:38:05' and `end` < '2025-02-18 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-18 08:38:17] Production.INFO: count ==649 [2025-02-18 08:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:38:05 - End Time 2025-02-18 08:38:05 [2025-02-18 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501895', 'tblTempUsageDetail_20' ) start [2025-02-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501895', 'tblTempUsageDetail_20' ) end [2025-02-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501895', 'tblTempVendorCDR_20' ) start [2025-02-18 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501895', 'tblTempVendorCDR_20' ) end [2025-02-18 08:38:18] Production.INFO: ProcessCDR(1,14501895,1,1,2) [2025-02-18 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501895', 'tblTempUsageDetail_20' ) start [2025-02-18 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501895', 'tblTempUsageDetail_20' ) end [2025-02-18 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:38:23] Production.INFO: ==31456== Releasing lock... [2025-02-18 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:39:05 [end_date_ymd] => 2025-02-18 08:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:39:05' and `end` < '2025-02-18 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-18 08:39:17] Production.INFO: count ==658 [2025-02-18 08:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:39:05 - End Time 2025-02-18 08:39:05 [2025-02-18 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501900', 'tblTempUsageDetail_20' ) start [2025-02-18 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501900', 'tblTempUsageDetail_20' ) end [2025-02-18 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501900', 'tblTempVendorCDR_20' ) start [2025-02-18 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501900', 'tblTempVendorCDR_20' ) end [2025-02-18 08:39:17] Production.INFO: ProcessCDR(1,14501900,1,1,2) [2025-02-18 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501900', 'tblTempUsageDetail_20' ) start [2025-02-18 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501900', 'tblTempUsageDetail_20' ) end [2025-02-18 08:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:39:20] Production.INFO: ==31565== Releasing lock... [2025-02-18 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:39:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:40:06 [end_date_ymd] => 2025-02-18 08:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 05:40:06' and `end` < '2025-02-18 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-18 08:40:18] Production.INFO: count ==681 [2025-02-18 08:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:40:06 - End Time 2025-02-18 08:40:06 [2025-02-18 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501906', 'tblTempUsageDetail_20' ) start [2025-02-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501906', 'tblTempUsageDetail_20' ) end [2025-02-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501906', 'tblTempVendorCDR_20' ) start [2025-02-18 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501906', 'tblTempVendorCDR_20' ) end [2025-02-18 08:40:18] Production.INFO: ProcessCDR(1,14501906,1,1,2) [2025-02-18 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501906', 'tblTempUsageDetail_20' ) start [2025-02-18 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501906', 'tblTempUsageDetail_20' ) end [2025-02-18 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:40:23] Production.INFO: ==31686== Releasing lock... [2025-02-18 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:40:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:41:05 [end_date_ymd] => 2025-02-18 08:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:41:05' and `end` < '2025-02-18 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-18 08:41:17] Production.INFO: count ==706 [2025-02-18 08:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:41:05 - End Time 2025-02-18 08:41:05 [2025-02-18 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501911', 'tblTempUsageDetail_20' ) start [2025-02-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501911', 'tblTempUsageDetail_20' ) end [2025-02-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501911', 'tblTempVendorCDR_20' ) start [2025-02-18 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501911', 'tblTempVendorCDR_20' ) end [2025-02-18 08:41:17] Production.INFO: ProcessCDR(1,14501911,1,1,2) [2025-02-18 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501911', 'tblTempUsageDetail_20' ) start [2025-02-18 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501911', 'tblTempUsageDetail_20' ) end [2025-02-18 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:41:22] Production.INFO: ==31843== Releasing lock... [2025-02-18 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:42:06 [end_date_ymd] => 2025-02-18 08:42:06 [RateCDR] => 1 ) [2025-02-18 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:42:06' and `end` < '2025-02-18 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:42:18] Production.INFO: count ==709 [2025-02-18 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:42:06 - End Time 2025-02-18 08:42:06 [2025-02-18 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501916', 'tblTempUsageDetail_20' ) start [2025-02-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501916', 'tblTempUsageDetail_20' ) end [2025-02-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501916', 'tblTempVendorCDR_20' ) start [2025-02-18 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501916', 'tblTempVendorCDR_20' ) end [2025-02-18 08:42:18] Production.INFO: ProcessCDR(1,14501916,1,1,2) [2025-02-18 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501916', 'tblTempUsageDetail_20' ) start [2025-02-18 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501916', 'tblTempUsageDetail_20' ) end [2025-02-18 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:42:23] Production.INFO: ==31959== Releasing lock... [2025-02-18 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:43:05 [end_date_ymd] => 2025-02-18 08:43:05 [RateCDR] => 1 ) [2025-02-18 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:43:05' and `end` < '2025-02-18 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:43:17] Production.INFO: count ==717 [2025-02-18 08:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:43:05 - End Time 2025-02-18 08:43:05 [2025-02-18 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501921', 'tblTempUsageDetail_20' ) start [2025-02-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501921', 'tblTempUsageDetail_20' ) end [2025-02-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501921', 'tblTempVendorCDR_20' ) start [2025-02-18 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501921', 'tblTempVendorCDR_20' ) end [2025-02-18 08:43:17] Production.INFO: ProcessCDR(1,14501921,1,1,2) [2025-02-18 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501921', 'tblTempUsageDetail_20' ) start [2025-02-18 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501921', 'tblTempUsageDetail_20' ) end [2025-02-18 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:43:20] Production.INFO: ==32070== Releasing lock... [2025-02-18 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:43:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:44:05 [end_date_ymd] => 2025-02-18 08:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:44:05' and `end` < '2025-02-18 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-18 08:44:17] Production.INFO: count ==743 [2025-02-18 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:44:05 - End Time 2025-02-18 08:44:05 [2025-02-18 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501926', 'tblTempUsageDetail_20' ) start [2025-02-18 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501926', 'tblTempUsageDetail_20' ) end [2025-02-18 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501926', 'tblTempVendorCDR_20' ) start [2025-02-18 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501926', 'tblTempVendorCDR_20' ) end [2025-02-18 08:44:17] Production.INFO: ProcessCDR(1,14501926,1,1,2) [2025-02-18 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501926', 'tblTempUsageDetail_20' ) start [2025-02-18 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501926', 'tblTempUsageDetail_20' ) end [2025-02-18 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:44:21] Production.INFO: ==32180== Releasing lock... [2025-02-18 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:44:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:45:05 [end_date_ymd] => 2025-02-18 08:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:45:05' and `end` < '2025-02-18 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-18 08:45:16] Production.INFO: count ==752 [2025-02-18 08:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:45:05 - End Time 2025-02-18 08:45:05 [2025-02-18 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501931', 'tblTempUsageDetail_20' ) start [2025-02-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501931', 'tblTempUsageDetail_20' ) end [2025-02-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501931', 'tblTempVendorCDR_20' ) start [2025-02-18 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501931', 'tblTempVendorCDR_20' ) end [2025-02-18 08:45:17] Production.INFO: ProcessCDR(1,14501931,1,1,2) [2025-02-18 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501931', 'tblTempUsageDetail_20' ) start [2025-02-18 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501931', 'tblTempUsageDetail_20' ) end [2025-02-18 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:45:22] Production.INFO: ==32270== Releasing lock... [2025-02-18 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:46:06 [end_date_ymd] => 2025-02-18 08:46:06 [RateCDR] => 1 ) [2025-02-18 08: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-18 05:46:06' and `end` < '2025-02-18 08: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-18 08:46:17] Production.INFO: count ==770 [2025-02-18 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:46:06 - End Time 2025-02-18 08:46:06 [2025-02-18 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501936', 'tblTempUsageDetail_20' ) start [2025-02-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501936', 'tblTempUsageDetail_20' ) end [2025-02-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501936', 'tblTempVendorCDR_20' ) start [2025-02-18 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501936', 'tblTempVendorCDR_20' ) end [2025-02-18 08:46:18] Production.INFO: ProcessCDR(1,14501936,1,1,2) [2025-02-18 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501936', 'tblTempUsageDetail_20' ) start [2025-02-18 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501936', 'tblTempUsageDetail_20' ) end [2025-02-18 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:46:23] Production.INFO: ==32342== Releasing lock... [2025-02-18 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:46:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:47:04 [end_date_ymd] => 2025-02-18 08:47:04 [RateCDR] => 1 ) [2025-02-18 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:47:04' and `end` < '2025-02-18 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:47:16] Production.INFO: count ==788 [2025-02-18 08:47:16] Production.ERROR: pbx CDR StartTime 2025-02-18 05:47:04 - End Time 2025-02-18 08:47:04 [2025-02-18 08:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501941', 'tblTempUsageDetail_20' ) start [2025-02-18 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501941', 'tblTempUsageDetail_20' ) end [2025-02-18 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501941', 'tblTempVendorCDR_20' ) start [2025-02-18 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501941', 'tblTempVendorCDR_20' ) end [2025-02-18 08:47:16] Production.INFO: ProcessCDR(1,14501941,1,1,2) [2025-02-18 08:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501941', 'tblTempUsageDetail_20' ) start [2025-02-18 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501941', 'tblTempUsageDetail_20' ) end [2025-02-18 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:47:21] Production.INFO: ==32411== Releasing lock... [2025-02-18 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:48:05 [end_date_ymd] => 2025-02-18 08:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:48:05' and `end` < '2025-02-18 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-18 08:48:16] Production.INFO: count ==799 [2025-02-18 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:48:05 - End Time 2025-02-18 08:48:05 [2025-02-18 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501946', 'tblTempUsageDetail_20' ) start [2025-02-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501946', 'tblTempUsageDetail_20' ) end [2025-02-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501946', 'tblTempVendorCDR_20' ) start [2025-02-18 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501946', 'tblTempVendorCDR_20' ) end [2025-02-18 08:48:17] Production.INFO: ProcessCDR(1,14501946,1,1,2) [2025-02-18 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501946', 'tblTempUsageDetail_20' ) start [2025-02-18 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501946', 'tblTempUsageDetail_20' ) end [2025-02-18 08:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:48:20] Production.INFO: ==32483== Releasing lock... [2025-02-18 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:48:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:49:05 [end_date_ymd] => 2025-02-18 08:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:49:05' and `end` < '2025-02-18 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-18 08:49:17] Production.INFO: count ==799 [2025-02-18 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:49:05 - End Time 2025-02-18 08:49:05 [2025-02-18 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501951', 'tblTempUsageDetail_20' ) start [2025-02-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501951', 'tblTempUsageDetail_20' ) end [2025-02-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501951', 'tblTempVendorCDR_20' ) start [2025-02-18 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501951', 'tblTempVendorCDR_20' ) end [2025-02-18 08:49:18] Production.INFO: ProcessCDR(1,14501951,1,1,2) [2025-02-18 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501951', 'tblTempUsageDetail_20' ) start [2025-02-18 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501951', 'tblTempUsageDetail_20' ) end [2025-02-18 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:49:21] Production.INFO: ==32554== Releasing lock... [2025-02-18 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:50:06 [end_date_ymd] => 2025-02-18 08:50:06 [RateCDR] => 1 ) [2025-02-18 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:50:06' and `end` < '2025-02-18 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:50:17] Production.INFO: count ==817 [2025-02-18 08:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:50:06 - End Time 2025-02-18 08:50:06 [2025-02-18 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501957', 'tblTempUsageDetail_20' ) start [2025-02-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501957', 'tblTempUsageDetail_20' ) end [2025-02-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501957', 'tblTempVendorCDR_20' ) start [2025-02-18 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501957', 'tblTempVendorCDR_20' ) end [2025-02-18 08:50:18] Production.INFO: ProcessCDR(1,14501957,1,1,2) [2025-02-18 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501957', 'tblTempUsageDetail_20' ) start [2025-02-18 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501957', 'tblTempUsageDetail_20' ) end [2025-02-18 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:50:21] Production.INFO: ==32626== Releasing lock... [2025-02-18 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:50:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:51:05 [end_date_ymd] => 2025-02-18 08:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:51:05' and `end` < '2025-02-18 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-18 08:51:17] Production.INFO: count ==844 [2025-02-18 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:51:05 - End Time 2025-02-18 08:51:05 [2025-02-18 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501962', 'tblTempUsageDetail_20' ) start [2025-02-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501962', 'tblTempUsageDetail_20' ) end [2025-02-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501962', 'tblTempVendorCDR_20' ) start [2025-02-18 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501962', 'tblTempVendorCDR_20' ) end [2025-02-18 08:51:17] Production.INFO: ProcessCDR(1,14501962,1,1,2) [2025-02-18 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501962', 'tblTempUsageDetail_20' ) start [2025-02-18 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501962', 'tblTempUsageDetail_20' ) end [2025-02-18 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:51:22] Production.INFO: ==32699== Releasing lock... [2025-02-18 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:52:05 [end_date_ymd] => 2025-02-18 08:52:05 [RateCDR] => 1 ) [2025-02-18 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:52:05' and `end` < '2025-02-18 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:52:17] Production.INFO: count ==844 [2025-02-18 08:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:52:05 - End Time 2025-02-18 08:52:05 [2025-02-18 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501967', 'tblTempUsageDetail_20' ) start [2025-02-18 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501967', 'tblTempUsageDetail_20' ) end [2025-02-18 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501967', 'tblTempVendorCDR_20' ) start [2025-02-18 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501967', 'tblTempVendorCDR_20' ) end [2025-02-18 08:52:17] Production.INFO: ProcessCDR(1,14501967,1,1,2) [2025-02-18 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501967', 'tblTempUsageDetail_20' ) start [2025-02-18 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501967', 'tblTempUsageDetail_20' ) end [2025-02-18 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:52:21] Production.INFO: ==302== Releasing lock... [2025-02-18 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:52:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:53:05 [end_date_ymd] => 2025-02-18 08:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:53:05' and `end` < '2025-02-18 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-18 08:53:17] Production.INFO: count ==851 [2025-02-18 08:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:53:05 - End Time 2025-02-18 08:53:05 [2025-02-18 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501972', 'tblTempUsageDetail_20' ) start [2025-02-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501972', 'tblTempUsageDetail_20' ) end [2025-02-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501972', 'tblTempVendorCDR_20' ) start [2025-02-18 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501972', 'tblTempVendorCDR_20' ) end [2025-02-18 08:53:18] Production.INFO: ProcessCDR(1,14501972,1,1,2) [2025-02-18 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501972', 'tblTempUsageDetail_20' ) start [2025-02-18 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501972', 'tblTempUsageDetail_20' ) end [2025-02-18 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:53:21] Production.INFO: ==394== Releasing lock... [2025-02-18 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:53:21] Production.INFO: 34 MB #Memory Used# [2025-02-18 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:54:05 [end_date_ymd] => 2025-02-18 08:54:05 [RateCDR] => 1 ) [2025-02-18 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:54:05' and `end` < '2025-02-18 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:54:16] Production.INFO: count ==875 [2025-02-18 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:54:05 - End Time 2025-02-18 08:54:05 [2025-02-18 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501977', 'tblTempUsageDetail_20' ) start [2025-02-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501977', 'tblTempUsageDetail_20' ) end [2025-02-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501977', 'tblTempVendorCDR_20' ) start [2025-02-18 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501977', 'tblTempVendorCDR_20' ) end [2025-02-18 08:54:17] Production.INFO: ProcessCDR(1,14501977,1,1,2) [2025-02-18 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501977', 'tblTempUsageDetail_20' ) start [2025-02-18 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501977', 'tblTempUsageDetail_20' ) end [2025-02-18 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:54:22] Production.INFO: ==466== Releasing lock... [2025-02-18 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:55:06 [end_date_ymd] => 2025-02-18 08:55:06 [RateCDR] => 1 ) [2025-02-18 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:55:06' and `end` < '2025-02-18 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:55:17] Production.INFO: count ==881 [2025-02-18 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-18 05:55:06 - End Time 2025-02-18 08:55:06 [2025-02-18 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501982', 'tblTempUsageDetail_20' ) start [2025-02-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501982', 'tblTempUsageDetail_20' ) end [2025-02-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501982', 'tblTempVendorCDR_20' ) start [2025-02-18 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501982', 'tblTempVendorCDR_20' ) end [2025-02-18 08:55:18] Production.INFO: ProcessCDR(1,14501982,1,1,2) [2025-02-18 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501982', 'tblTempUsageDetail_20' ) start [2025-02-18 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501982', 'tblTempUsageDetail_20' ) end [2025-02-18 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:55:22] Production.INFO: ==541== Releasing lock... [2025-02-18 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:55:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:56:05 [end_date_ymd] => 2025-02-18 08:56:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:56:05' and `end` < '2025-02-18 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-18 08:56:17] Production.INFO: count ==896 [2025-02-18 08:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:56:05 - End Time 2025-02-18 08:56:05 [2025-02-18 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501987', 'tblTempUsageDetail_20' ) start [2025-02-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501987', 'tblTempUsageDetail_20' ) end [2025-02-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501987', 'tblTempVendorCDR_20' ) start [2025-02-18 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501987', 'tblTempVendorCDR_20' ) end [2025-02-18 08:56:17] Production.INFO: ProcessCDR(1,14501987,1,1,2) [2025-02-18 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501987', 'tblTempUsageDetail_20' ) start [2025-02-18 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501987', 'tblTempUsageDetail_20' ) end [2025-02-18 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:56:22] Production.INFO: ==619== Releasing lock... [2025-02-18 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:57:05 [end_date_ymd] => 2025-02-18 08:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:57:05' and `end` < '2025-02-18 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-18 08:57:17] Production.INFO: count ==907 [2025-02-18 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:57:05 - End Time 2025-02-18 08:57:05 [2025-02-18 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501992', 'tblTempUsageDetail_20' ) start [2025-02-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501992', 'tblTempUsageDetail_20' ) end [2025-02-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501992', 'tblTempVendorCDR_20' ) start [2025-02-18 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501992', 'tblTempVendorCDR_20' ) end [2025-02-18 08:57:17] Production.INFO: ProcessCDR(1,14501992,1,1,2) [2025-02-18 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501992', 'tblTempUsageDetail_20' ) start [2025-02-18 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501992', 'tblTempUsageDetail_20' ) end [2025-02-18 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:57:21] Production.INFO: ==757== Releasing lock... [2025-02-18 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:57:21] Production.INFO: 35 MB #Memory Used# [2025-02-18 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:58:05 [end_date_ymd] => 2025-02-18 08:58:05 [RateCDR] => 1 ) [2025-02-18 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 05:58:05' and `end` < '2025-02-18 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 08:58:17] Production.INFO: count ==920 [2025-02-18 08:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:58:05 - End Time 2025-02-18 08:58:05 [2025-02-18 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501997', 'tblTempUsageDetail_20' ) start [2025-02-18 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14501997', 'tblTempUsageDetail_20' ) end [2025-02-18 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501997', 'tblTempVendorCDR_20' ) start [2025-02-18 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14501997', 'tblTempVendorCDR_20' ) end [2025-02-18 08:58:17] Production.INFO: ProcessCDR(1,14501997,1,1,2) [2025-02-18 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14501997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14501997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14501997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14501997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501997', 'tblTempUsageDetail_20' ) start [2025-02-18 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14501997', 'tblTempUsageDetail_20' ) end [2025-02-18 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:58:22] Production.INFO: ==827== Releasing lock... [2025-02-18 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:58:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-18 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 05:59:05 [end_date_ymd] => 2025-02-18 08:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 05:59:05' and `end` < '2025-02-18 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-18 08:59:17] Production.INFO: count ==928 [2025-02-18 08:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 05:59:05 - End Time 2025-02-18 08:59:05 [2025-02-18 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502002', 'tblTempUsageDetail_20' ) start [2025-02-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502002', 'tblTempUsageDetail_20' ) end [2025-02-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502002', 'tblTempVendorCDR_20' ) start [2025-02-18 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502002', 'tblTempVendorCDR_20' ) end [2025-02-18 08:59:17] Production.INFO: ProcessCDR(1,14502002,1,1,2) [2025-02-18 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502002', 'tblTempUsageDetail_20' ) start [2025-02-18 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502002', 'tblTempUsageDetail_20' ) end [2025-02-18 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 08:59:21] Production.INFO: ==904== Releasing lock... [2025-02-18 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 08:59:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:00:06 [end_date_ymd] => 2025-02-18 09:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:00:06' and `end` < '2025-02-18 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-18 09:00:18] Production.INFO: count ==946 [2025-02-18 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:00:06 - End Time 2025-02-18 09:00:06 [2025-02-18 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502008', 'tblTempUsageDetail_20' ) start [2025-02-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502008', 'tblTempUsageDetail_20' ) end [2025-02-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502008', 'tblTempVendorCDR_20' ) start [2025-02-18 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502008', 'tblTempVendorCDR_20' ) end [2025-02-18 09:00:18] Production.INFO: ProcessCDR(1,14502008,1,1,2) [2025-02-18 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502008', 'tblTempUsageDetail_20' ) start [2025-02-18 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502008', 'tblTempUsageDetail_20' ) end [2025-02-18 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:00:22] Production.INFO: ==988== Releasing lock... [2025-02-18 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:00:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:01:05 [end_date_ymd] => 2025-02-18 09:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:01:05' and `end` < '2025-02-18 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-18 09:01:17] Production.INFO: count ==989 [2025-02-18 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:01:05 - End Time 2025-02-18 09:01:05 [2025-02-18 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502013', 'tblTempUsageDetail_20' ) start [2025-02-18 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502013', 'tblTempUsageDetail_20' ) end [2025-02-18 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502013', 'tblTempVendorCDR_20' ) start [2025-02-18 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502013', 'tblTempVendorCDR_20' ) end [2025-02-18 09:01:18] Production.INFO: ProcessCDR(1,14502013,1,1,2) [2025-02-18 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502013', 'tblTempUsageDetail_20' ) start [2025-02-18 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502013', 'tblTempUsageDetail_20' ) end [2025-02-18 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:01:22] Production.INFO: ==1105== Releasing lock... [2025-02-18 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:01:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:02:05 [end_date_ymd] => 2025-02-18 09:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:02:05' and `end` < '2025-02-18 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-18 09:02:17] Production.INFO: count ==996 [2025-02-18 09:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:02:05 - End Time 2025-02-18 09:02:05 [2025-02-18 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502018', 'tblTempUsageDetail_20' ) start [2025-02-18 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502018', 'tblTempUsageDetail_20' ) end [2025-02-18 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502018', 'tblTempVendorCDR_20' ) start [2025-02-18 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502018', 'tblTempVendorCDR_20' ) end [2025-02-18 09:02:17] Production.INFO: ProcessCDR(1,14502018,1,1,2) [2025-02-18 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502018', 'tblTempUsageDetail_20' ) start [2025-02-18 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502018', 'tblTempUsageDetail_20' ) end [2025-02-18 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:02:23] Production.INFO: ==1212== Releasing lock... [2025-02-18 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:02:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-18 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:03:05 [end_date_ymd] => 2025-02-18 09:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:03:05' and `end` < '2025-02-18 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-18 09:03:17] Production.INFO: count ==1015 [2025-02-18 09:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:03:05 - End Time 2025-02-18 09:03:05 [2025-02-18 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502023', 'tblTempUsageDetail_20' ) start [2025-02-18 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502023', 'tblTempUsageDetail_20' ) end [2025-02-18 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502023', 'tblTempVendorCDR_20' ) start [2025-02-18 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502023', 'tblTempVendorCDR_20' ) end [2025-02-18 09:03:18] Production.INFO: ProcessCDR(1,14502023,1,1,2) [2025-02-18 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502023', 'tblTempUsageDetail_20' ) start [2025-02-18 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502023', 'tblTempUsageDetail_20' ) end [2025-02-18 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:03:21] Production.INFO: ==1324== Releasing lock... [2025-02-18 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:03:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-18 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:04:05 [end_date_ymd] => 2025-02-18 09:04:05 [RateCDR] => 1 ) [2025-02-18 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:04:05' and `end` < '2025-02-18 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:04:17] Production.INFO: count ==1029 [2025-02-18 09:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:04:05 - End Time 2025-02-18 09:04:05 [2025-02-18 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502028', 'tblTempUsageDetail_20' ) start [2025-02-18 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502028', 'tblTempUsageDetail_20' ) end [2025-02-18 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502028', 'tblTempVendorCDR_20' ) start [2025-02-18 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502028', 'tblTempVendorCDR_20' ) end [2025-02-18 09:04:17] Production.INFO: ProcessCDR(1,14502028,1,1,2) [2025-02-18 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502028', 'tblTempUsageDetail_20' ) start [2025-02-18 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502028', 'tblTempUsageDetail_20' ) end [2025-02-18 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:04:22] Production.INFO: ==1424== Releasing lock... [2025-02-18 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-18 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:05:05 [end_date_ymd] => 2025-02-18 09:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:05:05' and `end` < '2025-02-18 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-18 09:05:17] Production.INFO: count ==1102 [2025-02-18 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:05:05 - End Time 2025-02-18 09:05:05 [2025-02-18 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502033', 'tblTempUsageDetail_20' ) start [2025-02-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502033', 'tblTempUsageDetail_20' ) end [2025-02-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502033', 'tblTempVendorCDR_20' ) start [2025-02-18 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502033', 'tblTempVendorCDR_20' ) end [2025-02-18 09:05:18] Production.INFO: ProcessCDR(1,14502033,1,1,2) [2025-02-18 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502033', 'tblTempUsageDetail_20' ) start [2025-02-18 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502033', 'tblTempUsageDetail_20' ) end [2025-02-18 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:05:23] Production.INFO: ==1563== Releasing lock... [2025-02-18 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:05:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-18 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:06:06 [end_date_ymd] => 2025-02-18 09:06:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:06:06' and `end` < '2025-02-18 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-18 09:06:18] Production.INFO: count ==1137 [2025-02-18 09:06:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:06:06 - End Time 2025-02-18 09:06:06 [2025-02-18 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502038', 'tblTempUsageDetail_20' ) start [2025-02-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502038', 'tblTempUsageDetail_20' ) end [2025-02-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502038', 'tblTempVendorCDR_20' ) start [2025-02-18 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502038', 'tblTempVendorCDR_20' ) end [2025-02-18 09:06:18] Production.INFO: ProcessCDR(1,14502038,1,1,2) [2025-02-18 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502038', 'tblTempUsageDetail_20' ) start [2025-02-18 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502038', 'tblTempUsageDetail_20' ) end [2025-02-18 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:06:24] Production.INFO: ==1669== Releasing lock... [2025-02-18 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:06:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-18 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:07:05 [end_date_ymd] => 2025-02-18 09:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:07:05' and `end` < '2025-02-18 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-18 09:07:17] Production.INFO: count ==1176 [2025-02-18 09:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:07:05 - End Time 2025-02-18 09:07:05 [2025-02-18 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502043', 'tblTempUsageDetail_20' ) start [2025-02-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502043', 'tblTempUsageDetail_20' ) end [2025-02-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502043', 'tblTempVendorCDR_20' ) start [2025-02-18 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502043', 'tblTempVendorCDR_20' ) end [2025-02-18 09:07:18] Production.INFO: ProcessCDR(1,14502043,1,1,2) [2025-02-18 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502043', 'tblTempUsageDetail_20' ) start [2025-02-18 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502043', 'tblTempUsageDetail_20' ) end [2025-02-18 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:07:23] Production.INFO: ==1773== Releasing lock... [2025-02-18 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:07:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-18 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:08:05 [end_date_ymd] => 2025-02-18 09:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:08:05' and `end` < '2025-02-18 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-18 09:08:17] Production.INFO: count ==1199 [2025-02-18 09:08:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:08:05 - End Time 2025-02-18 09:08:05 [2025-02-18 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502048', 'tblTempUsageDetail_20' ) start [2025-02-18 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502048', 'tblTempUsageDetail_20' ) end [2025-02-18 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502048', 'tblTempVendorCDR_20' ) start [2025-02-18 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502048', 'tblTempVendorCDR_20' ) end [2025-02-18 09:08:18] Production.INFO: ProcessCDR(1,14502048,1,1,2) [2025-02-18 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502048', 'tblTempUsageDetail_20' ) start [2025-02-18 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502048', 'tblTempUsageDetail_20' ) end [2025-02-18 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:08:23] Production.INFO: ==1870== Releasing lock... [2025-02-18 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:08:23] Production.INFO: 37 MB #Memory Used# [2025-02-18 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:09:05 [end_date_ymd] => 2025-02-18 09:09:05 [RateCDR] => 1 ) [2025-02-18 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:09:05' and `end` < '2025-02-18 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:09:17] Production.INFO: count ==1204 [2025-02-18 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:09:05 - End Time 2025-02-18 09:09:05 [2025-02-18 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502053', 'tblTempUsageDetail_20' ) start [2025-02-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502053', 'tblTempUsageDetail_20' ) end [2025-02-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502053', 'tblTempVendorCDR_20' ) start [2025-02-18 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502053', 'tblTempVendorCDR_20' ) end [2025-02-18 09:09:18] Production.INFO: ProcessCDR(1,14502053,1,1,2) [2025-02-18 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502053', 'tblTempUsageDetail_20' ) start [2025-02-18 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502053', 'tblTempUsageDetail_20' ) end [2025-02-18 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:09:23] Production.INFO: ==1976== Releasing lock... [2025-02-18 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:09:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-18 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:10:07 [end_date_ymd] => 2025-02-18 09:10:07 [RateCDR] => 1 ) [2025-02-18 09: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-18 06:10:07' and `end` < '2025-02-18 09: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-18 09:10:19] Production.INFO: count ==1228 [2025-02-18 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:10:07 - End Time 2025-02-18 09:10:07 [2025-02-18 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502059', 'tblTempUsageDetail_20' ) start [2025-02-18 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502059', 'tblTempUsageDetail_20' ) end [2025-02-18 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502059', 'tblTempVendorCDR_20' ) start [2025-02-18 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502059', 'tblTempVendorCDR_20' ) end [2025-02-18 09:10:19] Production.INFO: ProcessCDR(1,14502059,1,1,2) [2025-02-18 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502059', 'tblTempUsageDetail_20' ) start [2025-02-18 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502059', 'tblTempUsageDetail_20' ) end [2025-02-18 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:10:23] Production.INFO: ==2090== Releasing lock... [2025-02-18 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-18 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:11:05 [end_date_ymd] => 2025-02-18 09:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:11:05' and `end` < '2025-02-18 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-18 09:11:17] Production.INFO: count ==1312 [2025-02-18 09:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:11:05 - End Time 2025-02-18 09:11:05 [2025-02-18 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502064', 'tblTempUsageDetail_20' ) start [2025-02-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502064', 'tblTempUsageDetail_20' ) end [2025-02-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502064', 'tblTempVendorCDR_20' ) start [2025-02-18 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502064', 'tblTempVendorCDR_20' ) end [2025-02-18 09:11:18] Production.INFO: ProcessCDR(1,14502064,1,1,2) [2025-02-18 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502064', 'tblTempUsageDetail_20' ) start [2025-02-18 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502064', 'tblTempUsageDetail_20' ) end [2025-02-18 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:11:22] Production.INFO: ==2214== Releasing lock... [2025-02-18 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:11:22] Production.INFO: 38 MB #Memory Used# [2025-02-18 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:12:05 [end_date_ymd] => 2025-02-18 09:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:12:05' and `end` < '2025-02-18 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-18 09:12:17] Production.INFO: count ==1321 [2025-02-18 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:12:05 - End Time 2025-02-18 09:12:05 [2025-02-18 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502069', 'tblTempUsageDetail_20' ) start [2025-02-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502069', 'tblTempUsageDetail_20' ) end [2025-02-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502069', 'tblTempVendorCDR_20' ) start [2025-02-18 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502069', 'tblTempVendorCDR_20' ) end [2025-02-18 09:12:18] Production.INFO: ProcessCDR(1,14502069,1,1,2) [2025-02-18 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502069', 'tblTempUsageDetail_20' ) start [2025-02-18 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502069', 'tblTempUsageDetail_20' ) end [2025-02-18 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:12:21] Production.INFO: ==2374== Releasing lock... [2025-02-18 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:12:21] Production.INFO: 38 MB #Memory Used# [2025-02-18 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:13:05 [end_date_ymd] => 2025-02-18 09:13:05 [RateCDR] => 1 ) [2025-02-18 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:13:05' and `end` < '2025-02-18 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:13:17] Production.INFO: count ==1334 [2025-02-18 09:13:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:13:05 - End Time 2025-02-18 09:13:05 [2025-02-18 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502074', 'tblTempUsageDetail_20' ) start [2025-02-18 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502074', 'tblTempUsageDetail_20' ) end [2025-02-18 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502074', 'tblTempVendorCDR_20' ) start [2025-02-18 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502074', 'tblTempVendorCDR_20' ) end [2025-02-18 09:13:17] Production.INFO: ProcessCDR(1,14502074,1,1,2) [2025-02-18 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502074', 'tblTempUsageDetail_20' ) start [2025-02-18 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502074', 'tblTempUsageDetail_20' ) end [2025-02-18 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:13:21] Production.INFO: ==2490== Releasing lock... [2025-02-18 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-18 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:14:05 [end_date_ymd] => 2025-02-18 09:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:14:05' and `end` < '2025-02-18 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-18 09:14:17] Production.INFO: count ==1345 [2025-02-18 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:14:05 - End Time 2025-02-18 09:14:05 [2025-02-18 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502079', 'tblTempUsageDetail_20' ) start [2025-02-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502079', 'tblTempUsageDetail_20' ) end [2025-02-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502079', 'tblTempVendorCDR_20' ) start [2025-02-18 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502079', 'tblTempVendorCDR_20' ) end [2025-02-18 09:14:18] Production.INFO: ProcessCDR(1,14502079,1,1,2) [2025-02-18 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502079', 'tblTempUsageDetail_20' ) start [2025-02-18 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502079', 'tblTempUsageDetail_20' ) end [2025-02-18 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:14:22] Production.INFO: ==2581== Releasing lock... [2025-02-18 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-18 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:15:05 [end_date_ymd] => 2025-02-18 09:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:15:05' and `end` < '2025-02-18 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-18 09:15:17] Production.INFO: count ==1365 [2025-02-18 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:15:05 - End Time 2025-02-18 09:15:05 [2025-02-18 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502084', 'tblTempUsageDetail_20' ) start [2025-02-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502084', 'tblTempUsageDetail_20' ) end [2025-02-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502084', 'tblTempVendorCDR_20' ) start [2025-02-18 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502084', 'tblTempVendorCDR_20' ) end [2025-02-18 09:15:18] Production.INFO: ProcessCDR(1,14502084,1,1,2) [2025-02-18 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502084', 'tblTempUsageDetail_20' ) start [2025-02-18 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502084', 'tblTempUsageDetail_20' ) end [2025-02-18 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:15:23] Production.INFO: ==2653== Releasing lock... [2025-02-18 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:15:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-18 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:16:06 [end_date_ymd] => 2025-02-18 09:16:06 [RateCDR] => 1 ) [2025-02-18 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:16:06' and `end` < '2025-02-18 09:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:16:18] Production.INFO: count ==1387 [2025-02-18 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:16:06 - End Time 2025-02-18 09:16:06 [2025-02-18 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502089', 'tblTempUsageDetail_20' ) start [2025-02-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502089', 'tblTempUsageDetail_20' ) end [2025-02-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502089', 'tblTempVendorCDR_20' ) start [2025-02-18 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502089', 'tblTempVendorCDR_20' ) end [2025-02-18 09:16:18] Production.INFO: ProcessCDR(1,14502089,1,1,2) [2025-02-18 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502089', 'tblTempUsageDetail_20' ) start [2025-02-18 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502089', 'tblTempUsageDetail_20' ) end [2025-02-18 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:16:23] Production.INFO: ==2724== Releasing lock... [2025-02-18 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:16:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-18 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:17:05 [end_date_ymd] => 2025-02-18 09:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:17:05' and `end` < '2025-02-18 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-18 09:17:17] Production.INFO: count ==1411 [2025-02-18 09:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:17:05 - End Time 2025-02-18 09:17:05 [2025-02-18 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502094', 'tblTempUsageDetail_20' ) start [2025-02-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502094', 'tblTempUsageDetail_20' ) end [2025-02-18 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502094', 'tblTempVendorCDR_20' ) start [2025-02-18 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502094', 'tblTempVendorCDR_20' ) end [2025-02-18 09:17:18] Production.INFO: ProcessCDR(1,14502094,1,1,2) [2025-02-18 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502094', 'tblTempUsageDetail_20' ) start [2025-02-18 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502094', 'tblTempUsageDetail_20' ) end [2025-02-18 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:17:22] Production.INFO: ==2793== Releasing lock... [2025-02-18 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:17:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-18 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:18:05 [end_date_ymd] => 2025-02-18 09:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:18:05' and `end` < '2025-02-18 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-18 09:18:17] Production.INFO: count ==1444 [2025-02-18 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:18:05 - End Time 2025-02-18 09:18:05 [2025-02-18 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502099', 'tblTempUsageDetail_20' ) start [2025-02-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502099', 'tblTempUsageDetail_20' ) end [2025-02-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502099', 'tblTempVendorCDR_20' ) start [2025-02-18 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502099', 'tblTempVendorCDR_20' ) end [2025-02-18 09:18:18] Production.INFO: ProcessCDR(1,14502099,1,1,2) [2025-02-18 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502099', 'tblTempUsageDetail_20' ) start [2025-02-18 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502099', 'tblTempUsageDetail_20' ) end [2025-02-18 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:18:23] Production.INFO: ==2867== Releasing lock... [2025-02-18 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:18:23] Production.INFO: 39 MB #Memory Used# [2025-02-18 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:19:05 [end_date_ymd] => 2025-02-18 09:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:19:05' and `end` < '2025-02-18 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-18 09:19:17] Production.INFO: count ==1456 [2025-02-18 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:19:05 - End Time 2025-02-18 09:19:05 [2025-02-18 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502104', 'tblTempUsageDetail_20' ) start [2025-02-18 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502104', 'tblTempUsageDetail_20' ) end [2025-02-18 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502104', 'tblTempVendorCDR_20' ) start [2025-02-18 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502104', 'tblTempVendorCDR_20' ) end [2025-02-18 09:19:18] Production.INFO: ProcessCDR(1,14502104,1,1,2) [2025-02-18 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502104', 'tblTempUsageDetail_20' ) start [2025-02-18 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502104', 'tblTempUsageDetail_20' ) end [2025-02-18 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:19:21] Production.INFO: ==2947== Releasing lock... [2025-02-18 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:19:21] Production.INFO: 39 MB #Memory Used# [2025-02-18 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:20:06 [end_date_ymd] => 2025-02-18 09:20:06 [RateCDR] => 1 ) [2025-02-18 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:20:06' and `end` < '2025-02-18 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:20:18] Production.INFO: count ==1508 [2025-02-18 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:20:06 - End Time 2025-02-18 09:20:06 [2025-02-18 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502110', 'tblTempUsageDetail_20' ) start [2025-02-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502110', 'tblTempUsageDetail_20' ) end [2025-02-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502110', 'tblTempVendorCDR_20' ) start [2025-02-18 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502110', 'tblTempVendorCDR_20' ) end [2025-02-18 09:20:19] Production.INFO: ProcessCDR(1,14502110,1,1,2) [2025-02-18 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502110', 'tblTempUsageDetail_20' ) start [2025-02-18 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502110', 'tblTempUsageDetail_20' ) end [2025-02-18 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:20:24] Production.INFO: ==3026== Releasing lock... [2025-02-18 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:20:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-18 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:21:04 [end_date_ymd] => 2025-02-18 09:21:04 [RateCDR] => 1 ) [2025-02-18 09: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-18 06:21:04' and `end` < '2025-02-18 09: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-18 09:21:16] Production.INFO: count ==1606 [2025-02-18 09:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 06:21:04 - End Time 2025-02-18 09:21:04 [2025-02-18 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502112', 'tblTempUsageDetail_20' ) start [2025-02-18 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502112', 'tblTempUsageDetail_20' ) end [2025-02-18 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502112', 'tblTempVendorCDR_20' ) start [2025-02-18 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502112', 'tblTempVendorCDR_20' ) end [2025-02-18 09:21:17] Production.INFO: ProcessCDR(1,14502112,1,1,2) [2025-02-18 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502112', 'tblTempUsageDetail_20' ) start [2025-02-18 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502112', 'tblTempUsageDetail_20' ) end [2025-02-18 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:21:22] Production.INFO: ==3099== Releasing lock... [2025-02-18 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:21:22] Production.INFO: 40 MB #Memory Used# [2025-02-18 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:22:05 [end_date_ymd] => 2025-02-18 09:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:22:05' and `end` < '2025-02-18 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-18 09:22:17] Production.INFO: count ==1631 [2025-02-18 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:22:05 - End Time 2025-02-18 09:22:05 [2025-02-18 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502120', 'tblTempUsageDetail_20' ) start [2025-02-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502120', 'tblTempUsageDetail_20' ) end [2025-02-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502120', 'tblTempVendorCDR_20' ) start [2025-02-18 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502120', 'tblTempVendorCDR_20' ) end [2025-02-18 09:22:18] Production.INFO: ProcessCDR(1,14502120,1,1,2) [2025-02-18 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502120', 'tblTempUsageDetail_20' ) start [2025-02-18 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502120', 'tblTempUsageDetail_20' ) end [2025-02-18 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:22:23] Production.INFO: ==3171== Releasing lock... [2025-02-18 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:22:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:23:06 [end_date_ymd] => 2025-02-18 09:23:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:23:06' and `end` < '2025-02-18 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-18 09:23:18] Production.INFO: count ==1653 [2025-02-18 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:23:06 - End Time 2025-02-18 09:23:06 [2025-02-18 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502125', 'tblTempUsageDetail_20' ) start [2025-02-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502125', 'tblTempUsageDetail_20' ) end [2025-02-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502125', 'tblTempVendorCDR_20' ) start [2025-02-18 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502125', 'tblTempVendorCDR_20' ) end [2025-02-18 09:23:18] Production.INFO: ProcessCDR(1,14502125,1,1,2) [2025-02-18 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502125', 'tblTempUsageDetail_20' ) start [2025-02-18 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502125', 'tblTempUsageDetail_20' ) end [2025-02-18 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:23:24] Production.INFO: ==3243== Releasing lock... [2025-02-18 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:23:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-18 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:24:05 [end_date_ymd] => 2025-02-18 09:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:24:05' and `end` < '2025-02-18 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-18 09:24:17] Production.INFO: count ==1680 [2025-02-18 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:24:05 - End Time 2025-02-18 09:24:05 [2025-02-18 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502130', 'tblTempUsageDetail_20' ) start [2025-02-18 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502130', 'tblTempUsageDetail_20' ) end [2025-02-18 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502130', 'tblTempVendorCDR_20' ) start [2025-02-18 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502130', 'tblTempVendorCDR_20' ) end [2025-02-18 09:24:18] Production.INFO: ProcessCDR(1,14502130,1,1,2) [2025-02-18 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502130', 'tblTempUsageDetail_20' ) start [2025-02-18 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502130', 'tblTempUsageDetail_20' ) end [2025-02-18 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:24:23] Production.INFO: ==3312== Releasing lock... [2025-02-18 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:24:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-18 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:25:05 [end_date_ymd] => 2025-02-18 09:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:25:05' and `end` < '2025-02-18 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-18 09:25:17] Production.INFO: count ==1710 [2025-02-18 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:25:05 - End Time 2025-02-18 09:25:05 [2025-02-18 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502135', 'tblTempUsageDetail_20' ) start [2025-02-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502135', 'tblTempUsageDetail_20' ) end [2025-02-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502135', 'tblTempVendorCDR_20' ) start [2025-02-18 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502135', 'tblTempVendorCDR_20' ) end [2025-02-18 09:25:18] Production.INFO: ProcessCDR(1,14502135,1,1,2) [2025-02-18 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502135', 'tblTempUsageDetail_20' ) start [2025-02-18 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502135', 'tblTempUsageDetail_20' ) end [2025-02-18 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:25:23] Production.INFO: ==3382== Releasing lock... [2025-02-18 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:25:23] Production.INFO: 41 MB #Memory Used# [2025-02-18 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:26:05 [end_date_ymd] => 2025-02-18 09:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:26:05' and `end` < '2025-02-18 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-18 09:26:18] Production.INFO: count ==1732 [2025-02-18 09:26:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:26:05 - End Time 2025-02-18 09:26:05 [2025-02-18 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502140', 'tblTempUsageDetail_20' ) start [2025-02-18 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502140', 'tblTempUsageDetail_20' ) end [2025-02-18 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502140', 'tblTempVendorCDR_20' ) start [2025-02-18 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502140', 'tblTempVendorCDR_20' ) end [2025-02-18 09:26:19] Production.INFO: ProcessCDR(1,14502140,1,1,2) [2025-02-18 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502140', 'tblTempUsageDetail_20' ) start [2025-02-18 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502140', 'tblTempUsageDetail_20' ) end [2025-02-18 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:26:22] Production.INFO: ==3455== Releasing lock... [2025-02-18 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:26:22] Production.INFO: 41 MB #Memory Used# [2025-02-18 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:27:06 [end_date_ymd] => 2025-02-18 09:27:06 [RateCDR] => 1 ) [2025-02-18 09:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:27:06' and `end` < '2025-02-18 09:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:27:18] Production.INFO: count ==1785 [2025-02-18 09:27:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:27:06 - End Time 2025-02-18 09:27:06 [2025-02-18 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502145', 'tblTempUsageDetail_20' ) start [2025-02-18 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502145', 'tblTempUsageDetail_20' ) end [2025-02-18 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502145', 'tblTempVendorCDR_20' ) start [2025-02-18 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502145', 'tblTempVendorCDR_20' ) end [2025-02-18 09:27:19] Production.INFO: ProcessCDR(1,14502145,1,1,2) [2025-02-18 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502145', 'tblTempUsageDetail_20' ) start [2025-02-18 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502145', 'tblTempUsageDetail_20' ) end [2025-02-18 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:27:24] Production.INFO: ==3526== Releasing lock... [2025-02-18 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:27:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-18 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:28:06 [end_date_ymd] => 2025-02-18 09:28:06 [RateCDR] => 1 ) [2025-02-18 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:28:06' and `end` < '2025-02-18 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:28:18] Production.INFO: count ==1798 [2025-02-18 09:28:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:28:06 - End Time 2025-02-18 09:28:06 [2025-02-18 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502150', 'tblTempUsageDetail_20' ) start [2025-02-18 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502150', 'tblTempUsageDetail_20' ) end [2025-02-18 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502150', 'tblTempVendorCDR_20' ) start [2025-02-18 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502150', 'tblTempVendorCDR_20' ) end [2025-02-18 09:28:19] Production.INFO: ProcessCDR(1,14502150,1,1,2) [2025-02-18 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502150', 'tblTempUsageDetail_20' ) start [2025-02-18 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502150', 'tblTempUsageDetail_20' ) end [2025-02-18 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:28:24] Production.INFO: ==3636== Releasing lock... [2025-02-18 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:28:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-18 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:29:05 [end_date_ymd] => 2025-02-18 09:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:29:05' and `end` < '2025-02-18 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-18 09:29:17] Production.INFO: count ==1834 [2025-02-18 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:29:05 - End Time 2025-02-18 09:29:05 [2025-02-18 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502155', 'tblTempUsageDetail_20' ) start [2025-02-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502155', 'tblTempUsageDetail_20' ) end [2025-02-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502155', 'tblTempVendorCDR_20' ) start [2025-02-18 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502155', 'tblTempVendorCDR_20' ) end [2025-02-18 09:29:18] Production.INFO: ProcessCDR(1,14502155,1,1,2) [2025-02-18 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502155', 'tblTempUsageDetail_20' ) start [2025-02-18 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502155', 'tblTempUsageDetail_20' ) end [2025-02-18 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:29:23] Production.INFO: ==3708== Releasing lock... [2025-02-18 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:29:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-18 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:30:06 [end_date_ymd] => 2025-02-18 09:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:30:06' and `end` < '2025-02-18 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-18 09:30:18] Production.INFO: count ==1844 [2025-02-18 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:30:06 - End Time 2025-02-18 09:30:06 [2025-02-18 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502161', 'tblTempUsageDetail_20' ) start [2025-02-18 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502161', 'tblTempUsageDetail_20' ) end [2025-02-18 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502161', 'tblTempVendorCDR_20' ) start [2025-02-18 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502161', 'tblTempVendorCDR_20' ) end [2025-02-18 09:30:19] Production.INFO: ProcessCDR(1,14502161,1,1,2) [2025-02-18 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502161', 'tblTempUsageDetail_20' ) start [2025-02-18 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502161', 'tblTempUsageDetail_20' ) end [2025-02-18 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:30:24] Production.INFO: ==3783== Releasing lock... [2025-02-18 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:30:24] Production.INFO: 42 MB #Memory Used# [2025-02-18 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:31:06 [end_date_ymd] => 2025-02-18 09:31:06 [RateCDR] => 1 ) [2025-02-18 09: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-18 06:31:06' and `end` < '2025-02-18 09: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-18 09:31:18] Production.INFO: count ==1940 [2025-02-18 09:31:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:31:06 - End Time 2025-02-18 09:31:06 [2025-02-18 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502166', 'tblTempUsageDetail_20' ) start [2025-02-18 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502166', 'tblTempUsageDetail_20' ) end [2025-02-18 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502166', 'tblTempVendorCDR_20' ) start [2025-02-18 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502166', 'tblTempVendorCDR_20' ) end [2025-02-18 09:31:19] Production.INFO: ProcessCDR(1,14502166,1,1,2) [2025-02-18 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502166', 'tblTempUsageDetail_20' ) start [2025-02-18 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502166', 'tblTempUsageDetail_20' ) end [2025-02-18 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:31:24] Production.INFO: ==3857== Releasing lock... [2025-02-18 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:31:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-18 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:32:05 [end_date_ymd] => 2025-02-18 09:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:32:05' and `end` < '2025-02-18 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-18 09:32:17] Production.INFO: count ==1951 [2025-02-18 09:32:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:32:05 - End Time 2025-02-18 09:32:05 [2025-02-18 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502171', 'tblTempUsageDetail_20' ) start [2025-02-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502171', 'tblTempUsageDetail_20' ) end [2025-02-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502171', 'tblTempVendorCDR_20' ) start [2025-02-18 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502171', 'tblTempVendorCDR_20' ) end [2025-02-18 09:32:18] Production.INFO: ProcessCDR(1,14502171,1,1,2) [2025-02-18 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502171', 'tblTempUsageDetail_20' ) start [2025-02-18 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502171', 'tblTempUsageDetail_20' ) end [2025-02-18 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:32:22] Production.INFO: ==3926== Releasing lock... [2025-02-18 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:32:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:33:06 [end_date_ymd] => 2025-02-18 09:33:06 [RateCDR] => 1 ) [2025-02-18 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:33:06' and `end` < '2025-02-18 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:33:18] Production.INFO: count ==1962 [2025-02-18 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:33:06 - End Time 2025-02-18 09:33:06 [2025-02-18 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502176', 'tblTempUsageDetail_20' ) start [2025-02-18 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502176', 'tblTempUsageDetail_20' ) end [2025-02-18 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502176', 'tblTempVendorCDR_20' ) start [2025-02-18 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502176', 'tblTempVendorCDR_20' ) end [2025-02-18 09:33:19] Production.INFO: ProcessCDR(1,14502176,1,1,2) [2025-02-18 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502176', 'tblTempUsageDetail_20' ) start [2025-02-18 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502176', 'tblTempUsageDetail_20' ) end [2025-02-18 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:33:25] Production.INFO: ==3998== Releasing lock... [2025-02-18 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:33:25] Production.INFO: 43 MB #Memory Used# [2025-02-18 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:34:05 [end_date_ymd] => 2025-02-18 09:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:34:05' and `end` < '2025-02-18 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-18 09:34:18] Production.INFO: count ==1983 [2025-02-18 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:34:05 - End Time 2025-02-18 09:34:05 [2025-02-18 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502181', 'tblTempUsageDetail_20' ) start [2025-02-18 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502181', 'tblTempUsageDetail_20' ) end [2025-02-18 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502181', 'tblTempVendorCDR_20' ) start [2025-02-18 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502181', 'tblTempVendorCDR_20' ) end [2025-02-18 09:34:19] Production.INFO: ProcessCDR(1,14502181,1,1,2) [2025-02-18 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502181', 'tblTempUsageDetail_20' ) start [2025-02-18 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502181', 'tblTempUsageDetail_20' ) end [2025-02-18 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:34:24] Production.INFO: ==4069== Releasing lock... [2025-02-18 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:34:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-18 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:35:06 [end_date_ymd] => 2025-02-18 09:35:06 [RateCDR] => 1 ) [2025-02-18 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:35:06' and `end` < '2025-02-18 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:35:18] Production.INFO: count ==2006 [2025-02-18 09:35:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:35:06 - End Time 2025-02-18 09:35:06 [2025-02-18 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502186', 'tblTempUsageDetail_20' ) start [2025-02-18 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502186', 'tblTempUsageDetail_20' ) end [2025-02-18 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502186', 'tblTempVendorCDR_20' ) start [2025-02-18 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502186', 'tblTempVendorCDR_20' ) end [2025-02-18 09:35:19] Production.INFO: ProcessCDR(1,14502186,1,1,2) [2025-02-18 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502186', 'tblTempUsageDetail_20' ) start [2025-02-18 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502186', 'tblTempUsageDetail_20' ) end [2025-02-18 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:35:25] Production.INFO: ==4141== Releasing lock... [2025-02-18 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:35:25] Production.INFO: 43 MB #Memory Used# [2025-02-18 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:36:05 [end_date_ymd] => 2025-02-18 09:36:05 [RateCDR] => 1 ) [2025-02-18 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:36:05' and `end` < '2025-02-18 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:36:18] Production.INFO: count ==2015 [2025-02-18 09:36:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:36:05 - End Time 2025-02-18 09:36:05 [2025-02-18 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502191', 'tblTempUsageDetail_20' ) start [2025-02-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502191', 'tblTempUsageDetail_20' ) end [2025-02-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502191', 'tblTempVendorCDR_20' ) start [2025-02-18 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502191', 'tblTempVendorCDR_20' ) end [2025-02-18 09:36:19] Production.INFO: ProcessCDR(1,14502191,1,1,2) [2025-02-18 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502191', 'tblTempUsageDetail_20' ) start [2025-02-18 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502191', 'tblTempUsageDetail_20' ) end [2025-02-18 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:36:22] Production.INFO: ==4211== Releasing lock... [2025-02-18 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:36:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-18 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:37:05 [end_date_ymd] => 2025-02-18 09:37:05 [RateCDR] => 1 ) [2025-02-18 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:37:05' and `end` < '2025-02-18 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:37:17] Production.INFO: count ==2030 [2025-02-18 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:37:05 - End Time 2025-02-18 09:37:05 [2025-02-18 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502196', 'tblTempUsageDetail_20' ) start [2025-02-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502196', 'tblTempUsageDetail_20' ) end [2025-02-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502196', 'tblTempVendorCDR_20' ) start [2025-02-18 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502196', 'tblTempVendorCDR_20' ) end [2025-02-18 09:37:18] Production.INFO: ProcessCDR(1,14502196,1,1,2) [2025-02-18 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502196', 'tblTempUsageDetail_20' ) start [2025-02-18 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502196', 'tblTempUsageDetail_20' ) end [2025-02-18 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:37:23] Production.INFO: ==4283== Releasing lock... [2025-02-18 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:37:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-18 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:38:05 [end_date_ymd] => 2025-02-18 09:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:38:05' and `end` < '2025-02-18 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-18 09:38:18] Production.INFO: count ==2038 [2025-02-18 09:38:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:38:05 - End Time 2025-02-18 09:38:05 [2025-02-18 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502201', 'tblTempUsageDetail_20' ) start [2025-02-18 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502201', 'tblTempUsageDetail_20' ) end [2025-02-18 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502201', 'tblTempVendorCDR_20' ) start [2025-02-18 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502201', 'tblTempVendorCDR_20' ) end [2025-02-18 09:38:19] Production.INFO: ProcessCDR(1,14502201,1,1,2) [2025-02-18 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502201', 'tblTempUsageDetail_20' ) start [2025-02-18 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502201', 'tblTempUsageDetail_20' ) end [2025-02-18 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:38:23] Production.INFO: ==4360== Releasing lock... [2025-02-18 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:38:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-18 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:39:05 [end_date_ymd] => 2025-02-18 09:39:05 [RateCDR] => 1 ) [2025-02-18 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:39:05' and `end` < '2025-02-18 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:39:17] Production.INFO: count ==2043 [2025-02-18 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:39:05 - End Time 2025-02-18 09:39:05 [2025-02-18 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502206', 'tblTempUsageDetail_20' ) start [2025-02-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502206', 'tblTempUsageDetail_20' ) end [2025-02-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502206', 'tblTempVendorCDR_20' ) start [2025-02-18 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502206', 'tblTempVendorCDR_20' ) end [2025-02-18 09:39:18] Production.INFO: ProcessCDR(1,14502206,1,1,2) [2025-02-18 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502206', 'tblTempUsageDetail_20' ) start [2025-02-18 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502206', 'tblTempUsageDetail_20' ) end [2025-02-18 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:39:23] Production.INFO: ==4429== Releasing lock... [2025-02-18 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:39:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-18 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:40:06 [end_date_ymd] => 2025-02-18 09:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:40:06' and `end` < '2025-02-18 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-18 09:40:18] Production.INFO: count ==2081 [2025-02-18 09:40:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:40:06 - End Time 2025-02-18 09:40:06 [2025-02-18 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502211', 'tblTempUsageDetail_20' ) start [2025-02-18 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502211', 'tblTempUsageDetail_20' ) end [2025-02-18 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502211', 'tblTempVendorCDR_20' ) start [2025-02-18 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502211', 'tblTempVendorCDR_20' ) end [2025-02-18 09:40:19] Production.INFO: ProcessCDR(1,14502211,1,1,2) [2025-02-18 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502211', 'tblTempUsageDetail_20' ) start [2025-02-18 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502211', 'tblTempUsageDetail_20' ) end [2025-02-18 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:40:25] Production.INFO: ==4503== Releasing lock... [2025-02-18 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:40:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-18 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:41:05 [end_date_ymd] => 2025-02-18 09:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:41:05' and `end` < '2025-02-18 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-18 09:41:17] Production.INFO: count ==2195 [2025-02-18 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:41:05 - End Time 2025-02-18 09:41:05 [2025-02-18 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502217', 'tblTempUsageDetail_20' ) start [2025-02-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502217', 'tblTempUsageDetail_20' ) end [2025-02-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502217', 'tblTempVendorCDR_20' ) start [2025-02-18 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502217', 'tblTempVendorCDR_20' ) end [2025-02-18 09:41:18] Production.INFO: ProcessCDR(1,14502217,1,1,2) [2025-02-18 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502217', 'tblTempUsageDetail_20' ) start [2025-02-18 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502217', 'tblTempUsageDetail_20' ) end [2025-02-18 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:41:24] Production.INFO: ==4584== Releasing lock... [2025-02-18 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:41:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-18 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:42:05 [end_date_ymd] => 2025-02-18 09:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:42:05' and `end` < '2025-02-18 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-18 09:42:18] Production.INFO: count ==2209 [2025-02-18 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:42:05 - End Time 2025-02-18 09:42:05 [2025-02-18 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502222', 'tblTempUsageDetail_20' ) start [2025-02-18 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502222', 'tblTempUsageDetail_20' ) end [2025-02-18 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502222', 'tblTempVendorCDR_20' ) start [2025-02-18 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502222', 'tblTempVendorCDR_20' ) end [2025-02-18 09:42:19] Production.INFO: ProcessCDR(1,14502222,1,1,2) [2025-02-18 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502222', 'tblTempUsageDetail_20' ) start [2025-02-18 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502222', 'tblTempUsageDetail_20' ) end [2025-02-18 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:42:24] Production.INFO: ==4658== Releasing lock... [2025-02-18 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:42:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-18 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:43:05 [end_date_ymd] => 2025-02-18 09:43:05 [RateCDR] => 1 ) [2025-02-18 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:43:05' and `end` < '2025-02-18 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:43:18] Production.INFO: count ==2223 [2025-02-18 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:43:05 - End Time 2025-02-18 09:43:05 [2025-02-18 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502227', 'tblTempUsageDetail_20' ) start [2025-02-18 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502227', 'tblTempUsageDetail_20' ) end [2025-02-18 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502227', 'tblTempVendorCDR_20' ) start [2025-02-18 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502227', 'tblTempVendorCDR_20' ) end [2025-02-18 09:43:19] Production.INFO: ProcessCDR(1,14502227,1,1,2) [2025-02-18 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502227', 'tblTempUsageDetail_20' ) start [2025-02-18 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502227', 'tblTempUsageDetail_20' ) end [2025-02-18 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:43:23] Production.INFO: ==4772== Releasing lock... [2025-02-18 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:43:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-18 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:44:05 [end_date_ymd] => 2025-02-18 09:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:44:05' and `end` < '2025-02-18 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-18 09:44:17] Production.INFO: count ==2252 [2025-02-18 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:44:05 - End Time 2025-02-18 09:44:05 [2025-02-18 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502232', 'tblTempUsageDetail_20' ) start [2025-02-18 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502232', 'tblTempUsageDetail_20' ) end [2025-02-18 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502232', 'tblTempVendorCDR_20' ) start [2025-02-18 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502232', 'tblTempVendorCDR_20' ) end [2025-02-18 09:44:18] Production.INFO: ProcessCDR(1,14502232,1,1,2) [2025-02-18 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502232', 'tblTempUsageDetail_20' ) start [2025-02-18 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502232', 'tblTempUsageDetail_20' ) end [2025-02-18 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:44:23] Production.INFO: ==4843== Releasing lock... [2025-02-18 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:44:23] Production.INFO: 45 MB #Memory Used# [2025-02-18 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:45:06 [end_date_ymd] => 2025-02-18 09:45:06 [RateCDR] => 1 ) [2025-02-18 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:45:06' and `end` < '2025-02-18 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:45:18] Production.INFO: count ==2269 [2025-02-18 09:45:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:45:06 - End Time 2025-02-18 09:45:06 [2025-02-18 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502237', 'tblTempUsageDetail_20' ) start [2025-02-18 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502237', 'tblTempUsageDetail_20' ) end [2025-02-18 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502237', 'tblTempVendorCDR_20' ) start [2025-02-18 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502237', 'tblTempVendorCDR_20' ) end [2025-02-18 09:45:19] Production.INFO: ProcessCDR(1,14502237,1,1,2) [2025-02-18 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502237', 'tblTempUsageDetail_20' ) start [2025-02-18 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502237', 'tblTempUsageDetail_20' ) end [2025-02-18 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:45:24] Production.INFO: ==4918== Releasing lock... [2025-02-18 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:45:24] Production.INFO: 45 MB #Memory Used# [2025-02-18 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:46:05 [end_date_ymd] => 2025-02-18 09:46:05 [RateCDR] => 1 ) [2025-02-18 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:46:05' and `end` < '2025-02-18 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:46:17] Production.INFO: count ==2299 [2025-02-18 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:46:05 - End Time 2025-02-18 09:46:05 [2025-02-18 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502242', 'tblTempUsageDetail_20' ) start [2025-02-18 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502242', 'tblTempUsageDetail_20' ) end [2025-02-18 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502242', 'tblTempVendorCDR_20' ) start [2025-02-18 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502242', 'tblTempVendorCDR_20' ) end [2025-02-18 09:46:19] Production.INFO: ProcessCDR(1,14502242,1,1,2) [2025-02-18 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502242', 'tblTempUsageDetail_20' ) start [2025-02-18 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502242', 'tblTempUsageDetail_20' ) end [2025-02-18 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:46:24] Production.INFO: ==4987== Releasing lock... [2025-02-18 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:46:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-18 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:47:05 [end_date_ymd] => 2025-02-18 09:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:47:05' and `end` < '2025-02-18 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-18 09:47:17] Production.INFO: count ==2312 [2025-02-18 09:47:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:47:05 - End Time 2025-02-18 09:47:05 [2025-02-18 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502247', 'tblTempUsageDetail_20' ) start [2025-02-18 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502247', 'tblTempUsageDetail_20' ) end [2025-02-18 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502247', 'tblTempVendorCDR_20' ) start [2025-02-18 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502247', 'tblTempVendorCDR_20' ) end [2025-02-18 09:47:19] Production.INFO: ProcessCDR(1,14502247,1,1,2) [2025-02-18 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502247', 'tblTempUsageDetail_20' ) start [2025-02-18 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502247', 'tblTempUsageDetail_20' ) end [2025-02-18 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:47:24] Production.INFO: ==5080== Releasing lock... [2025-02-18 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:47:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-18 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:48:04 [end_date_ymd] => 2025-02-18 09:48:04 [RateCDR] => 1 ) [2025-02-18 09: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-18 06:48:04' and `end` < '2025-02-18 09: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-18 09:48:17] Production.INFO: count ==2335 [2025-02-18 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:48:04 - End Time 2025-02-18 09:48:04 [2025-02-18 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502252', 'tblTempUsageDetail_20' ) start [2025-02-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502252', 'tblTempUsageDetail_20' ) end [2025-02-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502252', 'tblTempVendorCDR_20' ) start [2025-02-18 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502252', 'tblTempVendorCDR_20' ) end [2025-02-18 09:48:18] Production.INFO: ProcessCDR(1,14502252,1,1,2) [2025-02-18 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502252', 'tblTempUsageDetail_20' ) start [2025-02-18 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502252', 'tblTempUsageDetail_20' ) end [2025-02-18 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:48:23] Production.INFO: ==5152== Releasing lock... [2025-02-18 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:48:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-18 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:49:05 [end_date_ymd] => 2025-02-18 09:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:49:05' and `end` < '2025-02-18 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-18 09:49:17] Production.INFO: count ==2349 [2025-02-18 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:49:05 - End Time 2025-02-18 09:49:05 [2025-02-18 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502257', 'tblTempUsageDetail_20' ) start [2025-02-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502257', 'tblTempUsageDetail_20' ) end [2025-02-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502257', 'tblTempVendorCDR_20' ) start [2025-02-18 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502257', 'tblTempVendorCDR_20' ) end [2025-02-18 09:49:19] Production.INFO: ProcessCDR(1,14502257,1,1,2) [2025-02-18 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502257', 'tblTempUsageDetail_20' ) start [2025-02-18 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502257', 'tblTempUsageDetail_20' ) end [2025-02-18 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:49:23] Production.INFO: ==5225== Releasing lock... [2025-02-18 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:49:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-18 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:50:06 [end_date_ymd] => 2025-02-18 09:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:50:06' and `end` < '2025-02-18 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-18 09:50:18] Production.INFO: count ==2380 [2025-02-18 09:50:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:50:06 - End Time 2025-02-18 09:50:06 [2025-02-18 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502263', 'tblTempUsageDetail_20' ) start [2025-02-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502263', 'tblTempUsageDetail_20' ) end [2025-02-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502263', 'tblTempVendorCDR_20' ) start [2025-02-18 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502263', 'tblTempVendorCDR_20' ) end [2025-02-18 09:50:19] Production.INFO: ProcessCDR(1,14502263,1,1,2) [2025-02-18 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502263', 'tblTempUsageDetail_20' ) start [2025-02-18 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502263', 'tblTempUsageDetail_20' ) end [2025-02-18 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:50:25] Production.INFO: ==5297== Releasing lock... [2025-02-18 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:50:25] Production.INFO: 46 MB #Memory Used# [2025-02-18 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:51:06 [end_date_ymd] => 2025-02-18 09:51:06 [RateCDR] => 1 ) [2025-02-18 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-18 06:51:06' and `end` < '2025-02-18 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-18 09:51:18] Production.INFO: count ==2470 [2025-02-18 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:51:06 - End Time 2025-02-18 09:51:06 [2025-02-18 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502268', 'tblTempUsageDetail_20' ) start [2025-02-18 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502268', 'tblTempUsageDetail_20' ) end [2025-02-18 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502268', 'tblTempVendorCDR_20' ) start [2025-02-18 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502268', 'tblTempVendorCDR_20' ) end [2025-02-18 09:51:19] Production.INFO: ProcessCDR(1,14502268,1,1,2) [2025-02-18 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502268', 'tblTempUsageDetail_20' ) start [2025-02-18 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502268', 'tblTempUsageDetail_20' ) end [2025-02-18 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:51:24] Production.INFO: ==5372== Releasing lock... [2025-02-18 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:51:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-18 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:52:05 [end_date_ymd] => 2025-02-18 09:52:05 [RateCDR] => 1 ) [2025-02-18 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:52:05' and `end` < '2025-02-18 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:52:17] Production.INFO: count ==2483 [2025-02-18 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-18 06:52:05 - End Time 2025-02-18 09:52:05 [2025-02-18 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502273', 'tblTempUsageDetail_20' ) start [2025-02-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502273', 'tblTempUsageDetail_20' ) end [2025-02-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502273', 'tblTempVendorCDR_20' ) start [2025-02-18 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502273', 'tblTempVendorCDR_20' ) end [2025-02-18 09:52:18] Production.INFO: ProcessCDR(1,14502273,1,1,2) [2025-02-18 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502273', 'tblTempUsageDetail_20' ) start [2025-02-18 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502273', 'tblTempUsageDetail_20' ) end [2025-02-18 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:52:24] Production.INFO: ==5442== Releasing lock... [2025-02-18 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:52:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-18 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:53:06 [end_date_ymd] => 2025-02-18 09:53:06 [RateCDR] => 1 ) [2025-02-18 09: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-18 06:53:06' and `end` < '2025-02-18 09: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-18 09:53:18] Production.INFO: count ==2512 [2025-02-18 09:53:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:53:06 - End Time 2025-02-18 09:53:06 [2025-02-18 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502278', 'tblTempUsageDetail_20' ) start [2025-02-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502278', 'tblTempUsageDetail_20' ) end [2025-02-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502278', 'tblTempVendorCDR_20' ) start [2025-02-18 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502278', 'tblTempVendorCDR_20' ) end [2025-02-18 09:53:19] Production.INFO: ProcessCDR(1,14502278,1,1,2) [2025-02-18 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502278', 'tblTempUsageDetail_20' ) start [2025-02-18 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502278', 'tblTempUsageDetail_20' ) end [2025-02-18 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:53:25] Production.INFO: ==5515== Releasing lock... [2025-02-18 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:53:25] Production.INFO: 47 MB #Memory Used# [2025-02-18 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:54:05 [end_date_ymd] => 2025-02-18 09:54:05 [RateCDR] => 1 ) [2025-02-18 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:54:05' and `end` < '2025-02-18 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:54:18] Production.INFO: count ==2526 [2025-02-18 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:54:05 - End Time 2025-02-18 09:54:05 [2025-02-18 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502283', 'tblTempUsageDetail_20' ) start [2025-02-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502283', 'tblTempUsageDetail_20' ) end [2025-02-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502283', 'tblTempVendorCDR_20' ) start [2025-02-18 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502283', 'tblTempVendorCDR_20' ) end [2025-02-18 09:54:19] Production.INFO: ProcessCDR(1,14502283,1,1,2) [2025-02-18 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502283', 'tblTempUsageDetail_20' ) start [2025-02-18 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502283', 'tblTempUsageDetail_20' ) end [2025-02-18 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:54:25] Production.INFO: ==5586== Releasing lock... [2025-02-18 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:54:25] Production.INFO: 47 MB #Memory Used# [2025-02-18 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:55:06 [end_date_ymd] => 2025-02-18 09:55:06 [RateCDR] => 1 ) [2025-02-18 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:55:06' and `end` < '2025-02-18 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:55:18] Production.INFO: count ==2530 [2025-02-18 09:55:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:55:06 - End Time 2025-02-18 09:55:06 [2025-02-18 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502288', 'tblTempUsageDetail_20' ) start [2025-02-18 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502288', 'tblTempUsageDetail_20' ) end [2025-02-18 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502288', 'tblTempVendorCDR_20' ) start [2025-02-18 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502288', 'tblTempVendorCDR_20' ) end [2025-02-18 09:55:19] Production.INFO: ProcessCDR(1,14502288,1,1,2) [2025-02-18 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502288', 'tblTempUsageDetail_20' ) start [2025-02-18 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502288', 'tblTempUsageDetail_20' ) end [2025-02-18 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:55:25] Production.INFO: ==5657== Releasing lock... [2025-02-18 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:55:25] Production.INFO: 47 MB #Memory Used# [2025-02-18 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:56:05 [end_date_ymd] => 2025-02-18 09:56:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:56:05' and `end` < '2025-02-18 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-18 09:56:18] Production.INFO: count ==2561 [2025-02-18 09:56:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:56:05 - End Time 2025-02-18 09:56:05 [2025-02-18 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502293', 'tblTempUsageDetail_20' ) start [2025-02-18 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502293', 'tblTempUsageDetail_20' ) end [2025-02-18 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502293', 'tblTempVendorCDR_20' ) start [2025-02-18 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502293', 'tblTempVendorCDR_20' ) end [2025-02-18 09:56:19] Production.INFO: ProcessCDR(1,14502293,1,1,2) [2025-02-18 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502293', 'tblTempUsageDetail_20' ) start [2025-02-18 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502293', 'tblTempUsageDetail_20' ) end [2025-02-18 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:56:25] Production.INFO: ==5727== Releasing lock... [2025-02-18 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:56:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-18 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:57:05 [end_date_ymd] => 2025-02-18 09:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 06:57:05' and `end` < '2025-02-18 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-18 09:57:18] Production.INFO: count ==2600 [2025-02-18 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:57:05 - End Time 2025-02-18 09:57:05 [2025-02-18 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502298', 'tblTempUsageDetail_20' ) start [2025-02-18 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502298', 'tblTempUsageDetail_20' ) end [2025-02-18 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502298', 'tblTempVendorCDR_20' ) start [2025-02-18 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502298', 'tblTempVendorCDR_20' ) end [2025-02-18 09:57:19] Production.INFO: ProcessCDR(1,14502298,1,1,2) [2025-02-18 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502298', 'tblTempUsageDetail_20' ) start [2025-02-18 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502298', 'tblTempUsageDetail_20' ) end [2025-02-18 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:57:25] Production.INFO: ==5801== Releasing lock... [2025-02-18 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:57:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-18 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:58:06 [end_date_ymd] => 2025-02-18 09:58:06 [RateCDR] => 1 ) [2025-02-18 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:58:06' and `end` < '2025-02-18 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:58:18] Production.INFO: count ==2622 [2025-02-18 09:58:20] Production.ERROR: pbx CDR StartTime 2025-02-18 06:58:06 - End Time 2025-02-18 09:58:06 [2025-02-18 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502303', 'tblTempUsageDetail_20' ) start [2025-02-18 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502303', 'tblTempUsageDetail_20' ) end [2025-02-18 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502303', 'tblTempVendorCDR_20' ) start [2025-02-18 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502303', 'tblTempVendorCDR_20' ) end [2025-02-18 09:58:20] Production.INFO: ProcessCDR(1,14502303,1,1,2) [2025-02-18 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502303', 'tblTempUsageDetail_20' ) start [2025-02-18 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502303', 'tblTempUsageDetail_20' ) end [2025-02-18 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:58:25] Production.INFO: ==5875== Releasing lock... [2025-02-18 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:58:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-18 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 06:59:06 [end_date_ymd] => 2025-02-18 09:59:06 [RateCDR] => 1 ) [2025-02-18 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 06:59:06' and `end` < '2025-02-18 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 09:59:18] Production.INFO: count ==2633 [2025-02-18 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-18 06:59:06 - End Time 2025-02-18 09:59:06 [2025-02-18 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502308', 'tblTempUsageDetail_20' ) start [2025-02-18 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502308', 'tblTempUsageDetail_20' ) end [2025-02-18 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502308', 'tblTempVendorCDR_20' ) start [2025-02-18 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502308', 'tblTempVendorCDR_20' ) end [2025-02-18 09:59:20] Production.INFO: ProcessCDR(1,14502308,1,1,2) [2025-02-18 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502308', 'tblTempUsageDetail_20' ) start [2025-02-18 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502308', 'tblTempUsageDetail_20' ) end [2025-02-18 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 09:59:25] Production.INFO: ==5986== Releasing lock... [2025-02-18 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 09:59:25] Production.INFO: 48 MB #Memory Used# [2025-02-18 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:00:06 [end_date_ymd] => 2025-02-18 10:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:00:06' and `end` < '2025-02-18 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-18 10:00:18] Production.INFO: count ==2658 [2025-02-18 10:00:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:00:06 - End Time 2025-02-18 10:00:06 [2025-02-18 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502313', 'tblTempUsageDetail_20' ) start [2025-02-18 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502313', 'tblTempUsageDetail_20' ) end [2025-02-18 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502313', 'tblTempVendorCDR_20' ) start [2025-02-18 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502313', 'tblTempVendorCDR_20' ) end [2025-02-18 10:00:20] Production.INFO: ProcessCDR(1,14502313,1,1,2) [2025-02-18 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502313', 'tblTempUsageDetail_20' ) start [2025-02-18 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502313', 'tblTempUsageDetail_20' ) end [2025-02-18 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:00:25] Production.INFO: ==6062== Releasing lock... [2025-02-18 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:00:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-18 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:01:06 [end_date_ymd] => 2025-02-18 10:01:06 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:01:06' and `end` < '2025-02-18 10: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-18 10:01:18] Production.INFO: count ==2748 [2025-02-18 10:01:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:01:06 - End Time 2025-02-18 10:01:06 [2025-02-18 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502319', 'tblTempUsageDetail_20' ) start [2025-02-18 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502319', 'tblTempUsageDetail_20' ) end [2025-02-18 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502319', 'tblTempVendorCDR_20' ) start [2025-02-18 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502319', 'tblTempVendorCDR_20' ) end [2025-02-18 10:01:20] Production.INFO: ProcessCDR(1,14502319,1,1,2) [2025-02-18 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502319', 'tblTempUsageDetail_20' ) start [2025-02-18 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502319', 'tblTempUsageDetail_20' ) end [2025-02-18 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:01:25] Production.INFO: ==6151== Releasing lock... [2025-02-18 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:01:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-18 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:02:06 [end_date_ymd] => 2025-02-18 10:02:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:02:06' and `end` < '2025-02-18 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-18 10:02:18] Production.INFO: count ==2765 [2025-02-18 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:02:06 - End Time 2025-02-18 10:02:06 [2025-02-18 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502324', 'tblTempUsageDetail_20' ) start [2025-02-18 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502324', 'tblTempUsageDetail_20' ) end [2025-02-18 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502324', 'tblTempVendorCDR_20' ) start [2025-02-18 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502324', 'tblTempVendorCDR_20' ) end [2025-02-18 10:02:19] Production.INFO: ProcessCDR(1,14502324,1,1,2) [2025-02-18 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502324', 'tblTempUsageDetail_20' ) start [2025-02-18 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502324', 'tblTempUsageDetail_20' ) end [2025-02-18 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:02:25] Production.INFO: ==6220== Releasing lock... [2025-02-18 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:02:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-18 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:03:05 [end_date_ymd] => 2025-02-18 10:03:05 [RateCDR] => 1 ) [2025-02-18 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:03:05' and `end` < '2025-02-18 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:03:18] Production.INFO: count ==2779 [2025-02-18 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:03:05 - End Time 2025-02-18 10:03:05 [2025-02-18 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502329', 'tblTempUsageDetail_20' ) start [2025-02-18 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502329', 'tblTempUsageDetail_20' ) end [2025-02-18 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502329', 'tblTempVendorCDR_20' ) start [2025-02-18 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502329', 'tblTempVendorCDR_20' ) end [2025-02-18 10:03:20] Production.INFO: ProcessCDR(1,14502329,1,1,2) [2025-02-18 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502329', 'tblTempUsageDetail_20' ) start [2025-02-18 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502329', 'tblTempUsageDetail_20' ) end [2025-02-18 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:03:25] Production.INFO: ==6291== Releasing lock... [2025-02-18 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:03:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-18 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:04:06 [end_date_ymd] => 2025-02-18 10:04:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:04:06' and `end` < '2025-02-18 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-18 10:04:18] Production.INFO: count ==2810 [2025-02-18 10:04:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:04:06 - End Time 2025-02-18 10:04:06 [2025-02-18 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502334', 'tblTempUsageDetail_20' ) start [2025-02-18 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502334', 'tblTempUsageDetail_20' ) end [2025-02-18 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502334', 'tblTempVendorCDR_20' ) start [2025-02-18 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502334', 'tblTempVendorCDR_20' ) end [2025-02-18 10:04:20] Production.INFO: ProcessCDR(1,14502334,1,1,2) [2025-02-18 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502334', 'tblTempUsageDetail_20' ) start [2025-02-18 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502334', 'tblTempUsageDetail_20' ) end [2025-02-18 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:04:25] Production.INFO: ==6364== Releasing lock... [2025-02-18 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:04:25] Production.INFO: 49 MB #Memory Used# [2025-02-18 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:05:06 [end_date_ymd] => 2025-02-18 10:05:06 [RateCDR] => 1 ) [2025-02-18 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:05:06' and `end` < '2025-02-18 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:05:18] Production.INFO: count ==2822 [2025-02-18 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:05:06 - End Time 2025-02-18 10:05:06 [2025-02-18 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502339', 'tblTempUsageDetail_20' ) start [2025-02-18 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502339', 'tblTempUsageDetail_20' ) end [2025-02-18 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502339', 'tblTempVendorCDR_20' ) start [2025-02-18 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502339', 'tblTempVendorCDR_20' ) end [2025-02-18 10:05:20] Production.INFO: ProcessCDR(1,14502339,1,1,2) [2025-02-18 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502339', 'tblTempUsageDetail_20' ) start [2025-02-18 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502339', 'tblTempUsageDetail_20' ) end [2025-02-18 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:05:25] Production.INFO: ==6437== Releasing lock... [2025-02-18 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:05:25] Production.INFO: 49 MB #Memory Used# [2025-02-18 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:06:06 [end_date_ymd] => 2025-02-18 10:06:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:06:06' and `end` < '2025-02-18 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-18 10:06:18] Production.INFO: count ==2837 [2025-02-18 10:06:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:06:06 - End Time 2025-02-18 10:06:06 [2025-02-18 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502344', 'tblTempUsageDetail_20' ) start [2025-02-18 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502344', 'tblTempUsageDetail_20' ) end [2025-02-18 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502344', 'tblTempVendorCDR_20' ) start [2025-02-18 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502344', 'tblTempVendorCDR_20' ) end [2025-02-18 10:06:20] Production.INFO: ProcessCDR(1,14502344,1,1,2) [2025-02-18 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502344', 'tblTempUsageDetail_20' ) start [2025-02-18 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502344', 'tblTempUsageDetail_20' ) end [2025-02-18 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:06:26] Production.INFO: ==6508== Releasing lock... [2025-02-18 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:06:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-18 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:07:06 [end_date_ymd] => 2025-02-18 10:07:06 [RateCDR] => 1 ) [2025-02-18 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:07:06' and `end` < '2025-02-18 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:07:18] Production.INFO: count ==2856 [2025-02-18 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:07:06 - End Time 2025-02-18 10:07:06 [2025-02-18 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502349', 'tblTempUsageDetail_20' ) start [2025-02-18 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502349', 'tblTempUsageDetail_20' ) end [2025-02-18 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502349', 'tblTempVendorCDR_20' ) start [2025-02-18 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502349', 'tblTempVendorCDR_20' ) end [2025-02-18 10:07:20] Production.INFO: ProcessCDR(1,14502349,1,1,2) [2025-02-18 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502349', 'tblTempUsageDetail_20' ) start [2025-02-18 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502349', 'tblTempUsageDetail_20' ) end [2025-02-18 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:07:25] Production.INFO: ==6578== Releasing lock... [2025-02-18 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:07:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-18 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:08:05 [end_date_ymd] => 2025-02-18 10:08:05 [RateCDR] => 1 ) [2025-02-18 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:08:05' and `end` < '2025-02-18 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:08:18] Production.INFO: count ==2868 [2025-02-18 10:08:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:08:05 - End Time 2025-02-18 10:08:05 [2025-02-18 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502354', 'tblTempUsageDetail_20' ) start [2025-02-18 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502354', 'tblTempUsageDetail_20' ) end [2025-02-18 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502354', 'tblTempVendorCDR_20' ) start [2025-02-18 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502354', 'tblTempVendorCDR_20' ) end [2025-02-18 10:08:19] Production.INFO: ProcessCDR(1,14502354,1,1,2) [2025-02-18 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502354', 'tblTempUsageDetail_20' ) start [2025-02-18 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502354', 'tblTempUsageDetail_20' ) end [2025-02-18 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:08:24] Production.INFO: ==6651== Releasing lock... [2025-02-18 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:08:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-18 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:09:05 [end_date_ymd] => 2025-02-18 10:09:05 [RateCDR] => 1 ) [2025-02-18 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:09:05' and `end` < '2025-02-18 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:09:17] Production.INFO: count ==2892 [2025-02-18 10:09:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:09:05 - End Time 2025-02-18 10:09:05 [2025-02-18 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502359', 'tblTempUsageDetail_20' ) start [2025-02-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502359', 'tblTempUsageDetail_20' ) end [2025-02-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502359', 'tblTempVendorCDR_20' ) start [2025-02-18 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502359', 'tblTempVendorCDR_20' ) end [2025-02-18 10:09:19] Production.INFO: ProcessCDR(1,14502359,1,1,2) [2025-02-18 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502359', 'tblTempUsageDetail_20' ) start [2025-02-18 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502359', 'tblTempUsageDetail_20' ) end [2025-02-18 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:09:24] Production.INFO: ==6722== Releasing lock... [2025-02-18 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:09:24] Production.INFO: 50 MB #Memory Used# [2025-02-18 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:10:06 [end_date_ymd] => 2025-02-18 10:10:06 [RateCDR] => 1 ) [2025-02-18 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:10:06' and `end` < '2025-02-18 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:10:19] Production.INFO: count ==2907 [2025-02-18 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:10:06 - End Time 2025-02-18 10:10:06 [2025-02-18 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502365', 'tblTempUsageDetail_20' ) start [2025-02-18 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502365', 'tblTempUsageDetail_20' ) end [2025-02-18 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502365', 'tblTempVendorCDR_20' ) start [2025-02-18 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502365', 'tblTempVendorCDR_20' ) end [2025-02-18 10:10:20] Production.INFO: ProcessCDR(1,14502365,1,1,2) [2025-02-18 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502365', 'tblTempUsageDetail_20' ) start [2025-02-18 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502365', 'tblTempUsageDetail_20' ) end [2025-02-18 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:10:26] Production.INFO: ==6794== Releasing lock... [2025-02-18 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:10:26] Production.INFO: 49.75 MB #Memory Used# [2025-02-18 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:11:06 [end_date_ymd] => 2025-02-18 10:11:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:11:06' and `end` < '2025-02-18 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:11:18] Production.INFO: count ==3010 [2025-02-18 10:11:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:11:06 - End Time 2025-02-18 10:11:06 [2025-02-18 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502370', 'tblTempUsageDetail_20' ) start [2025-02-18 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502370', 'tblTempUsageDetail_20' ) end [2025-02-18 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502370', 'tblTempVendorCDR_20' ) start [2025-02-18 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502370', 'tblTempVendorCDR_20' ) end [2025-02-18 10:11:20] Production.INFO: ProcessCDR(1,14502370,1,1,2) [2025-02-18 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502370', 'tblTempUsageDetail_20' ) start [2025-02-18 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502370', 'tblTempUsageDetail_20' ) end [2025-02-18 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:11:25] Production.INFO: ==6869== Releasing lock... [2025-02-18 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:11:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-18 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:12:05 [end_date_ymd] => 2025-02-18 10:12:05 [RateCDR] => 1 ) [2025-02-18 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:12:05' and `end` < '2025-02-18 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:12:18] Production.INFO: count ==3033 [2025-02-18 10:12:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:12:05 - End Time 2025-02-18 10:12:05 [2025-02-18 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502375', 'tblTempUsageDetail_20' ) start [2025-02-18 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502375', 'tblTempUsageDetail_20' ) end [2025-02-18 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502375', 'tblTempVendorCDR_20' ) start [2025-02-18 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502375', 'tblTempVendorCDR_20' ) end [2025-02-18 10:12:20] Production.INFO: ProcessCDR(1,14502375,1,1,2) [2025-02-18 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502375', 'tblTempUsageDetail_20' ) start [2025-02-18 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502375', 'tblTempUsageDetail_20' ) end [2025-02-18 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:12:25] Production.INFO: ==6941== Releasing lock... [2025-02-18 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:12:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-18 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:13:06 [end_date_ymd] => 2025-02-18 10:13:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:13:06' and `end` < '2025-02-18 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-18 10:13:18] Production.INFO: count ==3083 [2025-02-18 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:13:06 - End Time 2025-02-18 10:13:06 [2025-02-18 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502380', 'tblTempUsageDetail_20' ) start [2025-02-18 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502380', 'tblTempUsageDetail_20' ) end [2025-02-18 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502380', 'tblTempVendorCDR_20' ) start [2025-02-18 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502380', 'tblTempVendorCDR_20' ) end [2025-02-18 10:13:19] Production.INFO: ProcessCDR(1,14502380,1,1,2) [2025-02-18 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502380', 'tblTempUsageDetail_20' ) start [2025-02-18 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502380', 'tblTempUsageDetail_20' ) end [2025-02-18 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:13:24] Production.INFO: ==7011== Releasing lock... [2025-02-18 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:13:24] Production.INFO: 51 MB #Memory Used# [2025-02-18 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:14:05 [end_date_ymd] => 2025-02-18 10:14:05 [RateCDR] => 1 ) [2025-02-18 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:14:05' and `end` < '2025-02-18 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:14:18] Production.INFO: count ==3098 [2025-02-18 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:14:05 - End Time 2025-02-18 10:14:05 [2025-02-18 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502385', 'tblTempUsageDetail_20' ) start [2025-02-18 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502385', 'tblTempUsageDetail_20' ) end [2025-02-18 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502385', 'tblTempVendorCDR_20' ) start [2025-02-18 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502385', 'tblTempVendorCDR_20' ) end [2025-02-18 10:14:19] Production.INFO: ProcessCDR(1,14502385,1,1,2) [2025-02-18 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502385', 'tblTempUsageDetail_20' ) start [2025-02-18 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502385', 'tblTempUsageDetail_20' ) end [2025-02-18 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:14:24] Production.INFO: ==7124== Releasing lock... [2025-02-18 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:14:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-18 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:15:06 [end_date_ymd] => 2025-02-18 10:15:06 [RateCDR] => 1 ) [2025-02-18 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:15:06' and `end` < '2025-02-18 10: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-18 10:15:18] Production.INFO: count ==3123 [2025-02-18 10:15:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:15:06 - End Time 2025-02-18 10:15:06 [2025-02-18 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502390', 'tblTempUsageDetail_20' ) start [2025-02-18 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502390', 'tblTempUsageDetail_20' ) end [2025-02-18 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502390', 'tblTempVendorCDR_20' ) start [2025-02-18 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502390', 'tblTempVendorCDR_20' ) end [2025-02-18 10:15:20] Production.INFO: ProcessCDR(1,14502390,1,1,2) [2025-02-18 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502390', 'tblTempUsageDetail_20' ) start [2025-02-18 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502390', 'tblTempUsageDetail_20' ) end [2025-02-18 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:15:25] Production.INFO: ==7194== Releasing lock... [2025-02-18 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:15:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-18 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:16:05 [end_date_ymd] => 2025-02-18 10:16:05 [RateCDR] => 1 ) [2025-02-18 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:16:05' and `end` < '2025-02-18 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:16:17] Production.INFO: count ==3148 [2025-02-18 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:16:05 - End Time 2025-02-18 10:16:05 [2025-02-18 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502395', 'tblTempUsageDetail_20' ) start [2025-02-18 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502395', 'tblTempUsageDetail_20' ) end [2025-02-18 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502395', 'tblTempVendorCDR_20' ) start [2025-02-18 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502395', 'tblTempVendorCDR_20' ) end [2025-02-18 10:16:19] Production.INFO: ProcessCDR(1,14502395,1,1,2) [2025-02-18 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502395', 'tblTempUsageDetail_20' ) start [2025-02-18 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502395', 'tblTempUsageDetail_20' ) end [2025-02-18 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:16:24] Production.INFO: ==7265== Releasing lock... [2025-02-18 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:16:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-18 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:17:05 [end_date_ymd] => 2025-02-18 10:17:05 [RateCDR] => 1 ) [2025-02-18 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:17:05' and `end` < '2025-02-18 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:17:18] Production.INFO: count ==3162 [2025-02-18 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:17:05 - End Time 2025-02-18 10:17:05 [2025-02-18 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502400', 'tblTempUsageDetail_20' ) start [2025-02-18 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502400', 'tblTempUsageDetail_20' ) end [2025-02-18 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502400', 'tblTempVendorCDR_20' ) start [2025-02-18 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502400', 'tblTempVendorCDR_20' ) end [2025-02-18 10:17:19] Production.INFO: ProcessCDR(1,14502400,1,1,2) [2025-02-18 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502400', 'tblTempUsageDetail_20' ) start [2025-02-18 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502400', 'tblTempUsageDetail_20' ) end [2025-02-18 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:17:24] Production.INFO: ==7340== Releasing lock... [2025-02-18 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:17:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-18 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:18:05 [end_date_ymd] => 2025-02-18 10:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:18:05' and `end` < '2025-02-18 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-18 10:18:18] Production.INFO: count ==3172 [2025-02-18 10:18:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:18:05 - End Time 2025-02-18 10:18:05 [2025-02-18 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502405', 'tblTempUsageDetail_20' ) start [2025-02-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502405', 'tblTempUsageDetail_20' ) end [2025-02-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502405', 'tblTempVendorCDR_20' ) start [2025-02-18 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502405', 'tblTempVendorCDR_20' ) end [2025-02-18 10:18:19] Production.INFO: ProcessCDR(1,14502405,1,1,2) [2025-02-18 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502405', 'tblTempUsageDetail_20' ) start [2025-02-18 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502405', 'tblTempUsageDetail_20' ) end [2025-02-18 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:18:25] Production.INFO: ==7410== Releasing lock... [2025-02-18 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:18:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-18 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:19:06 [end_date_ymd] => 2025-02-18 10:19:06 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:19:06' and `end` < '2025-02-18 10: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-18 10:19:18] Production.INFO: count ==3196 [2025-02-18 10:19:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:19:06 - End Time 2025-02-18 10:19:06 [2025-02-18 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502410', 'tblTempUsageDetail_20' ) start [2025-02-18 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502410', 'tblTempUsageDetail_20' ) end [2025-02-18 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502410', 'tblTempVendorCDR_20' ) start [2025-02-18 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502410', 'tblTempVendorCDR_20' ) end [2025-02-18 10:19:20] Production.INFO: ProcessCDR(1,14502410,1,1,2) [2025-02-18 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502410', 'tblTempUsageDetail_20' ) start [2025-02-18 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502410', 'tblTempUsageDetail_20' ) end [2025-02-18 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:19:25] Production.INFO: ==7483== Releasing lock... [2025-02-18 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:19:25] Production.INFO: 52 MB #Memory Used# [2025-02-18 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:20:05 [end_date_ymd] => 2025-02-18 10:20:05 [RateCDR] => 1 ) [2025-02-18 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:20:05' and `end` < '2025-02-18 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:20:18] Production.INFO: count ==3222 [2025-02-18 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:20:05 - End Time 2025-02-18 10:20:05 [2025-02-18 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502416', 'tblTempUsageDetail_20' ) start [2025-02-18 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502416', 'tblTempUsageDetail_20' ) end [2025-02-18 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502416', 'tblTempVendorCDR_20' ) start [2025-02-18 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502416', 'tblTempVendorCDR_20' ) end [2025-02-18 10:20:20] Production.INFO: ProcessCDR(1,14502416,1,1,2) [2025-02-18 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502416', 'tblTempUsageDetail_20' ) start [2025-02-18 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502416', 'tblTempUsageDetail_20' ) end [2025-02-18 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:20:25] Production.INFO: ==7556== Releasing lock... [2025-02-18 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:20:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-18 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:21:06 [end_date_ymd] => 2025-02-18 10:21:06 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:21:06' and `end` < '2025-02-18 10: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-18 10:21:19] Production.INFO: count ==3322 [2025-02-18 10:21:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:21:06 - End Time 2025-02-18 10:21:06 [2025-02-18 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502421', 'tblTempUsageDetail_20' ) start [2025-02-18 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502421', 'tblTempUsageDetail_20' ) end [2025-02-18 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502421', 'tblTempVendorCDR_20' ) start [2025-02-18 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502421', 'tblTempVendorCDR_20' ) end [2025-02-18 10:21:20] Production.INFO: ProcessCDR(1,14502421,1,1,2) [2025-02-18 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502421', 'tblTempUsageDetail_20' ) start [2025-02-18 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502421', 'tblTempUsageDetail_20' ) end [2025-02-18 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:21:25] Production.INFO: ==7628== Releasing lock... [2025-02-18 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:21:25] Production.INFO: 53 MB #Memory Used# [2025-02-18 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:22:05 [end_date_ymd] => 2025-02-18 10:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:22:05' and `end` < '2025-02-18 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-18 10:22:18] Production.INFO: count ==3346 [2025-02-18 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:22:05 - End Time 2025-02-18 10:22:05 [2025-02-18 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502426', 'tblTempUsageDetail_20' ) start [2025-02-18 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502426', 'tblTempUsageDetail_20' ) end [2025-02-18 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502426', 'tblTempVendorCDR_20' ) start [2025-02-18 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502426', 'tblTempVendorCDR_20' ) end [2025-02-18 10:22:19] Production.INFO: ProcessCDR(1,14502426,1,1,2) [2025-02-18 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502426', 'tblTempUsageDetail_20' ) start [2025-02-18 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502426', 'tblTempUsageDetail_20' ) end [2025-02-18 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:22:23] Production.INFO: ==7701== Releasing lock... [2025-02-18 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:22:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-18 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:23:05 [end_date_ymd] => 2025-02-18 10:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:23:05' and `end` < '2025-02-18 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-18 10:23:18] Production.INFO: count ==3366 [2025-02-18 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:23:05 - End Time 2025-02-18 10:23:05 [2025-02-18 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502431', 'tblTempUsageDetail_20' ) start [2025-02-18 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502431', 'tblTempUsageDetail_20' ) end [2025-02-18 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502431', 'tblTempVendorCDR_20' ) start [2025-02-18 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502431', 'tblTempVendorCDR_20' ) end [2025-02-18 10:23:19] Production.INFO: ProcessCDR(1,14502431,1,1,2) [2025-02-18 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502431', 'tblTempUsageDetail_20' ) start [2025-02-18 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502431', 'tblTempUsageDetail_20' ) end [2025-02-18 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:23:24] Production.INFO: ==7778== Releasing lock... [2025-02-18 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:23:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-18 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:24:06 [end_date_ymd] => 2025-02-18 10:24:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:24:06' and `end` < '2025-02-18 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-18 10:24:18] Production.INFO: count ==3385 [2025-02-18 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:24:06 - End Time 2025-02-18 10:24:06 [2025-02-18 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502436', 'tblTempUsageDetail_20' ) start [2025-02-18 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502436', 'tblTempUsageDetail_20' ) end [2025-02-18 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502436', 'tblTempVendorCDR_20' ) start [2025-02-18 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502436', 'tblTempVendorCDR_20' ) end [2025-02-18 10:24:20] Production.INFO: ProcessCDR(1,14502436,1,1,2) [2025-02-18 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502436', 'tblTempUsageDetail_20' ) start [2025-02-18 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502436', 'tblTempUsageDetail_20' ) end [2025-02-18 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:24:25] Production.INFO: ==7850== Releasing lock... [2025-02-18 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:24:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-18 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:25:05 [end_date_ymd] => 2025-02-18 10:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:25:05' and `end` < '2025-02-18 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-18 10:25:17] Production.INFO: count ==3408 [2025-02-18 10:25:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:25:05 - End Time 2025-02-18 10:25:05 [2025-02-18 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502441', 'tblTempUsageDetail_20' ) start [2025-02-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502441', 'tblTempUsageDetail_20' ) end [2025-02-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502441', 'tblTempVendorCDR_20' ) start [2025-02-18 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502441', 'tblTempVendorCDR_20' ) end [2025-02-18 10:25:19] Production.INFO: ProcessCDR(1,14502441,1,1,2) [2025-02-18 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502441', 'tblTempUsageDetail_20' ) start [2025-02-18 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502441', 'tblTempUsageDetail_20' ) end [2025-02-18 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:25:24] Production.INFO: ==7922== Releasing lock... [2025-02-18 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:25:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-18 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:26:05 [end_date_ymd] => 2025-02-18 10:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:26:05' and `end` < '2025-02-18 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-18 10:26:18] Production.INFO: count ==3430 [2025-02-18 10:26:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:26:05 - End Time 2025-02-18 10:26:05 [2025-02-18 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502446', 'tblTempUsageDetail_20' ) start [2025-02-18 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502446', 'tblTempUsageDetail_20' ) end [2025-02-18 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502446', 'tblTempVendorCDR_20' ) start [2025-02-18 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502446', 'tblTempVendorCDR_20' ) end [2025-02-18 10:26:20] Production.INFO: ProcessCDR(1,14502446,1,1,2) [2025-02-18 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502446', 'tblTempUsageDetail_20' ) start [2025-02-18 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502446', 'tblTempUsageDetail_20' ) end [2025-02-18 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:26:25] Production.INFO: ==7994== Releasing lock... [2025-02-18 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:26:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-18 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:27:05 [end_date_ymd] => 2025-02-18 10:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:27:05' and `end` < '2025-02-18 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-18 10:27:17] Production.INFO: count ==3459 [2025-02-18 10:27:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:27:05 - End Time 2025-02-18 10:27:05 [2025-02-18 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502451', 'tblTempUsageDetail_20' ) start [2025-02-18 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502451', 'tblTempUsageDetail_20' ) end [2025-02-18 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502451', 'tblTempVendorCDR_20' ) start [2025-02-18 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502451', 'tblTempVendorCDR_20' ) end [2025-02-18 10:27:19] Production.INFO: ProcessCDR(1,14502451,1,1,2) [2025-02-18 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502451', 'tblTempUsageDetail_20' ) start [2025-02-18 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502451', 'tblTempUsageDetail_20' ) end [2025-02-18 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:27:25] Production.INFO: ==8064== Releasing lock... [2025-02-18 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:27:25] Production.INFO: 53.75 MB #Memory Used# [2025-02-18 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:28:05 [end_date_ymd] => 2025-02-18 10:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:28:05' and `end` < '2025-02-18 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-18 10:28:18] Production.INFO: count ==3465 [2025-02-18 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:28:05 - End Time 2025-02-18 10:28:05 [2025-02-18 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502456', 'tblTempUsageDetail_20' ) start [2025-02-18 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502456', 'tblTempUsageDetail_20' ) end [2025-02-18 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502456', 'tblTempVendorCDR_20' ) start [2025-02-18 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502456', 'tblTempVendorCDR_20' ) end [2025-02-18 10:28:19] Production.INFO: ProcessCDR(1,14502456,1,1,2) [2025-02-18 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502456', 'tblTempUsageDetail_20' ) start [2025-02-18 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502456', 'tblTempUsageDetail_20' ) end [2025-02-18 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:28:25] Production.INFO: ==8135== Releasing lock... [2025-02-18 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:28:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-18 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:29:04 [end_date_ymd] => 2025-02-18 10:29:04 [RateCDR] => 1 ) [2025-02-18 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:29:04' and `end` < '2025-02-18 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:29:17] Production.INFO: count ==3472 [2025-02-18 10:29:18] Production.ERROR: pbx CDR StartTime 2025-02-18 07:29:04 - End Time 2025-02-18 10:29:04 [2025-02-18 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502461', 'tblTempUsageDetail_20' ) start [2025-02-18 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502461', 'tblTempUsageDetail_20' ) end [2025-02-18 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502461', 'tblTempVendorCDR_20' ) start [2025-02-18 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502461', 'tblTempVendorCDR_20' ) end [2025-02-18 10:29:19] Production.INFO: ProcessCDR(1,14502461,1,1,2) [2025-02-18 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502461', 'tblTempUsageDetail_20' ) start [2025-02-18 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502461', 'tblTempUsageDetail_20' ) end [2025-02-18 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:29:24] Production.INFO: ==8246== Releasing lock... [2025-02-18 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:29:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-18 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:30:06 [end_date_ymd] => 2025-02-18 10:30:06 [RateCDR] => 1 ) [2025-02-18 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:30:06' and `end` < '2025-02-18 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:30:19] Production.INFO: count ==3477 [2025-02-18 10:30:21] Production.ERROR: pbx CDR StartTime 2025-02-18 07:30:06 - End Time 2025-02-18 10:30:06 [2025-02-18 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502467', 'tblTempUsageDetail_20' ) start [2025-02-18 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502467', 'tblTempUsageDetail_20' ) end [2025-02-18 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502467', 'tblTempVendorCDR_20' ) start [2025-02-18 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502467', 'tblTempVendorCDR_20' ) end [2025-02-18 10:30:21] Production.INFO: ProcessCDR(1,14502467,1,1,2) [2025-02-18 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502467', 'tblTempUsageDetail_20' ) start [2025-02-18 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502467', 'tblTempUsageDetail_20' ) end [2025-02-18 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:30:26] Production.INFO: ==8343== Releasing lock... [2025-02-18 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:30:26] Production.INFO: 54.5 MB #Memory Used# [2025-02-18 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:31:04 [end_date_ymd] => 2025-02-18 10:31:04 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:31:04' and `end` < '2025-02-18 10: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-18 10:31:17] Production.INFO: count ==3568 [2025-02-18 10:31:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:31:04 - End Time 2025-02-18 10:31:04 [2025-02-18 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502472', 'tblTempUsageDetail_20' ) start [2025-02-18 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502472', 'tblTempUsageDetail_20' ) end [2025-02-18 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502472', 'tblTempVendorCDR_20' ) start [2025-02-18 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502472', 'tblTempVendorCDR_20' ) end [2025-02-18 10:31:19] Production.INFO: ProcessCDR(1,14502472,1,1,2) [2025-02-18 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502472', 'tblTempUsageDetail_20' ) start [2025-02-18 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502472', 'tblTempUsageDetail_20' ) end [2025-02-18 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:31:24] Production.INFO: ==8413== Releasing lock... [2025-02-18 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:31:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-18 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:32:05 [end_date_ymd] => 2025-02-18 10:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:32:05' and `end` < '2025-02-18 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-18 10:32:18] Production.INFO: count ==3576 [2025-02-18 10:32:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:32:05 - End Time 2025-02-18 10:32:05 [2025-02-18 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502477', 'tblTempUsageDetail_20' ) start [2025-02-18 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502477', 'tblTempUsageDetail_20' ) end [2025-02-18 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502477', 'tblTempVendorCDR_20' ) start [2025-02-18 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502477', 'tblTempVendorCDR_20' ) end [2025-02-18 10:32:19] Production.INFO: ProcessCDR(1,14502477,1,1,2) [2025-02-18 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502477', 'tblTempUsageDetail_20' ) start [2025-02-18 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502477', 'tblTempUsageDetail_20' ) end [2025-02-18 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:32:23] Production.INFO: ==8485== Releasing lock... [2025-02-18 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:32:23] Production.INFO: 55.25 MB #Memory Used# [2025-02-18 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:33:05 [end_date_ymd] => 2025-02-18 10:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:33:05' and `end` < '2025-02-18 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-18 10:33:18] Production.INFO: count ==3585 [2025-02-18 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:33:05 - End Time 2025-02-18 10:33:05 [2025-02-18 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502482', 'tblTempUsageDetail_20' ) start [2025-02-18 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502482', 'tblTempUsageDetail_20' ) end [2025-02-18 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502482', 'tblTempVendorCDR_20' ) start [2025-02-18 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502482', 'tblTempVendorCDR_20' ) end [2025-02-18 10:33:20] Production.INFO: ProcessCDR(1,14502482,1,1,2) [2025-02-18 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502482', 'tblTempUsageDetail_20' ) start [2025-02-18 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502482', 'tblTempUsageDetail_20' ) end [2025-02-18 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:33:25] Production.INFO: ==8554== Releasing lock... [2025-02-18 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:33:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-18 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:34:05 [end_date_ymd] => 2025-02-18 10:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:34:05' and `end` < '2025-02-18 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-18 10:34:18] Production.INFO: count ==3623 [2025-02-18 10:34:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:34:05 - End Time 2025-02-18 10:34:05 [2025-02-18 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502487', 'tblTempUsageDetail_20' ) start [2025-02-18 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502487', 'tblTempUsageDetail_20' ) end [2025-02-18 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502487', 'tblTempVendorCDR_20' ) start [2025-02-18 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502487', 'tblTempVendorCDR_20' ) end [2025-02-18 10:34:20] Production.INFO: ProcessCDR(1,14502487,1,1,2) [2025-02-18 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502487', 'tblTempUsageDetail_20' ) start [2025-02-18 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502487', 'tblTempUsageDetail_20' ) end [2025-02-18 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:34:25] Production.INFO: ==8626== Releasing lock... [2025-02-18 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:34:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-18 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:35:06 [end_date_ymd] => 2025-02-18 10:35:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:35:06' and `end` < '2025-02-18 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-18 10:35:18] Production.INFO: count ==3652 [2025-02-18 10:35:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:35:06 - End Time 2025-02-18 10:35:06 [2025-02-18 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502492', 'tblTempUsageDetail_20' ) start [2025-02-18 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502492', 'tblTempUsageDetail_20' ) end [2025-02-18 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502492', 'tblTempVendorCDR_20' ) start [2025-02-18 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502492', 'tblTempVendorCDR_20' ) end [2025-02-18 10:35:20] Production.INFO: ProcessCDR(1,14502492,1,1,2) [2025-02-18 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502492', 'tblTempUsageDetail_20' ) start [2025-02-18 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502492', 'tblTempUsageDetail_20' ) end [2025-02-18 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:35:25] Production.INFO: ==8696== Releasing lock... [2025-02-18 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:35:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-18 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:36:06 [end_date_ymd] => 2025-02-18 10:36:06 [RateCDR] => 1 ) [2025-02-18 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:36:06' and `end` < '2025-02-18 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:36:18] Production.INFO: count ==3665 [2025-02-18 10:36:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:36:06 - End Time 2025-02-18 10:36:06 [2025-02-18 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502497', 'tblTempUsageDetail_20' ) start [2025-02-18 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502497', 'tblTempUsageDetail_20' ) end [2025-02-18 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502497', 'tblTempVendorCDR_20' ) start [2025-02-18 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502497', 'tblTempVendorCDR_20' ) end [2025-02-18 10:36:20] Production.INFO: ProcessCDR(1,14502497,1,1,2) [2025-02-18 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502497', 'tblTempUsageDetail_20' ) start [2025-02-18 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502497', 'tblTempUsageDetail_20' ) end [2025-02-18 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:36:25] Production.INFO: ==8777== Releasing lock... [2025-02-18 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:36:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-18 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:37:04 [end_date_ymd] => 2025-02-18 10:37:04 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:37:04' and `end` < '2025-02-18 10: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-18 10:37:17] Production.INFO: count ==3675 [2025-02-18 10:37:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:37:04 - End Time 2025-02-18 10:37:04 [2025-02-18 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502502', 'tblTempUsageDetail_20' ) start [2025-02-18 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502502', 'tblTempUsageDetail_20' ) end [2025-02-18 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502502', 'tblTempVendorCDR_20' ) start [2025-02-18 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502502', 'tblTempVendorCDR_20' ) end [2025-02-18 10:37:19] Production.INFO: ProcessCDR(1,14502502,1,1,2) [2025-02-18 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502502', 'tblTempUsageDetail_20' ) start [2025-02-18 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502502', 'tblTempUsageDetail_20' ) end [2025-02-18 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:37:24] Production.INFO: ==8847== Releasing lock... [2025-02-18 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:37:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-18 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:38:06 [end_date_ymd] => 2025-02-18 10:38:06 [RateCDR] => 1 ) [2025-02-18 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:38:06' and `end` < '2025-02-18 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:38:18] Production.INFO: count ==3689 [2025-02-18 10:38:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:38:06 - End Time 2025-02-18 10:38:06 [2025-02-18 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502507', 'tblTempUsageDetail_20' ) start [2025-02-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502507', 'tblTempUsageDetail_20' ) end [2025-02-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502507', 'tblTempVendorCDR_20' ) start [2025-02-18 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502507', 'tblTempVendorCDR_20' ) end [2025-02-18 10:38:20] Production.INFO: ProcessCDR(1,14502507,1,1,2) [2025-02-18 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502507', 'tblTempUsageDetail_20' ) start [2025-02-18 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502507', 'tblTempUsageDetail_20' ) end [2025-02-18 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:38:25] Production.INFO: ==8926== Releasing lock... [2025-02-18 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:38:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-18 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:39:04 [end_date_ymd] => 2025-02-18 10:39:04 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:39:04' and `end` < '2025-02-18 10: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-18 10:39:19] Production.INFO: count ==3693 [2025-02-18 10:39:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:39:04 - End Time 2025-02-18 10:39:04 [2025-02-18 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502512', 'tblTempUsageDetail_20' ) start [2025-02-18 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502512', 'tblTempUsageDetail_20' ) end [2025-02-18 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502512', 'tblTempVendorCDR_20' ) start [2025-02-18 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502512', 'tblTempVendorCDR_20' ) end [2025-02-18 10:39:21] Production.INFO: ProcessCDR(1,14502512,1,1,2) [2025-02-18 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502512', 'tblTempUsageDetail_20' ) start [2025-02-18 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502512', 'tblTempUsageDetail_20' ) end [2025-02-18 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:39:25] Production.INFO: ==8995== Releasing lock... [2025-02-18 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:39:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-18 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:40:06 [end_date_ymd] => 2025-02-18 10:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 07:40:06' and `end` < '2025-02-18 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-18 10:40:20] Production.INFO: count ==3706 [2025-02-18 10:40:21] Production.ERROR: pbx CDR StartTime 2025-02-18 07:40:06 - End Time 2025-02-18 10:40:06 [2025-02-18 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502518', 'tblTempUsageDetail_20' ) start [2025-02-18 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502518', 'tblTempUsageDetail_20' ) end [2025-02-18 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502518', 'tblTempVendorCDR_20' ) start [2025-02-18 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502518', 'tblTempVendorCDR_20' ) end [2025-02-18 10:40:22] Production.INFO: ProcessCDR(1,14502518,1,1,2) [2025-02-18 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502518', 'tblTempUsageDetail_20' ) start [2025-02-18 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502518', 'tblTempUsageDetail_20' ) end [2025-02-18 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:40:27] Production.INFO: ==9070== Releasing lock... [2025-02-18 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:40:27] Production.INFO: 55.75 MB #Memory Used# [2025-02-18 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:41:05 [end_date_ymd] => 2025-02-18 10:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:41:05' and `end` < '2025-02-18 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-18 10:41:19] Production.INFO: count ==3814 [2025-02-18 10:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 07:41:05 - End Time 2025-02-18 10:41:05 [2025-02-18 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502523', 'tblTempUsageDetail_20' ) start [2025-02-18 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502523', 'tblTempUsageDetail_20' ) end [2025-02-18 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502523', 'tblTempVendorCDR_20' ) start [2025-02-18 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502523', 'tblTempVendorCDR_20' ) end [2025-02-18 10:41:21] Production.INFO: ProcessCDR(1,14502523,1,1,2) [2025-02-18 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502523', 'tblTempUsageDetail_20' ) start [2025-02-18 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502523', 'tblTempUsageDetail_20' ) end [2025-02-18 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:41:26] Production.INFO: ==9142== Releasing lock... [2025-02-18 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:41:26] Production.INFO: 57 MB #Memory Used# [2025-02-18 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:42:05 [end_date_ymd] => 2025-02-18 10:42:05 [RateCDR] => 1 ) [2025-02-18 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:42:05' and `end` < '2025-02-18 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:42:18] Production.INFO: count ==3828 [2025-02-18 10:42:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:42:05 - End Time 2025-02-18 10:42:05 [2025-02-18 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502528', 'tblTempUsageDetail_20' ) start [2025-02-18 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502528', 'tblTempUsageDetail_20' ) end [2025-02-18 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502528', 'tblTempVendorCDR_20' ) start [2025-02-18 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502528', 'tblTempVendorCDR_20' ) end [2025-02-18 10:42:20] Production.INFO: ProcessCDR(1,14502528,1,1,2) [2025-02-18 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502528', 'tblTempUsageDetail_20' ) start [2025-02-18 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502528', 'tblTempUsageDetail_20' ) end [2025-02-18 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:42:25] Production.INFO: ==9212== Releasing lock... [2025-02-18 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:42:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-18 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:43:05 [end_date_ymd] => 2025-02-18 10:43:05 [RateCDR] => 1 ) [2025-02-18 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:43:05' and `end` < '2025-02-18 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:43:18] Production.INFO: count ==3857 [2025-02-18 10:43:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:43:05 - End Time 2025-02-18 10:43:05 [2025-02-18 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502533', 'tblTempUsageDetail_20' ) start [2025-02-18 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502533', 'tblTempUsageDetail_20' ) end [2025-02-18 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502533', 'tblTempVendorCDR_20' ) start [2025-02-18 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502533', 'tblTempVendorCDR_20' ) end [2025-02-18 10:43:20] Production.INFO: ProcessCDR(1,14502533,1,1,2) [2025-02-18 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502533', 'tblTempUsageDetail_20' ) start [2025-02-18 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502533', 'tblTempUsageDetail_20' ) end [2025-02-18 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:43:25] Production.INFO: ==9283== Releasing lock... [2025-02-18 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:43:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-18 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:44:05 [end_date_ymd] => 2025-02-18 10:44:05 [RateCDR] => 1 ) [2025-02-18 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:44:05' and `end` < '2025-02-18 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:44:18] Production.INFO: count ==3896 [2025-02-18 10:44:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:44:05 - End Time 2025-02-18 10:44:05 [2025-02-18 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502538', 'tblTempUsageDetail_20' ) start [2025-02-18 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502538', 'tblTempUsageDetail_20' ) end [2025-02-18 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502538', 'tblTempVendorCDR_20' ) start [2025-02-18 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502538', 'tblTempVendorCDR_20' ) end [2025-02-18 10:44:20] Production.INFO: ProcessCDR(1,14502538,1,1,2) [2025-02-18 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502538', 'tblTempUsageDetail_20' ) start [2025-02-18 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502538', 'tblTempUsageDetail_20' ) end [2025-02-18 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:44:25] Production.INFO: ==9355== Releasing lock... [2025-02-18 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:44:25] Production.INFO: 57 MB #Memory Used# [2025-02-18 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:45:05 [end_date_ymd] => 2025-02-18 10:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:45:05' and `end` < '2025-02-18 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-18 10:45:17] Production.INFO: count ==3924 [2025-02-18 10:45:19] Production.ERROR: pbx CDR StartTime 2025-02-18 07:45:05 - End Time 2025-02-18 10:45:05 [2025-02-18 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502543', 'tblTempUsageDetail_20' ) start [2025-02-18 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502543', 'tblTempUsageDetail_20' ) end [2025-02-18 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502543', 'tblTempVendorCDR_20' ) start [2025-02-18 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502543', 'tblTempVendorCDR_20' ) end [2025-02-18 10:45:19] Production.INFO: ProcessCDR(1,14502543,1,1,2) [2025-02-18 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502543', 'tblTempUsageDetail_20' ) start [2025-02-18 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502543', 'tblTempUsageDetail_20' ) end [2025-02-18 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:45:25] Production.INFO: ==9465== Releasing lock... [2025-02-18 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:45:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-18 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:46:06 [end_date_ymd] => 2025-02-18 10:46:06 [RateCDR] => 1 ) [2025-02-18 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:46:06' and `end` < '2025-02-18 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:46:19] Production.INFO: count ==3925 [2025-02-18 10:46:21] Production.ERROR: pbx CDR StartTime 2025-02-18 07:46:06 - End Time 2025-02-18 10:46:06 [2025-02-18 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502548', 'tblTempUsageDetail_20' ) start [2025-02-18 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502548', 'tblTempUsageDetail_20' ) end [2025-02-18 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502548', 'tblTempVendorCDR_20' ) start [2025-02-18 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502548', 'tblTempVendorCDR_20' ) end [2025-02-18 10:46:21] Production.INFO: ProcessCDR(1,14502548,1,1,2) [2025-02-18 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502548', 'tblTempUsageDetail_20' ) start [2025-02-18 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502548', 'tblTempUsageDetail_20' ) end [2025-02-18 10:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:46:26] Production.INFO: ==9535== Releasing lock... [2025-02-18 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:46:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-18 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:47:05 [end_date_ymd] => 2025-02-18 10:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:47:05' and `end` < '2025-02-18 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-18 10:47:18] Production.INFO: count ==3956 [2025-02-18 10:47:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:47:05 - End Time 2025-02-18 10:47:05 [2025-02-18 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502553', 'tblTempUsageDetail_20' ) start [2025-02-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502553', 'tblTempUsageDetail_20' ) end [2025-02-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502553', 'tblTempVendorCDR_20' ) start [2025-02-18 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502553', 'tblTempVendorCDR_20' ) end [2025-02-18 10:47:20] Production.INFO: ProcessCDR(1,14502553,1,1,2) [2025-02-18 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502553', 'tblTempUsageDetail_20' ) start [2025-02-18 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502553', 'tblTempUsageDetail_20' ) end [2025-02-18 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:47:25] Production.INFO: ==9605== Releasing lock... [2025-02-18 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:47:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-18 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:48:05 [end_date_ymd] => 2025-02-18 10:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:48:05' and `end` < '2025-02-18 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-18 10:48:18] Production.INFO: count ==3992 [2025-02-18 10:48:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:48:05 - End Time 2025-02-18 10:48:05 [2025-02-18 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502558', 'tblTempUsageDetail_20' ) start [2025-02-18 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502558', 'tblTempUsageDetail_20' ) end [2025-02-18 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502558', 'tblTempVendorCDR_20' ) start [2025-02-18 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502558', 'tblTempVendorCDR_20' ) end [2025-02-18 10:48:20] Production.INFO: ProcessCDR(1,14502558,1,1,2) [2025-02-18 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502558', 'tblTempUsageDetail_20' ) start [2025-02-18 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502558', 'tblTempUsageDetail_20' ) end [2025-02-18 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:48:25] Production.INFO: ==9680== Releasing lock... [2025-02-18 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:48:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:49:05 [end_date_ymd] => 2025-02-18 10:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:49:05' and `end` < '2025-02-18 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-18 10:49:18] Production.INFO: count ==3996 [2025-02-18 10:49:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:49:05 - End Time 2025-02-18 10:49:05 [2025-02-18 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502563', 'tblTempUsageDetail_20' ) start [2025-02-18 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502563', 'tblTempUsageDetail_20' ) end [2025-02-18 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502563', 'tblTempVendorCDR_20' ) start [2025-02-18 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502563', 'tblTempVendorCDR_20' ) end [2025-02-18 10:49:20] Production.INFO: ProcessCDR(1,14502563,1,1,2) [2025-02-18 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502563', 'tblTempUsageDetail_20' ) start [2025-02-18 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502563', 'tblTempUsageDetail_20' ) end [2025-02-18 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:49:25] Production.INFO: ==9756== Releasing lock... [2025-02-18 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:49:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:50:07 [end_date_ymd] => 2025-02-18 10:50:07 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:50:07' and `end` < '2025-02-18 10: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-18 10:50:19] Production.INFO: count ==4023 [2025-02-18 10:50:21] Production.ERROR: pbx CDR StartTime 2025-02-18 07:50:07 - End Time 2025-02-18 10:50:07 [2025-02-18 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502569', 'tblTempUsageDetail_20' ) start [2025-02-18 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502569', 'tblTempUsageDetail_20' ) end [2025-02-18 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502569', 'tblTempVendorCDR_20' ) start [2025-02-18 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502569', 'tblTempVendorCDR_20' ) end [2025-02-18 10:50:22] Production.INFO: ProcessCDR(1,14502569,1,1,2) [2025-02-18 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502569', 'tblTempUsageDetail_20' ) start [2025-02-18 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502569', 'tblTempUsageDetail_20' ) end [2025-02-18 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:50:27] Production.INFO: ==9834== Releasing lock... [2025-02-18 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:50:27] Production.INFO: 58 MB #Memory Used# [2025-02-18 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:51:05 [end_date_ymd] => 2025-02-18 10:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:51:05' and `end` < '2025-02-18 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-18 10:51:18] Production.INFO: count ==4135 [2025-02-18 10:51:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:51:05 - End Time 2025-02-18 10:51:05 [2025-02-18 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502574', 'tblTempUsageDetail_20' ) start [2025-02-18 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502574', 'tblTempUsageDetail_20' ) end [2025-02-18 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502574', 'tblTempVendorCDR_20' ) start [2025-02-18 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502574', 'tblTempVendorCDR_20' ) end [2025-02-18 10:51:20] Production.INFO: ProcessCDR(1,14502574,1,1,2) [2025-02-18 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502574', 'tblTempUsageDetail_20' ) start [2025-02-18 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502574', 'tblTempUsageDetail_20' ) end [2025-02-18 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:51:26] Production.INFO: ==9912== Releasing lock... [2025-02-18 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:51:26] Production.INFO: 59 MB #Memory Used# [2025-02-18 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:52:05 [end_date_ymd] => 2025-02-18 10:52:05 [RateCDR] => 1 ) [2025-02-18 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:52:05' and `end` < '2025-02-18 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:52:18] Production.INFO: count ==4168 [2025-02-18 10:52:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:52:05 - End Time 2025-02-18 10:52:05 [2025-02-18 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502579', 'tblTempUsageDetail_20' ) start [2025-02-18 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502579', 'tblTempUsageDetail_20' ) end [2025-02-18 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502579', 'tblTempVendorCDR_20' ) start [2025-02-18 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502579', 'tblTempVendorCDR_20' ) end [2025-02-18 10:52:21] Production.INFO: ProcessCDR(1,14502579,1,1,2) [2025-02-18 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502579', 'tblTempUsageDetail_20' ) start [2025-02-18 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502579', 'tblTempUsageDetail_20' ) end [2025-02-18 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:52:26] Production.INFO: ==9986== Releasing lock... [2025-02-18 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:52:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-18 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:53:05 [end_date_ymd] => 2025-02-18 10:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:53:05' and `end` < '2025-02-18 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-18 10:53:18] Production.INFO: count ==4192 [2025-02-18 10:53:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:53:05 - End Time 2025-02-18 10:53:05 [2025-02-18 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502584', 'tblTempUsageDetail_20' ) start [2025-02-18 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502584', 'tblTempUsageDetail_20' ) end [2025-02-18 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502584', 'tblTempVendorCDR_20' ) start [2025-02-18 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502584', 'tblTempVendorCDR_20' ) end [2025-02-18 10:53:20] Production.INFO: ProcessCDR(1,14502584,1,1,2) [2025-02-18 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502584', 'tblTempUsageDetail_20' ) start [2025-02-18 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502584', 'tblTempUsageDetail_20' ) end [2025-02-18 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:53:25] Production.INFO: ==10064== Releasing lock... [2025-02-18 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:53:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-18 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:54:06 [end_date_ymd] => 2025-02-18 10:54:06 [RateCDR] => 1 ) [2025-02-18 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 07:54:06' and `end` < '2025-02-18 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 10:54:19] Production.INFO: count ==4207 [2025-02-18 10:54:21] Production.ERROR: pbx CDR StartTime 2025-02-18 07:54:06 - End Time 2025-02-18 10:54:06 [2025-02-18 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502589', 'tblTempUsageDetail_20' ) start [2025-02-18 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502589', 'tblTempUsageDetail_20' ) end [2025-02-18 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502589', 'tblTempVendorCDR_20' ) start [2025-02-18 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502589', 'tblTempVendorCDR_20' ) end [2025-02-18 10:54:21] Production.INFO: ProcessCDR(1,14502589,1,1,2) [2025-02-18 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502589', 'tblTempUsageDetail_20' ) start [2025-02-18 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502589', 'tblTempUsageDetail_20' ) end [2025-02-18 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:54:26] Production.INFO: ==10146== Releasing lock... [2025-02-18 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:54:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-18 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:55:05 [end_date_ymd] => 2025-02-18 10:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:55:05' and `end` < '2025-02-18 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-18 10:55:18] Production.INFO: count ==4215 [2025-02-18 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:55:05 - End Time 2025-02-18 10:55:05 [2025-02-18 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502594', 'tblTempUsageDetail_20' ) start [2025-02-18 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502594', 'tblTempUsageDetail_20' ) end [2025-02-18 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502594', 'tblTempVendorCDR_20' ) start [2025-02-18 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502594', 'tblTempVendorCDR_20' ) end [2025-02-18 10:55:20] Production.INFO: ProcessCDR(1,14502594,1,1,2) [2025-02-18 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502594', 'tblTempUsageDetail_20' ) start [2025-02-18 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502594', 'tblTempUsageDetail_20' ) end [2025-02-18 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:55:26] Production.INFO: ==10226== Releasing lock... [2025-02-18 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:55:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-18 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:56:06 [end_date_ymd] => 2025-02-18 10:56:06 [RateCDR] => 1 ) [2025-02-18 10: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-18 07:56:06' and `end` < '2025-02-18 10: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-18 10:56:18] Production.INFO: count ==4228 [2025-02-18 10:56:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:56:06 - End Time 2025-02-18 10:56:06 [2025-02-18 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502599', 'tblTempUsageDetail_20' ) start [2025-02-18 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502599', 'tblTempUsageDetail_20' ) end [2025-02-18 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502599', 'tblTempVendorCDR_20' ) start [2025-02-18 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502599', 'tblTempVendorCDR_20' ) end [2025-02-18 10:56:21] Production.INFO: ProcessCDR(1,14502599,1,1,2) [2025-02-18 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502599', 'tblTempUsageDetail_20' ) start [2025-02-18 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502599', 'tblTempUsageDetail_20' ) end [2025-02-18 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:56:26] Production.INFO: ==10308== Releasing lock... [2025-02-18 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:56:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-18 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:57:05 [end_date_ymd] => 2025-02-18 10:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:57:05' and `end` < '2025-02-18 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-18 10:57:17] Production.INFO: count ==4268 [2025-02-18 10:57:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:57:05 - End Time 2025-02-18 10:57:05 [2025-02-18 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502604', 'tblTempUsageDetail_20' ) start [2025-02-18 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502604', 'tblTempUsageDetail_20' ) end [2025-02-18 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502604', 'tblTempVendorCDR_20' ) start [2025-02-18 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502604', 'tblTempVendorCDR_20' ) end [2025-02-18 10:57:20] Production.INFO: ProcessCDR(1,14502604,1,1,2) [2025-02-18 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502604', 'tblTempUsageDetail_20' ) start [2025-02-18 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502604', 'tblTempUsageDetail_20' ) end [2025-02-18 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:57:25] Production.INFO: ==10389== Releasing lock... [2025-02-18 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:57:25] Production.INFO: 60 MB #Memory Used# [2025-02-18 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:58:05 [end_date_ymd] => 2025-02-18 10:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:58:05' and `end` < '2025-02-18 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-18 10:58:18] Production.INFO: count ==4289 [2025-02-18 10:58:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:58:05 - End Time 2025-02-18 10:58:05 [2025-02-18 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502609', 'tblTempUsageDetail_20' ) start [2025-02-18 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502609', 'tblTempUsageDetail_20' ) end [2025-02-18 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502609', 'tblTempVendorCDR_20' ) start [2025-02-18 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502609', 'tblTempVendorCDR_20' ) end [2025-02-18 10:58:20] Production.INFO: ProcessCDR(1,14502609,1,1,2) [2025-02-18 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502609', 'tblTempUsageDetail_20' ) start [2025-02-18 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502609', 'tblTempUsageDetail_20' ) end [2025-02-18 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:58:26] Production.INFO: ==10469== Releasing lock... [2025-02-18 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:58:26] Production.INFO: 60 MB #Memory Used# [2025-02-18 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 07:59:05 [end_date_ymd] => 2025-02-18 10:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 07:59:05' and `end` < '2025-02-18 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-18 10:59:18] Production.INFO: count ==4336 [2025-02-18 10:59:20] Production.ERROR: pbx CDR StartTime 2025-02-18 07:59:05 - End Time 2025-02-18 10:59:05 [2025-02-18 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502614', 'tblTempUsageDetail_20' ) start [2025-02-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502614', 'tblTempUsageDetail_20' ) end [2025-02-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502614', 'tblTempVendorCDR_20' ) start [2025-02-18 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502614', 'tblTempVendorCDR_20' ) end [2025-02-18 10:59:20] Production.INFO: ProcessCDR(1,14502614,1,1,2) [2025-02-18 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502614', 'tblTempUsageDetail_20' ) start [2025-02-18 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502614', 'tblTempUsageDetail_20' ) end [2025-02-18 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 10:59:26] Production.INFO: ==10549== Releasing lock... [2025-02-18 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 10:59:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-18 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:00:06 [end_date_ymd] => 2025-02-18 11:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:00:06' and `end` < '2025-02-18 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-18 11:00:19] Production.INFO: count ==4373 [2025-02-18 11:00:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:00:06 - End Time 2025-02-18 11:00:06 [2025-02-18 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502620', 'tblTempUsageDetail_20' ) start [2025-02-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502620', 'tblTempUsageDetail_20' ) end [2025-02-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502620', 'tblTempVendorCDR_20' ) start [2025-02-18 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502620', 'tblTempVendorCDR_20' ) end [2025-02-18 11:00:21] Production.INFO: ProcessCDR(1,14502620,1,1,2) [2025-02-18 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502620', 'tblTempUsageDetail_20' ) start [2025-02-18 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502620', 'tblTempUsageDetail_20' ) end [2025-02-18 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:00:27] Production.INFO: ==10672== Releasing lock... [2025-02-18 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:00:27] Production.INFO: 60.75 MB #Memory Used# [2025-02-18 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:01:05 [end_date_ymd] => 2025-02-18 11:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:01:05' and `end` < '2025-02-18 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-18 11:01:18] Production.INFO: count ==4501 [2025-02-18 11:01:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:01:05 - End Time 2025-02-18 11:01:05 [2025-02-18 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502625', 'tblTempUsageDetail_20' ) start [2025-02-18 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502625', 'tblTempUsageDetail_20' ) end [2025-02-18 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502625', 'tblTempVendorCDR_20' ) start [2025-02-18 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502625', 'tblTempVendorCDR_20' ) end [2025-02-18 11:01:20] Production.INFO: ProcessCDR(1,14502625,1,1,2) [2025-02-18 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502625', 'tblTempUsageDetail_20' ) start [2025-02-18 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502625', 'tblTempUsageDetail_20' ) end [2025-02-18 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:01:26] Production.INFO: ==10808== Releasing lock... [2025-02-18 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:01:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:02:06 [end_date_ymd] => 2025-02-18 11:02:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:02:06' and `end` < '2025-02-18 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-18 11:02:18] Production.INFO: count ==4499 [2025-02-18 11:02:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:02:06 - End Time 2025-02-18 11:02:06 [2025-02-18 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502630', 'tblTempUsageDetail_20' ) start [2025-02-18 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502630', 'tblTempUsageDetail_20' ) end [2025-02-18 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502630', 'tblTempVendorCDR_20' ) start [2025-02-18 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502630', 'tblTempVendorCDR_20' ) end [2025-02-18 11:02:21] Production.INFO: ProcessCDR(1,14502630,1,1,2) [2025-02-18 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502630', 'tblTempUsageDetail_20' ) start [2025-02-18 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502630', 'tblTempUsageDetail_20' ) end [2025-02-18 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:02:26] Production.INFO: ==10926== Releasing lock... [2025-02-18 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:02:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:03:06 [end_date_ymd] => 2025-02-18 11:03:06 [RateCDR] => 1 ) [2025-02-18 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:03:06' and `end` < '2025-02-18 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:03:18] Production.INFO: count ==4499 [2025-02-18 11:03:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:03:06 - End Time 2025-02-18 11:03:06 [2025-02-18 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502635', 'tblTempUsageDetail_20' ) start [2025-02-18 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502635', 'tblTempUsageDetail_20' ) end [2025-02-18 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502635', 'tblTempVendorCDR_20' ) start [2025-02-18 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502635', 'tblTempVendorCDR_20' ) end [2025-02-18 11:03:21] Production.INFO: ProcessCDR(1,14502635,1,1,2) [2025-02-18 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502635', 'tblTempUsageDetail_20' ) start [2025-02-18 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502635', 'tblTempUsageDetail_20' ) end [2025-02-18 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:03:26] Production.INFO: ==11002== Releasing lock... [2025-02-18 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:03:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:04:05 [end_date_ymd] => 2025-02-18 11:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:04:05' and `end` < '2025-02-18 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-18 11:04:18] Production.INFO: count ==4504 [2025-02-18 11:04:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:04:05 - End Time 2025-02-18 11:04:05 [2025-02-18 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502640', 'tblTempUsageDetail_20' ) start [2025-02-18 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502640', 'tblTempUsageDetail_20' ) end [2025-02-18 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502640', 'tblTempVendorCDR_20' ) start [2025-02-18 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502640', 'tblTempVendorCDR_20' ) end [2025-02-18 11:04:20] Production.INFO: ProcessCDR(1,14502640,1,1,2) [2025-02-18 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502640', 'tblTempUsageDetail_20' ) start [2025-02-18 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502640', 'tblTempUsageDetail_20' ) end [2025-02-18 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:04:26] Production.INFO: ==11089== Releasing lock... [2025-02-18 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:04:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:05:06 [end_date_ymd] => 2025-02-18 11:05:06 [RateCDR] => 1 ) [2025-02-18 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:05:06' and `end` < '2025-02-18 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:05:18] Production.INFO: count ==4496 [2025-02-18 11:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:05:06 - End Time 2025-02-18 11:05:06 [2025-02-18 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502645', 'tblTempUsageDetail_20' ) start [2025-02-18 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502645', 'tblTempUsageDetail_20' ) end [2025-02-18 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502645', 'tblTempVendorCDR_20' ) start [2025-02-18 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502645', 'tblTempVendorCDR_20' ) end [2025-02-18 11:05:21] Production.INFO: ProcessCDR(1,14502645,1,1,2) [2025-02-18 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502645', 'tblTempUsageDetail_20' ) start [2025-02-18 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502645', 'tblTempUsageDetail_20' ) end [2025-02-18 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:05:26] Production.INFO: ==11252== Releasing lock... [2025-02-18 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:05:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-18 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:06:05 [end_date_ymd] => 2025-02-18 11:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:06:05' and `end` < '2025-02-18 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-18 11:06:18] Production.INFO: count ==4520 [2025-02-18 11:06:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:06:05 - End Time 2025-02-18 11:06:05 [2025-02-18 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502650', 'tblTempUsageDetail_20' ) start [2025-02-18 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502650', 'tblTempUsageDetail_20' ) end [2025-02-18 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502650', 'tblTempVendorCDR_20' ) start [2025-02-18 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502650', 'tblTempVendorCDR_20' ) end [2025-02-18 11:06:20] Production.INFO: ProcessCDR(1,14502650,1,1,2) [2025-02-18 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502650', 'tblTempUsageDetail_20' ) start [2025-02-18 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502650', 'tblTempUsageDetail_20' ) end [2025-02-18 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:06:26] Production.INFO: ==11331== Releasing lock... [2025-02-18 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:06:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:07:06 [end_date_ymd] => 2025-02-18 11:07:06 [RateCDR] => 1 ) [2025-02-18 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:07:06' and `end` < '2025-02-18 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:07:19] Production.INFO: count ==4491 [2025-02-18 11:07:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:07:06 - End Time 2025-02-18 11:07:06 [2025-02-18 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502655', 'tblTempUsageDetail_20' ) start [2025-02-18 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502655', 'tblTempUsageDetail_20' ) end [2025-02-18 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502655', 'tblTempVendorCDR_20' ) start [2025-02-18 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502655', 'tblTempVendorCDR_20' ) end [2025-02-18 11:07:21] Production.INFO: ProcessCDR(1,14502655,1,1,2) [2025-02-18 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502655', 'tblTempUsageDetail_20' ) start [2025-02-18 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502655', 'tblTempUsageDetail_20' ) end [2025-02-18 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:07:26] Production.INFO: ==11409== Releasing lock... [2025-02-18 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:07:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-18 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:08:06 [end_date_ymd] => 2025-02-18 11:08:06 [RateCDR] => 1 ) [2025-02-18 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:08:06' and `end` < '2025-02-18 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:08:18] Production.INFO: count ==4515 [2025-02-18 11:08:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:08:06 - End Time 2025-02-18 11:08:06 [2025-02-18 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502660', 'tblTempUsageDetail_20' ) start [2025-02-18 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502660', 'tblTempUsageDetail_20' ) end [2025-02-18 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502660', 'tblTempVendorCDR_20' ) start [2025-02-18 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502660', 'tblTempVendorCDR_20' ) end [2025-02-18 11:08:21] Production.INFO: ProcessCDR(1,14502660,1,1,2) [2025-02-18 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502660', 'tblTempUsageDetail_20' ) start [2025-02-18 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502660', 'tblTempUsageDetail_20' ) end [2025-02-18 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:08:26] Production.INFO: ==11570== Releasing lock... [2025-02-18 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:08:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:09:06 [end_date_ymd] => 2025-02-18 11:09:06 [RateCDR] => 1 ) [2025-02-18 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:09:06' and `end` < '2025-02-18 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:09:19] Production.INFO: count ==4530 [2025-02-18 11:09:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:09:06 - End Time 2025-02-18 11:09:06 [2025-02-18 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502665', 'tblTempUsageDetail_20' ) start [2025-02-18 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502665', 'tblTempUsageDetail_20' ) end [2025-02-18 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502665', 'tblTempVendorCDR_20' ) start [2025-02-18 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502665', 'tblTempVendorCDR_20' ) end [2025-02-18 11:09:21] Production.INFO: ProcessCDR(1,14502665,1,1,2) [2025-02-18 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502665', 'tblTempUsageDetail_20' ) start [2025-02-18 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502665', 'tblTempUsageDetail_20' ) end [2025-02-18 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:09:26] Production.INFO: ==11648== Releasing lock... [2025-02-18 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:09:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:10:06 [end_date_ymd] => 2025-02-18 11:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:10:06' and `end` < '2025-02-18 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-18 11:10:19] Production.INFO: count ==4546 [2025-02-18 11:10:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:10:06 - End Time 2025-02-18 11:10:06 [2025-02-18 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502670', 'tblTempUsageDetail_20' ) start [2025-02-18 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502670', 'tblTempUsageDetail_20' ) end [2025-02-18 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502670', 'tblTempVendorCDR_20' ) start [2025-02-18 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502670', 'tblTempVendorCDR_20' ) end [2025-02-18 11:10:21] Production.INFO: ProcessCDR(1,14502670,1,1,2) [2025-02-18 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502670', 'tblTempUsageDetail_20' ) start [2025-02-18 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502670', 'tblTempUsageDetail_20' ) end [2025-02-18 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:10:27] Production.INFO: ==11729== Releasing lock... [2025-02-18 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:10:27] Production.INFO: 62 MB #Memory Used# [2025-02-18 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:11:05 [end_date_ymd] => 2025-02-18 11:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:11:05' and `end` < '2025-02-18 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-18 11:11:18] Production.INFO: count ==4627 [2025-02-18 11:11:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:11:05 - End Time 2025-02-18 11:11:05 [2025-02-18 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502676', 'tblTempUsageDetail_20' ) start [2025-02-18 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502676', 'tblTempUsageDetail_20' ) end [2025-02-18 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502676', 'tblTempVendorCDR_20' ) start [2025-02-18 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502676', 'tblTempVendorCDR_20' ) end [2025-02-18 11:11:21] Production.INFO: ProcessCDR(1,14502676,1,1,2) [2025-02-18 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502676', 'tblTempUsageDetail_20' ) start [2025-02-18 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502676', 'tblTempUsageDetail_20' ) end [2025-02-18 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:11:26] Production.INFO: ==11811== Releasing lock... [2025-02-18 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:11:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-18 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:12:05 [end_date_ymd] => 2025-02-18 11:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:12:05' and `end` < '2025-02-18 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-18 11:12:18] Production.INFO: count ==4643 [2025-02-18 11:12:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:12:05 - End Time 2025-02-18 11:12:05 [2025-02-18 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502681', 'tblTempUsageDetail_20' ) start [2025-02-18 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502681', 'tblTempUsageDetail_20' ) end [2025-02-18 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502681', 'tblTempVendorCDR_20' ) start [2025-02-18 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502681', 'tblTempVendorCDR_20' ) end [2025-02-18 11:12:20] Production.INFO: ProcessCDR(1,14502681,1,1,2) [2025-02-18 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502681', 'tblTempUsageDetail_20' ) start [2025-02-18 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502681', 'tblTempUsageDetail_20' ) end [2025-02-18 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:12:26] Production.INFO: ==11970== Releasing lock... [2025-02-18 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-18 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:13:06 [end_date_ymd] => 2025-02-18 11:13:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:13:06' and `end` < '2025-02-18 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-18 11:13:19] Production.INFO: count ==4666 [2025-02-18 11:13:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:13:06 - End Time 2025-02-18 11:13:06 [2025-02-18 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502686', 'tblTempUsageDetail_20' ) start [2025-02-18 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502686', 'tblTempUsageDetail_20' ) end [2025-02-18 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502686', 'tblTempVendorCDR_20' ) start [2025-02-18 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502686', 'tblTempVendorCDR_20' ) end [2025-02-18 11:13:21] Production.INFO: ProcessCDR(1,14502686,1,1,2) [2025-02-18 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502686', 'tblTempUsageDetail_20' ) start [2025-02-18 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502686', 'tblTempUsageDetail_20' ) end [2025-02-18 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:13:26] Production.INFO: ==12049== Releasing lock... [2025-02-18 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:13:26] Production.INFO: 63 MB #Memory Used# [2025-02-18 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:14:06 [end_date_ymd] => 2025-02-18 11:14:06 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:14:06' and `end` < '2025-02-18 11: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-18 11:14:18] Production.INFO: count ==4664 [2025-02-18 11:14:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:14:06 - End Time 2025-02-18 11:14:06 [2025-02-18 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502691', 'tblTempUsageDetail_20' ) start [2025-02-18 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502691', 'tblTempUsageDetail_20' ) end [2025-02-18 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502691', 'tblTempVendorCDR_20' ) start [2025-02-18 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502691', 'tblTempVendorCDR_20' ) end [2025-02-18 11:14:21] Production.INFO: ProcessCDR(1,14502691,1,1,2) [2025-02-18 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502691', 'tblTempUsageDetail_20' ) start [2025-02-18 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502691', 'tblTempUsageDetail_20' ) end [2025-02-18 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:14:26] Production.INFO: ==12129== Releasing lock... [2025-02-18 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:14:26] Production.INFO: 63 MB #Memory Used# [2025-02-18 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:15:05 [end_date_ymd] => 2025-02-18 11:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:15:05' and `end` < '2025-02-18 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-18 11:15:18] Production.INFO: count ==4675 [2025-02-18 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:15:05 - End Time 2025-02-18 11:15:05 [2025-02-18 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502696', 'tblTempUsageDetail_20' ) start [2025-02-18 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502696', 'tblTempUsageDetail_20' ) end [2025-02-18 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502696', 'tblTempVendorCDR_20' ) start [2025-02-18 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502696', 'tblTempVendorCDR_20' ) end [2025-02-18 11:15:20] Production.INFO: ProcessCDR(1,14502696,1,1,2) [2025-02-18 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502696', 'tblTempUsageDetail_20' ) start [2025-02-18 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502696', 'tblTempUsageDetail_20' ) end [2025-02-18 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:15:26] Production.INFO: ==12287== Releasing lock... [2025-02-18 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:15:26] Production.INFO: 63 MB #Memory Used# [2025-02-18 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:16:06 [end_date_ymd] => 2025-02-18 11:16:06 [RateCDR] => 1 ) [2025-02-18 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:16:06' and `end` < '2025-02-18 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:16:18] Production.INFO: count ==4665 [2025-02-18 11:16:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:16:06 - End Time 2025-02-18 11:16:06 [2025-02-18 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502701', 'tblTempUsageDetail_20' ) start [2025-02-18 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502701', 'tblTempUsageDetail_20' ) end [2025-02-18 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502701', 'tblTempVendorCDR_20' ) start [2025-02-18 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502701', 'tblTempVendorCDR_20' ) end [2025-02-18 11:16:21] Production.INFO: ProcessCDR(1,14502701,1,1,2) [2025-02-18 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502701', 'tblTempUsageDetail_20' ) start [2025-02-18 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502701', 'tblTempUsageDetail_20' ) end [2025-02-18 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:16:26] Production.INFO: ==12407== Releasing lock... [2025-02-18 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:16:26] Production.INFO: 63 MB #Memory Used# [2025-02-18 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:17:06 [end_date_ymd] => 2025-02-18 11:17:06 [RateCDR] => 1 ) [2025-02-18 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:17:06' and `end` < '2025-02-18 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:17:19] Production.INFO: count ==4679 [2025-02-18 11:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:17:06 - End Time 2025-02-18 11:17:06 [2025-02-18 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502706', 'tblTempUsageDetail_20' ) start [2025-02-18 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502706', 'tblTempUsageDetail_20' ) end [2025-02-18 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502706', 'tblTempVendorCDR_20' ) start [2025-02-18 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502706', 'tblTempVendorCDR_20' ) end [2025-02-18 11:17:21] Production.INFO: ProcessCDR(1,14502706,1,1,2) [2025-02-18 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502706', 'tblTempUsageDetail_20' ) start [2025-02-18 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502706', 'tblTempUsageDetail_20' ) end [2025-02-18 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:17:26] Production.INFO: ==12488== Releasing lock... [2025-02-18 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:17:26] Production.INFO: 63 MB #Memory Used# [2025-02-18 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:18:06 [end_date_ymd] => 2025-02-18 11:18:06 [RateCDR] => 1 ) [2025-02-18 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:18:06' and `end` < '2025-02-18 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:18:19] Production.INFO: count ==4696 [2025-02-18 11:18:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:18:06 - End Time 2025-02-18 11:18:06 [2025-02-18 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502711', 'tblTempUsageDetail_20' ) start [2025-02-18 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502711', 'tblTempUsageDetail_20' ) end [2025-02-18 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502711', 'tblTempVendorCDR_20' ) start [2025-02-18 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502711', 'tblTempVendorCDR_20' ) end [2025-02-18 11:18:21] Production.INFO: ProcessCDR(1,14502711,1,1,2) [2025-02-18 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502711', 'tblTempUsageDetail_20' ) start [2025-02-18 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502711', 'tblTempUsageDetail_20' ) end [2025-02-18 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:18:27] Production.INFO: ==12570== Releasing lock... [2025-02-18 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:18:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:19:06 [end_date_ymd] => 2025-02-18 11:19:06 [RateCDR] => 1 ) [2025-02-18 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:19:06' and `end` < '2025-02-18 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:19:19] Production.INFO: count ==4705 [2025-02-18 11:19:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:19:06 - End Time 2025-02-18 11:19:06 [2025-02-18 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502716', 'tblTempUsageDetail_20' ) start [2025-02-18 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502716', 'tblTempUsageDetail_20' ) end [2025-02-18 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502716', 'tblTempVendorCDR_20' ) start [2025-02-18 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502716', 'tblTempVendorCDR_20' ) end [2025-02-18 11:19:22] Production.INFO: ProcessCDR(1,14502716,1,1,2) [2025-02-18 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502716', 'tblTempUsageDetail_20' ) start [2025-02-18 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502716', 'tblTempUsageDetail_20' ) end [2025-02-18 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:19:27] Production.INFO: ==12648== Releasing lock... [2025-02-18 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:19:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:20:06 [end_date_ymd] => 2025-02-18 11:20:06 [RateCDR] => 1 ) [2025-02-18 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:20:06' and `end` < '2025-02-18 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:20:19] Production.INFO: count ==4700 [2025-02-18 11:20:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:20:06 - End Time 2025-02-18 11:20:06 [2025-02-18 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502722', 'tblTempUsageDetail_20' ) start [2025-02-18 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502722', 'tblTempUsageDetail_20' ) end [2025-02-18 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502722', 'tblTempVendorCDR_20' ) start [2025-02-18 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502722', 'tblTempVendorCDR_20' ) end [2025-02-18 11:20:21] Production.INFO: ProcessCDR(1,14502722,1,1,2) [2025-02-18 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502722', 'tblTempUsageDetail_20' ) start [2025-02-18 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502722', 'tblTempUsageDetail_20' ) end [2025-02-18 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:20:27] Production.INFO: ==12730== Releasing lock... [2025-02-18 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:20:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:21:06 [end_date_ymd] => 2025-02-18 11:21:06 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:21:06' and `end` < '2025-02-18 11: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-18 11:21:19] Production.INFO: count ==4756 [2025-02-18 11:21:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:21:06 - End Time 2025-02-18 11:21:06 [2025-02-18 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502727', 'tblTempUsageDetail_20' ) start [2025-02-18 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502727', 'tblTempUsageDetail_20' ) end [2025-02-18 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502727', 'tblTempVendorCDR_20' ) start [2025-02-18 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502727', 'tblTempVendorCDR_20' ) end [2025-02-18 11:21:21] Production.INFO: ProcessCDR(1,14502727,1,1,2) [2025-02-18 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502727', 'tblTempUsageDetail_20' ) start [2025-02-18 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502727', 'tblTempUsageDetail_20' ) end [2025-02-18 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:21:27] Production.INFO: ==12809== Releasing lock... [2025-02-18 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:21:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-18 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:22:06 [end_date_ymd] => 2025-02-18 11:22:06 [RateCDR] => 1 ) [2025-02-18 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:22:06' and `end` < '2025-02-18 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:22:18] Production.INFO: count ==4749 [2025-02-18 11:22:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:22:06 - End Time 2025-02-18 11:22:06 [2025-02-18 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502732', 'tblTempUsageDetail_20' ) start [2025-02-18 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502732', 'tblTempUsageDetail_20' ) end [2025-02-18 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502732', 'tblTempVendorCDR_20' ) start [2025-02-18 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502732', 'tblTempVendorCDR_20' ) end [2025-02-18 11:22:21] Production.INFO: ProcessCDR(1,14502732,1,1,2) [2025-02-18 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502732', 'tblTempUsageDetail_20' ) start [2025-02-18 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502732', 'tblTempUsageDetail_20' ) end [2025-02-18 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:22:26] Production.INFO: ==12888== Releasing lock... [2025-02-18 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:22:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-18 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:23:06 [end_date_ymd] => 2025-02-18 11:23:06 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:23:06' and `end` < '2025-02-18 11: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-18 11:23:18] Production.INFO: count ==4747 [2025-02-18 11:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:23:06 - End Time 2025-02-18 11:23:06 [2025-02-18 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502737', 'tblTempUsageDetail_20' ) start [2025-02-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502737', 'tblTempUsageDetail_20' ) end [2025-02-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502737', 'tblTempVendorCDR_20' ) start [2025-02-18 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502737', 'tblTempVendorCDR_20' ) end [2025-02-18 11:23:21] Production.INFO: ProcessCDR(1,14502737,1,1,2) [2025-02-18 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502737', 'tblTempUsageDetail_20' ) start [2025-02-18 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502737', 'tblTempUsageDetail_20' ) end [2025-02-18 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:23:26] Production.INFO: ==12972== Releasing lock... [2025-02-18 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:23:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-18 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:24:06 [end_date_ymd] => 2025-02-18 11:24:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:24:06' and `end` < '2025-02-18 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-18 11:24:18] Production.INFO: count ==4755 [2025-02-18 11:24:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:24:06 - End Time 2025-02-18 11:24:06 [2025-02-18 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502742', 'tblTempUsageDetail_20' ) start [2025-02-18 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502742', 'tblTempUsageDetail_20' ) end [2025-02-18 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502742', 'tblTempVendorCDR_20' ) start [2025-02-18 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502742', 'tblTempVendorCDR_20' ) end [2025-02-18 11:24:21] Production.INFO: ProcessCDR(1,14502742,1,1,2) [2025-02-18 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502742', 'tblTempUsageDetail_20' ) start [2025-02-18 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502742', 'tblTempUsageDetail_20' ) end [2025-02-18 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:24:27] Production.INFO: ==13053== Releasing lock... [2025-02-18 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:24:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-18 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:25:06 [end_date_ymd] => 2025-02-18 11:25:06 [RateCDR] => 1 ) [2025-02-18 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:25:06' and `end` < '2025-02-18 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:25:19] Production.INFO: count ==4785 [2025-02-18 11:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:25:06 - End Time 2025-02-18 11:25:06 [2025-02-18 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502747', 'tblTempUsageDetail_20' ) start [2025-02-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502747', 'tblTempUsageDetail_20' ) end [2025-02-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502747', 'tblTempVendorCDR_20' ) start [2025-02-18 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502747', 'tblTempVendorCDR_20' ) end [2025-02-18 11:25:21] Production.INFO: ProcessCDR(1,14502747,1,1,2) [2025-02-18 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502747', 'tblTempUsageDetail_20' ) start [2025-02-18 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502747', 'tblTempUsageDetail_20' ) end [2025-02-18 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:25:27] Production.INFO: ==13131== Releasing lock... [2025-02-18 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:25:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-18 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:26:05 [end_date_ymd] => 2025-02-18 11:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:26:05' and `end` < '2025-02-18 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-18 11:26:18] Production.INFO: count ==4814 [2025-02-18 11:26:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:26:05 - End Time 2025-02-18 11:26:05 [2025-02-18 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502752', 'tblTempUsageDetail_20' ) start [2025-02-18 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502752', 'tblTempUsageDetail_20' ) end [2025-02-18 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502752', 'tblTempVendorCDR_20' ) start [2025-02-18 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502752', 'tblTempVendorCDR_20' ) end [2025-02-18 11:26:21] Production.INFO: ProcessCDR(1,14502752,1,1,2) [2025-02-18 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502752', 'tblTempUsageDetail_20' ) start [2025-02-18 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502752', 'tblTempUsageDetail_20' ) end [2025-02-18 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:26:27] Production.INFO: ==13207== Releasing lock... [2025-02-18 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:26:27] Production.INFO: 64 MB #Memory Used# [2025-02-18 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:27:06 [end_date_ymd] => 2025-02-18 11:27:06 [RateCDR] => 1 ) [2025-02-18 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:27:06' and `end` < '2025-02-18 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:27:19] Production.INFO: count ==4817 [2025-02-18 11:27:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:27:06 - End Time 2025-02-18 11:27:06 [2025-02-18 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502757', 'tblTempUsageDetail_20' ) start [2025-02-18 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502757', 'tblTempUsageDetail_20' ) end [2025-02-18 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502757', 'tblTempVendorCDR_20' ) start [2025-02-18 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502757', 'tblTempVendorCDR_20' ) end [2025-02-18 11:27:21] Production.INFO: ProcessCDR(1,14502757,1,1,2) [2025-02-18 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502757', 'tblTempUsageDetail_20' ) start [2025-02-18 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502757', 'tblTempUsageDetail_20' ) end [2025-02-18 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:27:27] Production.INFO: ==13288== Releasing lock... [2025-02-18 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:27:27] Production.INFO: 64 MB #Memory Used# [2025-02-18 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:28:05 [end_date_ymd] => 2025-02-18 11:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:28:05' and `end` < '2025-02-18 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-18 11:28:18] Production.INFO: count ==4844 [2025-02-18 11:28:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:28:05 - End Time 2025-02-18 11:28:05 [2025-02-18 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502762', 'tblTempUsageDetail_20' ) start [2025-02-18 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502762', 'tblTempUsageDetail_20' ) end [2025-02-18 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502762', 'tblTempVendorCDR_20' ) start [2025-02-18 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502762', 'tblTempVendorCDR_20' ) end [2025-02-18 11:28:21] Production.INFO: ProcessCDR(1,14502762,1,1,2) [2025-02-18 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502762', 'tblTempUsageDetail_20' ) start [2025-02-18 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502762', 'tblTempUsageDetail_20' ) end [2025-02-18 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:28:27] Production.INFO: ==13366== Releasing lock... [2025-02-18 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:28:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-18 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:29:05 [end_date_ymd] => 2025-02-18 11:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:29:05' and `end` < '2025-02-18 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-18 11:29:18] Production.INFO: count ==4863 [2025-02-18 11:29:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:29:05 - End Time 2025-02-18 11:29:05 [2025-02-18 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502767', 'tblTempUsageDetail_20' ) start [2025-02-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502767', 'tblTempUsageDetail_20' ) end [2025-02-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502767', 'tblTempVendorCDR_20' ) start [2025-02-18 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502767', 'tblTempVendorCDR_20' ) end [2025-02-18 11:29:21] Production.INFO: ProcessCDR(1,14502767,1,1,2) [2025-02-18 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502767', 'tblTempUsageDetail_20' ) start [2025-02-18 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502767', 'tblTempUsageDetail_20' ) end [2025-02-18 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:29:27] Production.INFO: ==13444== Releasing lock... [2025-02-18 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:29:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-18 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:30:06 [end_date_ymd] => 2025-02-18 11:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:30:06' and `end` < '2025-02-18 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-18 11:30:19] Production.INFO: count ==4877 [2025-02-18 11:30:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:30:06 - End Time 2025-02-18 11:30:06 [2025-02-18 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502773', 'tblTempUsageDetail_20' ) start [2025-02-18 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502773', 'tblTempUsageDetail_20' ) end [2025-02-18 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502773', 'tblTempVendorCDR_20' ) start [2025-02-18 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502773', 'tblTempVendorCDR_20' ) end [2025-02-18 11:30:21] Production.INFO: ProcessCDR(1,14502773,1,1,2) [2025-02-18 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502773', 'tblTempUsageDetail_20' ) start [2025-02-18 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502773', 'tblTempUsageDetail_20' ) end [2025-02-18 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:30:27] Production.INFO: ==13522== Releasing lock... [2025-02-18 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:30:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-18 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:31:06 [end_date_ymd] => 2025-02-18 11:31:06 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:31:06' and `end` < '2025-02-18 11: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-18 11:31:19] Production.INFO: count ==4991 [2025-02-18 11:31:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:31:06 - End Time 2025-02-18 11:31:06 [2025-02-18 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502778', 'tblTempUsageDetail_20' ) start [2025-02-18 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502778', 'tblTempUsageDetail_20' ) end [2025-02-18 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502778', 'tblTempVendorCDR_20' ) start [2025-02-18 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502778', 'tblTempVendorCDR_20' ) end [2025-02-18 11:31:21] Production.INFO: ProcessCDR(1,14502778,1,1,2) [2025-02-18 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502778', 'tblTempUsageDetail_20' ) start [2025-02-18 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502778', 'tblTempUsageDetail_20' ) end [2025-02-18 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:31:27] Production.INFO: ==13637== Releasing lock... [2025-02-18 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:31:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-18 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:32:05 [end_date_ymd] => 2025-02-18 11:32:05 [RateCDR] => 1 ) [2025-02-18 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:32:05' and `end` < '2025-02-18 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-18 11:32:18] Production.INFO: count ==4998 [2025-02-18 11:32:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:32:05 - End Time 2025-02-18 11:32:05 [2025-02-18 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502783', 'tblTempUsageDetail_20' ) start [2025-02-18 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502783', 'tblTempUsageDetail_20' ) end [2025-02-18 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502783', 'tblTempVendorCDR_20' ) start [2025-02-18 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502783', 'tblTempVendorCDR_20' ) end [2025-02-18 11:32:21] Production.INFO: ProcessCDR(1,14502783,1,1,2) [2025-02-18 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502783', 'tblTempUsageDetail_20' ) start [2025-02-18 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502783', 'tblTempUsageDetail_20' ) end [2025-02-18 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:32:27] Production.INFO: ==13710== Releasing lock... [2025-02-18 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:32:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-18 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:33:06 [end_date_ymd] => 2025-02-18 11:33:06 [RateCDR] => 1 ) [2025-02-18 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:33:06' and `end` < '2025-02-18 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:33:18] Production.INFO: count ==5025 [2025-02-18 11:33:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:33:06 - End Time 2025-02-18 11:33:06 [2025-02-18 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502788', 'tblTempUsageDetail_20' ) start [2025-02-18 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502788', 'tblTempUsageDetail_20' ) end [2025-02-18 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502788', 'tblTempVendorCDR_20' ) start [2025-02-18 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502788', 'tblTempVendorCDR_20' ) end [2025-02-18 11:33:21] Production.INFO: ProcessCDR(1,14502788,1,1,2) [2025-02-18 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502788', 'tblTempUsageDetail_20' ) start [2025-02-18 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502788', 'tblTempUsageDetail_20' ) end [2025-02-18 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:33:27] Production.INFO: ==13780== Releasing lock... [2025-02-18 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:33:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-18 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:34:05 [end_date_ymd] => 2025-02-18 11:34:05 [RateCDR] => 1 ) [2025-02-18 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:34:05' and `end` < '2025-02-18 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:34:18] Production.INFO: count ==5022 [2025-02-18 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:34:05 - End Time 2025-02-18 11:34:05 [2025-02-18 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502793', 'tblTempUsageDetail_20' ) start [2025-02-18 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502793', 'tblTempUsageDetail_20' ) end [2025-02-18 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502793', 'tblTempVendorCDR_20' ) start [2025-02-18 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502793', 'tblTempVendorCDR_20' ) end [2025-02-18 11:34:21] Production.INFO: ProcessCDR(1,14502793,1,1,2) [2025-02-18 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502793', 'tblTempUsageDetail_20' ) start [2025-02-18 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502793', 'tblTempUsageDetail_20' ) end [2025-02-18 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:34:26] Production.INFO: ==13858== Releasing lock... [2025-02-18 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:34:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-18 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:35:06 [end_date_ymd] => 2025-02-18 11:35:06 [RateCDR] => 1 ) [2025-02-18 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:35:06' and `end` < '2025-02-18 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:35:19] Production.INFO: count ==5039 [2025-02-18 11:35:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:35:06 - End Time 2025-02-18 11:35:06 [2025-02-18 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502798', 'tblTempUsageDetail_20' ) start [2025-02-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502798', 'tblTempUsageDetail_20' ) end [2025-02-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502798', 'tblTempVendorCDR_20' ) start [2025-02-18 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502798', 'tblTempVendorCDR_20' ) end [2025-02-18 11:35:21] Production.INFO: ProcessCDR(1,14502798,1,1,2) [2025-02-18 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502798', 'tblTempUsageDetail_20' ) start [2025-02-18 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502798', 'tblTempUsageDetail_20' ) end [2025-02-18 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:35:27] Production.INFO: ==13956== Releasing lock... [2025-02-18 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:35:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:36:06 [end_date_ymd] => 2025-02-18 11:36:06 [RateCDR] => 1 ) [2025-02-18 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:36:06' and `end` < '2025-02-18 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:36:18] Production.INFO: count ==5036 [2025-02-18 11:36:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:36:06 - End Time 2025-02-18 11:36:06 [2025-02-18 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502803', 'tblTempUsageDetail_20' ) start [2025-02-18 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502803', 'tblTempUsageDetail_20' ) end [2025-02-18 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502803', 'tblTempVendorCDR_20' ) start [2025-02-18 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502803', 'tblTempVendorCDR_20' ) end [2025-02-18 11:36:21] Production.INFO: ProcessCDR(1,14502803,1,1,2) [2025-02-18 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502803', 'tblTempUsageDetail_20' ) start [2025-02-18 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502803', 'tblTempUsageDetail_20' ) end [2025-02-18 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:36:26] Production.INFO: ==14030== Releasing lock... [2025-02-18 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:36:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:37:05 [end_date_ymd] => 2025-02-18 11:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:37:05' and `end` < '2025-02-18 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-18 11:37:18] Production.INFO: count ==5035 [2025-02-18 11:37:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:37:05 - End Time 2025-02-18 11:37:05 [2025-02-18 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502808', 'tblTempUsageDetail_20' ) start [2025-02-18 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502808', 'tblTempUsageDetail_20' ) end [2025-02-18 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502808', 'tblTempVendorCDR_20' ) start [2025-02-18 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502808', 'tblTempVendorCDR_20' ) end [2025-02-18 11:37:20] Production.INFO: ProcessCDR(1,14502808,1,1,2) [2025-02-18 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502808', 'tblTempUsageDetail_20' ) start [2025-02-18 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502808', 'tblTempUsageDetail_20' ) end [2025-02-18 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:37:26] Production.INFO: ==14106== Releasing lock... [2025-02-18 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:37:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:38:05 [end_date_ymd] => 2025-02-18 11:38:05 [RateCDR] => 1 ) [2025-02-18 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:38:05' and `end` < '2025-02-18 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:38:18] Production.INFO: count ==5045 [2025-02-18 11:38:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:38:05 - End Time 2025-02-18 11:38:05 [2025-02-18 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502809', 'tblTempUsageDetail_20' ) start [2025-02-18 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502809', 'tblTempUsageDetail_20' ) end [2025-02-18 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502809', 'tblTempVendorCDR_20' ) start [2025-02-18 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502809', 'tblTempVendorCDR_20' ) end [2025-02-18 11:38:21] Production.INFO: ProcessCDR(1,14502809,1,1,2) [2025-02-18 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502809', 'tblTempUsageDetail_20' ) start [2025-02-18 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502809', 'tblTempUsageDetail_20' ) end [2025-02-18 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:38:27] Production.INFO: ==14179== Releasing lock... [2025-02-18 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:38:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:39:05 [end_date_ymd] => 2025-02-18 11:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:39:05' and `end` < '2025-02-18 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-18 11:39:18] Production.INFO: count ==5040 [2025-02-18 11:39:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:39:05 - End Time 2025-02-18 11:39:05 [2025-02-18 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502818', 'tblTempUsageDetail_20' ) start [2025-02-18 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502818', 'tblTempUsageDetail_20' ) end [2025-02-18 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502818', 'tblTempVendorCDR_20' ) start [2025-02-18 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502818', 'tblTempVendorCDR_20' ) end [2025-02-18 11:39:21] Production.INFO: ProcessCDR(1,14502818,1,1,2) [2025-02-18 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502818', 'tblTempUsageDetail_20' ) start [2025-02-18 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502818', 'tblTempUsageDetail_20' ) end [2025-02-18 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:39:26] Production.INFO: ==14251== Releasing lock... [2025-02-18 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:39:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:40:06 [end_date_ymd] => 2025-02-18 11:40:06 [RateCDR] => 1 ) [2025-02-18 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:40:06' and `end` < '2025-02-18 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:40:19] Production.INFO: count ==5032 [2025-02-18 11:40:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:40:06 - End Time 2025-02-18 11:40:06 [2025-02-18 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502824', 'tblTempUsageDetail_20' ) start [2025-02-18 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502824', 'tblTempUsageDetail_20' ) end [2025-02-18 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502824', 'tblTempVendorCDR_20' ) start [2025-02-18 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502824', 'tblTempVendorCDR_20' ) end [2025-02-18 11:40:22] Production.INFO: ProcessCDR(1,14502824,1,1,2) [2025-02-18 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502824', 'tblTempUsageDetail_20' ) start [2025-02-18 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502824', 'tblTempUsageDetail_20' ) end [2025-02-18 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:40:27] Production.INFO: ==14325== Releasing lock... [2025-02-18 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:40:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:41:05 [end_date_ymd] => 2025-02-18 11:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:41:05' and `end` < '2025-02-18 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-18 11:41:18] Production.INFO: count ==5092 [2025-02-18 11:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:41:05 - End Time 2025-02-18 11:41:05 [2025-02-18 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502829', 'tblTempUsageDetail_20' ) start [2025-02-18 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502829', 'tblTempUsageDetail_20' ) end [2025-02-18 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502829', 'tblTempVendorCDR_20' ) start [2025-02-18 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502829', 'tblTempVendorCDR_20' ) end [2025-02-18 11:41:21] Production.INFO: ProcessCDR(1,14502829,1,1,2) [2025-02-18 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502829', 'tblTempUsageDetail_20' ) start [2025-02-18 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502829', 'tblTempUsageDetail_20' ) end [2025-02-18 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:41:26] Production.INFO: ==14400== Releasing lock... [2025-02-18 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:41:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:42:06 [end_date_ymd] => 2025-02-18 11:42:06 [RateCDR] => 1 ) [2025-02-18 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-18 08:42:06' and `end` < '2025-02-18 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-18 11:42:18] Production.INFO: count ==5099 [2025-02-18 11:42:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:42:06 - End Time 2025-02-18 11:42:06 [2025-02-18 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502834', 'tblTempUsageDetail_20' ) start [2025-02-18 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502834', 'tblTempUsageDetail_20' ) end [2025-02-18 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502834', 'tblTempVendorCDR_20' ) start [2025-02-18 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502834', 'tblTempVendorCDR_20' ) end [2025-02-18 11:42:21] Production.INFO: ProcessCDR(1,14502834,1,1,2) [2025-02-18 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502834', 'tblTempUsageDetail_20' ) start [2025-02-18 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502834', 'tblTempUsageDetail_20' ) end [2025-02-18 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:42:26] Production.INFO: ==14479== Releasing lock... [2025-02-18 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:42:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:43:05 [end_date_ymd] => 2025-02-18 11:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:43:05' and `end` < '2025-02-18 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-18 11:43:18] Production.INFO: count ==5106 [2025-02-18 11:43:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:43:05 - End Time 2025-02-18 11:43:05 [2025-02-18 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502839', 'tblTempUsageDetail_20' ) start [2025-02-18 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502839', 'tblTempUsageDetail_20' ) end [2025-02-18 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502839', 'tblTempVendorCDR_20' ) start [2025-02-18 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502839', 'tblTempVendorCDR_20' ) end [2025-02-18 11:43:20] Production.INFO: ProcessCDR(1,14502839,1,1,2) [2025-02-18 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502839', 'tblTempUsageDetail_20' ) start [2025-02-18 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502839', 'tblTempUsageDetail_20' ) end [2025-02-18 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:43:25] Production.INFO: ==14548== Releasing lock... [2025-02-18 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:43:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:44:06 [end_date_ymd] => 2025-02-18 11:44:06 [RateCDR] => 1 ) [2025-02-18 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:44:06' and `end` < '2025-02-18 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:44:19] Production.INFO: count ==5084 [2025-02-18 11:44:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:44:06 - End Time 2025-02-18 11:44:06 [2025-02-18 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502844', 'tblTempUsageDetail_20' ) start [2025-02-18 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502844', 'tblTempUsageDetail_20' ) end [2025-02-18 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502844', 'tblTempVendorCDR_20' ) start [2025-02-18 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502844', 'tblTempVendorCDR_20' ) end [2025-02-18 11:44:21] Production.INFO: ProcessCDR(1,14502844,1,1,2) [2025-02-18 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502844', 'tblTempUsageDetail_20' ) start [2025-02-18 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502844', 'tblTempUsageDetail_20' ) end [2025-02-18 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:44:27] Production.INFO: ==14623== Releasing lock... [2025-02-18 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:44:27] Production.INFO: 66 MB #Memory Used# [2025-02-18 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:45:05 [end_date_ymd] => 2025-02-18 11:45:05 [RateCDR] => 1 ) [2025-02-18 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:45:05' and `end` < '2025-02-18 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:45:18] Production.INFO: count ==5095 [2025-02-18 11:45:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:45:05 - End Time 2025-02-18 11:45:05 [2025-02-18 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502849', 'tblTempUsageDetail_20' ) start [2025-02-18 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502849', 'tblTempUsageDetail_20' ) end [2025-02-18 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502849', 'tblTempVendorCDR_20' ) start [2025-02-18 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502849', 'tblTempVendorCDR_20' ) end [2025-02-18 11:45:21] Production.INFO: ProcessCDR(1,14502849,1,1,2) [2025-02-18 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502849', 'tblTempUsageDetail_20' ) start [2025-02-18 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502849', 'tblTempUsageDetail_20' ) end [2025-02-18 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:45:26] Production.INFO: ==14697== Releasing lock... [2025-02-18 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:45:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:46:05 [end_date_ymd] => 2025-02-18 11:46:05 [RateCDR] => 1 ) [2025-02-18 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:46:05' and `end` < '2025-02-18 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:46:18] Production.INFO: count ==5097 [2025-02-18 11:46:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:46:05 - End Time 2025-02-18 11:46:05 [2025-02-18 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502854', 'tblTempUsageDetail_20' ) start [2025-02-18 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502854', 'tblTempUsageDetail_20' ) end [2025-02-18 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502854', 'tblTempVendorCDR_20' ) start [2025-02-18 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502854', 'tblTempVendorCDR_20' ) end [2025-02-18 11:46:21] Production.INFO: ProcessCDR(1,14502854,1,1,2) [2025-02-18 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502854', 'tblTempUsageDetail_20' ) start [2025-02-18 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502854', 'tblTempUsageDetail_20' ) end [2025-02-18 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:46:26] Production.INFO: ==14770== Releasing lock... [2025-02-18 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:46:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:47:05 [end_date_ymd] => 2025-02-18 11:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:47:05' and `end` < '2025-02-18 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-18 11:47:17] Production.INFO: count ==5107 [2025-02-18 11:47:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:47:05 - End Time 2025-02-18 11:47:05 [2025-02-18 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502859', 'tblTempUsageDetail_20' ) start [2025-02-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502859', 'tblTempUsageDetail_20' ) end [2025-02-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502859', 'tblTempVendorCDR_20' ) start [2025-02-18 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502859', 'tblTempVendorCDR_20' ) end [2025-02-18 11:47:20] Production.INFO: ProcessCDR(1,14502859,1,1,2) [2025-02-18 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502859', 'tblTempUsageDetail_20' ) start [2025-02-18 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502859', 'tblTempUsageDetail_20' ) end [2025-02-18 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:47:25] Production.INFO: ==14882== Releasing lock... [2025-02-18 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:47:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:48:05 [end_date_ymd] => 2025-02-18 11:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:48:05' and `end` < '2025-02-18 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-18 11:48:18] Production.INFO: count ==5139 [2025-02-18 11:48:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:48:05 - End Time 2025-02-18 11:48:05 [2025-02-18 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502864', 'tblTempUsageDetail_20' ) start [2025-02-18 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502864', 'tblTempUsageDetail_20' ) end [2025-02-18 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502864', 'tblTempVendorCDR_20' ) start [2025-02-18 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502864', 'tblTempVendorCDR_20' ) end [2025-02-18 11:48:21] Production.INFO: ProcessCDR(1,14502864,1,1,2) [2025-02-18 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502864', 'tblTempUsageDetail_20' ) start [2025-02-18 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502864', 'tblTempUsageDetail_20' ) end [2025-02-18 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:48:26] Production.INFO: ==14953== Releasing lock... [2025-02-18 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:48:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-18 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:49:06 [end_date_ymd] => 2025-02-18 11:49:06 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:49:06' and `end` < '2025-02-18 11: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-18 11:49:18] Production.INFO: count ==5151 [2025-02-18 11:49:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:49:06 - End Time 2025-02-18 11:49:06 [2025-02-18 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502869', 'tblTempUsageDetail_20' ) start [2025-02-18 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502869', 'tblTempUsageDetail_20' ) end [2025-02-18 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502869', 'tblTempVendorCDR_20' ) start [2025-02-18 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502869', 'tblTempVendorCDR_20' ) end [2025-02-18 11:49:21] Production.INFO: ProcessCDR(1,14502869,1,1,2) [2025-02-18 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502869', 'tblTempUsageDetail_20' ) start [2025-02-18 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502869', 'tblTempUsageDetail_20' ) end [2025-02-18 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:49:26] Production.INFO: ==15029== Releasing lock... [2025-02-18 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:49:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-18 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:50:07 [end_date_ymd] => 2025-02-18 11:50:07 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:50:07' and `end` < '2025-02-18 11: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-18 11:50:19] Production.INFO: count ==5169 [2025-02-18 11:50:22] Production.ERROR: pbx CDR StartTime 2025-02-18 08:50:07 - End Time 2025-02-18 11:50:07 [2025-02-18 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502874', 'tblTempUsageDetail_20' ) start [2025-02-18 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502874', 'tblTempUsageDetail_20' ) end [2025-02-18 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502874', 'tblTempVendorCDR_20' ) start [2025-02-18 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502874', 'tblTempVendorCDR_20' ) end [2025-02-18 11:50:22] Production.INFO: ProcessCDR(1,14502874,1,1,2) [2025-02-18 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502874', 'tblTempUsageDetail_20' ) start [2025-02-18 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502874', 'tblTempUsageDetail_20' ) end [2025-02-18 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:50:28] Production.INFO: ==15106== Releasing lock... [2025-02-18 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:50:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-18 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:51:05 [end_date_ymd] => 2025-02-18 11:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:51:05' and `end` < '2025-02-18 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-18 11:51:18] Production.INFO: count ==5258 [2025-02-18 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-18 08:51:05 - End Time 2025-02-18 11:51:05 [2025-02-18 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502880', 'tblTempUsageDetail_20' ) start [2025-02-18 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502880', 'tblTempUsageDetail_20' ) end [2025-02-18 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502880', 'tblTempVendorCDR_20' ) start [2025-02-18 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502880', 'tblTempVendorCDR_20' ) end [2025-02-18 11:51:21] Production.INFO: ProcessCDR(1,14502880,1,1,2) [2025-02-18 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502880', 'tblTempUsageDetail_20' ) start [2025-02-18 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502880', 'tblTempUsageDetail_20' ) end [2025-02-18 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:51:26] Production.INFO: ==15181== Releasing lock... [2025-02-18 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:51:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-18 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:52:06 [end_date_ymd] => 2025-02-18 11:52:06 [RateCDR] => 1 ) [2025-02-18 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:52:06' and `end` < '2025-02-18 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:52:19] Production.INFO: count ==5266 [2025-02-18 11:52:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:52:06 - End Time 2025-02-18 11:52:06 [2025-02-18 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502885', 'tblTempUsageDetail_20' ) start [2025-02-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502885', 'tblTempUsageDetail_20' ) end [2025-02-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502885', 'tblTempVendorCDR_20' ) start [2025-02-18 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502885', 'tblTempVendorCDR_20' ) end [2025-02-18 11:52:21] Production.INFO: ProcessCDR(1,14502885,1,1,2) [2025-02-18 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502885', 'tblTempUsageDetail_20' ) start [2025-02-18 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502885', 'tblTempUsageDetail_20' ) end [2025-02-18 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:52:27] Production.INFO: ==15258== Releasing lock... [2025-02-18 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:52:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-18 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:53:05 [end_date_ymd] => 2025-02-18 11:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:53:05' and `end` < '2025-02-18 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-18 11:53:18] Production.INFO: count ==5263 [2025-02-18 11:53:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:53:05 - End Time 2025-02-18 11:53:05 [2025-02-18 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502890', 'tblTempUsageDetail_20' ) start [2025-02-18 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502890', 'tblTempUsageDetail_20' ) end [2025-02-18 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502890', 'tblTempVendorCDR_20' ) start [2025-02-18 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502890', 'tblTempVendorCDR_20' ) end [2025-02-18 11:53:21] Production.INFO: ProcessCDR(1,14502890,1,1,2) [2025-02-18 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502890', 'tblTempUsageDetail_20' ) start [2025-02-18 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502890', 'tblTempUsageDetail_20' ) end [2025-02-18 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:53:27] Production.INFO: ==15331== Releasing lock... [2025-02-18 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:53:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-18 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:54:05 [end_date_ymd] => 2025-02-18 11:54:05 [RateCDR] => 1 ) [2025-02-18 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:54:05' and `end` < '2025-02-18 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:54:19] Production.INFO: count ==5269 [2025-02-18 11:54:22] Production.ERROR: pbx CDR StartTime 2025-02-18 08:54:05 - End Time 2025-02-18 11:54:05 [2025-02-18 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502895', 'tblTempUsageDetail_20' ) start [2025-02-18 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502895', 'tblTempUsageDetail_20' ) end [2025-02-18 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502895', 'tblTempVendorCDR_20' ) start [2025-02-18 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502895', 'tblTempVendorCDR_20' ) end [2025-02-18 11:54:22] Production.INFO: ProcessCDR(1,14502895,1,1,2) [2025-02-18 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502895', 'tblTempUsageDetail_20' ) start [2025-02-18 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502895', 'tblTempUsageDetail_20' ) end [2025-02-18 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:54:27] Production.INFO: ==15413== Releasing lock... [2025-02-18 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:54:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-18 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:55:05 [end_date_ymd] => 2025-02-18 11:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:55:05' and `end` < '2025-02-18 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-18 11:55:18] Production.INFO: count ==5301 [2025-02-18 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:55:05 - End Time 2025-02-18 11:55:05 [2025-02-18 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502900', 'tblTempUsageDetail_20' ) start [2025-02-18 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502900', 'tblTempUsageDetail_20' ) end [2025-02-18 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502900', 'tblTempVendorCDR_20' ) start [2025-02-18 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502900', 'tblTempVendorCDR_20' ) end [2025-02-18 11:55:21] Production.INFO: ProcessCDR(1,14502900,1,1,2) [2025-02-18 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502900', 'tblTempUsageDetail_20' ) start [2025-02-18 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502900', 'tblTempUsageDetail_20' ) end [2025-02-18 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:55:26] Production.INFO: ==15485== Releasing lock... [2025-02-18 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:55:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-18 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:56:06 [end_date_ymd] => 2025-02-18 11:56:06 [RateCDR] => 1 ) [2025-02-18 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 08:56:06' and `end` < '2025-02-18 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 11:56:19] Production.INFO: count ==5301 [2025-02-18 11:56:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:56:06 - End Time 2025-02-18 11:56:06 [2025-02-18 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502905', 'tblTempUsageDetail_20' ) start [2025-02-18 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502905', 'tblTempUsageDetail_20' ) end [2025-02-18 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502905', 'tblTempVendorCDR_20' ) start [2025-02-18 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502905', 'tblTempVendorCDR_20' ) end [2025-02-18 11:56:21] Production.INFO: ProcessCDR(1,14502905,1,1,2) [2025-02-18 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502905', 'tblTempUsageDetail_20' ) start [2025-02-18 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502905', 'tblTempUsageDetail_20' ) end [2025-02-18 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:56:27] Production.INFO: ==15562== Releasing lock... [2025-02-18 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:56:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-18 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:57:05 [end_date_ymd] => 2025-02-18 11:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:57:05' and `end` < '2025-02-18 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-18 11:57:18] Production.INFO: count ==5313 [2025-02-18 11:57:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:57:05 - End Time 2025-02-18 11:57:05 [2025-02-18 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502910', 'tblTempUsageDetail_20' ) start [2025-02-18 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502910', 'tblTempUsageDetail_20' ) end [2025-02-18 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502910', 'tblTempVendorCDR_20' ) start [2025-02-18 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502910', 'tblTempVendorCDR_20' ) end [2025-02-18 11:57:21] Production.INFO: ProcessCDR(1,14502910,1,1,2) [2025-02-18 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502910', 'tblTempUsageDetail_20' ) start [2025-02-18 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502910', 'tblTempUsageDetail_20' ) end [2025-02-18 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:57:26] Production.INFO: ==15633== Releasing lock... [2025-02-18 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:57:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-18 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:58:06 [end_date_ymd] => 2025-02-18 11:58:06 [RateCDR] => 1 ) [2025-02-18 11: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-18 08:58:06' and `end` < '2025-02-18 11: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-18 11:58:19] Production.INFO: count ==5335 [2025-02-18 11:58:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:58:06 - End Time 2025-02-18 11:58:06 [2025-02-18 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502915', 'tblTempUsageDetail_20' ) start [2025-02-18 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502915', 'tblTempUsageDetail_20' ) end [2025-02-18 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502915', 'tblTempVendorCDR_20' ) start [2025-02-18 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502915', 'tblTempVendorCDR_20' ) end [2025-02-18 11:58:21] Production.INFO: ProcessCDR(1,14502915,1,1,2) [2025-02-18 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502915', 'tblTempUsageDetail_20' ) start [2025-02-18 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502915', 'tblTempUsageDetail_20' ) end [2025-02-18 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:58:27] Production.INFO: ==15706== Releasing lock... [2025-02-18 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:58:27] Production.INFO: 68 MB #Memory Used# [2025-02-18 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 08:59:05 [end_date_ymd] => 2025-02-18 11:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 08:59:05' and `end` < '2025-02-18 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-18 11:59:18] Production.INFO: count ==5343 [2025-02-18 11:59:21] Production.ERROR: pbx CDR StartTime 2025-02-18 08:59:05 - End Time 2025-02-18 11:59:05 [2025-02-18 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502920', 'tblTempUsageDetail_20' ) start [2025-02-18 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502920', 'tblTempUsageDetail_20' ) end [2025-02-18 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502920', 'tblTempVendorCDR_20' ) start [2025-02-18 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502920', 'tblTempVendorCDR_20' ) end [2025-02-18 11:59:21] Production.INFO: ProcessCDR(1,14502920,1,1,2) [2025-02-18 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502920', 'tblTempUsageDetail_20' ) start [2025-02-18 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502920', 'tblTempUsageDetail_20' ) end [2025-02-18 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 11:59:26] Production.INFO: ==15786== Releasing lock... [2025-02-18 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 11:59:26] Production.INFO: 68 MB #Memory Used# [2025-02-18 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:00:07 [end_date_ymd] => 2025-02-18 12:00:07 [RateCDR] => 1 ) [2025-02-18 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:00:07' and `end` < '2025-02-18 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:00:20] Production.INFO: count ==5340 [2025-02-18 12:00:23] Production.ERROR: pbx CDR StartTime 2025-02-18 09:00:07 - End Time 2025-02-18 12:00:07 [2025-02-18 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502926', 'tblTempUsageDetail_20' ) start [2025-02-18 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502926', 'tblTempUsageDetail_20' ) end [2025-02-18 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502926', 'tblTempVendorCDR_20' ) start [2025-02-18 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502926', 'tblTempVendorCDR_20' ) end [2025-02-18 12:00:23] Production.INFO: ProcessCDR(1,14502926,1,1,2) [2025-02-18 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502926', 'tblTempUsageDetail_20' ) start [2025-02-18 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502926', 'tblTempUsageDetail_20' ) end [2025-02-18 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:00:28] Production.INFO: ==15862== Releasing lock... [2025-02-18 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:00:28] Production.INFO: 68 MB #Memory Used# [2025-02-18 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:01:05 [end_date_ymd] => 2025-02-18 12:01:05 [RateCDR] => 1 ) [2025-02-18 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:01:05' and `end` < '2025-02-18 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:01:18] Production.INFO: count ==5442 [2025-02-18 12:01:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:01:05 - End Time 2025-02-18 12:01:05 [2025-02-18 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502931', 'tblTempUsageDetail_20' ) start [2025-02-18 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502931', 'tblTempUsageDetail_20' ) end [2025-02-18 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502931', 'tblTempVendorCDR_20' ) start [2025-02-18 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502931', 'tblTempVendorCDR_20' ) end [2025-02-18 12:01:21] Production.INFO: ProcessCDR(1,14502931,1,1,2) [2025-02-18 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502931', 'tblTempUsageDetail_20' ) start [2025-02-18 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502931', 'tblTempUsageDetail_20' ) end [2025-02-18 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:01:27] Production.INFO: ==15950== Releasing lock... [2025-02-18 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:01:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:02:06 [end_date_ymd] => 2025-02-18 12:02:06 [RateCDR] => 1 ) [2025-02-18 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:02:06' and `end` < '2025-02-18 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:02:19] Production.INFO: count ==5463 [2025-02-18 12:02:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:02:06 - End Time 2025-02-18 12:02:06 [2025-02-18 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502936', 'tblTempUsageDetail_20' ) start [2025-02-18 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502936', 'tblTempUsageDetail_20' ) end [2025-02-18 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502936', 'tblTempVendorCDR_20' ) start [2025-02-18 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502936', 'tblTempVendorCDR_20' ) end [2025-02-18 12:02:22] Production.INFO: ProcessCDR(1,14502936,1,1,2) [2025-02-18 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502936', 'tblTempUsageDetail_20' ) start [2025-02-18 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502936', 'tblTempUsageDetail_20' ) end [2025-02-18 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:02:27] Production.INFO: ==16060== Releasing lock... [2025-02-18 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:02:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:03:05 [end_date_ymd] => 2025-02-18 12:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:03:05' and `end` < '2025-02-18 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-18 12:03:19] Production.INFO: count ==5467 [2025-02-18 12:03:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:03:05 - End Time 2025-02-18 12:03:05 [2025-02-18 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502941', 'tblTempUsageDetail_20' ) start [2025-02-18 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502941', 'tblTempUsageDetail_20' ) end [2025-02-18 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502941', 'tblTempVendorCDR_20' ) start [2025-02-18 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502941', 'tblTempVendorCDR_20' ) end [2025-02-18 12:03:22] Production.INFO: ProcessCDR(1,14502941,1,1,2) [2025-02-18 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502941', 'tblTempUsageDetail_20' ) start [2025-02-18 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502941', 'tblTempUsageDetail_20' ) end [2025-02-18 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:03:28] Production.INFO: ==16136== Releasing lock... [2025-02-18 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:03:28] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:04:07 [end_date_ymd] => 2025-02-18 12:04:07 [RateCDR] => 1 ) [2025-02-18 12:04: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-18 09:04:07' and `end` < '2025-02-18 12:04: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-18 12:04:20] Production.INFO: count ==5472 [2025-02-18 12:04:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:04:07 - End Time 2025-02-18 12:04:07 [2025-02-18 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502946', 'tblTempUsageDetail_20' ) start [2025-02-18 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502946', 'tblTempUsageDetail_20' ) end [2025-02-18 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502946', 'tblTempVendorCDR_20' ) start [2025-02-18 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502946', 'tblTempVendorCDR_20' ) end [2025-02-18 12:04:22] Production.INFO: ProcessCDR(1,14502946,1,1,2) [2025-02-18 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502946', 'tblTempUsageDetail_20' ) start [2025-02-18 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502946', 'tblTempUsageDetail_20' ) end [2025-02-18 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:04:28] Production.INFO: ==16211== Releasing lock... [2025-02-18 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:04:28] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:05:05 [end_date_ymd] => 2025-02-18 12:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:05:05' and `end` < '2025-02-18 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-18 12:05:18] Production.INFO: count ==5451 [2025-02-18 12:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:05:05 - End Time 2025-02-18 12:05:05 [2025-02-18 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502951', 'tblTempUsageDetail_20' ) start [2025-02-18 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502951', 'tblTempUsageDetail_20' ) end [2025-02-18 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502951', 'tblTempVendorCDR_20' ) start [2025-02-18 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502951', 'tblTempVendorCDR_20' ) end [2025-02-18 12:05:21] Production.INFO: ProcessCDR(1,14502951,1,1,2) [2025-02-18 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502951', 'tblTempUsageDetail_20' ) start [2025-02-18 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502951', 'tblTempUsageDetail_20' ) end [2025-02-18 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:05:27] Production.INFO: ==16282== Releasing lock... [2025-02-18 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:05:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:06:06 [end_date_ymd] => 2025-02-18 12:06:06 [RateCDR] => 1 ) [2025-02-18 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:06:06' and `end` < '2025-02-18 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:06:19] Production.INFO: count ==5452 [2025-02-18 12:06:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:06:06 - End Time 2025-02-18 12:06:06 [2025-02-18 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502956', 'tblTempUsageDetail_20' ) start [2025-02-18 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502956', 'tblTempUsageDetail_20' ) end [2025-02-18 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502956', 'tblTempVendorCDR_20' ) start [2025-02-18 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502956', 'tblTempVendorCDR_20' ) end [2025-02-18 12:06:22] Production.INFO: ProcessCDR(1,14502956,1,1,2) [2025-02-18 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502956', 'tblTempUsageDetail_20' ) start [2025-02-18 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502956', 'tblTempUsageDetail_20' ) end [2025-02-18 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:06:28] Production.INFO: ==16364== Releasing lock... [2025-02-18 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:06:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:07:05 [end_date_ymd] => 2025-02-18 12:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:07:05' and `end` < '2025-02-18 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-18 12:07:18] Production.INFO: count ==5421 [2025-02-18 12:07:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:07:05 - End Time 2025-02-18 12:07:05 [2025-02-18 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502961', 'tblTempUsageDetail_20' ) start [2025-02-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502961', 'tblTempUsageDetail_20' ) end [2025-02-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502961', 'tblTempVendorCDR_20' ) start [2025-02-18 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502961', 'tblTempVendorCDR_20' ) end [2025-02-18 12:07:21] Production.INFO: ProcessCDR(1,14502961,1,1,2) [2025-02-18 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502961', 'tblTempUsageDetail_20' ) start [2025-02-18 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502961', 'tblTempUsageDetail_20' ) end [2025-02-18 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:07:26] Production.INFO: ==16439== Releasing lock... [2025-02-18 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:07:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:08:06 [end_date_ymd] => 2025-02-18 12:08:06 [RateCDR] => 1 ) [2025-02-18 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:08:06' and `end` < '2025-02-18 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:08:19] Production.INFO: count ==5435 [2025-02-18 12:08:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:08:06 - End Time 2025-02-18 12:08:06 [2025-02-18 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502966', 'tblTempUsageDetail_20' ) start [2025-02-18 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502966', 'tblTempUsageDetail_20' ) end [2025-02-18 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502966', 'tblTempVendorCDR_20' ) start [2025-02-18 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502966', 'tblTempVendorCDR_20' ) end [2025-02-18 12:08:22] Production.INFO: ProcessCDR(1,14502966,1,1,2) [2025-02-18 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502966', 'tblTempUsageDetail_20' ) start [2025-02-18 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502966', 'tblTempUsageDetail_20' ) end [2025-02-18 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:08:27] Production.INFO: ==16513== Releasing lock... [2025-02-18 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:08:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:09:05 [end_date_ymd] => 2025-02-18 12:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:09:05' and `end` < '2025-02-18 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-18 12:09:19] Production.INFO: count ==5468 [2025-02-18 12:09:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:09:05 - End Time 2025-02-18 12:09:05 [2025-02-18 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502971', 'tblTempUsageDetail_20' ) start [2025-02-18 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502971', 'tblTempUsageDetail_20' ) end [2025-02-18 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502971', 'tblTempVendorCDR_20' ) start [2025-02-18 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502971', 'tblTempVendorCDR_20' ) end [2025-02-18 12:09:22] Production.INFO: ProcessCDR(1,14502971,1,1,2) [2025-02-18 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502971', 'tblTempUsageDetail_20' ) start [2025-02-18 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502971', 'tblTempUsageDetail_20' ) end [2025-02-18 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:09:28] Production.INFO: ==16583== Releasing lock... [2025-02-18 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:09:28] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:10:06 [end_date_ymd] => 2025-02-18 12:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:10:06' and `end` < '2025-02-18 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-18 12:10:23] Production.INFO: count ==5467 [2025-02-18 12:10:26] Production.ERROR: pbx CDR StartTime 2025-02-18 09:10:06 - End Time 2025-02-18 12:10:06 [2025-02-18 12:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502976', 'tblTempUsageDetail_20' ) start [2025-02-18 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502976', 'tblTempUsageDetail_20' ) end [2025-02-18 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502976', 'tblTempVendorCDR_20' ) start [2025-02-18 12:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502976', 'tblTempVendorCDR_20' ) end [2025-02-18 12:10:26] Production.INFO: ProcessCDR(1,14502976,1,1,2) [2025-02-18 12:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502976', 'tblTempUsageDetail_20' ) start [2025-02-18 12:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502976', 'tblTempUsageDetail_20' ) end [2025-02-18 12:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:10:31] Production.INFO: ==16658== Releasing lock... [2025-02-18 12:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:10:31] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:11:05 [end_date_ymd] => 2025-02-18 12:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:11:05' and `end` < '2025-02-18 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-18 12:11:18] Production.INFO: count ==5493 [2025-02-18 12:11:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:11:05 - End Time 2025-02-18 12:11:05 [2025-02-18 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502982', 'tblTempUsageDetail_20' ) start [2025-02-18 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502982', 'tblTempUsageDetail_20' ) end [2025-02-18 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502982', 'tblTempVendorCDR_20' ) start [2025-02-18 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502982', 'tblTempVendorCDR_20' ) end [2025-02-18 12:11:21] Production.INFO: ProcessCDR(1,14502982,1,1,2) [2025-02-18 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502982', 'tblTempUsageDetail_20' ) start [2025-02-18 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502982', 'tblTempUsageDetail_20' ) end [2025-02-18 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:11:25] Production.INFO: ==16734== Releasing lock... [2025-02-18 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:11:25] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:12:05 [end_date_ymd] => 2025-02-18 12:12:05 [RateCDR] => 1 ) [2025-02-18 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:12:05' and `end` < '2025-02-18 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:12:18] Production.INFO: count ==5489 [2025-02-18 12:12:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:12:05 - End Time 2025-02-18 12:12:05 [2025-02-18 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502987', 'tblTempUsageDetail_20' ) start [2025-02-18 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502987', 'tblTempUsageDetail_20' ) end [2025-02-18 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502987', 'tblTempVendorCDR_20' ) start [2025-02-18 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502987', 'tblTempVendorCDR_20' ) end [2025-02-18 12:12:21] Production.INFO: ProcessCDR(1,14502987,1,1,2) [2025-02-18 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502987', 'tblTempUsageDetail_20' ) start [2025-02-18 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502987', 'tblTempUsageDetail_20' ) end [2025-02-18 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:12:26] Production.INFO: ==16807== Releasing lock... [2025-02-18 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:12:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:13:05 [end_date_ymd] => 2025-02-18 12:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:13:05' and `end` < '2025-02-18 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-18 12:13:19] Production.INFO: count ==5518 [2025-02-18 12:13:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:13:05 - End Time 2025-02-18 12:13:05 [2025-02-18 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502992', 'tblTempUsageDetail_20' ) start [2025-02-18 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502992', 'tblTempUsageDetail_20' ) end [2025-02-18 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502992', 'tblTempVendorCDR_20' ) start [2025-02-18 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502992', 'tblTempVendorCDR_20' ) end [2025-02-18 12:13:21] Production.INFO: ProcessCDR(1,14502992,1,1,2) [2025-02-18 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502992', 'tblTempUsageDetail_20' ) start [2025-02-18 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502992', 'tblTempUsageDetail_20' ) end [2025-02-18 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:13:27] Production.INFO: ==16882== Releasing lock... [2025-02-18 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:13:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:14:05 [end_date_ymd] => 2025-02-18 12:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:14:05' and `end` < '2025-02-18 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-18 12:14:18] Production.INFO: count ==5544 [2025-02-18 12:14:20] Production.ERROR: pbx CDR StartTime 2025-02-18 09:14:05 - End Time 2025-02-18 12:14:05 [2025-02-18 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502997', 'tblTempUsageDetail_20' ) start [2025-02-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14502997', 'tblTempUsageDetail_20' ) end [2025-02-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502997', 'tblTempVendorCDR_20' ) start [2025-02-18 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14502997', 'tblTempVendorCDR_20' ) end [2025-02-18 12:14:21] Production.INFO: ProcessCDR(1,14502997,1,1,2) [2025-02-18 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14502997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14502997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14502997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14502997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502997', 'tblTempUsageDetail_20' ) start [2025-02-18 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14502997', 'tblTempUsageDetail_20' ) end [2025-02-18 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:14:26] Production.INFO: ==16958== Releasing lock... [2025-02-18 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:14:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:15:06 [end_date_ymd] => 2025-02-18 12:15:06 [RateCDR] => 1 ) [2025-02-18 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:15:06' and `end` < '2025-02-18 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:15:19] Production.INFO: count ==5508 [2025-02-18 12:15:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:15:06 - End Time 2025-02-18 12:15:06 [2025-02-18 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503002', 'tblTempUsageDetail_20' ) start [2025-02-18 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503002', 'tblTempUsageDetail_20' ) end [2025-02-18 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503002', 'tblTempVendorCDR_20' ) start [2025-02-18 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503002', 'tblTempVendorCDR_20' ) end [2025-02-18 12:15:22] Production.INFO: ProcessCDR(1,14503002,1,1,2) [2025-02-18 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503002', 'tblTempUsageDetail_20' ) start [2025-02-18 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503002', 'tblTempUsageDetail_20' ) end [2025-02-18 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:15:27] Production.INFO: ==17031== Releasing lock... [2025-02-18 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:15:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:16:04 [end_date_ymd] => 2025-02-18 12:16:04 [RateCDR] => 1 ) [2025-02-18 12: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-18 09:16:04' and `end` < '2025-02-18 12: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-18 12:16:18] Production.INFO: count ==5511 [2025-02-18 12:16:20] Production.ERROR: pbx CDR StartTime 2025-02-18 09:16:04 - End Time 2025-02-18 12:16:04 [2025-02-18 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503007', 'tblTempUsageDetail_20' ) start [2025-02-18 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503007', 'tblTempUsageDetail_20' ) end [2025-02-18 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503007', 'tblTempVendorCDR_20' ) start [2025-02-18 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503007', 'tblTempVendorCDR_20' ) end [2025-02-18 12:16:20] Production.INFO: ProcessCDR(1,14503007,1,1,2) [2025-02-18 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503007', 'tblTempUsageDetail_20' ) start [2025-02-18 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503007', 'tblTempUsageDetail_20' ) end [2025-02-18 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:16:26] Production.INFO: ==17109== Releasing lock... [2025-02-18 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:16:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:17:05 [end_date_ymd] => 2025-02-18 12:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:17:05' and `end` < '2025-02-18 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-18 12:17:18] Production.INFO: count ==5503 [2025-02-18 12:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:17:05 - End Time 2025-02-18 12:17:05 [2025-02-18 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503012', 'tblTempUsageDetail_20' ) start [2025-02-18 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503012', 'tblTempUsageDetail_20' ) end [2025-02-18 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503012', 'tblTempVendorCDR_20' ) start [2025-02-18 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503012', 'tblTempVendorCDR_20' ) end [2025-02-18 12:17:21] Production.INFO: ProcessCDR(1,14503012,1,1,2) [2025-02-18 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503012', 'tblTempUsageDetail_20' ) start [2025-02-18 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503012', 'tblTempUsageDetail_20' ) end [2025-02-18 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:17:26] Production.INFO: ==17182== Releasing lock... [2025-02-18 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:17:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:18:06 [end_date_ymd] => 2025-02-18 12:18:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:18:06' and `end` < '2025-02-18 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-18 12:18:19] Production.INFO: count ==5502 [2025-02-18 12:18:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:18:06 - End Time 2025-02-18 12:18:06 [2025-02-18 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503017', 'tblTempUsageDetail_20' ) start [2025-02-18 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503017', 'tblTempUsageDetail_20' ) end [2025-02-18 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503017', 'tblTempVendorCDR_20' ) start [2025-02-18 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503017', 'tblTempVendorCDR_20' ) end [2025-02-18 12:18:22] Production.INFO: ProcessCDR(1,14503017,1,1,2) [2025-02-18 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503017', 'tblTempUsageDetail_20' ) start [2025-02-18 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503017', 'tblTempUsageDetail_20' ) end [2025-02-18 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:18:27] Production.INFO: ==17305== Releasing lock... [2025-02-18 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:18:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:19:06 [end_date_ymd] => 2025-02-18 12:19:06 [RateCDR] => 1 ) [2025-02-18 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:19:06' and `end` < '2025-02-18 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:19:19] Production.INFO: count ==5503 [2025-02-18 12:19:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:19:06 - End Time 2025-02-18 12:19:06 [2025-02-18 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503022', 'tblTempUsageDetail_20' ) start [2025-02-18 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503022', 'tblTempUsageDetail_20' ) end [2025-02-18 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503022', 'tblTempVendorCDR_20' ) start [2025-02-18 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503022', 'tblTempVendorCDR_20' ) end [2025-02-18 12:19:22] Production.INFO: ProcessCDR(1,14503022,1,1,2) [2025-02-18 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503022', 'tblTempUsageDetail_20' ) start [2025-02-18 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503022', 'tblTempUsageDetail_20' ) end [2025-02-18 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:19:27] Production.INFO: ==17379== Releasing lock... [2025-02-18 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:19:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:20:07 [end_date_ymd] => 2025-02-18 12:20:07 [RateCDR] => 1 ) [2025-02-18 12:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:20:07' and `end` < '2025-02-18 12:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:20:20] Production.INFO: count ==5508 [2025-02-18 12:20:23] Production.ERROR: pbx CDR StartTime 2025-02-18 09:20:07 - End Time 2025-02-18 12:20:07 [2025-02-18 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503028', 'tblTempUsageDetail_20' ) start [2025-02-18 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503028', 'tblTempUsageDetail_20' ) end [2025-02-18 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503028', 'tblTempVendorCDR_20' ) start [2025-02-18 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503028', 'tblTempVendorCDR_20' ) end [2025-02-18 12:20:23] Production.INFO: ProcessCDR(1,14503028,1,1,2) [2025-02-18 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503028', 'tblTempUsageDetail_20' ) start [2025-02-18 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503028', 'tblTempUsageDetail_20' ) end [2025-02-18 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:20:29] Production.INFO: ==17453== Releasing lock... [2025-02-18 12:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:20:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:21:05 [end_date_ymd] => 2025-02-18 12:21:05 [RateCDR] => 1 ) [2025-02-18 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:21:05' and `end` < '2025-02-18 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:21:18] Production.INFO: count ==5515 [2025-02-18 12:21:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:21:05 - End Time 2025-02-18 12:21:05 [2025-02-18 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503033', 'tblTempUsageDetail_20' ) start [2025-02-18 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503033', 'tblTempUsageDetail_20' ) end [2025-02-18 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503033', 'tblTempVendorCDR_20' ) start [2025-02-18 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503033', 'tblTempVendorCDR_20' ) end [2025-02-18 12:21:21] Production.INFO: ProcessCDR(1,14503033,1,1,2) [2025-02-18 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503033', 'tblTempUsageDetail_20' ) start [2025-02-18 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503033', 'tblTempUsageDetail_20' ) end [2025-02-18 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:21:26] Production.INFO: ==17525== Releasing lock... [2025-02-18 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:21:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:22:06 [end_date_ymd] => 2025-02-18 12:22:06 [RateCDR] => 1 ) [2025-02-18 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:22:06' and `end` < '2025-02-18 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:22:19] Production.INFO: count ==5525 [2025-02-18 12:22:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:22:06 - End Time 2025-02-18 12:22:06 [2025-02-18 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503038', 'tblTempUsageDetail_20' ) start [2025-02-18 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503038', 'tblTempUsageDetail_20' ) end [2025-02-18 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503038', 'tblTempVendorCDR_20' ) start [2025-02-18 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503038', 'tblTempVendorCDR_20' ) end [2025-02-18 12:22:22] Production.INFO: ProcessCDR(1,14503038,1,1,2) [2025-02-18 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503038', 'tblTempUsageDetail_20' ) start [2025-02-18 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503038', 'tblTempUsageDetail_20' ) end [2025-02-18 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:22:27] Production.INFO: ==17602== Releasing lock... [2025-02-18 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:22:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:23:06 [end_date_ymd] => 2025-02-18 12:23:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:23:06' and `end` < '2025-02-18 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-18 12:23:19] Production.INFO: count ==5516 [2025-02-18 12:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:23:06 - End Time 2025-02-18 12:23:06 [2025-02-18 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503043', 'tblTempUsageDetail_20' ) start [2025-02-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503043', 'tblTempUsageDetail_20' ) end [2025-02-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503043', 'tblTempVendorCDR_20' ) start [2025-02-18 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503043', 'tblTempVendorCDR_20' ) end [2025-02-18 12:23:22] Production.INFO: ProcessCDR(1,14503043,1,1,2) [2025-02-18 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503043', 'tblTempUsageDetail_20' ) start [2025-02-18 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503043', 'tblTempUsageDetail_20' ) end [2025-02-18 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:23:27] Production.INFO: ==17675== Releasing lock... [2025-02-18 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:23:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:24:06 [end_date_ymd] => 2025-02-18 12:24:06 [RateCDR] => 1 ) [2025-02-18 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:24:06' and `end` < '2025-02-18 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:24:19] Production.INFO: count ==5502 [2025-02-18 12:24:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:24:06 - End Time 2025-02-18 12:24:06 [2025-02-18 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503048', 'tblTempUsageDetail_20' ) start [2025-02-18 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503048', 'tblTempUsageDetail_20' ) end [2025-02-18 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503048', 'tblTempVendorCDR_20' ) start [2025-02-18 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503048', 'tblTempVendorCDR_20' ) end [2025-02-18 12:24:22] Production.INFO: ProcessCDR(1,14503048,1,1,2) [2025-02-18 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503048', 'tblTempUsageDetail_20' ) start [2025-02-18 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503048', 'tblTempUsageDetail_20' ) end [2025-02-18 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:24:27] Production.INFO: ==17749== Releasing lock... [2025-02-18 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:24:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:25:05 [end_date_ymd] => 2025-02-18 12:25:05 [RateCDR] => 1 ) [2025-02-18 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:25:05' and `end` < '2025-02-18 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:25:18] Production.INFO: count ==5480 [2025-02-18 12:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:25:05 - End Time 2025-02-18 12:25:05 [2025-02-18 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503053', 'tblTempUsageDetail_20' ) start [2025-02-18 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503053', 'tblTempUsageDetail_20' ) end [2025-02-18 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503053', 'tblTempVendorCDR_20' ) start [2025-02-18 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503053', 'tblTempVendorCDR_20' ) end [2025-02-18 12:25:21] Production.INFO: ProcessCDR(1,14503053,1,1,2) [2025-02-18 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503053', 'tblTempUsageDetail_20' ) start [2025-02-18 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503053', 'tblTempUsageDetail_20' ) end [2025-02-18 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:25:27] Production.INFO: ==17820== Releasing lock... [2025-02-18 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:25:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:26:06 [end_date_ymd] => 2025-02-18 12:26:06 [RateCDR] => 1 ) [2025-02-18 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:26:06' and `end` < '2025-02-18 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:26:19] Production.INFO: count ==5486 [2025-02-18 12:26:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:26:06 - End Time 2025-02-18 12:26:06 [2025-02-18 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503058', 'tblTempUsageDetail_20' ) start [2025-02-18 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503058', 'tblTempUsageDetail_20' ) end [2025-02-18 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503058', 'tblTempVendorCDR_20' ) start [2025-02-18 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503058', 'tblTempVendorCDR_20' ) end [2025-02-18 12:26:22] Production.INFO: ProcessCDR(1,14503058,1,1,2) [2025-02-18 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503058', 'tblTempUsageDetail_20' ) start [2025-02-18 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503058', 'tblTempUsageDetail_20' ) end [2025-02-18 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:26:27] Production.INFO: ==17894== Releasing lock... [2025-02-18 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:26:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:27:06 [end_date_ymd] => 2025-02-18 12:27:06 [RateCDR] => 1 ) [2025-02-18 12: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-18 09:27:06' and `end` < '2025-02-18 12: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-18 12:27:19] Production.INFO: count ==5451 [2025-02-18 12:27:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:27:06 - End Time 2025-02-18 12:27:06 [2025-02-18 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503063', 'tblTempUsageDetail_20' ) start [2025-02-18 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503063', 'tblTempUsageDetail_20' ) end [2025-02-18 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503063', 'tblTempVendorCDR_20' ) start [2025-02-18 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503063', 'tblTempVendorCDR_20' ) end [2025-02-18 12:27:21] Production.INFO: ProcessCDR(1,14503063,1,1,2) [2025-02-18 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503063', 'tblTempUsageDetail_20' ) start [2025-02-18 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503063', 'tblTempUsageDetail_20' ) end [2025-02-18 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:27:27] Production.INFO: ==17970== Releasing lock... [2025-02-18 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:27:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:28:06 [end_date_ymd] => 2025-02-18 12:28:06 [RateCDR] => 1 ) [2025-02-18 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:28:06' and `end` < '2025-02-18 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:28:19] Production.INFO: count ==5436 [2025-02-18 12:28:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:28:06 - End Time 2025-02-18 12:28:06 [2025-02-18 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503068', 'tblTempUsageDetail_20' ) start [2025-02-18 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503068', 'tblTempUsageDetail_20' ) end [2025-02-18 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503068', 'tblTempVendorCDR_20' ) start [2025-02-18 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503068', 'tblTempVendorCDR_20' ) end [2025-02-18 12:28:21] Production.INFO: ProcessCDR(1,14503068,1,1,2) [2025-02-18 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503068', 'tblTempUsageDetail_20' ) start [2025-02-18 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503068', 'tblTempUsageDetail_20' ) end [2025-02-18 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:28:27] Production.INFO: ==18046== Releasing lock... [2025-02-18 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:28:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:29:05 [end_date_ymd] => 2025-02-18 12:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:29:05' and `end` < '2025-02-18 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-18 12:29:18] Production.INFO: count ==5439 [2025-02-18 12:29:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:29:05 - End Time 2025-02-18 12:29:05 [2025-02-18 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503073', 'tblTempUsageDetail_20' ) start [2025-02-18 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503073', 'tblTempUsageDetail_20' ) end [2025-02-18 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503073', 'tblTempVendorCDR_20' ) start [2025-02-18 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503073', 'tblTempVendorCDR_20' ) end [2025-02-18 12:29:21] Production.INFO: ProcessCDR(1,14503073,1,1,2) [2025-02-18 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503073', 'tblTempUsageDetail_20' ) start [2025-02-18 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503073', 'tblTempUsageDetail_20' ) end [2025-02-18 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:29:26] Production.INFO: ==18119== Releasing lock... [2025-02-18 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:29:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:30:06 [end_date_ymd] => 2025-02-18 12:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:30:06' and `end` < '2025-02-18 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:30:19] Production.INFO: count ==5437 [2025-02-18 12:30:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:30:06 - End Time 2025-02-18 12:30:06 [2025-02-18 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503078', 'tblTempUsageDetail_20' ) start [2025-02-18 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503078', 'tblTempUsageDetail_20' ) end [2025-02-18 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503078', 'tblTempVendorCDR_20' ) start [2025-02-18 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503078', 'tblTempVendorCDR_20' ) end [2025-02-18 12:30:22] Production.INFO: ProcessCDR(1,14503078,1,1,2) [2025-02-18 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503078', 'tblTempUsageDetail_20' ) start [2025-02-18 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503078', 'tblTempUsageDetail_20' ) end [2025-02-18 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:30:27] Production.INFO: ==18200== Releasing lock... [2025-02-18 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:30:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:31:05 [end_date_ymd] => 2025-02-18 12:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:31:05' and `end` < '2025-02-18 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-18 12:31:18] Production.INFO: count ==5507 [2025-02-18 12:31:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:31:05 - End Time 2025-02-18 12:31:05 [2025-02-18 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503084', 'tblTempUsageDetail_20' ) start [2025-02-18 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503084', 'tblTempUsageDetail_20' ) end [2025-02-18 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503084', 'tblTempVendorCDR_20' ) start [2025-02-18 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503084', 'tblTempVendorCDR_20' ) end [2025-02-18 12:31:21] Production.INFO: ProcessCDR(1,14503084,1,1,2) [2025-02-18 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503084', 'tblTempUsageDetail_20' ) start [2025-02-18 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503084', 'tblTempUsageDetail_20' ) end [2025-02-18 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:31:26] Production.INFO: ==18281== Releasing lock... [2025-02-18 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:31:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:32:05 [end_date_ymd] => 2025-02-18 12:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:32:05' and `end` < '2025-02-18 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-18 12:32:18] Production.INFO: count ==5517 [2025-02-18 12:32:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:32:05 - End Time 2025-02-18 12:32:05 [2025-02-18 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503089', 'tblTempUsageDetail_20' ) start [2025-02-18 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503089', 'tblTempUsageDetail_20' ) end [2025-02-18 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503089', 'tblTempVendorCDR_20' ) start [2025-02-18 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503089', 'tblTempVendorCDR_20' ) end [2025-02-18 12:32:21] Production.INFO: ProcessCDR(1,14503089,1,1,2) [2025-02-18 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503089', 'tblTempUsageDetail_20' ) start [2025-02-18 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503089', 'tblTempUsageDetail_20' ) end [2025-02-18 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:32:26] Production.INFO: ==18363== Releasing lock... [2025-02-18 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:32:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:33:05 [end_date_ymd] => 2025-02-18 12:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:33:05' and `end` < '2025-02-18 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-18 12:33:18] Production.INFO: count ==5507 [2025-02-18 12:33:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:33:05 - End Time 2025-02-18 12:33:05 [2025-02-18 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503094', 'tblTempUsageDetail_20' ) start [2025-02-18 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503094', 'tblTempUsageDetail_20' ) end [2025-02-18 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503094', 'tblTempVendorCDR_20' ) start [2025-02-18 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503094', 'tblTempVendorCDR_20' ) end [2025-02-18 12:33:21] Production.INFO: ProcessCDR(1,14503094,1,1,2) [2025-02-18 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503094', 'tblTempUsageDetail_20' ) start [2025-02-18 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503094', 'tblTempUsageDetail_20' ) end [2025-02-18 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:33:26] Production.INFO: ==18476== Releasing lock... [2025-02-18 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:33:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:34:06 [end_date_ymd] => 2025-02-18 12:34:06 [RateCDR] => 1 ) [2025-02-18 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:34:06' and `end` < '2025-02-18 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:34:19] Production.INFO: count ==5540 [2025-02-18 12:34:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:34:06 - End Time 2025-02-18 12:34:06 [2025-02-18 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503099', 'tblTempUsageDetail_20' ) start [2025-02-18 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503099', 'tblTempUsageDetail_20' ) end [2025-02-18 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503099', 'tblTempVendorCDR_20' ) start [2025-02-18 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503099', 'tblTempVendorCDR_20' ) end [2025-02-18 12:34:22] Production.INFO: ProcessCDR(1,14503099,1,1,2) [2025-02-18 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503099', 'tblTempUsageDetail_20' ) start [2025-02-18 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503099', 'tblTempUsageDetail_20' ) end [2025-02-18 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:34:26] Production.INFO: ==18554== Releasing lock... [2025-02-18 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:34:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:35:05 [end_date_ymd] => 2025-02-18 12:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:35:05' and `end` < '2025-02-18 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-18 12:35:18] Production.INFO: count ==5540 [2025-02-18 12:35:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:35:05 - End Time 2025-02-18 12:35:05 [2025-02-18 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503104', 'tblTempUsageDetail_20' ) start [2025-02-18 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503104', 'tblTempUsageDetail_20' ) end [2025-02-18 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503104', 'tblTempVendorCDR_20' ) start [2025-02-18 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503104', 'tblTempVendorCDR_20' ) end [2025-02-18 12:35:21] Production.INFO: ProcessCDR(1,14503104,1,1,2) [2025-02-18 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503104', 'tblTempUsageDetail_20' ) start [2025-02-18 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503104', 'tblTempUsageDetail_20' ) end [2025-02-18 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:35:27] Production.INFO: ==18627== Releasing lock... [2025-02-18 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:35:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:36:06 [end_date_ymd] => 2025-02-18 12:36:06 [RateCDR] => 1 ) [2025-02-18 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:36:06' and `end` < '2025-02-18 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:36:19] Production.INFO: count ==5533 [2025-02-18 12:36:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:36:06 - End Time 2025-02-18 12:36:06 [2025-02-18 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503109', 'tblTempUsageDetail_20' ) start [2025-02-18 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503109', 'tblTempUsageDetail_20' ) end [2025-02-18 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503109', 'tblTempVendorCDR_20' ) start [2025-02-18 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503109', 'tblTempVendorCDR_20' ) end [2025-02-18 12:36:22] Production.INFO: ProcessCDR(1,14503109,1,1,2) [2025-02-18 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503109', 'tblTempUsageDetail_20' ) start [2025-02-18 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503109', 'tblTempUsageDetail_20' ) end [2025-02-18 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:36:27] Production.INFO: ==18703== Releasing lock... [2025-02-18 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:36:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:37:05 [end_date_ymd] => 2025-02-18 12:37:05 [RateCDR] => 1 ) [2025-02-18 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:37:05' and `end` < '2025-02-18 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:37:18] Production.INFO: count ==5530 [2025-02-18 12:37:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:37:05 - End Time 2025-02-18 12:37:05 [2025-02-18 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503114', 'tblTempUsageDetail_20' ) start [2025-02-18 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503114', 'tblTempUsageDetail_20' ) end [2025-02-18 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503114', 'tblTempVendorCDR_20' ) start [2025-02-18 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503114', 'tblTempVendorCDR_20' ) end [2025-02-18 12:37:21] Production.INFO: ProcessCDR(1,14503114,1,1,2) [2025-02-18 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503114', 'tblTempUsageDetail_20' ) start [2025-02-18 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503114', 'tblTempUsageDetail_20' ) end [2025-02-18 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:37:26] Production.INFO: ==18779== Releasing lock... [2025-02-18 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:38:06 [end_date_ymd] => 2025-02-18 12:38:06 [RateCDR] => 1 ) [2025-02-18 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:38:06' and `end` < '2025-02-18 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:38:19] Production.INFO: count ==5536 [2025-02-18 12:38:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:38:06 - End Time 2025-02-18 12:38:06 [2025-02-18 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503119', 'tblTempUsageDetail_20' ) start [2025-02-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503119', 'tblTempUsageDetail_20' ) end [2025-02-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503119', 'tblTempVendorCDR_20' ) start [2025-02-18 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503119', 'tblTempVendorCDR_20' ) end [2025-02-18 12:38:22] Production.INFO: ProcessCDR(1,14503119,1,1,2) [2025-02-18 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503119', 'tblTempUsageDetail_20' ) start [2025-02-18 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503119', 'tblTempUsageDetail_20' ) end [2025-02-18 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:38:27] Production.INFO: ==18854== Releasing lock... [2025-02-18 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:38:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:39:05 [end_date_ymd] => 2025-02-18 12:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:39:05' and `end` < '2025-02-18 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-18 12:39:18] Production.INFO: count ==5540 [2025-02-18 12:39:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:39:05 - End Time 2025-02-18 12:39:05 [2025-02-18 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503124', 'tblTempUsageDetail_20' ) start [2025-02-18 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503124', 'tblTempUsageDetail_20' ) end [2025-02-18 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503124', 'tblTempVendorCDR_20' ) start [2025-02-18 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503124', 'tblTempVendorCDR_20' ) end [2025-02-18 12:39:21] Production.INFO: ProcessCDR(1,14503124,1,1,2) [2025-02-18 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503124', 'tblTempUsageDetail_20' ) start [2025-02-18 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503124', 'tblTempUsageDetail_20' ) end [2025-02-18 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:39:27] Production.INFO: ==18930== Releasing lock... [2025-02-18 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:39:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:40:06 [end_date_ymd] => 2025-02-18 12:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:40:06' and `end` < '2025-02-18 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-18 12:40:19] Production.INFO: count ==5525 [2025-02-18 12:40:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:40:06 - End Time 2025-02-18 12:40:06 [2025-02-18 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503130', 'tblTempUsageDetail_20' ) start [2025-02-18 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503130', 'tblTempUsageDetail_20' ) end [2025-02-18 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503130', 'tblTempVendorCDR_20' ) start [2025-02-18 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503130', 'tblTempVendorCDR_20' ) end [2025-02-18 12:40:22] Production.INFO: ProcessCDR(1,14503130,1,1,2) [2025-02-18 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503130', 'tblTempUsageDetail_20' ) start [2025-02-18 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503130', 'tblTempUsageDetail_20' ) end [2025-02-18 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:40:27] Production.INFO: ==19005== Releasing lock... [2025-02-18 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:40:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:41:05 [end_date_ymd] => 2025-02-18 12:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:41:05' and `end` < '2025-02-18 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-18 12:41:19] Production.INFO: count ==5549 [2025-02-18 12:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:41:05 - End Time 2025-02-18 12:41:05 [2025-02-18 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503135', 'tblTempUsageDetail_20' ) start [2025-02-18 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503135', 'tblTempUsageDetail_20' ) end [2025-02-18 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503135', 'tblTempVendorCDR_20' ) start [2025-02-18 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503135', 'tblTempVendorCDR_20' ) end [2025-02-18 12:41:22] Production.INFO: ProcessCDR(1,14503135,1,1,2) [2025-02-18 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503135', 'tblTempUsageDetail_20' ) start [2025-02-18 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503135', 'tblTempUsageDetail_20' ) end [2025-02-18 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:41:27] Production.INFO: ==19076== Releasing lock... [2025-02-18 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:41:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:42:06 [end_date_ymd] => 2025-02-18 12:42:06 [RateCDR] => 1 ) [2025-02-18 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:42:06' and `end` < '2025-02-18 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:42:19] Production.INFO: count ==5547 [2025-02-18 12:42:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:42:06 - End Time 2025-02-18 12:42:06 [2025-02-18 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503140', 'tblTempUsageDetail_20' ) start [2025-02-18 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503140', 'tblTempUsageDetail_20' ) end [2025-02-18 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503140', 'tblTempVendorCDR_20' ) start [2025-02-18 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503140', 'tblTempVendorCDR_20' ) end [2025-02-18 12:42:22] Production.INFO: ProcessCDR(1,14503140,1,1,2) [2025-02-18 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503140', 'tblTempUsageDetail_20' ) start [2025-02-18 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503140', 'tblTempUsageDetail_20' ) end [2025-02-18 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:42:27] Production.INFO: ==19155== Releasing lock... [2025-02-18 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:42:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:43:06 [end_date_ymd] => 2025-02-18 12:43:06 [RateCDR] => 1 ) [2025-02-18 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:43:06' and `end` < '2025-02-18 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:43:18] Production.INFO: count ==5555 [2025-02-18 12:43:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:43:06 - End Time 2025-02-18 12:43:06 [2025-02-18 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503145', 'tblTempUsageDetail_20' ) start [2025-02-18 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503145', 'tblTempUsageDetail_20' ) end [2025-02-18 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503145', 'tblTempVendorCDR_20' ) start [2025-02-18 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503145', 'tblTempVendorCDR_20' ) end [2025-02-18 12:43:21] Production.INFO: ProcessCDR(1,14503145,1,1,2) [2025-02-18 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503145', 'tblTempUsageDetail_20' ) start [2025-02-18 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503145', 'tblTempUsageDetail_20' ) end [2025-02-18 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:43:27] Production.INFO: ==19231== Releasing lock... [2025-02-18 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:43:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:44:06 [end_date_ymd] => 2025-02-18 12:44:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:44:06' and `end` < '2025-02-18 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-18 12:44:19] Production.INFO: count ==5552 [2025-02-18 12:44:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:44:06 - End Time 2025-02-18 12:44:06 [2025-02-18 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503150', 'tblTempUsageDetail_20' ) start [2025-02-18 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503150', 'tblTempUsageDetail_20' ) end [2025-02-18 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503150', 'tblTempVendorCDR_20' ) start [2025-02-18 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503150', 'tblTempVendorCDR_20' ) end [2025-02-18 12:44:22] Production.INFO: ProcessCDR(1,14503150,1,1,2) [2025-02-18 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503150', 'tblTempUsageDetail_20' ) start [2025-02-18 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503150', 'tblTempUsageDetail_20' ) end [2025-02-18 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:44:28] Production.INFO: ==19307== Releasing lock... [2025-02-18 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:44:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:45:05 [end_date_ymd] => 2025-02-18 12:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:45:05' and `end` < '2025-02-18 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-18 12:45:18] Production.INFO: count ==5547 [2025-02-18 12:45:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:45:05 - End Time 2025-02-18 12:45:05 [2025-02-18 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503155', 'tblTempUsageDetail_20' ) start [2025-02-18 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503155', 'tblTempUsageDetail_20' ) end [2025-02-18 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503155', 'tblTempVendorCDR_20' ) start [2025-02-18 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503155', 'tblTempVendorCDR_20' ) end [2025-02-18 12:45:21] Production.INFO: ProcessCDR(1,14503155,1,1,2) [2025-02-18 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503155', 'tblTempUsageDetail_20' ) start [2025-02-18 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503155', 'tblTempUsageDetail_20' ) end [2025-02-18 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:45:26] Production.INFO: ==19394== Releasing lock... [2025-02-18 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:45:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:46:06 [end_date_ymd] => 2025-02-18 12:46:06 [RateCDR] => 1 ) [2025-02-18 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:46:06' and `end` < '2025-02-18 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:46:19] Production.INFO: count ==5526 [2025-02-18 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:46:06 - End Time 2025-02-18 12:46:06 [2025-02-18 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503160', 'tblTempUsageDetail_20' ) start [2025-02-18 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503160', 'tblTempUsageDetail_20' ) end [2025-02-18 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503160', 'tblTempVendorCDR_20' ) start [2025-02-18 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503160', 'tblTempVendorCDR_20' ) end [2025-02-18 12:46:22] Production.INFO: ProcessCDR(1,14503160,1,1,2) [2025-02-18 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503160', 'tblTempUsageDetail_20' ) start [2025-02-18 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503160', 'tblTempUsageDetail_20' ) end [2025-02-18 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:46:27] Production.INFO: ==19480== Releasing lock... [2025-02-18 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:46:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:47:05 [end_date_ymd] => 2025-02-18 12:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:47:05' and `end` < '2025-02-18 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-18 12:47:18] Production.INFO: count ==5516 [2025-02-18 12:47:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:47:05 - End Time 2025-02-18 12:47:05 [2025-02-18 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503165', 'tblTempUsageDetail_20' ) start [2025-02-18 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503165', 'tblTempUsageDetail_20' ) end [2025-02-18 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503165', 'tblTempVendorCDR_20' ) start [2025-02-18 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503165', 'tblTempVendorCDR_20' ) end [2025-02-18 12:47:21] Production.INFO: ProcessCDR(1,14503165,1,1,2) [2025-02-18 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503165', 'tblTempUsageDetail_20' ) start [2025-02-18 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503165', 'tblTempUsageDetail_20' ) end [2025-02-18 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:47:26] Production.INFO: ==19571== Releasing lock... [2025-02-18 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:47:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:48:06 [end_date_ymd] => 2025-02-18 12:48:06 [RateCDR] => 1 ) [2025-02-18 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:48:06' and `end` < '2025-02-18 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:48:19] Production.INFO: count ==5528 [2025-02-18 12:48:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:48:06 - End Time 2025-02-18 12:48:06 [2025-02-18 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503170', 'tblTempUsageDetail_20' ) start [2025-02-18 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503170', 'tblTempUsageDetail_20' ) end [2025-02-18 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503170', 'tblTempVendorCDR_20' ) start [2025-02-18 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503170', 'tblTempVendorCDR_20' ) end [2025-02-18 12:48:22] Production.INFO: ProcessCDR(1,14503170,1,1,2) [2025-02-18 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503170', 'tblTempUsageDetail_20' ) start [2025-02-18 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503170', 'tblTempUsageDetail_20' ) end [2025-02-18 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:48:28] Production.INFO: ==19699== Releasing lock... [2025-02-18 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:48:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:49:05 [end_date_ymd] => 2025-02-18 12:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:49:05' and `end` < '2025-02-18 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-18 12:49:18] Production.INFO: count ==5550 [2025-02-18 12:49:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:49:05 - End Time 2025-02-18 12:49:05 [2025-02-18 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503175', 'tblTempUsageDetail_20' ) start [2025-02-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503175', 'tblTempUsageDetail_20' ) end [2025-02-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503175', 'tblTempVendorCDR_20' ) start [2025-02-18 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503175', 'tblTempVendorCDR_20' ) end [2025-02-18 12:49:21] Production.INFO: ProcessCDR(1,14503175,1,1,2) [2025-02-18 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503175', 'tblTempUsageDetail_20' ) start [2025-02-18 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503175', 'tblTempUsageDetail_20' ) end [2025-02-18 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:49:26] Production.INFO: ==19789== Releasing lock... [2025-02-18 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:49:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:50:07 [end_date_ymd] => 2025-02-18 12:50:07 [RateCDR] => 1 ) [2025-02-18 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:50:07' and `end` < '2025-02-18 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:50:20] Production.INFO: count ==5535 [2025-02-18 12:50:22] Production.ERROR: pbx CDR StartTime 2025-02-18 09:50:07 - End Time 2025-02-18 12:50:07 [2025-02-18 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503181', 'tblTempUsageDetail_20' ) start [2025-02-18 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503181', 'tblTempUsageDetail_20' ) end [2025-02-18 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503181', 'tblTempVendorCDR_20' ) start [2025-02-18 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503181', 'tblTempVendorCDR_20' ) end [2025-02-18 12:50:23] Production.INFO: ProcessCDR(1,14503181,1,1,2) [2025-02-18 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503181', 'tblTempUsageDetail_20' ) start [2025-02-18 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503181', 'tblTempUsageDetail_20' ) end [2025-02-18 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:50:28] Production.INFO: ==19881== Releasing lock... [2025-02-18 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:50:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:51:05 [end_date_ymd] => 2025-02-18 12:51:05 [RateCDR] => 1 ) [2025-02-18 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:51:05' and `end` < '2025-02-18 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:51:18] Production.INFO: count ==5536 [2025-02-18 12:51:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:51:05 - End Time 2025-02-18 12:51:05 [2025-02-18 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503186', 'tblTempUsageDetail_20' ) start [2025-02-18 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503186', 'tblTempUsageDetail_20' ) end [2025-02-18 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503186', 'tblTempVendorCDR_20' ) start [2025-02-18 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503186', 'tblTempVendorCDR_20' ) end [2025-02-18 12:51:21] Production.INFO: ProcessCDR(1,14503186,1,1,2) [2025-02-18 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503186', 'tblTempUsageDetail_20' ) start [2025-02-18 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503186', 'tblTempUsageDetail_20' ) end [2025-02-18 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:51:26] Production.INFO: ==19972== Releasing lock... [2025-02-18 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:51:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:52:06 [end_date_ymd] => 2025-02-18 12:52:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:52:06' and `end` < '2025-02-18 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-18 12:52:19] Production.INFO: count ==5544 [2025-02-18 12:52:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:52:06 - End Time 2025-02-18 12:52:06 [2025-02-18 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503191', 'tblTempUsageDetail_20' ) start [2025-02-18 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503191', 'tblTempUsageDetail_20' ) end [2025-02-18 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503191', 'tblTempVendorCDR_20' ) start [2025-02-18 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503191', 'tblTempVendorCDR_20' ) end [2025-02-18 12:52:22] Production.INFO: ProcessCDR(1,14503191,1,1,2) [2025-02-18 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503191', 'tblTempUsageDetail_20' ) start [2025-02-18 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503191', 'tblTempUsageDetail_20' ) end [2025-02-18 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:52:27] Production.INFO: ==20071== Releasing lock... [2025-02-18 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:52:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:53:06 [end_date_ymd] => 2025-02-18 12:53:06 [RateCDR] => 1 ) [2025-02-18 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:53:06' and `end` < '2025-02-18 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:53:19] Production.INFO: count ==5531 [2025-02-18 12:53:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:53:06 - End Time 2025-02-18 12:53:06 [2025-02-18 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503196', 'tblTempUsageDetail_20' ) start [2025-02-18 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503196', 'tblTempUsageDetail_20' ) end [2025-02-18 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503196', 'tblTempVendorCDR_20' ) start [2025-02-18 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503196', 'tblTempVendorCDR_20' ) end [2025-02-18 12:53:21] Production.INFO: ProcessCDR(1,14503196,1,1,2) [2025-02-18 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503196', 'tblTempUsageDetail_20' ) start [2025-02-18 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503196', 'tblTempUsageDetail_20' ) end [2025-02-18 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:53:27] Production.INFO: ==20164== Releasing lock... [2025-02-18 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:53:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:54:06 [end_date_ymd] => 2025-02-18 12:54:06 [RateCDR] => 1 ) [2025-02-18 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:54:06' and `end` < '2025-02-18 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:54:19] Production.INFO: count ==5547 [2025-02-18 12:54:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:54:06 - End Time 2025-02-18 12:54:06 [2025-02-18 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503201', 'tblTempUsageDetail_20' ) start [2025-02-18 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503201', 'tblTempUsageDetail_20' ) end [2025-02-18 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503201', 'tblTempVendorCDR_20' ) start [2025-02-18 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503201', 'tblTempVendorCDR_20' ) end [2025-02-18 12:54:22] Production.INFO: ProcessCDR(1,14503201,1,1,2) [2025-02-18 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503201', 'tblTempUsageDetail_20' ) start [2025-02-18 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503201', 'tblTempUsageDetail_20' ) end [2025-02-18 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:54:27] Production.INFO: ==20260== Releasing lock... [2025-02-18 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:54:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:55:05 [end_date_ymd] => 2025-02-18 12:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:55:05' and `end` < '2025-02-18 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-18 12:55:18] Production.INFO: count ==5561 [2025-02-18 12:55:20] Production.ERROR: pbx CDR StartTime 2025-02-18 09:55:05 - End Time 2025-02-18 12:55:05 [2025-02-18 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503206', 'tblTempUsageDetail_20' ) start [2025-02-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503206', 'tblTempUsageDetail_20' ) end [2025-02-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503206', 'tblTempVendorCDR_20' ) start [2025-02-18 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503206', 'tblTempVendorCDR_20' ) end [2025-02-18 12:55:21] Production.INFO: ProcessCDR(1,14503206,1,1,2) [2025-02-18 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503206', 'tblTempUsageDetail_20' ) start [2025-02-18 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503206', 'tblTempUsageDetail_20' ) end [2025-02-18 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:55:26] Production.INFO: ==20349== Releasing lock... [2025-02-18 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:55:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:56:06 [end_date_ymd] => 2025-02-18 12:56:06 [RateCDR] => 1 ) [2025-02-18 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:56:06' and `end` < '2025-02-18 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:56:19] Production.INFO: count ==5544 [2025-02-18 12:56:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:56:06 - End Time 2025-02-18 12:56:06 [2025-02-18 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503211', 'tblTempUsageDetail_20' ) start [2025-02-18 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503211', 'tblTempUsageDetail_20' ) end [2025-02-18 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503211', 'tblTempVendorCDR_20' ) start [2025-02-18 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503211', 'tblTempVendorCDR_20' ) end [2025-02-18 12:56:22] Production.INFO: ProcessCDR(1,14503211,1,1,2) [2025-02-18 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503211', 'tblTempUsageDetail_20' ) start [2025-02-18 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503211', 'tblTempUsageDetail_20' ) end [2025-02-18 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:56:27] Production.INFO: ==20442== Releasing lock... [2025-02-18 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:56:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:57:05 [end_date_ymd] => 2025-02-18 12:57:05 [RateCDR] => 1 ) [2025-02-18 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 09:57:05' and `end` < '2025-02-18 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 12:57:18] Production.INFO: count ==5526 [2025-02-18 12:57:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:57:05 - End Time 2025-02-18 12:57:05 [2025-02-18 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503216', 'tblTempUsageDetail_20' ) start [2025-02-18 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503216', 'tblTempUsageDetail_20' ) end [2025-02-18 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503216', 'tblTempVendorCDR_20' ) start [2025-02-18 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503216', 'tblTempVendorCDR_20' ) end [2025-02-18 12:57:21] Production.INFO: ProcessCDR(1,14503216,1,1,2) [2025-02-18 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503216', 'tblTempUsageDetail_20' ) start [2025-02-18 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503216', 'tblTempUsageDetail_20' ) end [2025-02-18 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:57:26] Production.INFO: ==20535== Releasing lock... [2025-02-18 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:57:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:58:06 [end_date_ymd] => 2025-02-18 12:58:06 [RateCDR] => 1 ) [2025-02-18 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-18 09:58:06' and `end` < '2025-02-18 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-18 12:58:19] Production.INFO: count ==5508 [2025-02-18 12:58:21] Production.ERROR: pbx CDR StartTime 2025-02-18 09:58:06 - End Time 2025-02-18 12:58:06 [2025-02-18 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503221', 'tblTempUsageDetail_20' ) start [2025-02-18 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503221', 'tblTempUsageDetail_20' ) end [2025-02-18 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503221', 'tblTempVendorCDR_20' ) start [2025-02-18 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503221', 'tblTempVendorCDR_20' ) end [2025-02-18 12:58:22] Production.INFO: ProcessCDR(1,14503221,1,1,2) [2025-02-18 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503221', 'tblTempUsageDetail_20' ) start [2025-02-18 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503221', 'tblTempUsageDetail_20' ) end [2025-02-18 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:58:27] Production.INFO: ==20627== Releasing lock... [2025-02-18 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:58:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 09:59:05 [end_date_ymd] => 2025-02-18 12:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 09:59:05' and `end` < '2025-02-18 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-18 12:59:17] Production.INFO: count ==5495 [2025-02-18 12:59:20] Production.ERROR: pbx CDR StartTime 2025-02-18 09:59:05 - End Time 2025-02-18 12:59:05 [2025-02-18 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503226', 'tblTempUsageDetail_20' ) start [2025-02-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503226', 'tblTempUsageDetail_20' ) end [2025-02-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503226', 'tblTempVendorCDR_20' ) start [2025-02-18 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503226', 'tblTempVendorCDR_20' ) end [2025-02-18 12:59:20] Production.INFO: ProcessCDR(1,14503226,1,1,2) [2025-02-18 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503226', 'tblTempUsageDetail_20' ) start [2025-02-18 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503226', 'tblTempUsageDetail_20' ) end [2025-02-18 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 12:59:24] Production.INFO: ==20710== Releasing lock... [2025-02-18 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 12:59:24] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:00:07 [end_date_ymd] => 2025-02-18 13:00:07 [RateCDR] => 1 ) [2025-02-18 13: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-18 10:00:07' and `end` < '2025-02-18 13: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-18 13:00:19] Production.INFO: count ==5510 [2025-02-18 13:00:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:00:07 - End Time 2025-02-18 13:00:07 [2025-02-18 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503232', 'tblTempUsageDetail_20' ) start [2025-02-18 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503232', 'tblTempUsageDetail_20' ) end [2025-02-18 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503232', 'tblTempVendorCDR_20' ) start [2025-02-18 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503232', 'tblTempVendorCDR_20' ) end [2025-02-18 13:00:22] Production.INFO: ProcessCDR(1,14503232,1,1,2) [2025-02-18 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503232', 'tblTempUsageDetail_20' ) start [2025-02-18 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503232', 'tblTempUsageDetail_20' ) end [2025-02-18 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:00:27] Production.INFO: ==20800== Releasing lock... [2025-02-18 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:00:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:01:05 [end_date_ymd] => 2025-02-18 13:01:05 [RateCDR] => 1 ) [2025-02-18 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:01:05' and `end` < '2025-02-18 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:01:17] Production.INFO: count ==5509 [2025-02-18 13:01:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:01:05 - End Time 2025-02-18 13:01:05 [2025-02-18 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503237', 'tblTempUsageDetail_20' ) start [2025-02-18 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503237', 'tblTempUsageDetail_20' ) end [2025-02-18 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503237', 'tblTempVendorCDR_20' ) start [2025-02-18 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503237', 'tblTempVendorCDR_20' ) end [2025-02-18 13:01:20] Production.INFO: ProcessCDR(1,14503237,1,1,2) [2025-02-18 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503237', 'tblTempUsageDetail_20' ) start [2025-02-18 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503237', 'tblTempUsageDetail_20' ) end [2025-02-18 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:01:26] Production.INFO: ==20897== Releasing lock... [2025-02-18 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:01:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:02:06 [end_date_ymd] => 2025-02-18 13:02:06 [RateCDR] => 1 ) [2025-02-18 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:02:06' and `end` < '2025-02-18 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:02:18] Production.INFO: count ==5498 [2025-02-18 13:02:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:02:06 - End Time 2025-02-18 13:02:06 [2025-02-18 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503242', 'tblTempUsageDetail_20' ) start [2025-02-18 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503242', 'tblTempUsageDetail_20' ) end [2025-02-18 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503242', 'tblTempVendorCDR_20' ) start [2025-02-18 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503242', 'tblTempVendorCDR_20' ) end [2025-02-18 13:02:21] Production.INFO: ProcessCDR(1,14503242,1,1,2) [2025-02-18 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503242', 'tblTempUsageDetail_20' ) start [2025-02-18 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503242', 'tblTempUsageDetail_20' ) end [2025-02-18 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:02:27] Production.INFO: ==20984== Releasing lock... [2025-02-18 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:02:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:03:05 [end_date_ymd] => 2025-02-18 13:03:05 [RateCDR] => 1 ) [2025-02-18 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:03:05' and `end` < '2025-02-18 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:03:18] Production.INFO: count ==5498 [2025-02-18 13:03:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:03:05 - End Time 2025-02-18 13:03:05 [2025-02-18 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503247', 'tblTempUsageDetail_20' ) start [2025-02-18 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503247', 'tblTempUsageDetail_20' ) end [2025-02-18 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503247', 'tblTempVendorCDR_20' ) start [2025-02-18 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503247', 'tblTempVendorCDR_20' ) end [2025-02-18 13:03:21] Production.INFO: ProcessCDR(1,14503247,1,1,2) [2025-02-18 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503247', 'tblTempUsageDetail_20' ) start [2025-02-18 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503247', 'tblTempUsageDetail_20' ) end [2025-02-18 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:03:27] Production.INFO: ==21069== Releasing lock... [2025-02-18 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:03:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:04:06 [end_date_ymd] => 2025-02-18 13:04:06 [RateCDR] => 1 ) [2025-02-18 13: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-18 10:04:06' and `end` < '2025-02-18 13: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-18 13:04:19] Production.INFO: count ==5485 [2025-02-18 13:04:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:04:06 - End Time 2025-02-18 13:04:06 [2025-02-18 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503252', 'tblTempUsageDetail_20' ) start [2025-02-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503252', 'tblTempUsageDetail_20' ) end [2025-02-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503252', 'tblTempVendorCDR_20' ) start [2025-02-18 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503252', 'tblTempVendorCDR_20' ) end [2025-02-18 13:04:21] Production.INFO: ProcessCDR(1,14503252,1,1,2) [2025-02-18 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503252', 'tblTempUsageDetail_20' ) start [2025-02-18 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503252', 'tblTempUsageDetail_20' ) end [2025-02-18 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:04:27] Production.INFO: ==21195== Releasing lock... [2025-02-18 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:04:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:05:05 [end_date_ymd] => 2025-02-18 13:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:05:05' and `end` < '2025-02-18 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-18 13:05:18] Production.INFO: count ==5489 [2025-02-18 13:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:05:05 - End Time 2025-02-18 13:05:05 [2025-02-18 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503257', 'tblTempUsageDetail_20' ) start [2025-02-18 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503257', 'tblTempUsageDetail_20' ) end [2025-02-18 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503257', 'tblTempVendorCDR_20' ) start [2025-02-18 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503257', 'tblTempVendorCDR_20' ) end [2025-02-18 13:05:21] Production.INFO: ProcessCDR(1,14503257,1,1,2) [2025-02-18 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503257', 'tblTempUsageDetail_20' ) start [2025-02-18 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503257', 'tblTempUsageDetail_20' ) end [2025-02-18 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:05:26] Production.INFO: ==21292== Releasing lock... [2025-02-18 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:05:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:06:05 [end_date_ymd] => 2025-02-18 13:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:06:05' and `end` < '2025-02-18 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-18 13:06:18] Production.INFO: count ==5472 [2025-02-18 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:06:05 - End Time 2025-02-18 13:06:05 [2025-02-18 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503262', 'tblTempUsageDetail_20' ) start [2025-02-18 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503262', 'tblTempUsageDetail_20' ) end [2025-02-18 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503262', 'tblTempVendorCDR_20' ) start [2025-02-18 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503262', 'tblTempVendorCDR_20' ) end [2025-02-18 13:06:21] Production.INFO: ProcessCDR(1,14503262,1,1,2) [2025-02-18 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503262', 'tblTempUsageDetail_20' ) start [2025-02-18 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503262', 'tblTempUsageDetail_20' ) end [2025-02-18 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:06:27] Production.INFO: ==21376== Releasing lock... [2025-02-18 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:06:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:07:06 [end_date_ymd] => 2025-02-18 13:07:06 [RateCDR] => 1 ) [2025-02-18 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-18 10:07:06' and `end` < '2025-02-18 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-18 13:07:18] Production.INFO: count ==5471 [2025-02-18 13:07:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:07:06 - End Time 2025-02-18 13:07:06 [2025-02-18 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503267', 'tblTempUsageDetail_20' ) start [2025-02-18 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503267', 'tblTempUsageDetail_20' ) end [2025-02-18 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503267', 'tblTempVendorCDR_20' ) start [2025-02-18 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503267', 'tblTempVendorCDR_20' ) end [2025-02-18 13:07:21] Production.INFO: ProcessCDR(1,14503267,1,1,2) [2025-02-18 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503267', 'tblTempUsageDetail_20' ) start [2025-02-18 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503267', 'tblTempUsageDetail_20' ) end [2025-02-18 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:07:26] Production.INFO: ==21458== Releasing lock... [2025-02-18 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:07:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:08:06 [end_date_ymd] => 2025-02-18 13:08:06 [RateCDR] => 1 ) [2025-02-18 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:08:06' and `end` < '2025-02-18 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:08:19] Production.INFO: count ==5462 [2025-02-18 13:08:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:08:06 - End Time 2025-02-18 13:08:06 [2025-02-18 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503272', 'tblTempUsageDetail_20' ) start [2025-02-18 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503272', 'tblTempUsageDetail_20' ) end [2025-02-18 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503272', 'tblTempVendorCDR_20' ) start [2025-02-18 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503272', 'tblTempVendorCDR_20' ) end [2025-02-18 13:08:22] Production.INFO: ProcessCDR(1,14503272,1,1,2) [2025-02-18 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503272', 'tblTempUsageDetail_20' ) start [2025-02-18 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503272', 'tblTempUsageDetail_20' ) end [2025-02-18 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:08:27] Production.INFO: ==21544== Releasing lock... [2025-02-18 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:08:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:09:05 [end_date_ymd] => 2025-02-18 13:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:09:05' and `end` < '2025-02-18 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-18 13:09:18] Production.INFO: count ==5455 [2025-02-18 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:09:05 - End Time 2025-02-18 13:09:05 [2025-02-18 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503277', 'tblTempUsageDetail_20' ) start [2025-02-18 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503277', 'tblTempUsageDetail_20' ) end [2025-02-18 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503277', 'tblTempVendorCDR_20' ) start [2025-02-18 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503277', 'tblTempVendorCDR_20' ) end [2025-02-18 13:09:21] Production.INFO: ProcessCDR(1,14503277,1,1,2) [2025-02-18 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503277', 'tblTempUsageDetail_20' ) start [2025-02-18 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503277', 'tblTempUsageDetail_20' ) end [2025-02-18 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:09:26] Production.INFO: ==21627== Releasing lock... [2025-02-18 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:09:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:10:06 [end_date_ymd] => 2025-02-18 13:10:06 [RateCDR] => 1 ) [2025-02-18 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:10:06' and `end` < '2025-02-18 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:10:19] Production.INFO: count ==5460 [2025-02-18 13:10:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:10:06 - End Time 2025-02-18 13:10:06 [2025-02-18 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503283', 'tblTempUsageDetail_20' ) start [2025-02-18 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503283', 'tblTempUsageDetail_20' ) end [2025-02-18 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503283', 'tblTempVendorCDR_20' ) start [2025-02-18 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503283', 'tblTempVendorCDR_20' ) end [2025-02-18 13:10:21] Production.INFO: ProcessCDR(1,14503283,1,1,2) [2025-02-18 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503283', 'tblTempUsageDetail_20' ) start [2025-02-18 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503283', 'tblTempUsageDetail_20' ) end [2025-02-18 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:10:26] Production.INFO: ==21712== Releasing lock... [2025-02-18 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:10:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:11:05 [end_date_ymd] => 2025-02-18 13:11:05 [RateCDR] => 1 ) [2025-02-18 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:11:05' and `end` < '2025-02-18 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:11:18] Production.INFO: count ==5427 [2025-02-18 13:11:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:11:05 - End Time 2025-02-18 13:11:05 [2025-02-18 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503288', 'tblTempUsageDetail_20' ) start [2025-02-18 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503288', 'tblTempUsageDetail_20' ) end [2025-02-18 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503288', 'tblTempVendorCDR_20' ) start [2025-02-18 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503288', 'tblTempVendorCDR_20' ) end [2025-02-18 13:11:21] Production.INFO: ProcessCDR(1,14503288,1,1,2) [2025-02-18 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503288', 'tblTempUsageDetail_20' ) start [2025-02-18 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503288', 'tblTempUsageDetail_20' ) end [2025-02-18 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:11:26] Production.INFO: ==21802== Releasing lock... [2025-02-18 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:11:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:12:06 [end_date_ymd] => 2025-02-18 13:12:06 [RateCDR] => 1 ) [2025-02-18 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-18 10:12:06' and `end` < '2025-02-18 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-18 13:12:19] Production.INFO: count ==5430 [2025-02-18 13:12:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:12:06 - End Time 2025-02-18 13:12:06 [2025-02-18 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503293', 'tblTempUsageDetail_20' ) start [2025-02-18 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503293', 'tblTempUsageDetail_20' ) end [2025-02-18 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503293', 'tblTempVendorCDR_20' ) start [2025-02-18 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503293', 'tblTempVendorCDR_20' ) end [2025-02-18 13:12:22] Production.INFO: ProcessCDR(1,14503293,1,1,2) [2025-02-18 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503293', 'tblTempUsageDetail_20' ) start [2025-02-18 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503293', 'tblTempUsageDetail_20' ) end [2025-02-18 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:12:27] Production.INFO: ==21888== Releasing lock... [2025-02-18 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:12:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:13:05 [end_date_ymd] => 2025-02-18 13:13:05 [RateCDR] => 1 ) [2025-02-18 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:13:05' and `end` < '2025-02-18 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:13:18] Production.INFO: count ==5418 [2025-02-18 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:13:05 - End Time 2025-02-18 13:13:05 [2025-02-18 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503298', 'tblTempUsageDetail_20' ) start [2025-02-18 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503298', 'tblTempUsageDetail_20' ) end [2025-02-18 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503298', 'tblTempVendorCDR_20' ) start [2025-02-18 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503298', 'tblTempVendorCDR_20' ) end [2025-02-18 13:13:21] Production.INFO: ProcessCDR(1,14503298,1,1,2) [2025-02-18 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503298', 'tblTempUsageDetail_20' ) start [2025-02-18 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503298', 'tblTempUsageDetail_20' ) end [2025-02-18 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:13:27] Production.INFO: ==21971== Releasing lock... [2025-02-18 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:13:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:14:06 [end_date_ymd] => 2025-02-18 13:14:06 [RateCDR] => 1 ) [2025-02-18 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:14:06' and `end` < '2025-02-18 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:14:19] Production.INFO: count ==5426 [2025-02-18 13:14:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:14:06 - End Time 2025-02-18 13:14:06 [2025-02-18 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503303', 'tblTempUsageDetail_20' ) start [2025-02-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503303', 'tblTempUsageDetail_20' ) end [2025-02-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503303', 'tblTempVendorCDR_20' ) start [2025-02-18 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503303', 'tblTempVendorCDR_20' ) end [2025-02-18 13:14:22] Production.INFO: ProcessCDR(1,14503303,1,1,2) [2025-02-18 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503303', 'tblTempUsageDetail_20' ) start [2025-02-18 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503303', 'tblTempUsageDetail_20' ) end [2025-02-18 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:14:27] Production.INFO: ==22054== Releasing lock... [2025-02-18 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:14:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:15:05 [end_date_ymd] => 2025-02-18 13:15:05 [RateCDR] => 1 ) [2025-02-18 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:15:05' and `end` < '2025-02-18 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:15:17] Production.INFO: count ==5446 [2025-02-18 13:15:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:15:05 - End Time 2025-02-18 13:15:05 [2025-02-18 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503307', 'tblTempUsageDetail_20' ) start [2025-02-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503307', 'tblTempUsageDetail_20' ) end [2025-02-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503307', 'tblTempVendorCDR_20' ) start [2025-02-18 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503307', 'tblTempVendorCDR_20' ) end [2025-02-18 13:15:20] Production.INFO: ProcessCDR(1,14503307,1,1,2) [2025-02-18 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503307', 'tblTempUsageDetail_20' ) start [2025-02-18 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503307', 'tblTempUsageDetail_20' ) end [2025-02-18 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:15:26] Production.INFO: ==22141== Releasing lock... [2025-02-18 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:15:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:16:06 [end_date_ymd] => 2025-02-18 13:16:06 [RateCDR] => 1 ) [2025-02-18 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:16:06' and `end` < '2025-02-18 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:16:18] Production.INFO: count ==5449 [2025-02-18 13:16:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:16:06 - End Time 2025-02-18 13:16:06 [2025-02-18 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503313', 'tblTempUsageDetail_20' ) start [2025-02-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503313', 'tblTempUsageDetail_20' ) end [2025-02-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503313', 'tblTempVendorCDR_20' ) start [2025-02-18 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503313', 'tblTempVendorCDR_20' ) end [2025-02-18 13:16:21] Production.INFO: ProcessCDR(1,14503313,1,1,2) [2025-02-18 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503313', 'tblTempUsageDetail_20' ) start [2025-02-18 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503313', 'tblTempUsageDetail_20' ) end [2025-02-18 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:16:27] Production.INFO: ==22225== Releasing lock... [2025-02-18 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:16:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:17:05 [end_date_ymd] => 2025-02-18 13:17:05 [RateCDR] => 1 ) [2025-02-18 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:17:05' and `end` < '2025-02-18 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:17:18] Production.INFO: count ==5450 [2025-02-18 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:17:05 - End Time 2025-02-18 13:17:05 [2025-02-18 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503318', 'tblTempUsageDetail_20' ) start [2025-02-18 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503318', 'tblTempUsageDetail_20' ) end [2025-02-18 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503318', 'tblTempVendorCDR_20' ) start [2025-02-18 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503318', 'tblTempVendorCDR_20' ) end [2025-02-18 13:17:21] Production.INFO: ProcessCDR(1,14503318,1,1,2) [2025-02-18 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503318', 'tblTempUsageDetail_20' ) start [2025-02-18 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503318', 'tblTempUsageDetail_20' ) end [2025-02-18 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:17:26] Production.INFO: ==22310== Releasing lock... [2025-02-18 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:17:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:18:06 [end_date_ymd] => 2025-02-18 13:18:06 [RateCDR] => 1 ) [2025-02-18 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:18:06' and `end` < '2025-02-18 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:18:19] Production.INFO: count ==5437 [2025-02-18 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:18:06 - End Time 2025-02-18 13:18:06 [2025-02-18 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503323', 'tblTempUsageDetail_20' ) start [2025-02-18 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503323', 'tblTempUsageDetail_20' ) end [2025-02-18 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503323', 'tblTempVendorCDR_20' ) start [2025-02-18 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503323', 'tblTempVendorCDR_20' ) end [2025-02-18 13:18:22] Production.INFO: ProcessCDR(1,14503323,1,1,2) [2025-02-18 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503323', 'tblTempUsageDetail_20' ) start [2025-02-18 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503323', 'tblTempUsageDetail_20' ) end [2025-02-18 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:18:27] Production.INFO: ==22399== Releasing lock... [2025-02-18 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:18:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:19:05 [end_date_ymd] => 2025-02-18 13:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:19:05' and `end` < '2025-02-18 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-18 13:19:18] Production.INFO: count ==5439 [2025-02-18 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:19:05 - End Time 2025-02-18 13:19:05 [2025-02-18 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503328', 'tblTempUsageDetail_20' ) start [2025-02-18 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503328', 'tblTempUsageDetail_20' ) end [2025-02-18 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503328', 'tblTempVendorCDR_20' ) start [2025-02-18 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503328', 'tblTempVendorCDR_20' ) end [2025-02-18 13:19:21] Production.INFO: ProcessCDR(1,14503328,1,1,2) [2025-02-18 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503328', 'tblTempUsageDetail_20' ) start [2025-02-18 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503328', 'tblTempUsageDetail_20' ) end [2025-02-18 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:19:27] Production.INFO: ==22485== Releasing lock... [2025-02-18 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:19:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:20:07 [end_date_ymd] => 2025-02-18 13:20:07 [RateCDR] => 1 ) [2025-02-18 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:20:07' and `end` < '2025-02-18 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:20:20] Production.INFO: count ==5437 [2025-02-18 13:20:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:20:07 - End Time 2025-02-18 13:20:07 [2025-02-18 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503334', 'tblTempUsageDetail_20' ) start [2025-02-18 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503334', 'tblTempUsageDetail_20' ) end [2025-02-18 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503334', 'tblTempVendorCDR_20' ) start [2025-02-18 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503334', 'tblTempVendorCDR_20' ) end [2025-02-18 13:20:22] Production.INFO: ProcessCDR(1,14503334,1,1,2) [2025-02-18 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503334', 'tblTempUsageDetail_20' ) start [2025-02-18 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503334', 'tblTempUsageDetail_20' ) end [2025-02-18 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:20:28] Production.INFO: ==22612== Releasing lock... [2025-02-18 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:20:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:21:06 [end_date_ymd] => 2025-02-18 13:21:06 [RateCDR] => 1 ) [2025-02-18 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:21:06' and `end` < '2025-02-18 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:21:19] Production.INFO: count ==5436 [2025-02-18 13:21:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:21:06 - End Time 2025-02-18 13:21:06 [2025-02-18 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503339', 'tblTempUsageDetail_20' ) start [2025-02-18 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503339', 'tblTempUsageDetail_20' ) end [2025-02-18 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503339', 'tblTempVendorCDR_20' ) start [2025-02-18 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503339', 'tblTempVendorCDR_20' ) end [2025-02-18 13:21:22] Production.INFO: ProcessCDR(1,14503339,1,1,2) [2025-02-18 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503339', 'tblTempUsageDetail_20' ) start [2025-02-18 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503339', 'tblTempUsageDetail_20' ) end [2025-02-18 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:21:25] Production.INFO: ==22697== Releasing lock... [2025-02-18 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:21:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:22:06 [end_date_ymd] => 2025-02-18 13:22:06 [RateCDR] => 1 ) [2025-02-18 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:22:06' and `end` < '2025-02-18 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:22:19] Production.INFO: count ==5435 [2025-02-18 13:22:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:22:06 - End Time 2025-02-18 13:22:06 [2025-02-18 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503344', 'tblTempUsageDetail_20' ) start [2025-02-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503344', 'tblTempUsageDetail_20' ) end [2025-02-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503344', 'tblTempVendorCDR_20' ) start [2025-02-18 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503344', 'tblTempVendorCDR_20' ) end [2025-02-18 13:22:22] Production.INFO: ProcessCDR(1,14503344,1,1,2) [2025-02-18 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503344', 'tblTempUsageDetail_20' ) start [2025-02-18 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503344', 'tblTempUsageDetail_20' ) end [2025-02-18 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:22:27] Production.INFO: ==22782== Releasing lock... [2025-02-18 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:22:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:23:05 [end_date_ymd] => 2025-02-18 13:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:23:05' and `end` < '2025-02-18 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-18 13:23:18] Production.INFO: count ==5424 [2025-02-18 13:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:23:05 - End Time 2025-02-18 13:23:05 [2025-02-18 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503349', 'tblTempUsageDetail_20' ) start [2025-02-18 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503349', 'tblTempUsageDetail_20' ) end [2025-02-18 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503349', 'tblTempVendorCDR_20' ) start [2025-02-18 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503349', 'tblTempVendorCDR_20' ) end [2025-02-18 13:23:21] Production.INFO: ProcessCDR(1,14503349,1,1,2) [2025-02-18 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503349', 'tblTempUsageDetail_20' ) start [2025-02-18 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503349', 'tblTempUsageDetail_20' ) end [2025-02-18 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:23:27] Production.INFO: ==22866== Releasing lock... [2025-02-18 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:23:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:24:06 [end_date_ymd] => 2025-02-18 13:24:06 [RateCDR] => 1 ) [2025-02-18 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:24:06' and `end` < '2025-02-18 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:24:19] Production.INFO: count ==5427 [2025-02-18 13:24:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:24:06 - End Time 2025-02-18 13:24:06 [2025-02-18 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503354', 'tblTempUsageDetail_20' ) start [2025-02-18 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503354', 'tblTempUsageDetail_20' ) end [2025-02-18 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503354', 'tblTempVendorCDR_20' ) start [2025-02-18 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503354', 'tblTempVendorCDR_20' ) end [2025-02-18 13:24:22] Production.INFO: ProcessCDR(1,14503354,1,1,2) [2025-02-18 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503354', 'tblTempUsageDetail_20' ) start [2025-02-18 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503354', 'tblTempUsageDetail_20' ) end [2025-02-18 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:24:27] Production.INFO: ==22949== Releasing lock... [2025-02-18 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:24:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:25:05 [end_date_ymd] => 2025-02-18 13:25:05 [RateCDR] => 1 ) [2025-02-18 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:25:05' and `end` < '2025-02-18 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-18 13:25:18] Production.INFO: count ==5421 [2025-02-18 13:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:25:05 - End Time 2025-02-18 13:25:05 [2025-02-18 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503359', 'tblTempUsageDetail_20' ) start [2025-02-18 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503359', 'tblTempUsageDetail_20' ) end [2025-02-18 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503359', 'tblTempVendorCDR_20' ) start [2025-02-18 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503359', 'tblTempVendorCDR_20' ) end [2025-02-18 13:25:21] Production.INFO: ProcessCDR(1,14503359,1,1,2) [2025-02-18 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503359', 'tblTempUsageDetail_20' ) start [2025-02-18 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503359', 'tblTempUsageDetail_20' ) end [2025-02-18 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:25:27] Production.INFO: ==23032== Releasing lock... [2025-02-18 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:25:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:26:06 [end_date_ymd] => 2025-02-18 13:26:06 [RateCDR] => 1 ) [2025-02-18 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-18 10:26:06' and `end` < '2025-02-18 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-18 13:26:19] Production.INFO: count ==5424 [2025-02-18 13:26:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:26:06 - End Time 2025-02-18 13:26:06 [2025-02-18 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503364', 'tblTempUsageDetail_20' ) start [2025-02-18 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503364', 'tblTempUsageDetail_20' ) end [2025-02-18 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503364', 'tblTempVendorCDR_20' ) start [2025-02-18 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503364', 'tblTempVendorCDR_20' ) end [2025-02-18 13:26:22] Production.INFO: ProcessCDR(1,14503364,1,1,2) [2025-02-18 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503364', 'tblTempUsageDetail_20' ) start [2025-02-18 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503364', 'tblTempUsageDetail_20' ) end [2025-02-18 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:26:28] Production.INFO: ==23122== Releasing lock... [2025-02-18 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:26:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:27:05 [end_date_ymd] => 2025-02-18 13:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:27:05' and `end` < '2025-02-18 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-18 13:27:18] Production.INFO: count ==5419 [2025-02-18 13:27:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:27:05 - End Time 2025-02-18 13:27:05 [2025-02-18 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503369', 'tblTempUsageDetail_20' ) start [2025-02-18 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503369', 'tblTempUsageDetail_20' ) end [2025-02-18 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503369', 'tblTempVendorCDR_20' ) start [2025-02-18 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503369', 'tblTempVendorCDR_20' ) end [2025-02-18 13:27:21] Production.INFO: ProcessCDR(1,14503369,1,1,2) [2025-02-18 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503369', 'tblTempUsageDetail_20' ) start [2025-02-18 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503369', 'tblTempUsageDetail_20' ) end [2025-02-18 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:27:26] Production.INFO: ==23205== Releasing lock... [2025-02-18 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:27:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:28:06 [end_date_ymd] => 2025-02-18 13:28:06 [RateCDR] => 1 ) [2025-02-18 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:28:06' and `end` < '2025-02-18 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:28:19] Production.INFO: count ==5413 [2025-02-18 13:28:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:28:06 - End Time 2025-02-18 13:28:06 [2025-02-18 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503374', 'tblTempUsageDetail_20' ) start [2025-02-18 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503374', 'tblTempUsageDetail_20' ) end [2025-02-18 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503374', 'tblTempVendorCDR_20' ) start [2025-02-18 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503374', 'tblTempVendorCDR_20' ) end [2025-02-18 13:28:22] Production.INFO: ProcessCDR(1,14503374,1,1,2) [2025-02-18 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503374', 'tblTempUsageDetail_20' ) start [2025-02-18 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503374', 'tblTempUsageDetail_20' ) end [2025-02-18 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:28:27] Production.INFO: ==23288== Releasing lock... [2025-02-18 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:28:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:29:05 [end_date_ymd] => 2025-02-18 13:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:29:05' and `end` < '2025-02-18 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-18 13:29:18] Production.INFO: count ==5429 [2025-02-18 13:29:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:29:05 - End Time 2025-02-18 13:29:05 [2025-02-18 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503379', 'tblTempUsageDetail_20' ) start [2025-02-18 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503379', 'tblTempUsageDetail_20' ) end [2025-02-18 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503379', 'tblTempVendorCDR_20' ) start [2025-02-18 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503379', 'tblTempVendorCDR_20' ) end [2025-02-18 13:29:20] Production.INFO: ProcessCDR(1,14503379,1,1,2) [2025-02-18 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503379', 'tblTempUsageDetail_20' ) start [2025-02-18 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503379', 'tblTempUsageDetail_20' ) end [2025-02-18 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:29:26] Production.INFO: ==23369== Releasing lock... [2025-02-18 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:29:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:30:06 [end_date_ymd] => 2025-02-18 13:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 10:30:06' and `end` < '2025-02-18 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-18 13:30:19] Production.INFO: count ==5418 [2025-02-18 13:30:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:30:06 - End Time 2025-02-18 13:30:06 [2025-02-18 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503384', 'tblTempUsageDetail_20' ) start [2025-02-18 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503384', 'tblTempUsageDetail_20' ) end [2025-02-18 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503384', 'tblTempVendorCDR_20' ) start [2025-02-18 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503384', 'tblTempVendorCDR_20' ) end [2025-02-18 13:30:22] Production.INFO: ProcessCDR(1,14503384,1,1,2) [2025-02-18 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503384', 'tblTempUsageDetail_20' ) start [2025-02-18 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503384', 'tblTempUsageDetail_20' ) end [2025-02-18 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:30:27] Production.INFO: ==23464== Releasing lock... [2025-02-18 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:30:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:31:06 [end_date_ymd] => 2025-02-18 13:31:06 [RateCDR] => 1 ) [2025-02-18 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:31:06' and `end` < '2025-02-18 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:31:18] Production.INFO: count ==5442 [2025-02-18 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:31:06 - End Time 2025-02-18 13:31:06 [2025-02-18 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503390', 'tblTempUsageDetail_20' ) start [2025-02-18 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503390', 'tblTempUsageDetail_20' ) end [2025-02-18 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503390', 'tblTempVendorCDR_20' ) start [2025-02-18 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503390', 'tblTempVendorCDR_20' ) end [2025-02-18 13:31:21] Production.INFO: ProcessCDR(1,14503390,1,1,2) [2025-02-18 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503390', 'tblTempUsageDetail_20' ) start [2025-02-18 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503390', 'tblTempUsageDetail_20' ) end [2025-02-18 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:31:27] Production.INFO: ==23549== Releasing lock... [2025-02-18 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:31:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:32:06 [end_date_ymd] => 2025-02-18 13:32:06 [RateCDR] => 1 ) [2025-02-18 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:32:06' and `end` < '2025-02-18 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:32:19] Production.INFO: count ==5469 [2025-02-18 13:32:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:32:06 - End Time 2025-02-18 13:32:06 [2025-02-18 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503395', 'tblTempUsageDetail_20' ) start [2025-02-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503395', 'tblTempUsageDetail_20' ) end [2025-02-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503395', 'tblTempVendorCDR_20' ) start [2025-02-18 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503395', 'tblTempVendorCDR_20' ) end [2025-02-18 13:32:22] Production.INFO: ProcessCDR(1,14503395,1,1,2) [2025-02-18 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503395', 'tblTempUsageDetail_20' ) start [2025-02-18 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503395', 'tblTempUsageDetail_20' ) end [2025-02-18 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:32:27] Production.INFO: ==23641== Releasing lock... [2025-02-18 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:32:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:33:06 [end_date_ymd] => 2025-02-18 13:33:06 [RateCDR] => 1 ) [2025-02-18 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:33:06' and `end` < '2025-02-18 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:33:19] Production.INFO: count ==5464 [2025-02-18 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:33:06 - End Time 2025-02-18 13:33:06 [2025-02-18 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503400', 'tblTempUsageDetail_20' ) start [2025-02-18 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503400', 'tblTempUsageDetail_20' ) end [2025-02-18 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503400', 'tblTempVendorCDR_20' ) start [2025-02-18 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503400', 'tblTempVendorCDR_20' ) end [2025-02-18 13:33:21] Production.INFO: ProcessCDR(1,14503400,1,1,2) [2025-02-18 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503400', 'tblTempUsageDetail_20' ) start [2025-02-18 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503400', 'tblTempUsageDetail_20' ) end [2025-02-18 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:33:27] Production.INFO: ==23725== Releasing lock... [2025-02-18 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:33:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:34:05 [end_date_ymd] => 2025-02-18 13:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:34:05' and `end` < '2025-02-18 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-18 13:34:18] Production.INFO: count ==5448 [2025-02-18 13:34:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:34:05 - End Time 2025-02-18 13:34:05 [2025-02-18 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503405', 'tblTempUsageDetail_20' ) start [2025-02-18 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503405', 'tblTempUsageDetail_20' ) end [2025-02-18 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503405', 'tblTempVendorCDR_20' ) start [2025-02-18 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503405', 'tblTempVendorCDR_20' ) end [2025-02-18 13:34:21] Production.INFO: ProcessCDR(1,14503405,1,1,2) [2025-02-18 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503405', 'tblTempUsageDetail_20' ) start [2025-02-18 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503405', 'tblTempUsageDetail_20' ) end [2025-02-18 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:34:26] Production.INFO: ==23808== Releasing lock... [2025-02-18 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:34:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:35:05 [end_date_ymd] => 2025-02-18 13:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:35:05' and `end` < '2025-02-18 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-18 13:35:18] Production.INFO: count ==5454 [2025-02-18 13:35:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:35:05 - End Time 2025-02-18 13:35:05 [2025-02-18 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503410', 'tblTempUsageDetail_20' ) start [2025-02-18 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503410', 'tblTempUsageDetail_20' ) end [2025-02-18 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503410', 'tblTempVendorCDR_20' ) start [2025-02-18 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503410', 'tblTempVendorCDR_20' ) end [2025-02-18 13:35:21] Production.INFO: ProcessCDR(1,14503410,1,1,2) [2025-02-18 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503410', 'tblTempUsageDetail_20' ) start [2025-02-18 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503410', 'tblTempUsageDetail_20' ) end [2025-02-18 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:35:26] Production.INFO: ==23932== Releasing lock... [2025-02-18 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:35:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:36:05 [end_date_ymd] => 2025-02-18 13:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:36:05' and `end` < '2025-02-18 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-18 13:36:18] Production.INFO: count ==5463 [2025-02-18 13:36:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:36:05 - End Time 2025-02-18 13:36:05 [2025-02-18 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503415', 'tblTempUsageDetail_20' ) start [2025-02-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503415', 'tblTempUsageDetail_20' ) end [2025-02-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503415', 'tblTempVendorCDR_20' ) start [2025-02-18 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503415', 'tblTempVendorCDR_20' ) end [2025-02-18 13:36:21] Production.INFO: ProcessCDR(1,14503415,1,1,2) [2025-02-18 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503415', 'tblTempUsageDetail_20' ) start [2025-02-18 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503415', 'tblTempUsageDetail_20' ) end [2025-02-18 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:36:26] Production.INFO: ==24015== Releasing lock... [2025-02-18 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:36:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:37:05 [end_date_ymd] => 2025-02-18 13:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:37:05' and `end` < '2025-02-18 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-18 13:37:18] Production.INFO: count ==5465 [2025-02-18 13:37:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:37:05 - End Time 2025-02-18 13:37:05 [2025-02-18 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503420', 'tblTempUsageDetail_20' ) start [2025-02-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503420', 'tblTempUsageDetail_20' ) end [2025-02-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503420', 'tblTempVendorCDR_20' ) start [2025-02-18 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503420', 'tblTempVendorCDR_20' ) end [2025-02-18 13:37:20] Production.INFO: ProcessCDR(1,14503420,1,1,2) [2025-02-18 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503420', 'tblTempUsageDetail_20' ) start [2025-02-18 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503420', 'tblTempUsageDetail_20' ) end [2025-02-18 13:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:37:24] Production.INFO: ==24102== Releasing lock... [2025-02-18 13:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:37:24] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:38:06 [end_date_ymd] => 2025-02-18 13:38:06 [RateCDR] => 1 ) [2025-02-18 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:38:06' and `end` < '2025-02-18 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:38:19] Production.INFO: count ==5472 [2025-02-18 13:38:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:38:06 - End Time 2025-02-18 13:38:06 [2025-02-18 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503425', 'tblTempUsageDetail_20' ) start [2025-02-18 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503425', 'tblTempUsageDetail_20' ) end [2025-02-18 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503425', 'tblTempVendorCDR_20' ) start [2025-02-18 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503425', 'tblTempVendorCDR_20' ) end [2025-02-18 13:38:22] Production.INFO: ProcessCDR(1,14503425,1,1,2) [2025-02-18 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503425', 'tblTempUsageDetail_20' ) start [2025-02-18 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503425', 'tblTempUsageDetail_20' ) end [2025-02-18 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:38:27] Production.INFO: ==24188== Releasing lock... [2025-02-18 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:38:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:39:05 [end_date_ymd] => 2025-02-18 13:39:05 [RateCDR] => 1 ) [2025-02-18 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:39:05' and `end` < '2025-02-18 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:39:18] Production.INFO: count ==5474 [2025-02-18 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:39:05 - End Time 2025-02-18 13:39:05 [2025-02-18 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503430', 'tblTempUsageDetail_20' ) start [2025-02-18 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503430', 'tblTempUsageDetail_20' ) end [2025-02-18 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503430', 'tblTempVendorCDR_20' ) start [2025-02-18 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503430', 'tblTempVendorCDR_20' ) end [2025-02-18 13:39:21] Production.INFO: ProcessCDR(1,14503430,1,1,2) [2025-02-18 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503430', 'tblTempUsageDetail_20' ) start [2025-02-18 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503430', 'tblTempUsageDetail_20' ) end [2025-02-18 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:39:26] Production.INFO: ==24270== Releasing lock... [2025-02-18 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:39:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:40:06 [end_date_ymd] => 2025-02-18 13:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 10:40:06' and `end` < '2025-02-18 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-18 13:40:19] Production.INFO: count ==5485 [2025-02-18 13:40:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:40:06 - End Time 2025-02-18 13:40:06 [2025-02-18 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503436', 'tblTempUsageDetail_20' ) start [2025-02-18 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503436', 'tblTempUsageDetail_20' ) end [2025-02-18 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503436', 'tblTempVendorCDR_20' ) start [2025-02-18 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503436', 'tblTempVendorCDR_20' ) end [2025-02-18 13:40:22] Production.INFO: ProcessCDR(1,14503436,1,1,2) [2025-02-18 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503436', 'tblTempUsageDetail_20' ) start [2025-02-18 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503436', 'tblTempUsageDetail_20' ) end [2025-02-18 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:40:26] Production.INFO: ==24360== Releasing lock... [2025-02-18 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:40:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:41:06 [end_date_ymd] => 2025-02-18 13:41:06 [RateCDR] => 1 ) [2025-02-18 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:41:06' and `end` < '2025-02-18 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:41:19] Production.INFO: count ==5508 [2025-02-18 13:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:41:06 - End Time 2025-02-18 13:41:06 [2025-02-18 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503441', 'tblTempUsageDetail_20' ) start [2025-02-18 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503441', 'tblTempUsageDetail_20' ) end [2025-02-18 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503441', 'tblTempVendorCDR_20' ) start [2025-02-18 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503441', 'tblTempVendorCDR_20' ) end [2025-02-18 13:41:22] Production.INFO: ProcessCDR(1,14503441,1,1,2) [2025-02-18 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503441', 'tblTempUsageDetail_20' ) start [2025-02-18 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503441', 'tblTempUsageDetail_20' ) end [2025-02-18 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:41:27] Production.INFO: ==24448== Releasing lock... [2025-02-18 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:41:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:42:06 [end_date_ymd] => 2025-02-18 13:42:06 [RateCDR] => 1 ) [2025-02-18 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:42:06' and `end` < '2025-02-18 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:42:19] Production.INFO: count ==5502 [2025-02-18 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:42:06 - End Time 2025-02-18 13:42:06 [2025-02-18 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503446', 'tblTempUsageDetail_20' ) start [2025-02-18 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503446', 'tblTempUsageDetail_20' ) end [2025-02-18 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503446', 'tblTempVendorCDR_20' ) start [2025-02-18 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503446', 'tblTempVendorCDR_20' ) end [2025-02-18 13:42:22] Production.INFO: ProcessCDR(1,14503446,1,1,2) [2025-02-18 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503446', 'tblTempUsageDetail_20' ) start [2025-02-18 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503446', 'tblTempUsageDetail_20' ) end [2025-02-18 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:42:27] Production.INFO: ==24530== Releasing lock... [2025-02-18 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:42:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:43:05 [end_date_ymd] => 2025-02-18 13:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:43:05' and `end` < '2025-02-18 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-18 13:43:18] Production.INFO: count ==5495 [2025-02-18 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:43:05 - End Time 2025-02-18 13:43:05 [2025-02-18 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503451', 'tblTempUsageDetail_20' ) start [2025-02-18 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503451', 'tblTempUsageDetail_20' ) end [2025-02-18 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503451', 'tblTempVendorCDR_20' ) start [2025-02-18 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503451', 'tblTempVendorCDR_20' ) end [2025-02-18 13:43:21] Production.INFO: ProcessCDR(1,14503451,1,1,2) [2025-02-18 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503451', 'tblTempUsageDetail_20' ) start [2025-02-18 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503451', 'tblTempUsageDetail_20' ) end [2025-02-18 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:43:26] Production.INFO: ==24613== Releasing lock... [2025-02-18 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:43:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:44:05 [end_date_ymd] => 2025-02-18 13:44:05 [RateCDR] => 1 ) [2025-02-18 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:44:05' and `end` < '2025-02-18 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:44:18] Production.INFO: count ==5480 [2025-02-18 13:44:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:44:05 - End Time 2025-02-18 13:44:05 [2025-02-18 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503456', 'tblTempUsageDetail_20' ) start [2025-02-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503456', 'tblTempUsageDetail_20' ) end [2025-02-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503456', 'tblTempVendorCDR_20' ) start [2025-02-18 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503456', 'tblTempVendorCDR_20' ) end [2025-02-18 13:44:21] Production.INFO: ProcessCDR(1,14503456,1,1,2) [2025-02-18 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503456', 'tblTempUsageDetail_20' ) start [2025-02-18 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503456', 'tblTempUsageDetail_20' ) end [2025-02-18 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:44:26] Production.INFO: ==24699== Releasing lock... [2025-02-18 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:44:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:45:06 [end_date_ymd] => 2025-02-18 13:45:06 [RateCDR] => 1 ) [2025-02-18 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:45:06' and `end` < '2025-02-18 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:45:19] Production.INFO: count ==5452 [2025-02-18 13:45:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:45:06 - End Time 2025-02-18 13:45:06 [2025-02-18 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503461', 'tblTempUsageDetail_20' ) start [2025-02-18 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503461', 'tblTempUsageDetail_20' ) end [2025-02-18 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503461', 'tblTempVendorCDR_20' ) start [2025-02-18 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503461', 'tblTempVendorCDR_20' ) end [2025-02-18 13:45:22] Production.INFO: ProcessCDR(1,14503461,1,1,2) [2025-02-18 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503461', 'tblTempUsageDetail_20' ) start [2025-02-18 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503461', 'tblTempUsageDetail_20' ) end [2025-02-18 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:45:27] Production.INFO: ==24786== Releasing lock... [2025-02-18 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:45:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:46:05 [end_date_ymd] => 2025-02-18 13:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:46:05' and `end` < '2025-02-18 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-18 13:46:18] Production.INFO: count ==5454 [2025-02-18 13:46:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:46:05 - End Time 2025-02-18 13:46:05 [2025-02-18 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503466', 'tblTempUsageDetail_20' ) start [2025-02-18 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503466', 'tblTempUsageDetail_20' ) end [2025-02-18 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503466', 'tblTempVendorCDR_20' ) start [2025-02-18 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503466', 'tblTempVendorCDR_20' ) end [2025-02-18 13:46:20] Production.INFO: ProcessCDR(1,14503466,1,1,2) [2025-02-18 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503466', 'tblTempUsageDetail_20' ) start [2025-02-18 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503466', 'tblTempUsageDetail_20' ) end [2025-02-18 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:46:25] Production.INFO: ==24874== Releasing lock... [2025-02-18 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:46:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:47:05 [end_date_ymd] => 2025-02-18 13:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:47:05' and `end` < '2025-02-18 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-18 13:47:18] Production.INFO: count ==5436 [2025-02-18 13:47:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:47:05 - End Time 2025-02-18 13:47:05 [2025-02-18 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503471', 'tblTempUsageDetail_20' ) start [2025-02-18 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503471', 'tblTempUsageDetail_20' ) end [2025-02-18 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503471', 'tblTempVendorCDR_20' ) start [2025-02-18 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503471', 'tblTempVendorCDR_20' ) end [2025-02-18 13:47:21] Production.INFO: ProcessCDR(1,14503471,1,1,2) [2025-02-18 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503471', 'tblTempUsageDetail_20' ) start [2025-02-18 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503471', 'tblTempUsageDetail_20' ) end [2025-02-18 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:47:26] Production.INFO: ==24961== Releasing lock... [2025-02-18 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:47:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:48:05 [end_date_ymd] => 2025-02-18 13:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:48:05' and `end` < '2025-02-18 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-18 13:48:18] Production.INFO: count ==5427 [2025-02-18 13:48:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:48:05 - End Time 2025-02-18 13:48:05 [2025-02-18 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503476', 'tblTempUsageDetail_20' ) start [2025-02-18 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503476', 'tblTempUsageDetail_20' ) end [2025-02-18 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503476', 'tblTempVendorCDR_20' ) start [2025-02-18 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503476', 'tblTempVendorCDR_20' ) end [2025-02-18 13:48:21] Production.INFO: ProcessCDR(1,14503476,1,1,2) [2025-02-18 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503476', 'tblTempUsageDetail_20' ) start [2025-02-18 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503476', 'tblTempUsageDetail_20' ) end [2025-02-18 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:48:26] Production.INFO: ==25045== Releasing lock... [2025-02-18 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:48:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:49:06 [end_date_ymd] => 2025-02-18 13:49:06 [RateCDR] => 1 ) [2025-02-18 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:49:06' and `end` < '2025-02-18 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:49:18] Production.INFO: count ==5415 [2025-02-18 13:49:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:49:06 - End Time 2025-02-18 13:49:06 [2025-02-18 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503481', 'tblTempUsageDetail_20' ) start [2025-02-18 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503481', 'tblTempUsageDetail_20' ) end [2025-02-18 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503481', 'tblTempVendorCDR_20' ) start [2025-02-18 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503481', 'tblTempVendorCDR_20' ) end [2025-02-18 13:49:21] Production.INFO: ProcessCDR(1,14503481,1,1,2) [2025-02-18 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503481', 'tblTempUsageDetail_20' ) start [2025-02-18 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503481', 'tblTempUsageDetail_20' ) end [2025-02-18 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:49:27] Production.INFO: ==25129== Releasing lock... [2025-02-18 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:49:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:50:06 [end_date_ymd] => 2025-02-18 13:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 10:50:06' and `end` < '2025-02-18 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-18 13:50:19] Production.INFO: count ==5431 [2025-02-18 13:50:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:50:06 - End Time 2025-02-18 13:50:06 [2025-02-18 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503487', 'tblTempUsageDetail_20' ) start [2025-02-18 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503487', 'tblTempUsageDetail_20' ) end [2025-02-18 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503487', 'tblTempVendorCDR_20' ) start [2025-02-18 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503487', 'tblTempVendorCDR_20' ) end [2025-02-18 13:50:22] Production.INFO: ProcessCDR(1,14503487,1,1,2) [2025-02-18 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503487', 'tblTempUsageDetail_20' ) start [2025-02-18 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503487', 'tblTempUsageDetail_20' ) end [2025-02-18 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:50:27] Production.INFO: ==25218== Releasing lock... [2025-02-18 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:50:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:51:06 [end_date_ymd] => 2025-02-18 13:51:06 [RateCDR] => 1 ) [2025-02-18 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:51:06' and `end` < '2025-02-18 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:51:18] Production.INFO: count ==5433 [2025-02-18 13:51:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:51:06 - End Time 2025-02-18 13:51:06 [2025-02-18 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503492', 'tblTempUsageDetail_20' ) start [2025-02-18 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503492', 'tblTempUsageDetail_20' ) end [2025-02-18 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503492', 'tblTempVendorCDR_20' ) start [2025-02-18 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503492', 'tblTempVendorCDR_20' ) end [2025-02-18 13:51:21] Production.INFO: ProcessCDR(1,14503492,1,1,2) [2025-02-18 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503492', 'tblTempUsageDetail_20' ) start [2025-02-18 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503492', 'tblTempUsageDetail_20' ) end [2025-02-18 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:51:27] Production.INFO: ==25342== Releasing lock... [2025-02-18 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:51:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:52:05 [end_date_ymd] => 2025-02-18 13:52:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:52:05' and `end` < '2025-02-18 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-18 13:52:18] Production.INFO: count ==5416 [2025-02-18 13:52:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:52:05 - End Time 2025-02-18 13:52:05 [2025-02-18 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503497', 'tblTempUsageDetail_20' ) start [2025-02-18 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503497', 'tblTempUsageDetail_20' ) end [2025-02-18 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503497', 'tblTempVendorCDR_20' ) start [2025-02-18 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503497', 'tblTempVendorCDR_20' ) end [2025-02-18 13:52:20] Production.INFO: ProcessCDR(1,14503497,1,1,2) [2025-02-18 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503497', 'tblTempUsageDetail_20' ) start [2025-02-18 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503497', 'tblTempUsageDetail_20' ) end [2025-02-18 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:52:26] Production.INFO: ==25427== Releasing lock... [2025-02-18 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:52:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:53:05 [end_date_ymd] => 2025-02-18 13:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:53:05' and `end` < '2025-02-18 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-18 13:53:18] Production.INFO: count ==5429 [2025-02-18 13:53:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:53:05 - End Time 2025-02-18 13:53:05 [2025-02-18 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503502', 'tblTempUsageDetail_20' ) start [2025-02-18 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503502', 'tblTempUsageDetail_20' ) end [2025-02-18 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503502', 'tblTempVendorCDR_20' ) start [2025-02-18 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503502', 'tblTempVendorCDR_20' ) end [2025-02-18 13:53:21] Production.INFO: ProcessCDR(1,14503502,1,1,2) [2025-02-18 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503502', 'tblTempUsageDetail_20' ) start [2025-02-18 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503502', 'tblTempUsageDetail_20' ) end [2025-02-18 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:53:27] Production.INFO: ==25513== Releasing lock... [2025-02-18 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:53:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:54:06 [end_date_ymd] => 2025-02-18 13:54:06 [RateCDR] => 1 ) [2025-02-18 13: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-18 10:54:06' and `end` < '2025-02-18 13: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-18 13:54:19] Production.INFO: count ==5408 [2025-02-18 13:54:22] Production.ERROR: pbx CDR StartTime 2025-02-18 10:54:06 - End Time 2025-02-18 13:54:06 [2025-02-18 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503507', 'tblTempUsageDetail_20' ) start [2025-02-18 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503507', 'tblTempUsageDetail_20' ) end [2025-02-18 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503507', 'tblTempVendorCDR_20' ) start [2025-02-18 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503507', 'tblTempVendorCDR_20' ) end [2025-02-18 13:54:22] Production.INFO: ProcessCDR(1,14503507,1,1,2) [2025-02-18 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503507', 'tblTempUsageDetail_20' ) start [2025-02-18 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503507', 'tblTempUsageDetail_20' ) end [2025-02-18 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:54:27] Production.INFO: ==25601== Releasing lock... [2025-02-18 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:54:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:55:05 [end_date_ymd] => 2025-02-18 13:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:55:05' and `end` < '2025-02-18 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-18 13:55:18] Production.INFO: count ==5396 [2025-02-18 13:55:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:55:05 - End Time 2025-02-18 13:55:05 [2025-02-18 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503512', 'tblTempUsageDetail_20' ) start [2025-02-18 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503512', 'tblTempUsageDetail_20' ) end [2025-02-18 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503512', 'tblTempVendorCDR_20' ) start [2025-02-18 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503512', 'tblTempVendorCDR_20' ) end [2025-02-18 13:55:20] Production.INFO: ProcessCDR(1,14503512,1,1,2) [2025-02-18 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503512', 'tblTempUsageDetail_20' ) start [2025-02-18 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503512', 'tblTempUsageDetail_20' ) end [2025-02-18 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:55:26] Production.INFO: ==25683== Releasing lock... [2025-02-18 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:55:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:56:06 [end_date_ymd] => 2025-02-18 13:56:06 [RateCDR] => 1 ) [2025-02-18 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:56:06' and `end` < '2025-02-18 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:56:18] Production.INFO: count ==5390 [2025-02-18 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:56:06 - End Time 2025-02-18 13:56:06 [2025-02-18 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503517', 'tblTempUsageDetail_20' ) start [2025-02-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503517', 'tblTempUsageDetail_20' ) end [2025-02-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503517', 'tblTempVendorCDR_20' ) start [2025-02-18 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503517', 'tblTempVendorCDR_20' ) end [2025-02-18 13:56:21] Production.INFO: ProcessCDR(1,14503517,1,1,2) [2025-02-18 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503517', 'tblTempUsageDetail_20' ) start [2025-02-18 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503517', 'tblTempUsageDetail_20' ) end [2025-02-18 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:56:26] Production.INFO: ==25773== Releasing lock... [2025-02-18 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:56:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-18 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:57:05 [end_date_ymd] => 2025-02-18 13:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:57:05' and `end` < '2025-02-18 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-18 13:57:18] Production.INFO: count ==5390 [2025-02-18 13:57:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:57:05 - End Time 2025-02-18 13:57:05 [2025-02-18 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503522', 'tblTempUsageDetail_20' ) start [2025-02-18 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503522', 'tblTempUsageDetail_20' ) end [2025-02-18 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503522', 'tblTempVendorCDR_20' ) start [2025-02-18 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503522', 'tblTempVendorCDR_20' ) end [2025-02-18 13:57:20] Production.INFO: ProcessCDR(1,14503522,1,1,2) [2025-02-18 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503522', 'tblTempUsageDetail_20' ) start [2025-02-18 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503522', 'tblTempUsageDetail_20' ) end [2025-02-18 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:57:26] Production.INFO: ==25856== Releasing lock... [2025-02-18 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:57:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-18 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:58:06 [end_date_ymd] => 2025-02-18 13:58:06 [RateCDR] => 1 ) [2025-02-18 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 10:58:06' and `end` < '2025-02-18 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 13:58:18] Production.INFO: count ==5375 [2025-02-18 13:58:21] Production.ERROR: pbx CDR StartTime 2025-02-18 10:58:06 - End Time 2025-02-18 13:58:06 [2025-02-18 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503527', 'tblTempUsageDetail_20' ) start [2025-02-18 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503527', 'tblTempUsageDetail_20' ) end [2025-02-18 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503527', 'tblTempVendorCDR_20' ) start [2025-02-18 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503527', 'tblTempVendorCDR_20' ) end [2025-02-18 13:58:21] Production.INFO: ProcessCDR(1,14503527,1,1,2) [2025-02-18 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503527', 'tblTempUsageDetail_20' ) start [2025-02-18 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503527', 'tblTempUsageDetail_20' ) end [2025-02-18 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:58:26] Production.INFO: ==25943== Releasing lock... [2025-02-18 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:58:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-18 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 10:59:05 [end_date_ymd] => 2025-02-18 13:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 10:59:05' and `end` < '2025-02-18 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-18 13:59:18] Production.INFO: count ==5331 [2025-02-18 13:59:20] Production.ERROR: pbx CDR StartTime 2025-02-18 10:59:05 - End Time 2025-02-18 13:59:05 [2025-02-18 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503532', 'tblTempUsageDetail_20' ) start [2025-02-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503532', 'tblTempUsageDetail_20' ) end [2025-02-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503532', 'tblTempVendorCDR_20' ) start [2025-02-18 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503532', 'tblTempVendorCDR_20' ) end [2025-02-18 13:59:20] Production.INFO: ProcessCDR(1,14503532,1,1,2) [2025-02-18 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503532', 'tblTempUsageDetail_20' ) start [2025-02-18 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503532', 'tblTempUsageDetail_20' ) end [2025-02-18 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 13:59:26] Production.INFO: ==26031== Releasing lock... [2025-02-18 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 13:59:26] Production.INFO: 68 MB #Memory Used# [2025-02-18 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:00:06 [end_date_ymd] => 2025-02-18 14:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 11:00:06' and `end` < '2025-02-18 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-18 14:00:19] Production.INFO: count ==5318 [2025-02-18 14:00:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:00:06 - End Time 2025-02-18 14:00:06 [2025-02-18 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503538', 'tblTempUsageDetail_20' ) start [2025-02-18 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503538', 'tblTempUsageDetail_20' ) end [2025-02-18 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503538', 'tblTempVendorCDR_20' ) start [2025-02-18 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503538', 'tblTempVendorCDR_20' ) end [2025-02-18 14:00:22] Production.INFO: ProcessCDR(1,14503538,1,1,2) [2025-02-18 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503538', 'tblTempUsageDetail_20' ) start [2025-02-18 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503538', 'tblTempUsageDetail_20' ) end [2025-02-18 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:00:28] Production.INFO: ==26118== Releasing lock... [2025-02-18 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:00:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-18 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:01:05 [end_date_ymd] => 2025-02-18 14:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:01:05' and `end` < '2025-02-18 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-18 14:01:20] Production.INFO: count ==5314 [2025-02-18 14:01:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:01:05 - End Time 2025-02-18 14:01:05 [2025-02-18 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503543', 'tblTempUsageDetail_20' ) start [2025-02-18 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503543', 'tblTempUsageDetail_20' ) end [2025-02-18 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503543', 'tblTempVendorCDR_20' ) start [2025-02-18 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503543', 'tblTempVendorCDR_20' ) end [2025-02-18 14:01:22] Production.INFO: ProcessCDR(1,14503543,1,1,2) [2025-02-18 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503543', 'tblTempUsageDetail_20' ) start [2025-02-18 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503543', 'tblTempUsageDetail_20' ) end [2025-02-18 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:01:28] Production.INFO: ==26218== Releasing lock... [2025-02-18 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:01:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-18 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:02:06 [end_date_ymd] => 2025-02-18 14:02:06 [RateCDR] => 1 ) [2025-02-18 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:02:06' and `end` < '2025-02-18 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:02:19] Production.INFO: count ==5345 [2025-02-18 14:02:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:02:06 - End Time 2025-02-18 14:02:06 [2025-02-18 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503548', 'tblTempUsageDetail_20' ) start [2025-02-18 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503548', 'tblTempUsageDetail_20' ) end [2025-02-18 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503548', 'tblTempVendorCDR_20' ) start [2025-02-18 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503548', 'tblTempVendorCDR_20' ) end [2025-02-18 14:02:21] Production.INFO: ProcessCDR(1,14503548,1,1,2) [2025-02-18 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503548', 'tblTempUsageDetail_20' ) start [2025-02-18 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503548', 'tblTempUsageDetail_20' ) end [2025-02-18 14:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:02:26] Production.INFO: ==26303== Releasing lock... [2025-02-18 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:02:26] Production.INFO: 68 MB #Memory Used# [2025-02-18 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:03:05 [end_date_ymd] => 2025-02-18 14:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:03:05' and `end` < '2025-02-18 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-18 14:03:18] Production.INFO: count ==5352 [2025-02-18 14:03:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:03:05 - End Time 2025-02-18 14:03:05 [2025-02-18 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503553', 'tblTempUsageDetail_20' ) start [2025-02-18 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503553', 'tblTempUsageDetail_20' ) end [2025-02-18 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503553', 'tblTempVendorCDR_20' ) start [2025-02-18 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503553', 'tblTempVendorCDR_20' ) end [2025-02-18 14:03:20] Production.INFO: ProcessCDR(1,14503553,1,1,2) [2025-02-18 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503553', 'tblTempUsageDetail_20' ) start [2025-02-18 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503553', 'tblTempUsageDetail_20' ) end [2025-02-18 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:03:26] Production.INFO: ==26388== Releasing lock... [2025-02-18 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:03:26] Production.INFO: 68 MB #Memory Used# [2025-02-18 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:04:05 [end_date_ymd] => 2025-02-18 14:04:05 [RateCDR] => 1 ) [2025-02-18 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:04:05' and `end` < '2025-02-18 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:04:18] Production.INFO: count ==5334 [2025-02-18 14:04:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:04:05 - End Time 2025-02-18 14:04:05 [2025-02-18 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503558', 'tblTempUsageDetail_20' ) start [2025-02-18 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503558', 'tblTempUsageDetail_20' ) end [2025-02-18 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503558', 'tblTempVendorCDR_20' ) start [2025-02-18 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503558', 'tblTempVendorCDR_20' ) end [2025-02-18 14:04:21] Production.INFO: ProcessCDR(1,14503558,1,1,2) [2025-02-18 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503558', 'tblTempUsageDetail_20' ) start [2025-02-18 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503558', 'tblTempUsageDetail_20' ) end [2025-02-18 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:04:26] Production.INFO: ==26474== Releasing lock... [2025-02-18 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:04:26] Production.INFO: 68 MB #Memory Used# [2025-02-18 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:05:05 [end_date_ymd] => 2025-02-18 14:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:05:05' and `end` < '2025-02-18 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-18 14:05:18] Production.INFO: count ==5336 [2025-02-18 14:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:05:05 - End Time 2025-02-18 14:05:05 [2025-02-18 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503563', 'tblTempUsageDetail_20' ) start [2025-02-18 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503563', 'tblTempUsageDetail_20' ) end [2025-02-18 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503563', 'tblTempVendorCDR_20' ) start [2025-02-18 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503563', 'tblTempVendorCDR_20' ) end [2025-02-18 14:05:21] Production.INFO: ProcessCDR(1,14503563,1,1,2) [2025-02-18 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503563', 'tblTempUsageDetail_20' ) start [2025-02-18 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503563', 'tblTempUsageDetail_20' ) end [2025-02-18 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:05:26] Production.INFO: ==26556== Releasing lock... [2025-02-18 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:05:26] Production.INFO: 68 MB #Memory Used# [2025-02-18 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:06:05 [end_date_ymd] => 2025-02-18 14:06:05 [RateCDR] => 1 ) [2025-02-18 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:06:05' and `end` < '2025-02-18 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:06:18] Production.INFO: count ==5395 [2025-02-18 14:06:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:06:05 - End Time 2025-02-18 14:06:05 [2025-02-18 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503568', 'tblTempUsageDetail_20' ) start [2025-02-18 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503568', 'tblTempUsageDetail_20' ) end [2025-02-18 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503568', 'tblTempVendorCDR_20' ) start [2025-02-18 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503568', 'tblTempVendorCDR_20' ) end [2025-02-18 14:06:21] Production.INFO: ProcessCDR(1,14503568,1,1,2) [2025-02-18 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503568', 'tblTempUsageDetail_20' ) start [2025-02-18 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503568', 'tblTempUsageDetail_20' ) end [2025-02-18 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:06:27] Production.INFO: ==26678== Releasing lock... [2025-02-18 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:06:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-18 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:07:05 [end_date_ymd] => 2025-02-18 14:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:07:05' and `end` < '2025-02-18 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-18 14:07:18] Production.INFO: count ==5426 [2025-02-18 14:07:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:07:05 - End Time 2025-02-18 14:07:05 [2025-02-18 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503573', 'tblTempUsageDetail_20' ) start [2025-02-18 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503573', 'tblTempUsageDetail_20' ) end [2025-02-18 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503573', 'tblTempVendorCDR_20' ) start [2025-02-18 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503573', 'tblTempVendorCDR_20' ) end [2025-02-18 14:07:21] Production.INFO: ProcessCDR(1,14503573,1,1,2) [2025-02-18 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503573', 'tblTempUsageDetail_20' ) start [2025-02-18 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503573', 'tblTempUsageDetail_20' ) end [2025-02-18 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:07:27] Production.INFO: ==26761== Releasing lock... [2025-02-18 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:07:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:08:05 [end_date_ymd] => 2025-02-18 14:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:08:05' and `end` < '2025-02-18 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-18 14:08:18] Production.INFO: count ==5433 [2025-02-18 14:08:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:08:05 - End Time 2025-02-18 14:08:05 [2025-02-18 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503578', 'tblTempUsageDetail_20' ) start [2025-02-18 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503578', 'tblTempUsageDetail_20' ) end [2025-02-18 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503578', 'tblTempVendorCDR_20' ) start [2025-02-18 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503578', 'tblTempVendorCDR_20' ) end [2025-02-18 14:08:20] Production.INFO: ProcessCDR(1,14503578,1,1,2) [2025-02-18 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503578', 'tblTempUsageDetail_20' ) start [2025-02-18 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503578', 'tblTempUsageDetail_20' ) end [2025-02-18 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:08:26] Production.INFO: ==26849== Releasing lock... [2025-02-18 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:08:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:09:05 [end_date_ymd] => 2025-02-18 14:09:05 [RateCDR] => 1 ) [2025-02-18 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:09:05' and `end` < '2025-02-18 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:09:18] Production.INFO: count ==5429 [2025-02-18 14:09:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:09:05 - End Time 2025-02-18 14:09:05 [2025-02-18 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503583', 'tblTempUsageDetail_20' ) start [2025-02-18 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503583', 'tblTempUsageDetail_20' ) end [2025-02-18 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503583', 'tblTempVendorCDR_20' ) start [2025-02-18 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503583', 'tblTempVendorCDR_20' ) end [2025-02-18 14:09:21] Production.INFO: ProcessCDR(1,14503583,1,1,2) [2025-02-18 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503583', 'tblTempUsageDetail_20' ) start [2025-02-18 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503583', 'tblTempUsageDetail_20' ) end [2025-02-18 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:09:26] Production.INFO: ==26941== Releasing lock... [2025-02-18 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:09:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:10:07 [end_date_ymd] => 2025-02-18 14:10:07 [RateCDR] => 1 ) [2025-02-18 14: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-18 11:10:07' and `end` < '2025-02-18 14: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-18 14:10:19] Production.INFO: count ==5438 [2025-02-18 14:10:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:10:07 - End Time 2025-02-18 14:10:07 [2025-02-18 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503589', 'tblTempUsageDetail_20' ) start [2025-02-18 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503589', 'tblTempUsageDetail_20' ) end [2025-02-18 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503589', 'tblTempVendorCDR_20' ) start [2025-02-18 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503589', 'tblTempVendorCDR_20' ) end [2025-02-18 14:10:22] Production.INFO: ProcessCDR(1,14503589,1,1,2) [2025-02-18 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503589', 'tblTempUsageDetail_20' ) start [2025-02-18 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503589', 'tblTempUsageDetail_20' ) end [2025-02-18 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:10:28] Production.INFO: ==27028== Releasing lock... [2025-02-18 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:10:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:11:05 [end_date_ymd] => 2025-02-18 14:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:11:05' and `end` < '2025-02-18 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-18 14:11:17] Production.INFO: count ==5476 [2025-02-18 14:11:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:11:05 - End Time 2025-02-18 14:11:05 [2025-02-18 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503594', 'tblTempUsageDetail_20' ) start [2025-02-18 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503594', 'tblTempUsageDetail_20' ) end [2025-02-18 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503594', 'tblTempVendorCDR_20' ) start [2025-02-18 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503594', 'tblTempVendorCDR_20' ) end [2025-02-18 14:11:20] Production.INFO: ProcessCDR(1,14503594,1,1,2) [2025-02-18 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503594', 'tblTempUsageDetail_20' ) start [2025-02-18 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503594', 'tblTempUsageDetail_20' ) end [2025-02-18 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:11:26] Production.INFO: ==27117== Releasing lock... [2025-02-18 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:11:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:12:05 [end_date_ymd] => 2025-02-18 14:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:12:05' and `end` < '2025-02-18 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-18 14:12:18] Production.INFO: count ==5475 [2025-02-18 14:12:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:12:05 - End Time 2025-02-18 14:12:05 [2025-02-18 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503599', 'tblTempUsageDetail_20' ) start [2025-02-18 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503599', 'tblTempUsageDetail_20' ) end [2025-02-18 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503599', 'tblTempVendorCDR_20' ) start [2025-02-18 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503599', 'tblTempVendorCDR_20' ) end [2025-02-18 14:12:21] Production.INFO: ProcessCDR(1,14503599,1,1,2) [2025-02-18 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503599', 'tblTempUsageDetail_20' ) start [2025-02-18 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503599', 'tblTempUsageDetail_20' ) end [2025-02-18 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:12:27] Production.INFO: ==27205== Releasing lock... [2025-02-18 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:12:27] Production.INFO: 69 MB #Memory Used# [2025-02-18 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:13:05 [end_date_ymd] => 2025-02-18 14:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:13:05' and `end` < '2025-02-18 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-18 14:13:18] Production.INFO: count ==5491 [2025-02-18 14:13:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:13:05 - End Time 2025-02-18 14:13:05 [2025-02-18 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503604', 'tblTempUsageDetail_20' ) start [2025-02-18 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503604', 'tblTempUsageDetail_20' ) end [2025-02-18 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503604', 'tblTempVendorCDR_20' ) start [2025-02-18 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503604', 'tblTempVendorCDR_20' ) end [2025-02-18 14:13:21] Production.INFO: ProcessCDR(1,14503604,1,1,2) [2025-02-18 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503604', 'tblTempUsageDetail_20' ) start [2025-02-18 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503604', 'tblTempUsageDetail_20' ) end [2025-02-18 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:13:26] Production.INFO: ==27289== Releasing lock... [2025-02-18 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:13:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:14:05 [end_date_ymd] => 2025-02-18 14:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:14:05' and `end` < '2025-02-18 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-18 14:14:18] Production.INFO: count ==5491 [2025-02-18 14:14:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:14:05 - End Time 2025-02-18 14:14:05 [2025-02-18 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503609', 'tblTempUsageDetail_20' ) start [2025-02-18 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503609', 'tblTempUsageDetail_20' ) end [2025-02-18 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503609', 'tblTempVendorCDR_20' ) start [2025-02-18 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503609', 'tblTempVendorCDR_20' ) end [2025-02-18 14:14:21] Production.INFO: ProcessCDR(1,14503609,1,1,2) [2025-02-18 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503609', 'tblTempUsageDetail_20' ) start [2025-02-18 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503609', 'tblTempUsageDetail_20' ) end [2025-02-18 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:14:26] Production.INFO: ==27376== Releasing lock... [2025-02-18 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:14:26] Production.INFO: 69 MB #Memory Used# [2025-02-18 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:15:05 [end_date_ymd] => 2025-02-18 14:15:05 [RateCDR] => 1 ) [2025-02-18 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:15:05' and `end` < '2025-02-18 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:15:18] Production.INFO: count ==5491 [2025-02-18 14:15:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:15:05 - End Time 2025-02-18 14:15:05 [2025-02-18 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503614', 'tblTempUsageDetail_20' ) start [2025-02-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503614', 'tblTempUsageDetail_20' ) end [2025-02-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503614', 'tblTempVendorCDR_20' ) start [2025-02-18 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503614', 'tblTempVendorCDR_20' ) end [2025-02-18 14:15:20] Production.INFO: ProcessCDR(1,14503614,1,1,2) [2025-02-18 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503614', 'tblTempUsageDetail_20' ) start [2025-02-18 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503614', 'tblTempUsageDetail_20' ) end [2025-02-18 14:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:15:25] Production.INFO: ==27461== Releasing lock... [2025-02-18 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:15:25] Production.INFO: 69 MB #Memory Used# [2025-02-18 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:16:05 [end_date_ymd] => 2025-02-18 14:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:16:05' and `end` < '2025-02-18 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-18 14:16:18] Production.INFO: count ==5506 [2025-02-18 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:16:05 - End Time 2025-02-18 14:16:05 [2025-02-18 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503619', 'tblTempUsageDetail_20' ) start [2025-02-18 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503619', 'tblTempUsageDetail_20' ) end [2025-02-18 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503619', 'tblTempVendorCDR_20' ) start [2025-02-18 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503619', 'tblTempVendorCDR_20' ) end [2025-02-18 14:16:21] Production.INFO: ProcessCDR(1,14503619,1,1,2) [2025-02-18 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503619', 'tblTempUsageDetail_20' ) start [2025-02-18 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503619', 'tblTempUsageDetail_20' ) end [2025-02-18 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:16:26] Production.INFO: ==27542== Releasing lock... [2025-02-18 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:16:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:17:06 [end_date_ymd] => 2025-02-18 14:17:06 [RateCDR] => 1 ) [2025-02-18 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:17:06' and `end` < '2025-02-18 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:17:19] Production.INFO: count ==5501 [2025-02-18 14:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:17:06 - End Time 2025-02-18 14:17:06 [2025-02-18 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503624', 'tblTempUsageDetail_20' ) start [2025-02-18 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503624', 'tblTempUsageDetail_20' ) end [2025-02-18 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503624', 'tblTempVendorCDR_20' ) start [2025-02-18 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503624', 'tblTempVendorCDR_20' ) end [2025-02-18 14:17:22] Production.INFO: ProcessCDR(1,14503624,1,1,2) [2025-02-18 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503624', 'tblTempUsageDetail_20' ) start [2025-02-18 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503624', 'tblTempUsageDetail_20' ) end [2025-02-18 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:17:27] Production.INFO: ==27613== Releasing lock... [2025-02-18 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:17:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:18:06 [end_date_ymd] => 2025-02-18 14:18:06 [RateCDR] => 1 ) [2025-02-18 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:18:06' and `end` < '2025-02-18 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:18:19] Production.INFO: count ==5513 [2025-02-18 14:18:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:18:06 - End Time 2025-02-18 14:18:06 [2025-02-18 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503629', 'tblTempUsageDetail_20' ) start [2025-02-18 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503629', 'tblTempUsageDetail_20' ) end [2025-02-18 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503629', 'tblTempVendorCDR_20' ) start [2025-02-18 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503629', 'tblTempVendorCDR_20' ) end [2025-02-18 14:18:21] Production.INFO: ProcessCDR(1,14503629,1,1,2) [2025-02-18 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503629', 'tblTempUsageDetail_20' ) start [2025-02-18 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503629', 'tblTempUsageDetail_20' ) end [2025-02-18 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:18:27] Production.INFO: ==27683== Releasing lock... [2025-02-18 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:18:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:19:06 [end_date_ymd] => 2025-02-18 14:19:06 [RateCDR] => 1 ) [2025-02-18 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:19:06' and `end` < '2025-02-18 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:19:19] Production.INFO: count ==5530 [2025-02-18 14:19:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:19:06 - End Time 2025-02-18 14:19:06 [2025-02-18 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503634', 'tblTempUsageDetail_20' ) start [2025-02-18 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503634', 'tblTempUsageDetail_20' ) end [2025-02-18 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503634', 'tblTempVendorCDR_20' ) start [2025-02-18 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503634', 'tblTempVendorCDR_20' ) end [2025-02-18 14:19:22] Production.INFO: ProcessCDR(1,14503634,1,1,2) [2025-02-18 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503634', 'tblTempUsageDetail_20' ) start [2025-02-18 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503634', 'tblTempUsageDetail_20' ) end [2025-02-18 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:19:28] Production.INFO: ==27754== Releasing lock... [2025-02-18 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:19:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:20:07 [end_date_ymd] => 2025-02-18 14:20:07 [RateCDR] => 1 ) [2025-02-18 14:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:20:07' and `end` < '2025-02-18 14:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:20:20] Production.INFO: count ==5537 [2025-02-18 14:20:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:20:07 - End Time 2025-02-18 14:20:07 [2025-02-18 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503639', 'tblTempUsageDetail_20' ) start [2025-02-18 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503639', 'tblTempUsageDetail_20' ) end [2025-02-18 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503639', 'tblTempVendorCDR_20' ) start [2025-02-18 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503639', 'tblTempVendorCDR_20' ) end [2025-02-18 14:20:23] Production.INFO: ProcessCDR(1,14503639,1,1,2) [2025-02-18 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503639', 'tblTempUsageDetail_20' ) start [2025-02-18 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503639', 'tblTempUsageDetail_20' ) end [2025-02-18 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:20:28] Production.INFO: ==27826== Releasing lock... [2025-02-18 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:20:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:21:05 [end_date_ymd] => 2025-02-18 14:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:21:05' and `end` < '2025-02-18 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-18 14:21:18] Production.INFO: count ==5545 [2025-02-18 14:21:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:21:05 - End Time 2025-02-18 14:21:05 [2025-02-18 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503645', 'tblTempUsageDetail_20' ) start [2025-02-18 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503645', 'tblTempUsageDetail_20' ) end [2025-02-18 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503645', 'tblTempVendorCDR_20' ) start [2025-02-18 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503645', 'tblTempVendorCDR_20' ) end [2025-02-18 14:21:21] Production.INFO: ProcessCDR(1,14503645,1,1,2) [2025-02-18 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503645', 'tblTempUsageDetail_20' ) start [2025-02-18 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503645', 'tblTempUsageDetail_20' ) end [2025-02-18 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:21:27] Production.INFO: ==27949== Releasing lock... [2025-02-18 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:21:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:22:06 [end_date_ymd] => 2025-02-18 14:22:06 [RateCDR] => 1 ) [2025-02-18 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:22:06' and `end` < '2025-02-18 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:22:18] Production.INFO: count ==5539 [2025-02-18 14:22:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:22:06 - End Time 2025-02-18 14:22:06 [2025-02-18 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503650', 'tblTempUsageDetail_20' ) start [2025-02-18 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503650', 'tblTempUsageDetail_20' ) end [2025-02-18 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503650', 'tblTempVendorCDR_20' ) start [2025-02-18 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503650', 'tblTempVendorCDR_20' ) end [2025-02-18 14:22:21] Production.INFO: ProcessCDR(1,14503650,1,1,2) [2025-02-18 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503650', 'tblTempUsageDetail_20' ) start [2025-02-18 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503650', 'tblTempUsageDetail_20' ) end [2025-02-18 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:22:27] Production.INFO: ==28067== Releasing lock... [2025-02-18 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:22:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:23:05 [end_date_ymd] => 2025-02-18 14:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:23:05' and `end` < '2025-02-18 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-18 14:23:18] Production.INFO: count ==5535 [2025-02-18 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:23:05 - End Time 2025-02-18 14:23:05 [2025-02-18 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503655', 'tblTempUsageDetail_20' ) start [2025-02-18 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503655', 'tblTempUsageDetail_20' ) end [2025-02-18 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503655', 'tblTempVendorCDR_20' ) start [2025-02-18 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503655', 'tblTempVendorCDR_20' ) end [2025-02-18 14:23:21] Production.INFO: ProcessCDR(1,14503655,1,1,2) [2025-02-18 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503655', 'tblTempUsageDetail_20' ) start [2025-02-18 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503655', 'tblTempUsageDetail_20' ) end [2025-02-18 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:23:26] Production.INFO: ==28183== Releasing lock... [2025-02-18 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:23:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:24:06 [end_date_ymd] => 2025-02-18 14:24:06 [RateCDR] => 1 ) [2025-02-18 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:24:06' and `end` < '2025-02-18 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:24:18] Production.INFO: count ==5545 [2025-02-18 14:24:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:24:06 - End Time 2025-02-18 14:24:06 [2025-02-18 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503660', 'tblTempUsageDetail_20' ) start [2025-02-18 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503660', 'tblTempUsageDetail_20' ) end [2025-02-18 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503660', 'tblTempVendorCDR_20' ) start [2025-02-18 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503660', 'tblTempVendorCDR_20' ) end [2025-02-18 14:24:21] Production.INFO: ProcessCDR(1,14503660,1,1,2) [2025-02-18 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503660', 'tblTempUsageDetail_20' ) start [2025-02-18 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503660', 'tblTempUsageDetail_20' ) end [2025-02-18 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:24:27] Production.INFO: ==28304== Releasing lock... [2025-02-18 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:24:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:25:05 [end_date_ymd] => 2025-02-18 14:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:25:05' and `end` < '2025-02-18 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-18 14:25:18] Production.INFO: count ==5527 [2025-02-18 14:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:25:05 - End Time 2025-02-18 14:25:05 [2025-02-18 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503665', 'tblTempUsageDetail_20' ) start [2025-02-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503665', 'tblTempUsageDetail_20' ) end [2025-02-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503665', 'tblTempVendorCDR_20' ) start [2025-02-18 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503665', 'tblTempVendorCDR_20' ) end [2025-02-18 14:25:21] Production.INFO: ProcessCDR(1,14503665,1,1,2) [2025-02-18 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503665', 'tblTempUsageDetail_20' ) start [2025-02-18 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503665', 'tblTempUsageDetail_20' ) end [2025-02-18 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:25:26] Production.INFO: ==28422== Releasing lock... [2025-02-18 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:25:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:26:06 [end_date_ymd] => 2025-02-18 14:26:06 [RateCDR] => 1 ) [2025-02-18 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:26:06' and `end` < '2025-02-18 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:26:19] Production.INFO: count ==5515 [2025-02-18 14:26:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:26:06 - End Time 2025-02-18 14:26:06 [2025-02-18 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503670', 'tblTempUsageDetail_20' ) start [2025-02-18 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503670', 'tblTempUsageDetail_20' ) end [2025-02-18 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503670', 'tblTempVendorCDR_20' ) start [2025-02-18 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503670', 'tblTempVendorCDR_20' ) end [2025-02-18 14:26:21] Production.INFO: ProcessCDR(1,14503670,1,1,2) [2025-02-18 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503670', 'tblTempUsageDetail_20' ) start [2025-02-18 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503670', 'tblTempUsageDetail_20' ) end [2025-02-18 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:26:27] Production.INFO: ==28551== Releasing lock... [2025-02-18 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:26:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:27:05 [end_date_ymd] => 2025-02-18 14:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:27:05' and `end` < '2025-02-18 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-18 14:27:18] Production.INFO: count ==5516 [2025-02-18 14:27:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:27:05 - End Time 2025-02-18 14:27:05 [2025-02-18 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503675', 'tblTempUsageDetail_20' ) start [2025-02-18 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503675', 'tblTempUsageDetail_20' ) end [2025-02-18 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503675', 'tblTempVendorCDR_20' ) start [2025-02-18 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503675', 'tblTempVendorCDR_20' ) end [2025-02-18 14:27:21] Production.INFO: ProcessCDR(1,14503675,1,1,2) [2025-02-18 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503675', 'tblTempUsageDetail_20' ) start [2025-02-18 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503675', 'tblTempUsageDetail_20' ) end [2025-02-18 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:27:26] Production.INFO: ==28669== Releasing lock... [2025-02-18 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:27:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:28:05 [end_date_ymd] => 2025-02-18 14:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:28:05' and `end` < '2025-02-18 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-18 14:28:18] Production.INFO: count ==5521 [2025-02-18 14:28:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:28:05 - End Time 2025-02-18 14:28:05 [2025-02-18 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503680', 'tblTempUsageDetail_20' ) start [2025-02-18 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503680', 'tblTempUsageDetail_20' ) end [2025-02-18 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503680', 'tblTempVendorCDR_20' ) start [2025-02-18 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503680', 'tblTempVendorCDR_20' ) end [2025-02-18 14:28:21] Production.INFO: ProcessCDR(1,14503680,1,1,2) [2025-02-18 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503680', 'tblTempUsageDetail_20' ) start [2025-02-18 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503680', 'tblTempUsageDetail_20' ) end [2025-02-18 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:28:26] Production.INFO: ==28783== Releasing lock... [2025-02-18 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:28:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-18 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:29:05 [end_date_ymd] => 2025-02-18 14:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:29:05' and `end` < '2025-02-18 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-18 14:29:17] Production.INFO: count ==5574 [2025-02-18 14:29:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:29:05 - End Time 2025-02-18 14:29:05 [2025-02-18 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503685', 'tblTempUsageDetail_20' ) start [2025-02-18 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503685', 'tblTempUsageDetail_20' ) end [2025-02-18 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503685', 'tblTempVendorCDR_20' ) start [2025-02-18 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503685', 'tblTempVendorCDR_20' ) end [2025-02-18 14:29:20] Production.INFO: ProcessCDR(1,14503685,1,1,2) [2025-02-18 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503685', 'tblTempUsageDetail_20' ) start [2025-02-18 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503685', 'tblTempUsageDetail_20' ) end [2025-02-18 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:29:25] Production.INFO: ==28905== Releasing lock... [2025-02-18 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:29:25] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:30:06 [end_date_ymd] => 2025-02-18 14:30:06 [RateCDR] => 1 ) [2025-02-18 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:30:06' and `end` < '2025-02-18 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:30:19] Production.INFO: count ==5573 [2025-02-18 14:30:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:30:06 - End Time 2025-02-18 14:30:06 [2025-02-18 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503690', 'tblTempUsageDetail_20' ) start [2025-02-18 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503690', 'tblTempUsageDetail_20' ) end [2025-02-18 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503690', 'tblTempVendorCDR_20' ) start [2025-02-18 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503690', 'tblTempVendorCDR_20' ) end [2025-02-18 14:30:22] Production.INFO: ProcessCDR(1,14503690,1,1,2) [2025-02-18 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503690', 'tblTempUsageDetail_20' ) start [2025-02-18 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503690', 'tblTempUsageDetail_20' ) end [2025-02-18 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:30:27] Production.INFO: ==29031== Releasing lock... [2025-02-18 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:30:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:31:06 [end_date_ymd] => 2025-02-18 14:31:06 [RateCDR] => 1 ) [2025-02-18 14:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:31:06' and `end` < '2025-02-18 14:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:31:19] Production.INFO: count ==5572 [2025-02-18 14:31:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:31:06 - End Time 2025-02-18 14:31:06 [2025-02-18 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503696', 'tblTempUsageDetail_20' ) start [2025-02-18 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503696', 'tblTempUsageDetail_20' ) end [2025-02-18 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503696', 'tblTempVendorCDR_20' ) start [2025-02-18 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503696', 'tblTempVendorCDR_20' ) end [2025-02-18 14:31:22] Production.INFO: ProcessCDR(1,14503696,1,1,2) [2025-02-18 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503696', 'tblTempUsageDetail_20' ) start [2025-02-18 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503696', 'tblTempUsageDetail_20' ) end [2025-02-18 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:31:27] Production.INFO: ==29152== Releasing lock... [2025-02-18 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:31:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:32:05 [end_date_ymd] => 2025-02-18 14:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:32:05' and `end` < '2025-02-18 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-18 14:32:18] Production.INFO: count ==5574 [2025-02-18 14:32:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:32:05 - End Time 2025-02-18 14:32:05 [2025-02-18 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503701', 'tblTempUsageDetail_20' ) start [2025-02-18 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503701', 'tblTempUsageDetail_20' ) end [2025-02-18 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503701', 'tblTempVendorCDR_20' ) start [2025-02-18 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503701', 'tblTempVendorCDR_20' ) end [2025-02-18 14:32:21] Production.INFO: ProcessCDR(1,14503701,1,1,2) [2025-02-18 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503701', 'tblTempUsageDetail_20' ) start [2025-02-18 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503701', 'tblTempUsageDetail_20' ) end [2025-02-18 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:32:26] Production.INFO: ==29273== Releasing lock... [2025-02-18 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:32:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:33:05 [end_date_ymd] => 2025-02-18 14:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:33:05' and `end` < '2025-02-18 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-18 14:33:18] Production.INFO: count ==5552 [2025-02-18 14:33:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:33:05 - End Time 2025-02-18 14:33:05 [2025-02-18 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503706', 'tblTempUsageDetail_20' ) start [2025-02-18 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503706', 'tblTempUsageDetail_20' ) end [2025-02-18 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503706', 'tblTempVendorCDR_20' ) start [2025-02-18 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503706', 'tblTempVendorCDR_20' ) end [2025-02-18 14:33:21] Production.INFO: ProcessCDR(1,14503706,1,1,2) [2025-02-18 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503706', 'tblTempUsageDetail_20' ) start [2025-02-18 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503706', 'tblTempUsageDetail_20' ) end [2025-02-18 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:33:26] Production.INFO: ==29392== Releasing lock... [2025-02-18 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:33:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:34:06 [end_date_ymd] => 2025-02-18 14:34:06 [RateCDR] => 1 ) [2025-02-18 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:34:06' and `end` < '2025-02-18 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:34:18] Production.INFO: count ==5568 [2025-02-18 14:34:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:34:06 - End Time 2025-02-18 14:34:06 [2025-02-18 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503711', 'tblTempUsageDetail_20' ) start [2025-02-18 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503711', 'tblTempUsageDetail_20' ) end [2025-02-18 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503711', 'tblTempVendorCDR_20' ) start [2025-02-18 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503711', 'tblTempVendorCDR_20' ) end [2025-02-18 14:34:21] Production.INFO: ProcessCDR(1,14503711,1,1,2) [2025-02-18 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503711', 'tblTempUsageDetail_20' ) start [2025-02-18 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503711', 'tblTempUsageDetail_20' ) end [2025-02-18 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:34:27] Production.INFO: ==29513== Releasing lock... [2025-02-18 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:34:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:35:05 [end_date_ymd] => 2025-02-18 14:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:35:05' and `end` < '2025-02-18 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-18 14:35:18] Production.INFO: count ==5559 [2025-02-18 14:35:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:35:05 - End Time 2025-02-18 14:35:05 [2025-02-18 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503716', 'tblTempUsageDetail_20' ) start [2025-02-18 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503716', 'tblTempUsageDetail_20' ) end [2025-02-18 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503716', 'tblTempVendorCDR_20' ) start [2025-02-18 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503716', 'tblTempVendorCDR_20' ) end [2025-02-18 14:35:21] Production.INFO: ProcessCDR(1,14503716,1,1,2) [2025-02-18 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503716', 'tblTempUsageDetail_20' ) start [2025-02-18 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503716', 'tblTempUsageDetail_20' ) end [2025-02-18 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:35:26] Production.INFO: ==29636== Releasing lock... [2025-02-18 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:35:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:36:06 [end_date_ymd] => 2025-02-18 14:36:06 [RateCDR] => 1 ) [2025-02-18 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:36:06' and `end` < '2025-02-18 14: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-18 14:36:19] Production.INFO: count ==5555 [2025-02-18 14:36:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:36:06 - End Time 2025-02-18 14:36:06 [2025-02-18 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503721', 'tblTempUsageDetail_20' ) start [2025-02-18 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503721', 'tblTempUsageDetail_20' ) end [2025-02-18 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503721', 'tblTempVendorCDR_20' ) start [2025-02-18 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503721', 'tblTempVendorCDR_20' ) end [2025-02-18 14:36:22] Production.INFO: ProcessCDR(1,14503721,1,1,2) [2025-02-18 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503721', 'tblTempUsageDetail_20' ) start [2025-02-18 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503721', 'tblTempUsageDetail_20' ) end [2025-02-18 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:36:27] Production.INFO: ==29756== Releasing lock... [2025-02-18 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:36:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:37:05 [end_date_ymd] => 2025-02-18 14:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:37:05' and `end` < '2025-02-18 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-18 14:37:17] Production.INFO: count ==5554 [2025-02-18 14:37:20] Production.ERROR: pbx CDR StartTime 2025-02-18 11:37:05 - End Time 2025-02-18 14:37:05 [2025-02-18 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503726', 'tblTempUsageDetail_20' ) start [2025-02-18 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503726', 'tblTempUsageDetail_20' ) end [2025-02-18 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503726', 'tblTempVendorCDR_20' ) start [2025-02-18 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503726', 'tblTempVendorCDR_20' ) end [2025-02-18 14:37:20] Production.INFO: ProcessCDR(1,14503726,1,1,2) [2025-02-18 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503726', 'tblTempUsageDetail_20' ) start [2025-02-18 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503726', 'tblTempUsageDetail_20' ) end [2025-02-18 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:37:25] Production.INFO: ==29914== Releasing lock... [2025-02-18 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:37:25] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:38:06 [end_date_ymd] => 2025-02-18 14:38:06 [RateCDR] => 1 ) [2025-02-18 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:38:06' and `end` < '2025-02-18 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:38:18] Production.INFO: count ==5547 [2025-02-18 14:38:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:38:06 - End Time 2025-02-18 14:38:06 [2025-02-18 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503731', 'tblTempUsageDetail_20' ) start [2025-02-18 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503731', 'tblTempUsageDetail_20' ) end [2025-02-18 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503731', 'tblTempVendorCDR_20' ) start [2025-02-18 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503731', 'tblTempVendorCDR_20' ) end [2025-02-18 14:38:21] Production.INFO: ProcessCDR(1,14503731,1,1,2) [2025-02-18 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503731', 'tblTempUsageDetail_20' ) start [2025-02-18 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503731', 'tblTempUsageDetail_20' ) end [2025-02-18 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:38:27] Production.INFO: ==30041== Releasing lock... [2025-02-18 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:38:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:39:05 [end_date_ymd] => 2025-02-18 14:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:39:05' and `end` < '2025-02-18 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-18 14:39:18] Production.INFO: count ==5548 [2025-02-18 14:39:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:39:05 - End Time 2025-02-18 14:39:05 [2025-02-18 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503736', 'tblTempUsageDetail_20' ) start [2025-02-18 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503736', 'tblTempUsageDetail_20' ) end [2025-02-18 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503736', 'tblTempVendorCDR_20' ) start [2025-02-18 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503736', 'tblTempVendorCDR_20' ) end [2025-02-18 14:39:21] Production.INFO: ProcessCDR(1,14503736,1,1,2) [2025-02-18 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503736', 'tblTempUsageDetail_20' ) start [2025-02-18 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503736', 'tblTempUsageDetail_20' ) end [2025-02-18 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:39:26] Production.INFO: ==30152== Releasing lock... [2025-02-18 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:39:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:40:06 [end_date_ymd] => 2025-02-18 14:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 11:40:06' and `end` < '2025-02-18 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-18 14:40:19] Production.INFO: count ==5556 [2025-02-18 14:40:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:40:06 - End Time 2025-02-18 14:40:06 [2025-02-18 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503741', 'tblTempUsageDetail_20' ) start [2025-02-18 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503741', 'tblTempUsageDetail_20' ) end [2025-02-18 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503741', 'tblTempVendorCDR_20' ) start [2025-02-18 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503741', 'tblTempVendorCDR_20' ) end [2025-02-18 14:40:22] Production.INFO: ProcessCDR(1,14503741,1,1,2) [2025-02-18 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503741', 'tblTempUsageDetail_20' ) start [2025-02-18 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503741', 'tblTempUsageDetail_20' ) end [2025-02-18 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:40:28] Production.INFO: ==30226== Releasing lock... [2025-02-18 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:40:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:41:05 [end_date_ymd] => 2025-02-18 14:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:41:05' and `end` < '2025-02-18 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-18 14:41:18] Production.INFO: count ==5585 [2025-02-18 14:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:41:05 - End Time 2025-02-18 14:41:05 [2025-02-18 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503747', 'tblTempUsageDetail_20' ) start [2025-02-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503747', 'tblTempUsageDetail_20' ) end [2025-02-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503747', 'tblTempVendorCDR_20' ) start [2025-02-18 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503747', 'tblTempVendorCDR_20' ) end [2025-02-18 14:41:21] Production.INFO: ProcessCDR(1,14503747,1,1,2) [2025-02-18 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503747', 'tblTempUsageDetail_20' ) start [2025-02-18 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503747', 'tblTempUsageDetail_20' ) end [2025-02-18 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:41:27] Production.INFO: ==30305== Releasing lock... [2025-02-18 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:41:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-18 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:42:05 [end_date_ymd] => 2025-02-18 14:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:42:05' and `end` < '2025-02-18 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-18 14:42:18] Production.INFO: count ==5609 [2025-02-18 14:42:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:42:05 - End Time 2025-02-18 14:42:05 [2025-02-18 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503752', 'tblTempUsageDetail_20' ) start [2025-02-18 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503752', 'tblTempUsageDetail_20' ) end [2025-02-18 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503752', 'tblTempVendorCDR_20' ) start [2025-02-18 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503752', 'tblTempVendorCDR_20' ) end [2025-02-18 14:42:21] Production.INFO: ProcessCDR(1,14503752,1,1,2) [2025-02-18 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503752', 'tblTempUsageDetail_20' ) start [2025-02-18 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503752', 'tblTempUsageDetail_20' ) end [2025-02-18 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:42:27] Production.INFO: ==30375== Releasing lock... [2025-02-18 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:42:27] Production.INFO: 70 MB #Memory Used# [2025-02-18 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:43:05 [end_date_ymd] => 2025-02-18 14:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:43:05' and `end` < '2025-02-18 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-18 14:43:18] Production.INFO: count ==5628 [2025-02-18 14:43:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:43:05 - End Time 2025-02-18 14:43:05 [2025-02-18 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503757', 'tblTempUsageDetail_20' ) start [2025-02-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503757', 'tblTempUsageDetail_20' ) end [2025-02-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503757', 'tblTempVendorCDR_20' ) start [2025-02-18 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503757', 'tblTempVendorCDR_20' ) end [2025-02-18 14:43:21] Production.INFO: ProcessCDR(1,14503757,1,1,2) [2025-02-18 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503757', 'tblTempUsageDetail_20' ) start [2025-02-18 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503757', 'tblTempUsageDetail_20' ) end [2025-02-18 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:43:26] Production.INFO: ==30444== Releasing lock... [2025-02-18 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:43:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:44:05 [end_date_ymd] => 2025-02-18 14:44:05 [RateCDR] => 1 ) [2025-02-18 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:44:05' and `end` < '2025-02-18 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:44:19] Production.INFO: count ==5641 [2025-02-18 14:44:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:44:05 - End Time 2025-02-18 14:44:05 [2025-02-18 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503762', 'tblTempUsageDetail_20' ) start [2025-02-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503762', 'tblTempUsageDetail_20' ) end [2025-02-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503762', 'tblTempVendorCDR_20' ) start [2025-02-18 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503762', 'tblTempVendorCDR_20' ) end [2025-02-18 14:44:21] Production.INFO: ProcessCDR(1,14503762,1,1,2) [2025-02-18 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503762', 'tblTempUsageDetail_20' ) start [2025-02-18 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503762', 'tblTempUsageDetail_20' ) end [2025-02-18 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:44:27] Production.INFO: ==30517== Releasing lock... [2025-02-18 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:44:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:45:05 [end_date_ymd] => 2025-02-18 14:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:45:05' and `end` < '2025-02-18 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-18 14:45:18] Production.INFO: count ==5657 [2025-02-18 14:45:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:45:05 - End Time 2025-02-18 14:45:05 [2025-02-18 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503767', 'tblTempUsageDetail_20' ) start [2025-02-18 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503767', 'tblTempUsageDetail_20' ) end [2025-02-18 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503767', 'tblTempVendorCDR_20' ) start [2025-02-18 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503767', 'tblTempVendorCDR_20' ) end [2025-02-18 14:45:21] Production.INFO: ProcessCDR(1,14503767,1,1,2) [2025-02-18 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503767', 'tblTempUsageDetail_20' ) start [2025-02-18 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503767', 'tblTempUsageDetail_20' ) end [2025-02-18 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:45:27] Production.INFO: ==30592== Releasing lock... [2025-02-18 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:45:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:46:06 [end_date_ymd] => 2025-02-18 14:46:06 [RateCDR] => 1 ) [2025-02-18 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:46:06' and `end` < '2025-02-18 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:46:19] Production.INFO: count ==5744 [2025-02-18 14:46:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:46:06 - End Time 2025-02-18 14:46:06 [2025-02-18 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503772', 'tblTempUsageDetail_20' ) start [2025-02-18 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503772', 'tblTempUsageDetail_20' ) end [2025-02-18 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503772', 'tblTempVendorCDR_20' ) start [2025-02-18 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503772', 'tblTempVendorCDR_20' ) end [2025-02-18 14:46:22] Production.INFO: ProcessCDR(1,14503772,1,1,2) [2025-02-18 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503772', 'tblTempUsageDetail_20' ) start [2025-02-18 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503772', 'tblTempUsageDetail_20' ) end [2025-02-18 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:46:28] Production.INFO: ==30662== Releasing lock... [2025-02-18 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:46:28] Production.INFO: 71 MB #Memory Used# [2025-02-18 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:47:05 [end_date_ymd] => 2025-02-18 14:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:47:05' and `end` < '2025-02-18 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-18 14:47:18] Production.INFO: count ==5745 [2025-02-18 14:47:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:47:05 - End Time 2025-02-18 14:47:05 [2025-02-18 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503777', 'tblTempUsageDetail_20' ) start [2025-02-18 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503777', 'tblTempUsageDetail_20' ) end [2025-02-18 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503777', 'tblTempVendorCDR_20' ) start [2025-02-18 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503777', 'tblTempVendorCDR_20' ) end [2025-02-18 14:47:21] Production.INFO: ProcessCDR(1,14503777,1,1,2) [2025-02-18 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503777', 'tblTempUsageDetail_20' ) start [2025-02-18 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503777', 'tblTempUsageDetail_20' ) end [2025-02-18 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:47:26] Production.INFO: ==30733== Releasing lock... [2025-02-18 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:47:26] Production.INFO: 71 MB #Memory Used# [2025-02-18 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:48:05 [end_date_ymd] => 2025-02-18 14:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:48:05' and `end` < '2025-02-18 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-18 14:48:18] Production.INFO: count ==5723 [2025-02-18 14:48:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:48:05 - End Time 2025-02-18 14:48:05 [2025-02-18 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503782', 'tblTempUsageDetail_20' ) start [2025-02-18 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503782', 'tblTempUsageDetail_20' ) end [2025-02-18 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503782', 'tblTempVendorCDR_20' ) start [2025-02-18 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503782', 'tblTempVendorCDR_20' ) end [2025-02-18 14:48:21] Production.INFO: ProcessCDR(1,14503782,1,1,2) [2025-02-18 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503782', 'tblTempUsageDetail_20' ) start [2025-02-18 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503782', 'tblTempUsageDetail_20' ) end [2025-02-18 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:48:26] Production.INFO: ==30808== Releasing lock... [2025-02-18 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:48:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:49:05 [end_date_ymd] => 2025-02-18 14:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:49:05' and `end` < '2025-02-18 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-18 14:49:18] Production.INFO: count ==5728 [2025-02-18 14:49:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:49:05 - End Time 2025-02-18 14:49:05 [2025-02-18 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503787', 'tblTempUsageDetail_20' ) start [2025-02-18 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503787', 'tblTempUsageDetail_20' ) end [2025-02-18 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503787', 'tblTempVendorCDR_20' ) start [2025-02-18 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503787', 'tblTempVendorCDR_20' ) end [2025-02-18 14:49:21] Production.INFO: ProcessCDR(1,14503787,1,1,2) [2025-02-18 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503787', 'tblTempUsageDetail_20' ) start [2025-02-18 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503787', 'tblTempUsageDetail_20' ) end [2025-02-18 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:49:27] Production.INFO: ==30882== Releasing lock... [2025-02-18 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:49:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:50:06 [end_date_ymd] => 2025-02-18 14:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 11:50:06' and `end` < '2025-02-18 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-18 14:50:19] Production.INFO: count ==5741 [2025-02-18 14:50:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:50:06 - End Time 2025-02-18 14:50:06 [2025-02-18 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503793', 'tblTempUsageDetail_20' ) start [2025-02-18 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503793', 'tblTempUsageDetail_20' ) end [2025-02-18 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503793', 'tblTempVendorCDR_20' ) start [2025-02-18 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503793', 'tblTempVendorCDR_20' ) end [2025-02-18 14:50:22] Production.INFO: ProcessCDR(1,14503793,1,1,2) [2025-02-18 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503793', 'tblTempUsageDetail_20' ) start [2025-02-18 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503793', 'tblTempUsageDetail_20' ) end [2025-02-18 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:50:27] Production.INFO: ==30957== Releasing lock... [2025-02-18 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:50:27] Production.INFO: 71 MB #Memory Used# [2025-02-18 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:51:05 [end_date_ymd] => 2025-02-18 14:51:05 [RateCDR] => 1 ) [2025-02-18 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:51:05' and `end` < '2025-02-18 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:51:18] Production.INFO: count ==5794 [2025-02-18 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:51:05 - End Time 2025-02-18 14:51:05 [2025-02-18 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503798', 'tblTempUsageDetail_20' ) start [2025-02-18 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503798', 'tblTempUsageDetail_20' ) end [2025-02-18 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503798', 'tblTempVendorCDR_20' ) start [2025-02-18 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503798', 'tblTempVendorCDR_20' ) end [2025-02-18 14:51:21] Production.INFO: ProcessCDR(1,14503798,1,1,2) [2025-02-18 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503798', 'tblTempUsageDetail_20' ) start [2025-02-18 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503798', 'tblTempUsageDetail_20' ) end [2025-02-18 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:51:27] Production.INFO: ==31031== Releasing lock... [2025-02-18 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:51:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:52:06 [end_date_ymd] => 2025-02-18 14:52:06 [RateCDR] => 1 ) [2025-02-18 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:52:06' and `end` < '2025-02-18 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:52:19] Production.INFO: count ==5774 [2025-02-18 14:52:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:52:06 - End Time 2025-02-18 14:52:06 [2025-02-18 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503803', 'tblTempUsageDetail_20' ) start [2025-02-18 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503803', 'tblTempUsageDetail_20' ) end [2025-02-18 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503803', 'tblTempVendorCDR_20' ) start [2025-02-18 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503803', 'tblTempVendorCDR_20' ) end [2025-02-18 14:52:22] Production.INFO: ProcessCDR(1,14503803,1,1,2) [2025-02-18 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503803', 'tblTempUsageDetail_20' ) start [2025-02-18 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503803', 'tblTempUsageDetail_20' ) end [2025-02-18 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:52:28] Production.INFO: ==31146== Releasing lock... [2025-02-18 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:52:28] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:53:05 [end_date_ymd] => 2025-02-18 14:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:53:05' and `end` < '2025-02-18 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-18 14:53:18] Production.INFO: count ==5782 [2025-02-18 14:53:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:53:05 - End Time 2025-02-18 14:53:05 [2025-02-18 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503808', 'tblTempUsageDetail_20' ) start [2025-02-18 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503808', 'tblTempUsageDetail_20' ) end [2025-02-18 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503808', 'tblTempVendorCDR_20' ) start [2025-02-18 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503808', 'tblTempVendorCDR_20' ) end [2025-02-18 14:53:21] Production.INFO: ProcessCDR(1,14503808,1,1,2) [2025-02-18 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503808', 'tblTempUsageDetail_20' ) start [2025-02-18 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503808', 'tblTempUsageDetail_20' ) end [2025-02-18 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:53:26] Production.INFO: ==31220== Releasing lock... [2025-02-18 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:53:26] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:54:06 [end_date_ymd] => 2025-02-18 14:54:06 [RateCDR] => 1 ) [2025-02-18 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:54:06' and `end` < '2025-02-18 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:54:19] Production.INFO: count ==5807 [2025-02-18 14:54:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:54:06 - End Time 2025-02-18 14:54:06 [2025-02-18 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503813', 'tblTempUsageDetail_20' ) start [2025-02-18 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503813', 'tblTempUsageDetail_20' ) end [2025-02-18 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503813', 'tblTempVendorCDR_20' ) start [2025-02-18 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503813', 'tblTempVendorCDR_20' ) end [2025-02-18 14:54:22] Production.INFO: ProcessCDR(1,14503813,1,1,2) [2025-02-18 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503813', 'tblTempUsageDetail_20' ) start [2025-02-18 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503813', 'tblTempUsageDetail_20' ) end [2025-02-18 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:54:27] Production.INFO: ==31293== Releasing lock... [2025-02-18 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:54:27] Production.INFO: 71.5 MB #Memory Used# [2025-02-18 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:55:05 [end_date_ymd] => 2025-02-18 14:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:55:05' and `end` < '2025-02-18 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-18 14:55:18] Production.INFO: count ==5780 [2025-02-18 14:55:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:55:05 - End Time 2025-02-18 14:55:05 [2025-02-18 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503818', 'tblTempUsageDetail_20' ) start [2025-02-18 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503818', 'tblTempUsageDetail_20' ) end [2025-02-18 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503818', 'tblTempVendorCDR_20' ) start [2025-02-18 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503818', 'tblTempVendorCDR_20' ) end [2025-02-18 14:55:21] Production.INFO: ProcessCDR(1,14503818,1,1,2) [2025-02-18 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503818', 'tblTempUsageDetail_20' ) start [2025-02-18 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503818', 'tblTempUsageDetail_20' ) end [2025-02-18 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:55:27] Production.INFO: ==31363== Releasing lock... [2025-02-18 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:55:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:56:06 [end_date_ymd] => 2025-02-18 14:56:06 [RateCDR] => 1 ) [2025-02-18 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:56:06' and `end` < '2025-02-18 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:56:19] Production.INFO: count ==5774 [2025-02-18 14:56:22] Production.ERROR: pbx CDR StartTime 2025-02-18 11:56:06 - End Time 2025-02-18 14:56:06 [2025-02-18 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503823', 'tblTempUsageDetail_20' ) start [2025-02-18 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503823', 'tblTempUsageDetail_20' ) end [2025-02-18 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503823', 'tblTempVendorCDR_20' ) start [2025-02-18 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503823', 'tblTempVendorCDR_20' ) end [2025-02-18 14:56:22] Production.INFO: ProcessCDR(1,14503823,1,1,2) [2025-02-18 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503823', 'tblTempUsageDetail_20' ) start [2025-02-18 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503823', 'tblTempUsageDetail_20' ) end [2025-02-18 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:56:27] Production.INFO: ==31436== Releasing lock... [2025-02-18 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:56:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:57:05 [end_date_ymd] => 2025-02-18 14:57:05 [RateCDR] => 1 ) [2025-02-18 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:57:05' and `end` < '2025-02-18 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:57:18] Production.INFO: count ==5758 [2025-02-18 14:57:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:57:05 - End Time 2025-02-18 14:57:05 [2025-02-18 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503828', 'tblTempUsageDetail_20' ) start [2025-02-18 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503828', 'tblTempUsageDetail_20' ) end [2025-02-18 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503828', 'tblTempVendorCDR_20' ) start [2025-02-18 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503828', 'tblTempVendorCDR_20' ) end [2025-02-18 14:57:21] Production.INFO: ProcessCDR(1,14503828,1,1,2) [2025-02-18 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503828', 'tblTempUsageDetail_20' ) start [2025-02-18 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503828', 'tblTempUsageDetail_20' ) end [2025-02-18 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:57:26] Production.INFO: ==31506== Releasing lock... [2025-02-18 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:57:26] Production.INFO: 71 MB #Memory Used# [2025-02-18 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:58:06 [end_date_ymd] => 2025-02-18 14:58:06 [RateCDR] => 1 ) [2025-02-18 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 11:58:06' and `end` < '2025-02-18 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 14:58:18] Production.INFO: count ==5767 [2025-02-18 14:58:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:58:06 - End Time 2025-02-18 14:58:06 [2025-02-18 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503833', 'tblTempUsageDetail_20' ) start [2025-02-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503833', 'tblTempUsageDetail_20' ) end [2025-02-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503833', 'tblTempVendorCDR_20' ) start [2025-02-18 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503833', 'tblTempVendorCDR_20' ) end [2025-02-18 14:58:22] Production.INFO: ProcessCDR(1,14503833,1,1,2) [2025-02-18 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503833', 'tblTempUsageDetail_20' ) start [2025-02-18 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503833', 'tblTempUsageDetail_20' ) end [2025-02-18 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:58:27] Production.INFO: ==31579== Releasing lock... [2025-02-18 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:58:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 11:59:05 [end_date_ymd] => 2025-02-18 14:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 11:59:05' and `end` < '2025-02-18 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-18 14:59:18] Production.INFO: count ==5763 [2025-02-18 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-18 11:59:05 - End Time 2025-02-18 14:59:05 [2025-02-18 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503838', 'tblTempUsageDetail_20' ) start [2025-02-18 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503838', 'tblTempUsageDetail_20' ) end [2025-02-18 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503838', 'tblTempVendorCDR_20' ) start [2025-02-18 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503838', 'tblTempVendorCDR_20' ) end [2025-02-18 14:59:21] Production.INFO: ProcessCDR(1,14503838,1,1,2) [2025-02-18 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503838', 'tblTempUsageDetail_20' ) start [2025-02-18 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503838', 'tblTempUsageDetail_20' ) end [2025-02-18 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 14:59:26] Production.INFO: ==31652== Releasing lock... [2025-02-18 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 14:59:26] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:00:06 [end_date_ymd] => 2025-02-18 15:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 12:00:06' and `end` < '2025-02-18 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-18 15:00:19] Production.INFO: count ==5774 [2025-02-18 15:00:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:00:06 - End Time 2025-02-18 15:00:06 [2025-02-18 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503843', 'tblTempUsageDetail_20' ) start [2025-02-18 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503843', 'tblTempUsageDetail_20' ) end [2025-02-18 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503843', 'tblTempVendorCDR_20' ) start [2025-02-18 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503843', 'tblTempVendorCDR_20' ) end [2025-02-18 15:00:22] Production.INFO: ProcessCDR(1,14503843,1,1,2) [2025-02-18 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503843', 'tblTempUsageDetail_20' ) start [2025-02-18 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503843', 'tblTempUsageDetail_20' ) end [2025-02-18 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:00:27] Production.INFO: ==31728== Releasing lock... [2025-02-18 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:00:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:01:05 [end_date_ymd] => 2025-02-18 15:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:01:05' and `end` < '2025-02-18 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-18 15:01:18] Production.INFO: count ==5706 [2025-02-18 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:01:05 - End Time 2025-02-18 15:01:05 [2025-02-18 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503849', 'tblTempUsageDetail_20' ) start [2025-02-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503849', 'tblTempUsageDetail_20' ) end [2025-02-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503849', 'tblTempVendorCDR_20' ) start [2025-02-18 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503849', 'tblTempVendorCDR_20' ) end [2025-02-18 15:01:21] Production.INFO: ProcessCDR(1,14503849,1,1,2) [2025-02-18 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503849', 'tblTempUsageDetail_20' ) start [2025-02-18 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503849', 'tblTempUsageDetail_20' ) end [2025-02-18 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:01:26] Production.INFO: ==31891== Releasing lock... [2025-02-18 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:01:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:02:06 [end_date_ymd] => 2025-02-18 15:02:06 [RateCDR] => 1 ) [2025-02-18 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:02:06' and `end` < '2025-02-18 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:02:19] Production.INFO: count ==5700 [2025-02-18 15:02:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:02:06 - End Time 2025-02-18 15:02:06 [2025-02-18 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503854', 'tblTempUsageDetail_20' ) start [2025-02-18 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503854', 'tblTempUsageDetail_20' ) end [2025-02-18 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503854', 'tblTempVendorCDR_20' ) start [2025-02-18 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503854', 'tblTempVendorCDR_20' ) end [2025-02-18 15:02:22] Production.INFO: ProcessCDR(1,14503854,1,1,2) [2025-02-18 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503854', 'tblTempUsageDetail_20' ) start [2025-02-18 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503854', 'tblTempUsageDetail_20' ) end [2025-02-18 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:02:27] Production.INFO: ==31962== Releasing lock... [2025-02-18 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:02:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:03:05 [end_date_ymd] => 2025-02-18 15:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:03:05' and `end` < '2025-02-18 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-18 15:03:18] Production.INFO: count ==5710 [2025-02-18 15:03:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:03:05 - End Time 2025-02-18 15:03:05 [2025-02-18 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503859', 'tblTempUsageDetail_20' ) start [2025-02-18 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503859', 'tblTempUsageDetail_20' ) end [2025-02-18 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503859', 'tblTempVendorCDR_20' ) start [2025-02-18 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503859', 'tblTempVendorCDR_20' ) end [2025-02-18 15:03:21] Production.INFO: ProcessCDR(1,14503859,1,1,2) [2025-02-18 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503859', 'tblTempUsageDetail_20' ) start [2025-02-18 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503859', 'tblTempUsageDetail_20' ) end [2025-02-18 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:03:27] Production.INFO: ==32035== Releasing lock... [2025-02-18 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:03:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:04:06 [end_date_ymd] => 2025-02-18 15:04:06 [RateCDR] => 1 ) [2025-02-18 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-18 12:04:06' and `end` < '2025-02-18 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-18 15:04:18] Production.INFO: count ==5709 [2025-02-18 15:04:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:04:06 - End Time 2025-02-18 15:04:06 [2025-02-18 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503864', 'tblTempUsageDetail_20' ) start [2025-02-18 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503864', 'tblTempUsageDetail_20' ) end [2025-02-18 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503864', 'tblTempVendorCDR_20' ) start [2025-02-18 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503864', 'tblTempVendorCDR_20' ) end [2025-02-18 15:04:21] Production.INFO: ProcessCDR(1,14503864,1,1,2) [2025-02-18 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503864', 'tblTempUsageDetail_20' ) start [2025-02-18 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503864', 'tblTempUsageDetail_20' ) end [2025-02-18 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:04:27] Production.INFO: ==32107== Releasing lock... [2025-02-18 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:04:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:05:05 [end_date_ymd] => 2025-02-18 15:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:05:05' and `end` < '2025-02-18 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-18 15:05:18] Production.INFO: count ==5693 [2025-02-18 15:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:05:05 - End Time 2025-02-18 15:05:05 [2025-02-18 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503869', 'tblTempUsageDetail_20' ) start [2025-02-18 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503869', 'tblTempUsageDetail_20' ) end [2025-02-18 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503869', 'tblTempVendorCDR_20' ) start [2025-02-18 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503869', 'tblTempVendorCDR_20' ) end [2025-02-18 15:05:22] Production.INFO: ProcessCDR(1,14503869,1,1,2) [2025-02-18 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503869', 'tblTempUsageDetail_20' ) start [2025-02-18 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503869', 'tblTempUsageDetail_20' ) end [2025-02-18 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:05:27] Production.INFO: ==32262== Releasing lock... [2025-02-18 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:05:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:06:06 [end_date_ymd] => 2025-02-18 15:06:06 [RateCDR] => 1 ) [2025-02-18 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-18 12:06:06' and `end` < '2025-02-18 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-18 15:06:19] Production.INFO: count ==5709 [2025-02-18 15:06:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:06:06 - End Time 2025-02-18 15:06:06 [2025-02-18 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503874', 'tblTempUsageDetail_20' ) start [2025-02-18 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503874', 'tblTempUsageDetail_20' ) end [2025-02-18 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503874', 'tblTempVendorCDR_20' ) start [2025-02-18 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503874', 'tblTempVendorCDR_20' ) end [2025-02-18 15:06:22] Production.INFO: ProcessCDR(1,14503874,1,1,2) [2025-02-18 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503874', 'tblTempUsageDetail_20' ) start [2025-02-18 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503874', 'tblTempUsageDetail_20' ) end [2025-02-18 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:06:27] Production.INFO: ==32339== Releasing lock... [2025-02-18 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:06:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:07:05 [end_date_ymd] => 2025-02-18 15:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:07:05' and `end` < '2025-02-18 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-18 15:07:18] Production.INFO: count ==5718 [2025-02-18 15:07:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:07:05 - End Time 2025-02-18 15:07:05 [2025-02-18 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503879', 'tblTempUsageDetail_20' ) start [2025-02-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503879', 'tblTempUsageDetail_20' ) end [2025-02-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503879', 'tblTempVendorCDR_20' ) start [2025-02-18 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503879', 'tblTempVendorCDR_20' ) end [2025-02-18 15:07:21] Production.INFO: ProcessCDR(1,14503879,1,1,2) [2025-02-18 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503879', 'tblTempUsageDetail_20' ) start [2025-02-18 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503879', 'tblTempUsageDetail_20' ) end [2025-02-18 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:07:26] Production.INFO: ==32415== Releasing lock... [2025-02-18 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:07:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:08:06 [end_date_ymd] => 2025-02-18 15:08:06 [RateCDR] => 1 ) [2025-02-18 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-18 12:08:06' and `end` < '2025-02-18 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-18 15:08:19] Production.INFO: count ==5712 [2025-02-18 15:08:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:08:06 - End Time 2025-02-18 15:08:06 [2025-02-18 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503884', 'tblTempUsageDetail_20' ) start [2025-02-18 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503884', 'tblTempUsageDetail_20' ) end [2025-02-18 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503884', 'tblTempVendorCDR_20' ) start [2025-02-18 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503884', 'tblTempVendorCDR_20' ) end [2025-02-18 15:08:22] Production.INFO: ProcessCDR(1,14503884,1,1,2) [2025-02-18 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503884', 'tblTempUsageDetail_20' ) start [2025-02-18 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503884', 'tblTempUsageDetail_20' ) end [2025-02-18 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:08:27] Production.INFO: ==32604== Releasing lock... [2025-02-18 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:08:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:09:06 [end_date_ymd] => 2025-02-18 15:09:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:09:06' and `end` < '2025-02-18 15: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-18 15:09:18] Production.INFO: count ==5703 [2025-02-18 15:09:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:09:06 - End Time 2025-02-18 15:09:06 [2025-02-18 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503889', 'tblTempUsageDetail_20' ) start [2025-02-18 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503889', 'tblTempUsageDetail_20' ) end [2025-02-18 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503889', 'tblTempVendorCDR_20' ) start [2025-02-18 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503889', 'tblTempVendorCDR_20' ) end [2025-02-18 15:09:22] Production.INFO: ProcessCDR(1,14503889,1,1,2) [2025-02-18 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503889', 'tblTempUsageDetail_20' ) start [2025-02-18 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503889', 'tblTempUsageDetail_20' ) end [2025-02-18 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:09:27] Production.INFO: ==32701== Releasing lock... [2025-02-18 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:09:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:10:07 [end_date_ymd] => 2025-02-18 15:10:07 [RateCDR] => 1 ) [2025-02-18 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:10:07' and `end` < '2025-02-18 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:10:20] Production.INFO: count ==5688 [2025-02-18 15:10:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:10:07 - End Time 2025-02-18 15:10:07 [2025-02-18 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503895', 'tblTempUsageDetail_20' ) start [2025-02-18 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503895', 'tblTempUsageDetail_20' ) end [2025-02-18 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503895', 'tblTempVendorCDR_20' ) start [2025-02-18 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503895', 'tblTempVendorCDR_20' ) end [2025-02-18 15:10:23] Production.INFO: ProcessCDR(1,14503895,1,1,2) [2025-02-18 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503895', 'tblTempUsageDetail_20' ) start [2025-02-18 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503895', 'tblTempUsageDetail_20' ) end [2025-02-18 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:10:28] Production.INFO: ==357== Releasing lock... [2025-02-18 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:10:28] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:11:05 [end_date_ymd] => 2025-02-18 15:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:11:05' and `end` < '2025-02-18 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-18 15:11:18] Production.INFO: count ==5685 [2025-02-18 15:11:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:11:05 - End Time 2025-02-18 15:11:05 [2025-02-18 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503900', 'tblTempUsageDetail_20' ) start [2025-02-18 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503900', 'tblTempUsageDetail_20' ) end [2025-02-18 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503900', 'tblTempVendorCDR_20' ) start [2025-02-18 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503900', 'tblTempVendorCDR_20' ) end [2025-02-18 15:11:21] Production.INFO: ProcessCDR(1,14503900,1,1,2) [2025-02-18 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503900', 'tblTempUsageDetail_20' ) start [2025-02-18 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503900', 'tblTempUsageDetail_20' ) end [2025-02-18 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:11:27] Production.INFO: ==431== Releasing lock... [2025-02-18 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:11:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:12:06 [end_date_ymd] => 2025-02-18 15:12:06 [RateCDR] => 1 ) [2025-02-18 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:12:06' and `end` < '2025-02-18 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:12:19] Production.INFO: count ==5688 [2025-02-18 15:12:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:12:06 - End Time 2025-02-18 15:12:06 [2025-02-18 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503905', 'tblTempUsageDetail_20' ) start [2025-02-18 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503905', 'tblTempUsageDetail_20' ) end [2025-02-18 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503905', 'tblTempVendorCDR_20' ) start [2025-02-18 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503905', 'tblTempVendorCDR_20' ) end [2025-02-18 15:12:22] Production.INFO: ProcessCDR(1,14503905,1,1,2) [2025-02-18 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503905', 'tblTempUsageDetail_20' ) start [2025-02-18 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503905', 'tblTempUsageDetail_20' ) end [2025-02-18 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:12:28] Production.INFO: ==591== Releasing lock... [2025-02-18 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:12:28] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:13:06 [end_date_ymd] => 2025-02-18 15:13:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:13:06' and `end` < '2025-02-18 15: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-18 15:13:19] Production.INFO: count ==5666 [2025-02-18 15:13:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:13:06 - End Time 2025-02-18 15:13:06 [2025-02-18 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503910', 'tblTempUsageDetail_20' ) start [2025-02-18 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503910', 'tblTempUsageDetail_20' ) end [2025-02-18 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503910', 'tblTempVendorCDR_20' ) start [2025-02-18 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503910', 'tblTempVendorCDR_20' ) end [2025-02-18 15:13:22] Production.INFO: ProcessCDR(1,14503910,1,1,2) [2025-02-18 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503910', 'tblTempUsageDetail_20' ) start [2025-02-18 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503910', 'tblTempUsageDetail_20' ) end [2025-02-18 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:13:27] Production.INFO: ==681== Releasing lock... [2025-02-18 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:13:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:14:05 [end_date_ymd] => 2025-02-18 15:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:14:05' and `end` < '2025-02-18 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-18 15:14:18] Production.INFO: count ==5651 [2025-02-18 15:14:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:14:05 - End Time 2025-02-18 15:14:05 [2025-02-18 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503915', 'tblTempUsageDetail_20' ) start [2025-02-18 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503915', 'tblTempUsageDetail_20' ) end [2025-02-18 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503915', 'tblTempVendorCDR_20' ) start [2025-02-18 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503915', 'tblTempVendorCDR_20' ) end [2025-02-18 15:14:21] Production.INFO: ProcessCDR(1,14503915,1,1,2) [2025-02-18 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503915', 'tblTempUsageDetail_20' ) start [2025-02-18 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503915', 'tblTempUsageDetail_20' ) end [2025-02-18 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:14:27] Production.INFO: ==767== Releasing lock... [2025-02-18 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:14:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:15:05 [end_date_ymd] => 2025-02-18 15:15:05 [RateCDR] => 1 ) [2025-02-18 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:15:05' and `end` < '2025-02-18 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:15:18] Production.INFO: count ==5664 [2025-02-18 15:15:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:15:05 - End Time 2025-02-18 15:15:05 [2025-02-18 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503920', 'tblTempUsageDetail_20' ) start [2025-02-18 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503920', 'tblTempUsageDetail_20' ) end [2025-02-18 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503920', 'tblTempVendorCDR_20' ) start [2025-02-18 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503920', 'tblTempVendorCDR_20' ) end [2025-02-18 15:15:21] Production.INFO: ProcessCDR(1,14503920,1,1,2) [2025-02-18 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503920', 'tblTempUsageDetail_20' ) start [2025-02-18 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503920', 'tblTempUsageDetail_20' ) end [2025-02-18 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:15:27] Production.INFO: ==920== Releasing lock... [2025-02-18 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:15:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:16:05 [end_date_ymd] => 2025-02-18 15:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:16:05' and `end` < '2025-02-18 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-18 15:16:18] Production.INFO: count ==5652 [2025-02-18 15:16:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:16:05 - End Time 2025-02-18 15:16:05 [2025-02-18 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503925', 'tblTempUsageDetail_20' ) start [2025-02-18 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503925', 'tblTempUsageDetail_20' ) end [2025-02-18 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503925', 'tblTempVendorCDR_20' ) start [2025-02-18 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503925', 'tblTempVendorCDR_20' ) end [2025-02-18 15:16:21] Production.INFO: ProcessCDR(1,14503925,1,1,2) [2025-02-18 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503925', 'tblTempUsageDetail_20' ) start [2025-02-18 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503925', 'tblTempUsageDetail_20' ) end [2025-02-18 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:16:27] Production.INFO: ==992== Releasing lock... [2025-02-18 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:16:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:17:05 [end_date_ymd] => 2025-02-18 15:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:17:05' and `end` < '2025-02-18 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-18 15:17:18] Production.INFO: count ==5640 [2025-02-18 15:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:17:05 - End Time 2025-02-18 15:17:05 [2025-02-18 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503930', 'tblTempUsageDetail_20' ) start [2025-02-18 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503930', 'tblTempUsageDetail_20' ) end [2025-02-18 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503930', 'tblTempVendorCDR_20' ) start [2025-02-18 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503930', 'tblTempVendorCDR_20' ) end [2025-02-18 15:17:21] Production.INFO: ProcessCDR(1,14503930,1,1,2) [2025-02-18 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503930', 'tblTempUsageDetail_20' ) start [2025-02-18 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503930', 'tblTempUsageDetail_20' ) end [2025-02-18 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:17:27] Production.INFO: ==1064== Releasing lock... [2025-02-18 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:17:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:18:05 [end_date_ymd] => 2025-02-18 15:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:18:05' and `end` < '2025-02-18 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-18 15:18:18] Production.INFO: count ==5644 [2025-02-18 15:18:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:18:05 - End Time 2025-02-18 15:18:05 [2025-02-18 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503935', 'tblTempUsageDetail_20' ) start [2025-02-18 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503935', 'tblTempUsageDetail_20' ) end [2025-02-18 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503935', 'tblTempVendorCDR_20' ) start [2025-02-18 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503935', 'tblTempVendorCDR_20' ) end [2025-02-18 15:18:21] Production.INFO: ProcessCDR(1,14503935,1,1,2) [2025-02-18 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503935', 'tblTempUsageDetail_20' ) start [2025-02-18 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503935', 'tblTempUsageDetail_20' ) end [2025-02-18 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:18:26] Production.INFO: ==1139== Releasing lock... [2025-02-18 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:18:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:19:05 [end_date_ymd] => 2025-02-18 15:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:19:05' and `end` < '2025-02-18 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-18 15:19:18] Production.INFO: count ==5631 [2025-02-18 15:19:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:19:05 - End Time 2025-02-18 15:19:05 [2025-02-18 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503940', 'tblTempUsageDetail_20' ) start [2025-02-18 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503940', 'tblTempUsageDetail_20' ) end [2025-02-18 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503940', 'tblTempVendorCDR_20' ) start [2025-02-18 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503940', 'tblTempVendorCDR_20' ) end [2025-02-18 15:19:21] Production.INFO: ProcessCDR(1,14503940,1,1,2) [2025-02-18 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503940', 'tblTempUsageDetail_20' ) start [2025-02-18 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503940', 'tblTempUsageDetail_20' ) end [2025-02-18 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:19:27] Production.INFO: ==1218== Releasing lock... [2025-02-18 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:19:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:20:07 [end_date_ymd] => 2025-02-18 15:20:07 [RateCDR] => 1 ) [2025-02-18 15:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:20:07' and `end` < '2025-02-18 15:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:20:20] Production.INFO: count ==5595 [2025-02-18 15:20:23] Production.ERROR: pbx CDR StartTime 2025-02-18 12:20:07 - End Time 2025-02-18 15:20:07 [2025-02-18 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503946', 'tblTempUsageDetail_20' ) start [2025-02-18 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503946', 'tblTempUsageDetail_20' ) end [2025-02-18 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503946', 'tblTempVendorCDR_20' ) start [2025-02-18 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503946', 'tblTempVendorCDR_20' ) end [2025-02-18 15:20:23] Production.INFO: ProcessCDR(1,14503946,1,1,2) [2025-02-18 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503946', 'tblTempUsageDetail_20' ) start [2025-02-18 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503946', 'tblTempUsageDetail_20' ) end [2025-02-18 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:20:28] Production.INFO: ==1304== Releasing lock... [2025-02-18 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:20:28] Production.INFO: 70 MB #Memory Used# [2025-02-18 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:21:05 [end_date_ymd] => 2025-02-18 15:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:21:05' and `end` < '2025-02-18 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-18 15:21:18] Production.INFO: count ==5621 [2025-02-18 15:21:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:21:05 - End Time 2025-02-18 15:21:05 [2025-02-18 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503951', 'tblTempUsageDetail_20' ) start [2025-02-18 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503951', 'tblTempUsageDetail_20' ) end [2025-02-18 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503951', 'tblTempVendorCDR_20' ) start [2025-02-18 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503951', 'tblTempVendorCDR_20' ) end [2025-02-18 15:21:21] Production.INFO: ProcessCDR(1,14503951,1,1,2) [2025-02-18 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503951', 'tblTempUsageDetail_20' ) start [2025-02-18 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503951', 'tblTempUsageDetail_20' ) end [2025-02-18 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:21:27] Production.INFO: ==1379== Releasing lock... [2025-02-18 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:21:27] Production.INFO: 70 MB #Memory Used# [2025-02-18 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:22:06 [end_date_ymd] => 2025-02-18 15:22:06 [RateCDR] => 1 ) [2025-02-18 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-18 12:22:06' and `end` < '2025-02-18 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-18 15:22:19] Production.INFO: count ==5603 [2025-02-18 15:22:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:22:06 - End Time 2025-02-18 15:22:06 [2025-02-18 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503956', 'tblTempUsageDetail_20' ) start [2025-02-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503956', 'tblTempUsageDetail_20' ) end [2025-02-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503956', 'tblTempVendorCDR_20' ) start [2025-02-18 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503956', 'tblTempVendorCDR_20' ) end [2025-02-18 15:22:22] Production.INFO: ProcessCDR(1,14503956,1,1,2) [2025-02-18 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503956', 'tblTempUsageDetail_20' ) start [2025-02-18 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503956', 'tblTempUsageDetail_20' ) end [2025-02-18 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:22:28] Production.INFO: ==1452== Releasing lock... [2025-02-18 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:22:28] Production.INFO: 70 MB #Memory Used# [2025-02-18 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:23:05 [end_date_ymd] => 2025-02-18 15:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:23:05' and `end` < '2025-02-18 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-18 15:23:18] Production.INFO: count ==5618 [2025-02-18 15:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:23:05 - End Time 2025-02-18 15:23:05 [2025-02-18 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503961', 'tblTempUsageDetail_20' ) start [2025-02-18 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503961', 'tblTempUsageDetail_20' ) end [2025-02-18 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503961', 'tblTempVendorCDR_20' ) start [2025-02-18 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503961', 'tblTempVendorCDR_20' ) end [2025-02-18 15:23:21] Production.INFO: ProcessCDR(1,14503961,1,1,2) [2025-02-18 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503961', 'tblTempUsageDetail_20' ) start [2025-02-18 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503961', 'tblTempUsageDetail_20' ) end [2025-02-18 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:23:27] Production.INFO: ==1598== Releasing lock... [2025-02-18 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:23:27] Production.INFO: 70 MB #Memory Used# [2025-02-18 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:24:05 [end_date_ymd] => 2025-02-18 15:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:24:05' and `end` < '2025-02-18 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-18 15:24:18] Production.INFO: count ==5620 [2025-02-18 15:24:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:24:05 - End Time 2025-02-18 15:24:05 [2025-02-18 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503966', 'tblTempUsageDetail_20' ) start [2025-02-18 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503966', 'tblTempUsageDetail_20' ) end [2025-02-18 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503966', 'tblTempVendorCDR_20' ) start [2025-02-18 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503966', 'tblTempVendorCDR_20' ) end [2025-02-18 15:24:21] Production.INFO: ProcessCDR(1,14503966,1,1,2) [2025-02-18 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503966', 'tblTempUsageDetail_20' ) start [2025-02-18 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503966', 'tblTempUsageDetail_20' ) end [2025-02-18 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:24:27] Production.INFO: ==1669== Releasing lock... [2025-02-18 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:24:27] Production.INFO: 70 MB #Memory Used# [2025-02-18 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:25:05 [end_date_ymd] => 2025-02-18 15:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:25:05' and `end` < '2025-02-18 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-18 15:25:18] Production.INFO: count ==5630 [2025-02-18 15:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:25:05 - End Time 2025-02-18 15:25:05 [2025-02-18 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503971', 'tblTempUsageDetail_20' ) start [2025-02-18 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503971', 'tblTempUsageDetail_20' ) end [2025-02-18 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503971', 'tblTempVendorCDR_20' ) start [2025-02-18 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503971', 'tblTempVendorCDR_20' ) end [2025-02-18 15:25:21] Production.INFO: ProcessCDR(1,14503971,1,1,2) [2025-02-18 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503971', 'tblTempUsageDetail_20' ) start [2025-02-18 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503971', 'tblTempUsageDetail_20' ) end [2025-02-18 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:25:27] Production.INFO: ==1738== Releasing lock... [2025-02-18 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:25:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:26:06 [end_date_ymd] => 2025-02-18 15:26:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:26:06' and `end` < '2025-02-18 15: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-18 15:26:19] Production.INFO: count ==5646 [2025-02-18 15:26:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:26:06 - End Time 2025-02-18 15:26:06 [2025-02-18 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503976', 'tblTempUsageDetail_20' ) start [2025-02-18 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503976', 'tblTempUsageDetail_20' ) end [2025-02-18 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503976', 'tblTempVendorCDR_20' ) start [2025-02-18 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503976', 'tblTempVendorCDR_20' ) end [2025-02-18 15:26:22] Production.INFO: ProcessCDR(1,14503976,1,1,2) [2025-02-18 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503976', 'tblTempUsageDetail_20' ) start [2025-02-18 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503976', 'tblTempUsageDetail_20' ) end [2025-02-18 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:26:28] Production.INFO: ==1812== Releasing lock... [2025-02-18 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:26:28] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:27:05 [end_date_ymd] => 2025-02-18 15:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:27:05' and `end` < '2025-02-18 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-18 15:27:18] Production.INFO: count ==5712 [2025-02-18 15:27:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:27:05 - End Time 2025-02-18 15:27:05 [2025-02-18 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503981', 'tblTempUsageDetail_20' ) start [2025-02-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503981', 'tblTempUsageDetail_20' ) end [2025-02-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503981', 'tblTempVendorCDR_20' ) start [2025-02-18 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503981', 'tblTempVendorCDR_20' ) end [2025-02-18 15:27:22] Production.INFO: ProcessCDR(1,14503981,1,1,2) [2025-02-18 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503981', 'tblTempUsageDetail_20' ) start [2025-02-18 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503981', 'tblTempUsageDetail_20' ) end [2025-02-18 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:27:27] Production.INFO: ==1892== Releasing lock... [2025-02-18 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:27:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:28:06 [end_date_ymd] => 2025-02-18 15:28:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:28:06' and `end` < '2025-02-18 15: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-18 15:28:20] Production.INFO: count ==5707 [2025-02-18 15:28:23] Production.ERROR: pbx CDR StartTime 2025-02-18 12:28:06 - End Time 2025-02-18 15:28:06 [2025-02-18 15:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503986', 'tblTempUsageDetail_20' ) start [2025-02-18 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503986', 'tblTempUsageDetail_20' ) end [2025-02-18 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503986', 'tblTempVendorCDR_20' ) start [2025-02-18 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503986', 'tblTempVendorCDR_20' ) end [2025-02-18 15:28:23] Production.INFO: ProcessCDR(1,14503986,1,1,2) [2025-02-18 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503986', 'tblTempUsageDetail_20' ) start [2025-02-18 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503986', 'tblTempUsageDetail_20' ) end [2025-02-18 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:28:28] Production.INFO: ==1966== Releasing lock... [2025-02-18 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:28:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:29:06 [end_date_ymd] => 2025-02-18 15:29:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:29:06' and `end` < '2025-02-18 15: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-18 15:29:19] Production.INFO: count ==5707 [2025-02-18 15:29:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:29:06 - End Time 2025-02-18 15:29:06 [2025-02-18 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503991', 'tblTempUsageDetail_20' ) start [2025-02-18 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503991', 'tblTempUsageDetail_20' ) end [2025-02-18 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503991', 'tblTempVendorCDR_20' ) start [2025-02-18 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503991', 'tblTempVendorCDR_20' ) end [2025-02-18 15:29:22] Production.INFO: ProcessCDR(1,14503991,1,1,2) [2025-02-18 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503991', 'tblTempUsageDetail_20' ) start [2025-02-18 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503991', 'tblTempUsageDetail_20' ) end [2025-02-18 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:29:27] Production.INFO: ==2036== Releasing lock... [2025-02-18 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:29:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:30:07 [end_date_ymd] => 2025-02-18 15:30:07 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:30:07' and `end` < '2025-02-18 15: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-18 15:30:20] Production.INFO: count ==5717 [2025-02-18 15:30:23] Production.ERROR: pbx CDR StartTime 2025-02-18 12:30:07 - End Time 2025-02-18 15:30:07 [2025-02-18 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503997', 'tblTempUsageDetail_20' ) start [2025-02-18 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14503997', 'tblTempUsageDetail_20' ) end [2025-02-18 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503997', 'tblTempVendorCDR_20' ) start [2025-02-18 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14503997', 'tblTempVendorCDR_20' ) end [2025-02-18 15:30:23] Production.INFO: ProcessCDR(1,14503997,1,1,2) [2025-02-18 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14503997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14503997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14503997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14503997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503997', 'tblTempUsageDetail_20' ) start [2025-02-18 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14503997', 'tblTempUsageDetail_20' ) end [2025-02-18 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:30:28] Production.INFO: ==2114== Releasing lock... [2025-02-18 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:30:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:31:05 [end_date_ymd] => 2025-02-18 15:31:05 [RateCDR] => 1 ) [2025-02-18 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:31:05' and `end` < '2025-02-18 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:31:18] Production.INFO: count ==5689 [2025-02-18 15:31:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:31:05 - End Time 2025-02-18 15:31:05 [2025-02-18 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504002', 'tblTempUsageDetail_20' ) start [2025-02-18 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504002', 'tblTempUsageDetail_20' ) end [2025-02-18 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504002', 'tblTempVendorCDR_20' ) start [2025-02-18 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504002', 'tblTempVendorCDR_20' ) end [2025-02-18 15:31:21] Production.INFO: ProcessCDR(1,14504002,1,1,2) [2025-02-18 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504002', 'tblTempUsageDetail_20' ) start [2025-02-18 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504002', 'tblTempUsageDetail_20' ) end [2025-02-18 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:31:27] Production.INFO: ==2191== Releasing lock... [2025-02-18 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:31:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:32:06 [end_date_ymd] => 2025-02-18 15:32:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:32:06' and `end` < '2025-02-18 15: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-18 15:32:19] Production.INFO: count ==5693 [2025-02-18 15:32:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:32:06 - End Time 2025-02-18 15:32:06 [2025-02-18 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504007', 'tblTempUsageDetail_20' ) start [2025-02-18 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504007', 'tblTempUsageDetail_20' ) end [2025-02-18 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504007', 'tblTempVendorCDR_20' ) start [2025-02-18 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504007', 'tblTempVendorCDR_20' ) end [2025-02-18 15:32:22] Production.INFO: ProcessCDR(1,14504007,1,1,2) [2025-02-18 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504007', 'tblTempUsageDetail_20' ) start [2025-02-18 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504007', 'tblTempUsageDetail_20' ) end [2025-02-18 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:32:27] Production.INFO: ==2264== Releasing lock... [2025-02-18 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:32:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:33:05 [end_date_ymd] => 2025-02-18 15:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:33:05' and `end` < '2025-02-18 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-18 15:33:18] Production.INFO: count ==5687 [2025-02-18 15:33:20] Production.ERROR: pbx CDR StartTime 2025-02-18 12:33:05 - End Time 2025-02-18 15:33:05 [2025-02-18 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504012', 'tblTempUsageDetail_20' ) start [2025-02-18 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504012', 'tblTempUsageDetail_20' ) end [2025-02-18 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504012', 'tblTempVendorCDR_20' ) start [2025-02-18 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504012', 'tblTempVendorCDR_20' ) end [2025-02-18 15:33:20] Production.INFO: ProcessCDR(1,14504012,1,1,2) [2025-02-18 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504012', 'tblTempUsageDetail_20' ) start [2025-02-18 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504012', 'tblTempUsageDetail_20' ) end [2025-02-18 15:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:33:24] Production.INFO: ==2335== Releasing lock... [2025-02-18 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:33:24] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:34:06 [end_date_ymd] => 2025-02-18 15:34:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:34:06' and `end` < '2025-02-18 15: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-18 15:34:19] Production.INFO: count ==5679 [2025-02-18 15:34:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:34:06 - End Time 2025-02-18 15:34:06 [2025-02-18 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504017', 'tblTempUsageDetail_20' ) start [2025-02-18 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504017', 'tblTempUsageDetail_20' ) end [2025-02-18 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504017', 'tblTempVendorCDR_20' ) start [2025-02-18 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504017', 'tblTempVendorCDR_20' ) end [2025-02-18 15:34:22] Production.INFO: ProcessCDR(1,14504017,1,1,2) [2025-02-18 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504017', 'tblTempUsageDetail_20' ) start [2025-02-18 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504017', 'tblTempUsageDetail_20' ) end [2025-02-18 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:34:26] Production.INFO: ==2408== Releasing lock... [2025-02-18 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:34:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:35:05 [end_date_ymd] => 2025-02-18 15:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:35:05' and `end` < '2025-02-18 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-18 15:35:18] Production.INFO: count ==5692 [2025-02-18 15:35:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:35:05 - End Time 2025-02-18 15:35:05 [2025-02-18 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504022', 'tblTempUsageDetail_20' ) start [2025-02-18 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504022', 'tblTempUsageDetail_20' ) end [2025-02-18 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504022', 'tblTempVendorCDR_20' ) start [2025-02-18 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504022', 'tblTempVendorCDR_20' ) end [2025-02-18 15:35:21] Production.INFO: ProcessCDR(1,14504022,1,1,2) [2025-02-18 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504022', 'tblTempUsageDetail_20' ) start [2025-02-18 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504022', 'tblTempUsageDetail_20' ) end [2025-02-18 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:35:27] Production.INFO: ==2481== Releasing lock... [2025-02-18 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:35:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:36:06 [end_date_ymd] => 2025-02-18 15:36:06 [RateCDR] => 1 ) [2025-02-18 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:36:06' and `end` < '2025-02-18 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:36:20] Production.INFO: count ==5699 [2025-02-18 15:36:23] Production.ERROR: pbx CDR StartTime 2025-02-18 12:36:06 - End Time 2025-02-18 15:36:06 [2025-02-18 15:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504027', 'tblTempUsageDetail_20' ) start [2025-02-18 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504027', 'tblTempUsageDetail_20' ) end [2025-02-18 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504027', 'tblTempVendorCDR_20' ) start [2025-02-18 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504027', 'tblTempVendorCDR_20' ) end [2025-02-18 15:36:23] Production.INFO: ProcessCDR(1,14504027,1,1,2) [2025-02-18 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504027', 'tblTempUsageDetail_20' ) start [2025-02-18 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504027', 'tblTempUsageDetail_20' ) end [2025-02-18 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:36:28] Production.INFO: ==2552== Releasing lock... [2025-02-18 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:36:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:37:05 [end_date_ymd] => 2025-02-18 15:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:37:05' and `end` < '2025-02-18 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-18 15:37:18] Production.INFO: count ==5702 [2025-02-18 15:37:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:37:05 - End Time 2025-02-18 15:37:05 [2025-02-18 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504032', 'tblTempUsageDetail_20' ) start [2025-02-18 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504032', 'tblTempUsageDetail_20' ) end [2025-02-18 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504032', 'tblTempVendorCDR_20' ) start [2025-02-18 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504032', 'tblTempVendorCDR_20' ) end [2025-02-18 15:37:21] Production.INFO: ProcessCDR(1,14504032,1,1,2) [2025-02-18 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504032', 'tblTempUsageDetail_20' ) start [2025-02-18 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504032', 'tblTempUsageDetail_20' ) end [2025-02-18 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:37:27] Production.INFO: ==2623== Releasing lock... [2025-02-18 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:37:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:38:06 [end_date_ymd] => 2025-02-18 15:38:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:38:06' and `end` < '2025-02-18 15: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-18 15:38:19] Production.INFO: count ==5721 [2025-02-18 15:38:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:38:06 - End Time 2025-02-18 15:38:06 [2025-02-18 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504037', 'tblTempUsageDetail_20' ) start [2025-02-18 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504037', 'tblTempUsageDetail_20' ) end [2025-02-18 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504037', 'tblTempVendorCDR_20' ) start [2025-02-18 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504037', 'tblTempVendorCDR_20' ) end [2025-02-18 15:38:22] Production.INFO: ProcessCDR(1,14504037,1,1,2) [2025-02-18 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504037', 'tblTempUsageDetail_20' ) start [2025-02-18 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504037', 'tblTempUsageDetail_20' ) end [2025-02-18 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:38:28] Production.INFO: ==2694== Releasing lock... [2025-02-18 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:38:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:39:05 [end_date_ymd] => 2025-02-18 15:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:39:05' and `end` < '2025-02-18 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-18 15:39:18] Production.INFO: count ==5717 [2025-02-18 15:39:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:39:05 - End Time 2025-02-18 15:39:05 [2025-02-18 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504042', 'tblTempUsageDetail_20' ) start [2025-02-18 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504042', 'tblTempUsageDetail_20' ) end [2025-02-18 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504042', 'tblTempVendorCDR_20' ) start [2025-02-18 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504042', 'tblTempVendorCDR_20' ) end [2025-02-18 15:39:21] Production.INFO: ProcessCDR(1,14504042,1,1,2) [2025-02-18 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504042', 'tblTempUsageDetail_20' ) start [2025-02-18 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504042', 'tblTempUsageDetail_20' ) end [2025-02-18 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:39:27] Production.INFO: ==2804== Releasing lock... [2025-02-18 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:39:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:40:07 [end_date_ymd] => 2025-02-18 15:40:07 [RateCDR] => 1 ) [2025-02-18 15:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:40:07' and `end` < '2025-02-18 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:40:19] Production.INFO: count ==5725 [2025-02-18 15:40:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:40:07 - End Time 2025-02-18 15:40:07 [2025-02-18 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504048', 'tblTempUsageDetail_20' ) start [2025-02-18 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504048', 'tblTempUsageDetail_20' ) end [2025-02-18 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504048', 'tblTempVendorCDR_20' ) start [2025-02-18 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504048', 'tblTempVendorCDR_20' ) end [2025-02-18 15:40:22] Production.INFO: ProcessCDR(1,14504048,1,1,2) [2025-02-18 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504048', 'tblTempUsageDetail_20' ) start [2025-02-18 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504048', 'tblTempUsageDetail_20' ) end [2025-02-18 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:40:28] Production.INFO: ==2877== Releasing lock... [2025-02-18 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:40:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:41:05 [end_date_ymd] => 2025-02-18 15:41:05 [RateCDR] => 1 ) [2025-02-18 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:41:05' and `end` < '2025-02-18 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:41:18] Production.INFO: count ==5712 [2025-02-18 15:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:41:05 - End Time 2025-02-18 15:41:05 [2025-02-18 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504053', 'tblTempUsageDetail_20' ) start [2025-02-18 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504053', 'tblTempUsageDetail_20' ) end [2025-02-18 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504053', 'tblTempVendorCDR_20' ) start [2025-02-18 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504053', 'tblTempVendorCDR_20' ) end [2025-02-18 15:41:21] Production.INFO: ProcessCDR(1,14504053,1,1,2) [2025-02-18 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504053', 'tblTempUsageDetail_20' ) start [2025-02-18 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504053', 'tblTempUsageDetail_20' ) end [2025-02-18 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:41:28] Production.INFO: ==2953== Releasing lock... [2025-02-18 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:41:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:42:06 [end_date_ymd] => 2025-02-18 15:42:06 [RateCDR] => 1 ) [2025-02-18 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:42:06' and `end` < '2025-02-18 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:42:19] Production.INFO: count ==5707 [2025-02-18 15:42:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:42:06 - End Time 2025-02-18 15:42:06 [2025-02-18 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504058', 'tblTempUsageDetail_20' ) start [2025-02-18 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504058', 'tblTempUsageDetail_20' ) end [2025-02-18 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504058', 'tblTempVendorCDR_20' ) start [2025-02-18 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504058', 'tblTempVendorCDR_20' ) end [2025-02-18 15:42:22] Production.INFO: ProcessCDR(1,14504058,1,1,2) [2025-02-18 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504058', 'tblTempUsageDetail_20' ) start [2025-02-18 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504058', 'tblTempUsageDetail_20' ) end [2025-02-18 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:42:27] Production.INFO: ==3029== Releasing lock... [2025-02-18 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:42:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:43:05 [end_date_ymd] => 2025-02-18 15:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:43:05' and `end` < '2025-02-18 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-18 15:43:18] Production.INFO: count ==5691 [2025-02-18 15:43:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:43:05 - End Time 2025-02-18 15:43:05 [2025-02-18 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504063', 'tblTempUsageDetail_20' ) start [2025-02-18 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504063', 'tblTempUsageDetail_20' ) end [2025-02-18 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504063', 'tblTempVendorCDR_20' ) start [2025-02-18 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504063', 'tblTempVendorCDR_20' ) end [2025-02-18 15:43:21] Production.INFO: ProcessCDR(1,14504063,1,1,2) [2025-02-18 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504063', 'tblTempUsageDetail_20' ) start [2025-02-18 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504063', 'tblTempUsageDetail_20' ) end [2025-02-18 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:43:26] Production.INFO: ==3102== Releasing lock... [2025-02-18 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:43:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:44:05 [end_date_ymd] => 2025-02-18 15:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:44:05' and `end` < '2025-02-18 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-18 15:44:18] Production.INFO: count ==5685 [2025-02-18 15:44:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:44:05 - End Time 2025-02-18 15:44:05 [2025-02-18 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504068', 'tblTempUsageDetail_20' ) start [2025-02-18 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504068', 'tblTempUsageDetail_20' ) end [2025-02-18 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504068', 'tblTempVendorCDR_20' ) start [2025-02-18 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504068', 'tblTempVendorCDR_20' ) end [2025-02-18 15:44:21] Production.INFO: ProcessCDR(1,14504068,1,1,2) [2025-02-18 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504068', 'tblTempUsageDetail_20' ) start [2025-02-18 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504068', 'tblTempUsageDetail_20' ) end [2025-02-18 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:44:25] Production.INFO: ==3174== Releasing lock... [2025-02-18 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:44:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:45:05 [end_date_ymd] => 2025-02-18 15:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:45:05' and `end` < '2025-02-18 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-18 15:45:18] Production.INFO: count ==5669 [2025-02-18 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:45:05 - End Time 2025-02-18 15:45:05 [2025-02-18 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504073', 'tblTempUsageDetail_20' ) start [2025-02-18 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504073', 'tblTempUsageDetail_20' ) end [2025-02-18 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504073', 'tblTempVendorCDR_20' ) start [2025-02-18 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504073', 'tblTempVendorCDR_20' ) end [2025-02-18 15:45:21] Production.INFO: ProcessCDR(1,14504073,1,1,2) [2025-02-18 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504073', 'tblTempUsageDetail_20' ) start [2025-02-18 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504073', 'tblTempUsageDetail_20' ) end [2025-02-18 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:45:26] Production.INFO: ==3244== Releasing lock... [2025-02-18 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:45:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:46:06 [end_date_ymd] => 2025-02-18 15:46:06 [RateCDR] => 1 ) [2025-02-18 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:46:06' and `end` < '2025-02-18 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:46:19] Production.INFO: count ==5675 [2025-02-18 15:46:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:46:06 - End Time 2025-02-18 15:46:06 [2025-02-18 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504078', 'tblTempUsageDetail_20' ) start [2025-02-18 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504078', 'tblTempUsageDetail_20' ) end [2025-02-18 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504078', 'tblTempVendorCDR_20' ) start [2025-02-18 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504078', 'tblTempVendorCDR_20' ) end [2025-02-18 15:46:22] Production.INFO: ProcessCDR(1,14504078,1,1,2) [2025-02-18 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504078', 'tblTempUsageDetail_20' ) start [2025-02-18 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504078', 'tblTempUsageDetail_20' ) end [2025-02-18 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:46:27] Production.INFO: ==3321== Releasing lock... [2025-02-18 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:46:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:47:05 [end_date_ymd] => 2025-02-18 15:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:47:05' and `end` < '2025-02-18 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-18 15:47:18] Production.INFO: count ==5687 [2025-02-18 15:47:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:47:05 - End Time 2025-02-18 15:47:05 [2025-02-18 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504083', 'tblTempUsageDetail_20' ) start [2025-02-18 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504083', 'tblTempUsageDetail_20' ) end [2025-02-18 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504083', 'tblTempVendorCDR_20' ) start [2025-02-18 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504083', 'tblTempVendorCDR_20' ) end [2025-02-18 15:47:21] Production.INFO: ProcessCDR(1,14504083,1,1,2) [2025-02-18 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504083', 'tblTempUsageDetail_20' ) start [2025-02-18 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504083', 'tblTempUsageDetail_20' ) end [2025-02-18 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:47:26] Production.INFO: ==3390== Releasing lock... [2025-02-18 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:47:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:48:06 [end_date_ymd] => 2025-02-18 15:48:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:48:06' and `end` < '2025-02-18 15: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-18 15:48:19] Production.INFO: count ==5685 [2025-02-18 15:48:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:48:06 - End Time 2025-02-18 15:48:06 [2025-02-18 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504088', 'tblTempUsageDetail_20' ) start [2025-02-18 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504088', 'tblTempUsageDetail_20' ) end [2025-02-18 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504088', 'tblTempVendorCDR_20' ) start [2025-02-18 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504088', 'tblTempVendorCDR_20' ) end [2025-02-18 15:48:22] Production.INFO: ProcessCDR(1,14504088,1,1,2) [2025-02-18 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504088', 'tblTempUsageDetail_20' ) start [2025-02-18 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504088', 'tblTempUsageDetail_20' ) end [2025-02-18 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:48:28] Production.INFO: ==3464== Releasing lock... [2025-02-18 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:48:28] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:49:05 [end_date_ymd] => 2025-02-18 15:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:49:05' and `end` < '2025-02-18 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-18 15:49:18] Production.INFO: count ==5680 [2025-02-18 15:49:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:49:05 - End Time 2025-02-18 15:49:05 [2025-02-18 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504093', 'tblTempUsageDetail_20' ) start [2025-02-18 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504093', 'tblTempUsageDetail_20' ) end [2025-02-18 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504093', 'tblTempVendorCDR_20' ) start [2025-02-18 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504093', 'tblTempVendorCDR_20' ) end [2025-02-18 15:49:21] Production.INFO: ProcessCDR(1,14504093,1,1,2) [2025-02-18 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504093', 'tblTempUsageDetail_20' ) start [2025-02-18 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504093', 'tblTempUsageDetail_20' ) end [2025-02-18 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:49:26] Production.INFO: ==3538== Releasing lock... [2025-02-18 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:49:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:50:06 [end_date_ymd] => 2025-02-18 15:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 12:50:06' and `end` < '2025-02-18 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-18 15:50:19] Production.INFO: count ==5692 [2025-02-18 15:50:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:50:06 - End Time 2025-02-18 15:50:06 [2025-02-18 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504099', 'tblTempUsageDetail_20' ) start [2025-02-18 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504099', 'tblTempUsageDetail_20' ) end [2025-02-18 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504099', 'tblTempVendorCDR_20' ) start [2025-02-18 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504099', 'tblTempVendorCDR_20' ) end [2025-02-18 15:50:22] Production.INFO: ProcessCDR(1,14504099,1,1,2) [2025-02-18 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504099', 'tblTempUsageDetail_20' ) start [2025-02-18 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504099', 'tblTempUsageDetail_20' ) end [2025-02-18 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:50:28] Production.INFO: ==3612== Releasing lock... [2025-02-18 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:50:28] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:51:05 [end_date_ymd] => 2025-02-18 15:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:51:05' and `end` < '2025-02-18 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-18 15:51:18] Production.INFO: count ==5697 [2025-02-18 15:51:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:51:05 - End Time 2025-02-18 15:51:05 [2025-02-18 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504104', 'tblTempUsageDetail_20' ) start [2025-02-18 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504104', 'tblTempUsageDetail_20' ) end [2025-02-18 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504104', 'tblTempVendorCDR_20' ) start [2025-02-18 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504104', 'tblTempVendorCDR_20' ) end [2025-02-18 15:51:21] Production.INFO: ProcessCDR(1,14504104,1,1,2) [2025-02-18 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504104', 'tblTempUsageDetail_20' ) start [2025-02-18 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504104', 'tblTempUsageDetail_20' ) end [2025-02-18 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:51:27] Production.INFO: ==3685== Releasing lock... [2025-02-18 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:51:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:52:06 [end_date_ymd] => 2025-02-18 15:52:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:52:06' and `end` < '2025-02-18 15: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-18 15:52:19] Production.INFO: count ==5683 [2025-02-18 15:52:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:52:06 - End Time 2025-02-18 15:52:06 [2025-02-18 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504109', 'tblTempUsageDetail_20' ) start [2025-02-18 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504109', 'tblTempUsageDetail_20' ) end [2025-02-18 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504109', 'tblTempVendorCDR_20' ) start [2025-02-18 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504109', 'tblTempVendorCDR_20' ) end [2025-02-18 15:52:22] Production.INFO: ProcessCDR(1,14504109,1,1,2) [2025-02-18 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504109', 'tblTempUsageDetail_20' ) start [2025-02-18 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504109', 'tblTempUsageDetail_20' ) end [2025-02-18 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:52:27] Production.INFO: ==3759== Releasing lock... [2025-02-18 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:52:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:53:05 [end_date_ymd] => 2025-02-18 15:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:53:05' and `end` < '2025-02-18 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-18 15:53:18] Production.INFO: count ==5668 [2025-02-18 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:53:05 - End Time 2025-02-18 15:53:05 [2025-02-18 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504114', 'tblTempUsageDetail_20' ) start [2025-02-18 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504114', 'tblTempUsageDetail_20' ) end [2025-02-18 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504114', 'tblTempVendorCDR_20' ) start [2025-02-18 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504114', 'tblTempVendorCDR_20' ) end [2025-02-18 15:53:21] Production.INFO: ProcessCDR(1,14504114,1,1,2) [2025-02-18 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504114', 'tblTempUsageDetail_20' ) start [2025-02-18 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504114', 'tblTempUsageDetail_20' ) end [2025-02-18 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:53:26] Production.INFO: ==3833== Releasing lock... [2025-02-18 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:53:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:54:06 [end_date_ymd] => 2025-02-18 15:54:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:54:06' and `end` < '2025-02-18 15: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-18 15:54:19] Production.INFO: count ==5680 [2025-02-18 15:54:22] Production.ERROR: pbx CDR StartTime 2025-02-18 12:54:06 - End Time 2025-02-18 15:54:06 [2025-02-18 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504119', 'tblTempUsageDetail_20' ) start [2025-02-18 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504119', 'tblTempUsageDetail_20' ) end [2025-02-18 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504119', 'tblTempVendorCDR_20' ) start [2025-02-18 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504119', 'tblTempVendorCDR_20' ) end [2025-02-18 15:54:22] Production.INFO: ProcessCDR(1,14504119,1,1,2) [2025-02-18 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504119', 'tblTempUsageDetail_20' ) start [2025-02-18 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504119', 'tblTempUsageDetail_20' ) end [2025-02-18 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:54:27] Production.INFO: ==3948== Releasing lock... [2025-02-18 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:54:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:55:05 [end_date_ymd] => 2025-02-18 15:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:55:05' and `end` < '2025-02-18 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-18 15:55:18] Production.INFO: count ==5673 [2025-02-18 15:55:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:55:05 - End Time 2025-02-18 15:55:05 [2025-02-18 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504124', 'tblTempUsageDetail_20' ) start [2025-02-18 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504124', 'tblTempUsageDetail_20' ) end [2025-02-18 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504124', 'tblTempVendorCDR_20' ) start [2025-02-18 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504124', 'tblTempVendorCDR_20' ) end [2025-02-18 15:55:21] Production.INFO: ProcessCDR(1,14504124,1,1,2) [2025-02-18 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504124', 'tblTempUsageDetail_20' ) start [2025-02-18 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504124', 'tblTempUsageDetail_20' ) end [2025-02-18 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:55:27] Production.INFO: ==4025== Releasing lock... [2025-02-18 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:55:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:56:06 [end_date_ymd] => 2025-02-18 15:56:06 [RateCDR] => 1 ) [2025-02-18 15: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-18 12:56:06' and `end` < '2025-02-18 15: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-18 15:56:18] Production.INFO: count ==5670 [2025-02-18 15:56:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:56:06 - End Time 2025-02-18 15:56:06 [2025-02-18 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504129', 'tblTempUsageDetail_20' ) start [2025-02-18 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504129', 'tblTempUsageDetail_20' ) end [2025-02-18 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504129', 'tblTempVendorCDR_20' ) start [2025-02-18 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504129', 'tblTempVendorCDR_20' ) end [2025-02-18 15:56:21] Production.INFO: ProcessCDR(1,14504129,1,1,2) [2025-02-18 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504129', 'tblTempUsageDetail_20' ) start [2025-02-18 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504129', 'tblTempUsageDetail_20' ) end [2025-02-18 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:56:27] Production.INFO: ==4103== Releasing lock... [2025-02-18 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:56:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:57:05 [end_date_ymd] => 2025-02-18 15:57:05 [RateCDR] => 1 ) [2025-02-18 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 12:57:05' and `end` < '2025-02-18 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 15:57:17] Production.INFO: count ==5679 [2025-02-18 15:57:20] Production.ERROR: pbx CDR StartTime 2025-02-18 12:57:05 - End Time 2025-02-18 15:57:05 [2025-02-18 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504134', 'tblTempUsageDetail_20' ) start [2025-02-18 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504134', 'tblTempUsageDetail_20' ) end [2025-02-18 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504134', 'tblTempVendorCDR_20' ) start [2025-02-18 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504134', 'tblTempVendorCDR_20' ) end [2025-02-18 15:57:20] Production.INFO: ProcessCDR(1,14504134,1,1,2) [2025-02-18 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504134', 'tblTempUsageDetail_20' ) start [2025-02-18 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504134', 'tblTempUsageDetail_20' ) end [2025-02-18 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:57:26] Production.INFO: ==4174== Releasing lock... [2025-02-18 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:57:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:58:05 [end_date_ymd] => 2025-02-18 15:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:58:05' and `end` < '2025-02-18 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-18 15:58:18] Production.INFO: count ==5686 [2025-02-18 15:58:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:58:05 - End Time 2025-02-18 15:58:05 [2025-02-18 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504139', 'tblTempUsageDetail_20' ) start [2025-02-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504139', 'tblTempUsageDetail_20' ) end [2025-02-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504139', 'tblTempVendorCDR_20' ) start [2025-02-18 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504139', 'tblTempVendorCDR_20' ) end [2025-02-18 15:58:21] Production.INFO: ProcessCDR(1,14504139,1,1,2) [2025-02-18 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504139', 'tblTempUsageDetail_20' ) start [2025-02-18 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504139', 'tblTempUsageDetail_20' ) end [2025-02-18 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:58:26] Production.INFO: ==4249== Releasing lock... [2025-02-18 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:58:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-18 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 12:59:05 [end_date_ymd] => 2025-02-18 15:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 12:59:05' and `end` < '2025-02-18 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-18 15:59:18] Production.INFO: count ==5698 [2025-02-18 15:59:21] Production.ERROR: pbx CDR StartTime 2025-02-18 12:59:05 - End Time 2025-02-18 15:59:05 [2025-02-18 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504144', 'tblTempUsageDetail_20' ) start [2025-02-18 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504144', 'tblTempUsageDetail_20' ) end [2025-02-18 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504144', 'tblTempVendorCDR_20' ) start [2025-02-18 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504144', 'tblTempVendorCDR_20' ) end [2025-02-18 15:59:21] Production.INFO: ProcessCDR(1,14504144,1,1,2) [2025-02-18 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504144', 'tblTempUsageDetail_20' ) start [2025-02-18 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504144', 'tblTempUsageDetail_20' ) end [2025-02-18 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 15:59:26] Production.INFO: ==4326== Releasing lock... [2025-02-18 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 15:59:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:00:06 [end_date_ymd] => 2025-02-18 16:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:00:06' and `end` < '2025-02-18 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-18 16:00:19] Production.INFO: count ==5720 [2025-02-18 16:00:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:00:06 - End Time 2025-02-18 16:00:06 [2025-02-18 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504150', 'tblTempUsageDetail_20' ) start [2025-02-18 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504150', 'tblTempUsageDetail_20' ) end [2025-02-18 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504150', 'tblTempVendorCDR_20' ) start [2025-02-18 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504150', 'tblTempVendorCDR_20' ) end [2025-02-18 16:00:22] Production.INFO: ProcessCDR(1,14504150,1,1,2) [2025-02-18 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504150', 'tblTempUsageDetail_20' ) start [2025-02-18 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504150', 'tblTempUsageDetail_20' ) end [2025-02-18 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:00:28] Production.INFO: ==4407== Releasing lock... [2025-02-18 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:00:28] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:01:05 [end_date_ymd] => 2025-02-18 16:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:01:05' and `end` < '2025-02-18 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-18 16:01:18] Production.INFO: count ==5751 [2025-02-18 16:01:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:01:05 - End Time 2025-02-18 16:01:05 [2025-02-18 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504155', 'tblTempUsageDetail_20' ) start [2025-02-18 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504155', 'tblTempUsageDetail_20' ) end [2025-02-18 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504155', 'tblTempVendorCDR_20' ) start [2025-02-18 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504155', 'tblTempVendorCDR_20' ) end [2025-02-18 16:01:21] Production.INFO: ProcessCDR(1,14504155,1,1,2) [2025-02-18 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504155', 'tblTempUsageDetail_20' ) start [2025-02-18 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504155', 'tblTempUsageDetail_20' ) end [2025-02-18 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:01:26] Production.INFO: ==4494== Releasing lock... [2025-02-18 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:01:26] Production.INFO: 71 MB #Memory Used# [2025-02-18 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:02:05 [end_date_ymd] => 2025-02-18 16:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:02:05' and `end` < '2025-02-18 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-18 16:02:18] Production.INFO: count ==5761 [2025-02-18 16:02:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:02:05 - End Time 2025-02-18 16:02:05 [2025-02-18 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504160', 'tblTempUsageDetail_20' ) start [2025-02-18 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504160', 'tblTempUsageDetail_20' ) end [2025-02-18 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504160', 'tblTempVendorCDR_20' ) start [2025-02-18 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504160', 'tblTempVendorCDR_20' ) end [2025-02-18 16:02:21] Production.INFO: ProcessCDR(1,14504160,1,1,2) [2025-02-18 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504160', 'tblTempUsageDetail_20' ) start [2025-02-18 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504160', 'tblTempUsageDetail_20' ) end [2025-02-18 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:02:27] Production.INFO: ==4568== Releasing lock... [2025-02-18 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:02:27] Production.INFO: 71 MB #Memory Used# [2025-02-18 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:03:05 [end_date_ymd] => 2025-02-18 16:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:03:05' and `end` < '2025-02-18 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-18 16:03:17] Production.INFO: count ==5760 [2025-02-18 16:03:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:03:05 - End Time 2025-02-18 16:03:05 [2025-02-18 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504165', 'tblTempUsageDetail_20' ) start [2025-02-18 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504165', 'tblTempUsageDetail_20' ) end [2025-02-18 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504165', 'tblTempVendorCDR_20' ) start [2025-02-18 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504165', 'tblTempVendorCDR_20' ) end [2025-02-18 16:03:20] Production.INFO: ProcessCDR(1,14504165,1,1,2) [2025-02-18 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504165', 'tblTempUsageDetail_20' ) start [2025-02-18 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504165', 'tblTempUsageDetail_20' ) end [2025-02-18 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:03:26] Production.INFO: ==4652== Releasing lock... [2025-02-18 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:03:26] Production.INFO: 71 MB #Memory Used# [2025-02-18 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:04:06 [end_date_ymd] => 2025-02-18 16:04:06 [RateCDR] => 1 ) [2025-02-18 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:04:06' and `end` < '2025-02-18 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:04:19] Production.INFO: count ==5767 [2025-02-18 16:04:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:04:06 - End Time 2025-02-18 16:04:06 [2025-02-18 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504170', 'tblTempUsageDetail_20' ) start [2025-02-18 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504170', 'tblTempUsageDetail_20' ) end [2025-02-18 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504170', 'tblTempVendorCDR_20' ) start [2025-02-18 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504170', 'tblTempVendorCDR_20' ) end [2025-02-18 16:04:22] Production.INFO: ProcessCDR(1,14504170,1,1,2) [2025-02-18 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504170', 'tblTempUsageDetail_20' ) start [2025-02-18 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504170', 'tblTempUsageDetail_20' ) end [2025-02-18 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:04:27] Production.INFO: ==4734== Releasing lock... [2025-02-18 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:04:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:05:06 [end_date_ymd] => 2025-02-18 16:05:06 [RateCDR] => 1 ) [2025-02-18 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:05:06' and `end` < '2025-02-18 16:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:05:19] Production.INFO: count ==5764 [2025-02-18 16:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:05:06 - End Time 2025-02-18 16:05:06 [2025-02-18 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504175', 'tblTempUsageDetail_20' ) start [2025-02-18 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504175', 'tblTempUsageDetail_20' ) end [2025-02-18 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504175', 'tblTempVendorCDR_20' ) start [2025-02-18 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504175', 'tblTempVendorCDR_20' ) end [2025-02-18 16:05:22] Production.INFO: ProcessCDR(1,14504175,1,1,2) [2025-02-18 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504175', 'tblTempUsageDetail_20' ) start [2025-02-18 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504175', 'tblTempUsageDetail_20' ) end [2025-02-18 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:05:27] Production.INFO: ==4822== Releasing lock... [2025-02-18 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:05:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:06:05 [end_date_ymd] => 2025-02-18 16:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:06:05' and `end` < '2025-02-18 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-18 16:06:18] Production.INFO: count ==5784 [2025-02-18 16:06:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:06:05 - End Time 2025-02-18 16:06:05 [2025-02-18 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504180', 'tblTempUsageDetail_20' ) start [2025-02-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504180', 'tblTempUsageDetail_20' ) end [2025-02-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504180', 'tblTempVendorCDR_20' ) start [2025-02-18 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504180', 'tblTempVendorCDR_20' ) end [2025-02-18 16:06:21] Production.INFO: ProcessCDR(1,14504180,1,1,2) [2025-02-18 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504180', 'tblTempUsageDetail_20' ) start [2025-02-18 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504180', 'tblTempUsageDetail_20' ) end [2025-02-18 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:06:27] Production.INFO: ==4895== Releasing lock... [2025-02-18 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:06:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:07:06 [end_date_ymd] => 2025-02-18 16:07:06 [RateCDR] => 1 ) [2025-02-18 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:07:06' and `end` < '2025-02-18 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:07:19] Production.INFO: count ==5802 [2025-02-18 16:07:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:07:06 - End Time 2025-02-18 16:07:06 [2025-02-18 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504185', 'tblTempUsageDetail_20' ) start [2025-02-18 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504185', 'tblTempUsageDetail_20' ) end [2025-02-18 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504185', 'tblTempVendorCDR_20' ) start [2025-02-18 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504185', 'tblTempVendorCDR_20' ) end [2025-02-18 16:07:21] Production.INFO: ProcessCDR(1,14504185,1,1,2) [2025-02-18 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504185', 'tblTempUsageDetail_20' ) start [2025-02-18 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504185', 'tblTempUsageDetail_20' ) end [2025-02-18 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:07:27] Production.INFO: ==4970== Releasing lock... [2025-02-18 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:07:27] Production.INFO: 71.5 MB #Memory Used# [2025-02-18 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:08:06 [end_date_ymd] => 2025-02-18 16:08:06 [RateCDR] => 1 ) [2025-02-18 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:08:06' and `end` < '2025-02-18 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:08:19] Production.INFO: count ==5838 [2025-02-18 16:08:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:08:06 - End Time 2025-02-18 16:08:06 [2025-02-18 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504190', 'tblTempUsageDetail_20' ) start [2025-02-18 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504190', 'tblTempUsageDetail_20' ) end [2025-02-18 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504190', 'tblTempVendorCDR_20' ) start [2025-02-18 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504190', 'tblTempVendorCDR_20' ) end [2025-02-18 16:08:22] Production.INFO: ProcessCDR(1,14504190,1,1,2) [2025-02-18 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504190', 'tblTempUsageDetail_20' ) start [2025-02-18 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504190', 'tblTempUsageDetail_20' ) end [2025-02-18 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:08:27] Production.INFO: ==5046== Releasing lock... [2025-02-18 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:08:27] Production.INFO: 71.75 MB #Memory Used# [2025-02-18 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:09:05 [end_date_ymd] => 2025-02-18 16:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:09:05' and `end` < '2025-02-18 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-18 16:09:18] Production.INFO: count ==5825 [2025-02-18 16:09:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:09:05 - End Time 2025-02-18 16:09:05 [2025-02-18 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504195', 'tblTempUsageDetail_20' ) start [2025-02-18 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504195', 'tblTempUsageDetail_20' ) end [2025-02-18 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504195', 'tblTempVendorCDR_20' ) start [2025-02-18 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504195', 'tblTempVendorCDR_20' ) end [2025-02-18 16:09:21] Production.INFO: ProcessCDR(1,14504195,1,1,2) [2025-02-18 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504195', 'tblTempUsageDetail_20' ) start [2025-02-18 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504195', 'tblTempUsageDetail_20' ) end [2025-02-18 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:09:26] Production.INFO: ==5121== Releasing lock... [2025-02-18 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:09:26] Production.INFO: 71.5 MB #Memory Used# [2025-02-18 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:10:06 [end_date_ymd] => 2025-02-18 16:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:10:06' and `end` < '2025-02-18 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-18 16:10:19] Production.INFO: count ==5848 [2025-02-18 16:10:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:10:06 - End Time 2025-02-18 16:10:06 [2025-02-18 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504200', 'tblTempUsageDetail_20' ) start [2025-02-18 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504200', 'tblTempUsageDetail_20' ) end [2025-02-18 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504200', 'tblTempVendorCDR_20' ) start [2025-02-18 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504200', 'tblTempVendorCDR_20' ) end [2025-02-18 16:10:22] Production.INFO: ProcessCDR(1,14504200,1,1,2) [2025-02-18 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504200', 'tblTempUsageDetail_20' ) start [2025-02-18 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504200', 'tblTempUsageDetail_20' ) end [2025-02-18 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:10:27] Production.INFO: ==5236== Releasing lock... [2025-02-18 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:10:27] Production.INFO: 71.75 MB #Memory Used# [2025-02-18 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:11:05 [end_date_ymd] => 2025-02-18 16:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:11:05' and `end` < '2025-02-18 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-18 16:11:18] Production.INFO: count ==5869 [2025-02-18 16:11:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:11:05 - End Time 2025-02-18 16:11:05 [2025-02-18 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504206', 'tblTempUsageDetail_20' ) start [2025-02-18 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504206', 'tblTempUsageDetail_20' ) end [2025-02-18 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504206', 'tblTempVendorCDR_20' ) start [2025-02-18 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504206', 'tblTempVendorCDR_20' ) end [2025-02-18 16:11:21] Production.INFO: ProcessCDR(1,14504206,1,1,2) [2025-02-18 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504206', 'tblTempUsageDetail_20' ) start [2025-02-18 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504206', 'tblTempUsageDetail_20' ) end [2025-02-18 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:11:26] Production.INFO: ==5313== Releasing lock... [2025-02-18 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:11:26] Production.INFO: 72 MB #Memory Used# [2025-02-18 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:12:06 [end_date_ymd] => 2025-02-18 16:12:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:12:06' and `end` < '2025-02-18 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-18 16:12:19] Production.INFO: count ==5868 [2025-02-18 16:12:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:12:06 - End Time 2025-02-18 16:12:06 [2025-02-18 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504211', 'tblTempUsageDetail_20' ) start [2025-02-18 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504211', 'tblTempUsageDetail_20' ) end [2025-02-18 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504211', 'tblTempVendorCDR_20' ) start [2025-02-18 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504211', 'tblTempVendorCDR_20' ) end [2025-02-18 16:12:22] Production.INFO: ProcessCDR(1,14504211,1,1,2) [2025-02-18 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504211', 'tblTempUsageDetail_20' ) start [2025-02-18 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504211', 'tblTempUsageDetail_20' ) end [2025-02-18 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:12:27] Production.INFO: ==5389== Releasing lock... [2025-02-18 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:12:27] Production.INFO: 72 MB #Memory Used# [2025-02-18 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:13:04 [end_date_ymd] => 2025-02-18 16:13:04 [RateCDR] => 1 ) [2025-02-18 16: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-18 13:13:04' and `end` < '2025-02-18 16: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-18 16:13:18] Production.INFO: count ==5869 [2025-02-18 16:13:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:13:04 - End Time 2025-02-18 16:13:04 [2025-02-18 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504216', 'tblTempUsageDetail_20' ) start [2025-02-18 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504216', 'tblTempUsageDetail_20' ) end [2025-02-18 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504216', 'tblTempVendorCDR_20' ) start [2025-02-18 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504216', 'tblTempVendorCDR_20' ) end [2025-02-18 16:13:21] Production.INFO: ProcessCDR(1,14504216,1,1,2) [2025-02-18 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504216', 'tblTempUsageDetail_20' ) start [2025-02-18 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504216', 'tblTempUsageDetail_20' ) end [2025-02-18 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:13:26] Production.INFO: ==5466== Releasing lock... [2025-02-18 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:13:26] Production.INFO: 72 MB #Memory Used# [2025-02-18 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:14:05 [end_date_ymd] => 2025-02-18 16:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:14:05' and `end` < '2025-02-18 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-18 16:14:18] Production.INFO: count ==5867 [2025-02-18 16:14:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:14:05 - End Time 2025-02-18 16:14:05 [2025-02-18 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504221', 'tblTempUsageDetail_20' ) start [2025-02-18 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504221', 'tblTempUsageDetail_20' ) end [2025-02-18 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504221', 'tblTempVendorCDR_20' ) start [2025-02-18 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504221', 'tblTempVendorCDR_20' ) end [2025-02-18 16:14:21] Production.INFO: ProcessCDR(1,14504221,1,1,2) [2025-02-18 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504221', 'tblTempUsageDetail_20' ) start [2025-02-18 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504221', 'tblTempUsageDetail_20' ) end [2025-02-18 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:14:27] Production.INFO: ==5540== Releasing lock... [2025-02-18 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:14:27] Production.INFO: 72 MB #Memory Used# [2025-02-18 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:15:05 [end_date_ymd] => 2025-02-18 16:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:15:05' and `end` < '2025-02-18 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-18 16:15:18] Production.INFO: count ==5855 [2025-02-18 16:15:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:15:05 - End Time 2025-02-18 16:15:05 [2025-02-18 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504226', 'tblTempUsageDetail_20' ) start [2025-02-18 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504226', 'tblTempUsageDetail_20' ) end [2025-02-18 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504226', 'tblTempVendorCDR_20' ) start [2025-02-18 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504226', 'tblTempVendorCDR_20' ) end [2025-02-18 16:15:21] Production.INFO: ProcessCDR(1,14504226,1,1,2) [2025-02-18 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504226', 'tblTempUsageDetail_20' ) start [2025-02-18 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504226', 'tblTempUsageDetail_20' ) end [2025-02-18 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:15:26] Production.INFO: ==5616== Releasing lock... [2025-02-18 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:15:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-18 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:16:05 [end_date_ymd] => 2025-02-18 16:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:16:05' and `end` < '2025-02-18 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-18 16:16:18] Production.INFO: count ==5885 [2025-02-18 16:16:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:16:05 - End Time 2025-02-18 16:16:05 [2025-02-18 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504231', 'tblTempUsageDetail_20' ) start [2025-02-18 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504231', 'tblTempUsageDetail_20' ) end [2025-02-18 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504231', 'tblTempVendorCDR_20' ) start [2025-02-18 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504231', 'tblTempVendorCDR_20' ) end [2025-02-18 16:16:22] Production.INFO: ProcessCDR(1,14504231,1,1,2) [2025-02-18 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504231', 'tblTempUsageDetail_20' ) start [2025-02-18 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504231', 'tblTempUsageDetail_20' ) end [2025-02-18 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:16:27] Production.INFO: ==5691== Releasing lock... [2025-02-18 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:16:27] Production.INFO: 72 MB #Memory Used# [2025-02-18 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:17:06 [end_date_ymd] => 2025-02-18 16:17:06 [RateCDR] => 1 ) [2025-02-18 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:17:06' and `end` < '2025-02-18 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:17:19] Production.INFO: count ==5921 [2025-02-18 16:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:17:06 - End Time 2025-02-18 16:17:06 [2025-02-18 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504236', 'tblTempUsageDetail_20' ) start [2025-02-18 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504236', 'tblTempUsageDetail_20' ) end [2025-02-18 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504236', 'tblTempVendorCDR_20' ) start [2025-02-18 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504236', 'tblTempVendorCDR_20' ) end [2025-02-18 16:17:22] Production.INFO: ProcessCDR(1,14504236,1,1,2) [2025-02-18 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504236', 'tblTempUsageDetail_20' ) start [2025-02-18 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504236', 'tblTempUsageDetail_20' ) end [2025-02-18 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:17:27] Production.INFO: ==5767== Releasing lock... [2025-02-18 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:17:27] Production.INFO: 72.25 MB #Memory Used# [2025-02-18 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:18:05 [end_date_ymd] => 2025-02-18 16:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:18:05' and `end` < '2025-02-18 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-18 16:18:18] Production.INFO: count ==5970 [2025-02-18 16:18:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:18:05 - End Time 2025-02-18 16:18:05 [2025-02-18 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504241', 'tblTempUsageDetail_20' ) start [2025-02-18 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504241', 'tblTempUsageDetail_20' ) end [2025-02-18 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504241', 'tblTempVendorCDR_20' ) start [2025-02-18 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504241', 'tblTempVendorCDR_20' ) end [2025-02-18 16:18:21] Production.INFO: ProcessCDR(1,14504241,1,1,2) [2025-02-18 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504241', 'tblTempUsageDetail_20' ) start [2025-02-18 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504241', 'tblTempUsageDetail_20' ) end [2025-02-18 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:18:27] Production.INFO: ==5853== Releasing lock... [2025-02-18 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:18:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-18 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:19:06 [end_date_ymd] => 2025-02-18 16:19:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:19:06' and `end` < '2025-02-18 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-18 16:19:19] Production.INFO: count ==5960 [2025-02-18 16:19:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:19:06 - End Time 2025-02-18 16:19:06 [2025-02-18 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504246', 'tblTempUsageDetail_20' ) start [2025-02-18 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504246', 'tblTempUsageDetail_20' ) end [2025-02-18 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504246', 'tblTempVendorCDR_20' ) start [2025-02-18 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504246', 'tblTempVendorCDR_20' ) end [2025-02-18 16:19:22] Production.INFO: ProcessCDR(1,14504246,1,1,2) [2025-02-18 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504246', 'tblTempUsageDetail_20' ) start [2025-02-18 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504246', 'tblTempUsageDetail_20' ) end [2025-02-18 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:19:27] Production.INFO: ==5929== Releasing lock... [2025-02-18 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:19:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-18 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:20:06 [end_date_ymd] => 2025-02-18 16:20:06 [RateCDR] => 1 ) [2025-02-18 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:20:06' and `end` < '2025-02-18 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:20:19] Production.INFO: count ==5973 [2025-02-18 16:20:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:20:06 - End Time 2025-02-18 16:20:06 [2025-02-18 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504252', 'tblTempUsageDetail_20' ) start [2025-02-18 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504252', 'tblTempUsageDetail_20' ) end [2025-02-18 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504252', 'tblTempVendorCDR_20' ) start [2025-02-18 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504252', 'tblTempVendorCDR_20' ) end [2025-02-18 16:20:22] Production.INFO: ProcessCDR(1,14504252,1,1,2) [2025-02-18 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504252', 'tblTempUsageDetail_20' ) start [2025-02-18 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504252', 'tblTempUsageDetail_20' ) end [2025-02-18 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:20:27] Production.INFO: ==6005== Releasing lock... [2025-02-18 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:20:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-18 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:21:06 [end_date_ymd] => 2025-02-18 16:21:06 [RateCDR] => 1 ) [2025-02-18 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:21:06' and `end` < '2025-02-18 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:21:18] Production.INFO: count ==6001 [2025-02-18 16:21:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:21:06 - End Time 2025-02-18 16:21:06 [2025-02-18 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504257', 'tblTempUsageDetail_20' ) start [2025-02-18 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504257', 'tblTempUsageDetail_20' ) end [2025-02-18 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504257', 'tblTempVendorCDR_20' ) start [2025-02-18 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504257', 'tblTempVendorCDR_20' ) end [2025-02-18 16:21:21] Production.INFO: ProcessCDR(1,14504257,1,1,2) [2025-02-18 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504257', 'tblTempUsageDetail_20' ) start [2025-02-18 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504257', 'tblTempUsageDetail_20' ) end [2025-02-18 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:21:27] Production.INFO: ==6083== Releasing lock... [2025-02-18 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:21:27] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:22:05 [end_date_ymd] => 2025-02-18 16:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:22:05' and `end` < '2025-02-18 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-18 16:22:18] Production.INFO: count ==5998 [2025-02-18 16:22:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:22:05 - End Time 2025-02-18 16:22:05 [2025-02-18 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504262', 'tblTempUsageDetail_20' ) start [2025-02-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504262', 'tblTempUsageDetail_20' ) end [2025-02-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504262', 'tblTempVendorCDR_20' ) start [2025-02-18 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504262', 'tblTempVendorCDR_20' ) end [2025-02-18 16:22:21] Production.INFO: ProcessCDR(1,14504262,1,1,2) [2025-02-18 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504262', 'tblTempUsageDetail_20' ) start [2025-02-18 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504262', 'tblTempUsageDetail_20' ) end [2025-02-18 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:22:27] Production.INFO: ==6155== Releasing lock... [2025-02-18 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:22:27] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:23:06 [end_date_ymd] => 2025-02-18 16:23:06 [RateCDR] => 1 ) [2025-02-18 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:23:06' and `end` < '2025-02-18 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:23:19] Production.INFO: count ==6038 [2025-02-18 16:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:23:06 - End Time 2025-02-18 16:23:06 [2025-02-18 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504267', 'tblTempUsageDetail_20' ) start [2025-02-18 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504267', 'tblTempUsageDetail_20' ) end [2025-02-18 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504267', 'tblTempVendorCDR_20' ) start [2025-02-18 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504267', 'tblTempVendorCDR_20' ) end [2025-02-18 16:23:22] Production.INFO: ProcessCDR(1,14504267,1,1,2) [2025-02-18 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504267', 'tblTempUsageDetail_20' ) start [2025-02-18 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504267', 'tblTempUsageDetail_20' ) end [2025-02-18 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:23:27] Production.INFO: ==6230== Releasing lock... [2025-02-18 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:23:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:24:05 [end_date_ymd] => 2025-02-18 16:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:24:05' and `end` < '2025-02-18 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-18 16:24:18] Production.INFO: count ==6054 [2025-02-18 16:24:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:24:05 - End Time 2025-02-18 16:24:05 [2025-02-18 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504272', 'tblTempUsageDetail_20' ) start [2025-02-18 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504272', 'tblTempUsageDetail_20' ) end [2025-02-18 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504272', 'tblTempVendorCDR_20' ) start [2025-02-18 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504272', 'tblTempVendorCDR_20' ) end [2025-02-18 16:24:21] Production.INFO: ProcessCDR(1,14504272,1,1,2) [2025-02-18 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504272', 'tblTempUsageDetail_20' ) start [2025-02-18 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504272', 'tblTempUsageDetail_20' ) end [2025-02-18 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:24:27] Production.INFO: ==6306== Releasing lock... [2025-02-18 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:24:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:25:06 [end_date_ymd] => 2025-02-18 16:25:06 [RateCDR] => 1 ) [2025-02-18 16: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-18 13:25:06' and `end` < '2025-02-18 16: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-18 16:25:19] Production.INFO: count ==6025 [2025-02-18 16:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:25:06 - End Time 2025-02-18 16:25:06 [2025-02-18 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504277', 'tblTempUsageDetail_20' ) start [2025-02-18 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504277', 'tblTempUsageDetail_20' ) end [2025-02-18 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504277', 'tblTempVendorCDR_20' ) start [2025-02-18 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504277', 'tblTempVendorCDR_20' ) end [2025-02-18 16:25:22] Production.INFO: ProcessCDR(1,14504277,1,1,2) [2025-02-18 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504277', 'tblTempUsageDetail_20' ) start [2025-02-18 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504277', 'tblTempUsageDetail_20' ) end [2025-02-18 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:25:27] Production.INFO: ==6425== Releasing lock... [2025-02-18 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:25:27] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:26:05 [end_date_ymd] => 2025-02-18 16:26:05 [RateCDR] => 1 ) [2025-02-18 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:26:05' and `end` < '2025-02-18 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:26:18] Production.INFO: count ==6018 [2025-02-18 16:26:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:26:05 - End Time 2025-02-18 16:26:05 [2025-02-18 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504282', 'tblTempUsageDetail_20' ) start [2025-02-18 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504282', 'tblTempUsageDetail_20' ) end [2025-02-18 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504282', 'tblTempVendorCDR_20' ) start [2025-02-18 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504282', 'tblTempVendorCDR_20' ) end [2025-02-18 16:26:21] Production.INFO: ProcessCDR(1,14504282,1,1,2) [2025-02-18 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504282', 'tblTempUsageDetail_20' ) start [2025-02-18 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504282', 'tblTempUsageDetail_20' ) end [2025-02-18 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:26:26] Production.INFO: ==6502== Releasing lock... [2025-02-18 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:26:26] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:27:06 [end_date_ymd] => 2025-02-18 16:27:06 [RateCDR] => 1 ) [2025-02-18 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:27:06' and `end` < '2025-02-18 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:27:19] Production.INFO: count ==6011 [2025-02-18 16:27:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:27:06 - End Time 2025-02-18 16:27:06 [2025-02-18 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504287', 'tblTempUsageDetail_20' ) start [2025-02-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504287', 'tblTempUsageDetail_20' ) end [2025-02-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504287', 'tblTempVendorCDR_20' ) start [2025-02-18 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504287', 'tblTempVendorCDR_20' ) end [2025-02-18 16:27:22] Production.INFO: ProcessCDR(1,14504287,1,1,2) [2025-02-18 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504287', 'tblTempUsageDetail_20' ) start [2025-02-18 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504287', 'tblTempUsageDetail_20' ) end [2025-02-18 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:27:28] Production.INFO: ==6582== Releasing lock... [2025-02-18 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:27:28] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:28:05 [end_date_ymd] => 2025-02-18 16:28:05 [RateCDR] => 1 ) [2025-02-18 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:28:05' and `end` < '2025-02-18 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:28:18] Production.INFO: count ==6013 [2025-02-18 16:28:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:28:05 - End Time 2025-02-18 16:28:05 [2025-02-18 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504292', 'tblTempUsageDetail_20' ) start [2025-02-18 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504292', 'tblTempUsageDetail_20' ) end [2025-02-18 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504292', 'tblTempVendorCDR_20' ) start [2025-02-18 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504292', 'tblTempVendorCDR_20' ) end [2025-02-18 16:28:20] Production.INFO: ProcessCDR(1,14504292,1,1,2) [2025-02-18 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504292', 'tblTempUsageDetail_20' ) start [2025-02-18 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504292', 'tblTempUsageDetail_20' ) end [2025-02-18 16:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:28:25] Production.INFO: ==6657== Releasing lock... [2025-02-18 16:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:28:25] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:29:05 [end_date_ymd] => 2025-02-18 16:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:29:05' and `end` < '2025-02-18 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-18 16:29:18] Production.INFO: count ==6018 [2025-02-18 16:29:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:29:05 - End Time 2025-02-18 16:29:05 [2025-02-18 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504297', 'tblTempUsageDetail_20' ) start [2025-02-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504297', 'tblTempUsageDetail_20' ) end [2025-02-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504297', 'tblTempVendorCDR_20' ) start [2025-02-18 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504297', 'tblTempVendorCDR_20' ) end [2025-02-18 16:29:21] Production.INFO: ProcessCDR(1,14504297,1,1,2) [2025-02-18 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504297', 'tblTempUsageDetail_20' ) start [2025-02-18 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504297', 'tblTempUsageDetail_20' ) end [2025-02-18 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:29:26] Production.INFO: ==6729== Releasing lock... [2025-02-18 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:29:26] Production.INFO: 73 MB #Memory Used# [2025-02-18 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:30:05 [end_date_ymd] => 2025-02-18 16:30:05 [RateCDR] => 1 ) [2025-02-18 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:30:05' and `end` < '2025-02-18 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:30:18] Production.INFO: count ==6029 [2025-02-18 16:30:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:30:05 - End Time 2025-02-18 16:30:05 [2025-02-18 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504303', 'tblTempUsageDetail_20' ) start [2025-02-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504303', 'tblTempUsageDetail_20' ) end [2025-02-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504303', 'tblTempVendorCDR_20' ) start [2025-02-18 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504303', 'tblTempVendorCDR_20' ) end [2025-02-18 16:30:21] Production.INFO: ProcessCDR(1,14504303,1,1,2) [2025-02-18 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504303', 'tblTempUsageDetail_20' ) start [2025-02-18 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504303', 'tblTempUsageDetail_20' ) end [2025-02-18 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:30:27] Production.INFO: ==6803== Releasing lock... [2025-02-18 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:30:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:31:06 [end_date_ymd] => 2025-02-18 16:31:06 [RateCDR] => 1 ) [2025-02-18 16:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:31:06' and `end` < '2025-02-18 16:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:31:18] Production.INFO: count ==6057 [2025-02-18 16:31:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:31:06 - End Time 2025-02-18 16:31:06 [2025-02-18 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504308', 'tblTempUsageDetail_20' ) start [2025-02-18 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504308', 'tblTempUsageDetail_20' ) end [2025-02-18 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504308', 'tblTempVendorCDR_20' ) start [2025-02-18 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504308', 'tblTempVendorCDR_20' ) end [2025-02-18 16:31:21] Production.INFO: ProcessCDR(1,14504308,1,1,2) [2025-02-18 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504308', 'tblTempUsageDetail_20' ) start [2025-02-18 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504308', 'tblTempUsageDetail_20' ) end [2025-02-18 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:31:27] Production.INFO: ==6878== Releasing lock... [2025-02-18 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:31:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:32:05 [end_date_ymd] => 2025-02-18 16:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:32:05' and `end` < '2025-02-18 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-18 16:32:18] Production.INFO: count ==6068 [2025-02-18 16:32:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:32:05 - End Time 2025-02-18 16:32:05 [2025-02-18 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504313', 'tblTempUsageDetail_20' ) start [2025-02-18 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504313', 'tblTempUsageDetail_20' ) end [2025-02-18 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504313', 'tblTempVendorCDR_20' ) start [2025-02-18 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504313', 'tblTempVendorCDR_20' ) end [2025-02-18 16:32:21] Production.INFO: ProcessCDR(1,14504313,1,1,2) [2025-02-18 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504313', 'tblTempUsageDetail_20' ) start [2025-02-18 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504313', 'tblTempUsageDetail_20' ) end [2025-02-18 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:32:26] Production.INFO: ==6949== Releasing lock... [2025-02-18 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:32:26] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:33:06 [end_date_ymd] => 2025-02-18 16:33:06 [RateCDR] => 1 ) [2025-02-18 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:33:06' and `end` < '2025-02-18 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:33:19] Production.INFO: count ==6081 [2025-02-18 16:33:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:33:06 - End Time 2025-02-18 16:33:06 [2025-02-18 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504318', 'tblTempUsageDetail_20' ) start [2025-02-18 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504318', 'tblTempUsageDetail_20' ) end [2025-02-18 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504318', 'tblTempVendorCDR_20' ) start [2025-02-18 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504318', 'tblTempVendorCDR_20' ) end [2025-02-18 16:33:22] Production.INFO: ProcessCDR(1,14504318,1,1,2) [2025-02-18 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504318', 'tblTempUsageDetail_20' ) start [2025-02-18 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504318', 'tblTempUsageDetail_20' ) end [2025-02-18 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:33:27] Production.INFO: ==7020== Releasing lock... [2025-02-18 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:33:27] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:34:05 [end_date_ymd] => 2025-02-18 16:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:34:05' and `end` < '2025-02-18 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-18 16:34:18] Production.INFO: count ==6087 [2025-02-18 16:34:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:34:05 - End Time 2025-02-18 16:34:05 [2025-02-18 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504323', 'tblTempUsageDetail_20' ) start [2025-02-18 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504323', 'tblTempUsageDetail_20' ) end [2025-02-18 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504323', 'tblTempVendorCDR_20' ) start [2025-02-18 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504323', 'tblTempVendorCDR_20' ) end [2025-02-18 16:34:20] Production.INFO: ProcessCDR(1,14504323,1,1,2) [2025-02-18 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504323', 'tblTempUsageDetail_20' ) start [2025-02-18 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504323', 'tblTempUsageDetail_20' ) end [2025-02-18 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:34:25] Production.INFO: ==7094== Releasing lock... [2025-02-18 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:34:25] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:35:05 [end_date_ymd] => 2025-02-18 16:35:05 [RateCDR] => 1 ) [2025-02-18 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:35:05' and `end` < '2025-02-18 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:35:18] Production.INFO: count ==6115 [2025-02-18 16:35:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:35:05 - End Time 2025-02-18 16:35:05 [2025-02-18 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504328', 'tblTempUsageDetail_20' ) start [2025-02-18 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504328', 'tblTempUsageDetail_20' ) end [2025-02-18 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504328', 'tblTempVendorCDR_20' ) start [2025-02-18 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504328', 'tblTempVendorCDR_20' ) end [2025-02-18 16:35:21] Production.INFO: ProcessCDR(1,14504328,1,1,2) [2025-02-18 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504328', 'tblTempUsageDetail_20' ) start [2025-02-18 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504328', 'tblTempUsageDetail_20' ) end [2025-02-18 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:35:26] Production.INFO: ==7164== Releasing lock... [2025-02-18 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:35:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:36:05 [end_date_ymd] => 2025-02-18 16:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:36:05' and `end` < '2025-02-18 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-18 16:36:18] Production.INFO: count ==6160 [2025-02-18 16:36:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:36:05 - End Time 2025-02-18 16:36:05 [2025-02-18 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504333', 'tblTempUsageDetail_20' ) start [2025-02-18 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504333', 'tblTempUsageDetail_20' ) end [2025-02-18 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504333', 'tblTempVendorCDR_20' ) start [2025-02-18 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504333', 'tblTempVendorCDR_20' ) end [2025-02-18 16:36:21] Production.INFO: ProcessCDR(1,14504333,1,1,2) [2025-02-18 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504333', 'tblTempUsageDetail_20' ) start [2025-02-18 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504333', 'tblTempUsageDetail_20' ) end [2025-02-18 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:36:26] Production.INFO: ==7237== Releasing lock... [2025-02-18 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:36:26] Production.INFO: 74 MB #Memory Used# [2025-02-18 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:37:05 [end_date_ymd] => 2025-02-18 16:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:37:05' and `end` < '2025-02-18 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-18 16:37:18] Production.INFO: count ==6177 [2025-02-18 16:37:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:37:05 - End Time 2025-02-18 16:37:05 [2025-02-18 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504338', 'tblTempUsageDetail_20' ) start [2025-02-18 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504338', 'tblTempUsageDetail_20' ) end [2025-02-18 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504338', 'tblTempVendorCDR_20' ) start [2025-02-18 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504338', 'tblTempVendorCDR_20' ) end [2025-02-18 16:37:21] Production.INFO: ProcessCDR(1,14504338,1,1,2) [2025-02-18 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504338', 'tblTempUsageDetail_20' ) start [2025-02-18 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504338', 'tblTempUsageDetail_20' ) end [2025-02-18 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:37:26] Production.INFO: ==7313== Releasing lock... [2025-02-18 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:37:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-18 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:38:05 [end_date_ymd] => 2025-02-18 16:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:38:05' and `end` < '2025-02-18 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-18 16:38:18] Production.INFO: count ==6173 [2025-02-18 16:38:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:38:05 - End Time 2025-02-18 16:38:05 [2025-02-18 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504343', 'tblTempUsageDetail_20' ) start [2025-02-18 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504343', 'tblTempUsageDetail_20' ) end [2025-02-18 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504343', 'tblTempVendorCDR_20' ) start [2025-02-18 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504343', 'tblTempVendorCDR_20' ) end [2025-02-18 16:38:21] Production.INFO: ProcessCDR(1,14504343,1,1,2) [2025-02-18 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504343', 'tblTempUsageDetail_20' ) start [2025-02-18 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504343', 'tblTempUsageDetail_20' ) end [2025-02-18 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:38:26] Production.INFO: ==7385== Releasing lock... [2025-02-18 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:38:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-18 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:39:05 [end_date_ymd] => 2025-02-18 16:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:39:05' and `end` < '2025-02-18 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-18 16:39:18] Production.INFO: count ==6160 [2025-02-18 16:39:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:39:05 - End Time 2025-02-18 16:39:05 [2025-02-18 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504348', 'tblTempUsageDetail_20' ) start [2025-02-18 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504348', 'tblTempUsageDetail_20' ) end [2025-02-18 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504348', 'tblTempVendorCDR_20' ) start [2025-02-18 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504348', 'tblTempVendorCDR_20' ) end [2025-02-18 16:39:21] Production.INFO: ProcessCDR(1,14504348,1,1,2) [2025-02-18 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504348', 'tblTempUsageDetail_20' ) start [2025-02-18 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504348', 'tblTempUsageDetail_20' ) end [2025-02-18 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:39:26] Production.INFO: ==7461== Releasing lock... [2025-02-18 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:39:26] Production.INFO: 74 MB #Memory Used# [2025-02-18 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:40:06 [end_date_ymd] => 2025-02-18 16:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:40:06' and `end` < '2025-02-18 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-18 16:40:19] Production.INFO: count ==6156 [2025-02-18 16:40:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:40:06 - End Time 2025-02-18 16:40:06 [2025-02-18 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504354', 'tblTempUsageDetail_20' ) start [2025-02-18 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504354', 'tblTempUsageDetail_20' ) end [2025-02-18 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504354', 'tblTempVendorCDR_20' ) start [2025-02-18 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504354', 'tblTempVendorCDR_20' ) end [2025-02-18 16:40:23] Production.INFO: ProcessCDR(1,14504354,1,1,2) [2025-02-18 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504354', 'tblTempUsageDetail_20' ) start [2025-02-18 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504354', 'tblTempUsageDetail_20' ) end [2025-02-18 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:40:28] Production.INFO: ==7544== Releasing lock... [2025-02-18 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:40:28] Production.INFO: 74 MB #Memory Used# [2025-02-18 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:41:05 [end_date_ymd] => 2025-02-18 16:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:41:05' and `end` < '2025-02-18 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-18 16:41:18] Production.INFO: count ==6109 [2025-02-18 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:41:05 - End Time 2025-02-18 16:41:05 [2025-02-18 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504359', 'tblTempUsageDetail_20' ) start [2025-02-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504359', 'tblTempUsageDetail_20' ) end [2025-02-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504359', 'tblTempVendorCDR_20' ) start [2025-02-18 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504359', 'tblTempVendorCDR_20' ) end [2025-02-18 16:41:22] Production.INFO: ProcessCDR(1,14504359,1,1,2) [2025-02-18 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504359', 'tblTempUsageDetail_20' ) start [2025-02-18 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504359', 'tblTempUsageDetail_20' ) end [2025-02-18 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:41:27] Production.INFO: ==7661== Releasing lock... [2025-02-18 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:41:27] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:42:06 [end_date_ymd] => 2025-02-18 16:42:06 [RateCDR] => 1 ) [2025-02-18 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:42:06' and `end` < '2025-02-18 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:42:19] Production.INFO: count ==6108 [2025-02-18 16:42:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:42:06 - End Time 2025-02-18 16:42:06 [2025-02-18 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504364', 'tblTempUsageDetail_20' ) start [2025-02-18 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504364', 'tblTempUsageDetail_20' ) end [2025-02-18 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504364', 'tblTempVendorCDR_20' ) start [2025-02-18 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504364', 'tblTempVendorCDR_20' ) end [2025-02-18 16:42:22] Production.INFO: ProcessCDR(1,14504364,1,1,2) [2025-02-18 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504364', 'tblTempUsageDetail_20' ) start [2025-02-18 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504364', 'tblTempUsageDetail_20' ) end [2025-02-18 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:42:27] Production.INFO: ==7737== Releasing lock... [2025-02-18 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:42:27] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:43:05 [end_date_ymd] => 2025-02-18 16:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:43:05' and `end` < '2025-02-18 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-18 16:43:18] Production.INFO: count ==6103 [2025-02-18 16:43:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:43:05 - End Time 2025-02-18 16:43:05 [2025-02-18 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504369', 'tblTempUsageDetail_20' ) start [2025-02-18 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504369', 'tblTempUsageDetail_20' ) end [2025-02-18 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504369', 'tblTempVendorCDR_20' ) start [2025-02-18 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504369', 'tblTempVendorCDR_20' ) end [2025-02-18 16:43:21] Production.INFO: ProcessCDR(1,14504369,1,1,2) [2025-02-18 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504369', 'tblTempUsageDetail_20' ) start [2025-02-18 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504369', 'tblTempUsageDetail_20' ) end [2025-02-18 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:43:25] Production.INFO: ==7810== Releasing lock... [2025-02-18 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:43:25] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:44:05 [end_date_ymd] => 2025-02-18 16:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:44:05' and `end` < '2025-02-18 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-18 16:44:18] Production.INFO: count ==6113 [2025-02-18 16:44:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:44:05 - End Time 2025-02-18 16:44:05 [2025-02-18 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504374', 'tblTempUsageDetail_20' ) start [2025-02-18 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504374', 'tblTempUsageDetail_20' ) end [2025-02-18 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504374', 'tblTempVendorCDR_20' ) start [2025-02-18 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504374', 'tblTempVendorCDR_20' ) end [2025-02-18 16:44:21] Production.INFO: ProcessCDR(1,14504374,1,1,2) [2025-02-18 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504374', 'tblTempUsageDetail_20' ) start [2025-02-18 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504374', 'tblTempUsageDetail_20' ) end [2025-02-18 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:44:26] Production.INFO: ==7887== Releasing lock... [2025-02-18 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:44:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:45:05 [end_date_ymd] => 2025-02-18 16:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:45:05' and `end` < '2025-02-18 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-18 16:45:18] Production.INFO: count ==6105 [2025-02-18 16:45:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:45:05 - End Time 2025-02-18 16:45:05 [2025-02-18 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504379', 'tblTempUsageDetail_20' ) start [2025-02-18 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504379', 'tblTempUsageDetail_20' ) end [2025-02-18 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504379', 'tblTempVendorCDR_20' ) start [2025-02-18 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504379', 'tblTempVendorCDR_20' ) end [2025-02-18 16:45:21] Production.INFO: ProcessCDR(1,14504379,1,1,2) [2025-02-18 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504379', 'tblTempUsageDetail_20' ) start [2025-02-18 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504379', 'tblTempUsageDetail_20' ) end [2025-02-18 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:45:26] Production.INFO: ==7963== Releasing lock... [2025-02-18 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:45:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:46:06 [end_date_ymd] => 2025-02-18 16:46:06 [RateCDR] => 1 ) [2025-02-18 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:46:06' and `end` < '2025-02-18 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:46:19] Production.INFO: count ==6103 [2025-02-18 16:46:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:46:06 - End Time 2025-02-18 16:46:06 [2025-02-18 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504384', 'tblTempUsageDetail_20' ) start [2025-02-18 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504384', 'tblTempUsageDetail_20' ) end [2025-02-18 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504384', 'tblTempVendorCDR_20' ) start [2025-02-18 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504384', 'tblTempVendorCDR_20' ) end [2025-02-18 16:46:22] Production.INFO: ProcessCDR(1,14504384,1,1,2) [2025-02-18 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504384', 'tblTempUsageDetail_20' ) start [2025-02-18 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504384', 'tblTempUsageDetail_20' ) end [2025-02-18 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:46:27] Production.INFO: ==8040== Releasing lock... [2025-02-18 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:46:27] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:47:05 [end_date_ymd] => 2025-02-18 16:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:47:05' and `end` < '2025-02-18 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-18 16:47:18] Production.INFO: count ==6117 [2025-02-18 16:47:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:47:05 - End Time 2025-02-18 16:47:05 [2025-02-18 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504389', 'tblTempUsageDetail_20' ) start [2025-02-18 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504389', 'tblTempUsageDetail_20' ) end [2025-02-18 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504389', 'tblTempVendorCDR_20' ) start [2025-02-18 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504389', 'tblTempVendorCDR_20' ) end [2025-02-18 16:47:21] Production.INFO: ProcessCDR(1,14504389,1,1,2) [2025-02-18 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504389', 'tblTempUsageDetail_20' ) start [2025-02-18 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504389', 'tblTempUsageDetail_20' ) end [2025-02-18 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:47:26] Production.INFO: ==8120== Releasing lock... [2025-02-18 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:47:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:48:05 [end_date_ymd] => 2025-02-18 16:48:05 [RateCDR] => 1 ) [2025-02-18 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:48:05' and `end` < '2025-02-18 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:48:18] Production.INFO: count ==6117 [2025-02-18 16:48:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:48:05 - End Time 2025-02-18 16:48:05 [2025-02-18 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504394', 'tblTempUsageDetail_20' ) start [2025-02-18 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504394', 'tblTempUsageDetail_20' ) end [2025-02-18 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504394', 'tblTempVendorCDR_20' ) start [2025-02-18 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504394', 'tblTempVendorCDR_20' ) end [2025-02-18 16:48:21] Production.INFO: ProcessCDR(1,14504394,1,1,2) [2025-02-18 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504394', 'tblTempUsageDetail_20' ) start [2025-02-18 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504394', 'tblTempUsageDetail_20' ) end [2025-02-18 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:48:26] Production.INFO: ==8194== Releasing lock... [2025-02-18 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:48:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:49:05 [end_date_ymd] => 2025-02-18 16:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:49:05' and `end` < '2025-02-18 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-18 16:49:18] Production.INFO: count ==6110 [2025-02-18 16:49:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:49:05 - End Time 2025-02-18 16:49:05 [2025-02-18 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504399', 'tblTempUsageDetail_20' ) start [2025-02-18 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504399', 'tblTempUsageDetail_20' ) end [2025-02-18 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504399', 'tblTempVendorCDR_20' ) start [2025-02-18 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504399', 'tblTempVendorCDR_20' ) end [2025-02-18 16:49:21] Production.INFO: ProcessCDR(1,14504399,1,1,2) [2025-02-18 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504399', 'tblTempUsageDetail_20' ) start [2025-02-18 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504399', 'tblTempUsageDetail_20' ) end [2025-02-18 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:49:26] Production.INFO: ==8274== Releasing lock... [2025-02-18 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:49:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:50:06 [end_date_ymd] => 2025-02-18 16:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:50:06' and `end` < '2025-02-18 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-18 16:50:19] Production.INFO: count ==6112 [2025-02-18 16:50:22] Production.ERROR: pbx CDR StartTime 2025-02-18 13:50:06 - End Time 2025-02-18 16:50:06 [2025-02-18 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504405', 'tblTempUsageDetail_20' ) start [2025-02-18 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504405', 'tblTempUsageDetail_20' ) end [2025-02-18 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504405', 'tblTempVendorCDR_20' ) start [2025-02-18 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504405', 'tblTempVendorCDR_20' ) end [2025-02-18 16:50:22] Production.INFO: ProcessCDR(1,14504405,1,1,2) [2025-02-18 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504405', 'tblTempUsageDetail_20' ) start [2025-02-18 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504405', 'tblTempUsageDetail_20' ) end [2025-02-18 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:50:27] Production.INFO: ==8346== Releasing lock... [2025-02-18 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:50:27] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:51:05 [end_date_ymd] => 2025-02-18 16:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:51:05' and `end` < '2025-02-18 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-18 16:51:18] Production.INFO: count ==6091 [2025-02-18 16:51:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:51:05 - End Time 2025-02-18 16:51:05 [2025-02-18 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504410', 'tblTempUsageDetail_20' ) start [2025-02-18 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504410', 'tblTempUsageDetail_20' ) end [2025-02-18 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504410', 'tblTempVendorCDR_20' ) start [2025-02-18 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504410', 'tblTempVendorCDR_20' ) end [2025-02-18 16:51:21] Production.INFO: ProcessCDR(1,14504410,1,1,2) [2025-02-18 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504410', 'tblTempUsageDetail_20' ) start [2025-02-18 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504410', 'tblTempUsageDetail_20' ) end [2025-02-18 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:51:26] Production.INFO: ==8420== Releasing lock... [2025-02-18 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:51:26] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:52:06 [end_date_ymd] => 2025-02-18 16:52:06 [RateCDR] => 1 ) [2025-02-18 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-18 13:52:06' and `end` < '2025-02-18 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-18 16:52:19] Production.INFO: count ==6081 [2025-02-18 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:52:06 - End Time 2025-02-18 16:52:06 [2025-02-18 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504415', 'tblTempUsageDetail_20' ) start [2025-02-18 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504415', 'tblTempUsageDetail_20' ) end [2025-02-18 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504415', 'tblTempVendorCDR_20' ) start [2025-02-18 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504415', 'tblTempVendorCDR_20' ) end [2025-02-18 16:52:22] Production.INFO: ProcessCDR(1,14504415,1,1,2) [2025-02-18 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504415', 'tblTempUsageDetail_20' ) start [2025-02-18 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504415', 'tblTempUsageDetail_20' ) end [2025-02-18 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:52:27] Production.INFO: ==8507== Releasing lock... [2025-02-18 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:52:27] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:53:05 [end_date_ymd] => 2025-02-18 16:53:05 [RateCDR] => 1 ) [2025-02-18 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:53:05' and `end` < '2025-02-18 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:53:18] Production.INFO: count ==6075 [2025-02-18 16:53:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:53:05 - End Time 2025-02-18 16:53:05 [2025-02-18 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504420', 'tblTempUsageDetail_20' ) start [2025-02-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504420', 'tblTempUsageDetail_20' ) end [2025-02-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504420', 'tblTempVendorCDR_20' ) start [2025-02-18 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504420', 'tblTempVendorCDR_20' ) end [2025-02-18 16:53:21] Production.INFO: ProcessCDR(1,14504420,1,1,2) [2025-02-18 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504420', 'tblTempUsageDetail_20' ) start [2025-02-18 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504420', 'tblTempUsageDetail_20' ) end [2025-02-18 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:53:26] Production.INFO: ==8588== Releasing lock... [2025-02-18 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:53:26] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:54:06 [end_date_ymd] => 2025-02-18 16:54:06 [RateCDR] => 1 ) [2025-02-18 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:54:06' and `end` < '2025-02-18 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:54:18] Production.INFO: count ==6122 [2025-02-18 16:54:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:54:06 - End Time 2025-02-18 16:54:06 [2025-02-18 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504425', 'tblTempUsageDetail_20' ) start [2025-02-18 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504425', 'tblTempUsageDetail_20' ) end [2025-02-18 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504425', 'tblTempVendorCDR_20' ) start [2025-02-18 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504425', 'tblTempVendorCDR_20' ) end [2025-02-18 16:54:21] Production.INFO: ProcessCDR(1,14504425,1,1,2) [2025-02-18 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504425', 'tblTempUsageDetail_20' ) start [2025-02-18 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504425', 'tblTempUsageDetail_20' ) end [2025-02-18 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:54:26] Production.INFO: ==8666== Releasing lock... [2025-02-18 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:54:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:55:05 [end_date_ymd] => 2025-02-18 16:55:05 [RateCDR] => 1 ) [2025-02-18 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:55:05' and `end` < '2025-02-18 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:55:18] Production.INFO: count ==6132 [2025-02-18 16:55:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:55:05 - End Time 2025-02-18 16:55:05 [2025-02-18 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504430', 'tblTempUsageDetail_20' ) start [2025-02-18 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504430', 'tblTempUsageDetail_20' ) end [2025-02-18 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504430', 'tblTempVendorCDR_20' ) start [2025-02-18 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504430', 'tblTempVendorCDR_20' ) end [2025-02-18 16:55:21] Production.INFO: ProcessCDR(1,14504430,1,1,2) [2025-02-18 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504430', 'tblTempUsageDetail_20' ) start [2025-02-18 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504430', 'tblTempUsageDetail_20' ) end [2025-02-18 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:55:26] Production.INFO: ==8747== Releasing lock... [2025-02-18 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:55:26] Production.INFO: 74 MB #Memory Used# [2025-02-18 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:56:06 [end_date_ymd] => 2025-02-18 16:56:06 [RateCDR] => 1 ) [2025-02-18 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 13:56:06' and `end` < '2025-02-18 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 16:56:18] Production.INFO: count ==6126 [2025-02-18 16:56:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:56:06 - End Time 2025-02-18 16:56:06 [2025-02-18 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504435', 'tblTempUsageDetail_20' ) start [2025-02-18 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504435', 'tblTempUsageDetail_20' ) end [2025-02-18 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504435', 'tblTempVendorCDR_20' ) start [2025-02-18 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504435', 'tblTempVendorCDR_20' ) end [2025-02-18 16:56:21] Production.INFO: ProcessCDR(1,14504435,1,1,2) [2025-02-18 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504435', 'tblTempUsageDetail_20' ) start [2025-02-18 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504435', 'tblTempUsageDetail_20' ) end [2025-02-18 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:56:26] Production.INFO: ==8863== Releasing lock... [2025-02-18 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:56:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:57:05 [end_date_ymd] => 2025-02-18 16:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:57:05' and `end` < '2025-02-18 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-18 16:57:18] Production.INFO: count ==6125 [2025-02-18 16:57:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:57:05 - End Time 2025-02-18 16:57:05 [2025-02-18 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504440', 'tblTempUsageDetail_20' ) start [2025-02-18 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504440', 'tblTempUsageDetail_20' ) end [2025-02-18 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504440', 'tblTempVendorCDR_20' ) start [2025-02-18 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504440', 'tblTempVendorCDR_20' ) end [2025-02-18 16:57:21] Production.INFO: ProcessCDR(1,14504440,1,1,2) [2025-02-18 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504440', 'tblTempUsageDetail_20' ) start [2025-02-18 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504440', 'tblTempUsageDetail_20' ) end [2025-02-18 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:57:26] Production.INFO: ==8939== Releasing lock... [2025-02-18 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:57:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:58:05 [end_date_ymd] => 2025-02-18 16:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:58:05' and `end` < '2025-02-18 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-18 16:58:18] Production.INFO: count ==6124 [2025-02-18 16:58:21] Production.ERROR: pbx CDR StartTime 2025-02-18 13:58:05 - End Time 2025-02-18 16:58:05 [2025-02-18 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504445', 'tblTempUsageDetail_20' ) start [2025-02-18 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504445', 'tblTempUsageDetail_20' ) end [2025-02-18 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504445', 'tblTempVendorCDR_20' ) start [2025-02-18 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504445', 'tblTempVendorCDR_20' ) end [2025-02-18 16:58:21] Production.INFO: ProcessCDR(1,14504445,1,1,2) [2025-02-18 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504445', 'tblTempUsageDetail_20' ) start [2025-02-18 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504445', 'tblTempUsageDetail_20' ) end [2025-02-18 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:58:26] Production.INFO: ==9018== Releasing lock... [2025-02-18 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:58:26] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 13:59:05 [end_date_ymd] => 2025-02-18 16:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 13:59:05' and `end` < '2025-02-18 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-18 16:59:17] Production.INFO: count ==6124 [2025-02-18 16:59:20] Production.ERROR: pbx CDR StartTime 2025-02-18 13:59:05 - End Time 2025-02-18 16:59:05 [2025-02-18 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504450', 'tblTempUsageDetail_20' ) start [2025-02-18 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504450', 'tblTempUsageDetail_20' ) end [2025-02-18 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504450', 'tblTempVendorCDR_20' ) start [2025-02-18 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504450', 'tblTempVendorCDR_20' ) end [2025-02-18 16:59:21] Production.INFO: ProcessCDR(1,14504450,1,1,2) [2025-02-18 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504450', 'tblTempUsageDetail_20' ) start [2025-02-18 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504450', 'tblTempUsageDetail_20' ) end [2025-02-18 16:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 16:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 16:59:25] Production.INFO: ==9099== Releasing lock... [2025-02-18 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 16:59:25] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:00:06 [end_date_ymd] => 2025-02-18 17:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 14:00:06' and `end` < '2025-02-18 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-18 17:00:19] Production.INFO: count ==6107 [2025-02-18 17:00:22] Production.ERROR: pbx CDR StartTime 2025-02-18 14:00:06 - End Time 2025-02-18 17:00:06 [2025-02-18 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504456', 'tblTempUsageDetail_20' ) start [2025-02-18 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504456', 'tblTempUsageDetail_20' ) end [2025-02-18 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504456', 'tblTempVendorCDR_20' ) start [2025-02-18 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504456', 'tblTempVendorCDR_20' ) end [2025-02-18 17:00:22] Production.INFO: ProcessCDR(1,14504456,1,1,2) [2025-02-18 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504456', 'tblTempUsageDetail_20' ) start [2025-02-18 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504456', 'tblTempUsageDetail_20' ) end [2025-02-18 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:00:27] Production.INFO: ==9177== Releasing lock... [2025-02-18 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:00:27] Production.INFO: 73.75 MB #Memory Used# [2025-02-18 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:01:06 [end_date_ymd] => 2025-02-18 17:01:06 [RateCDR] => 1 ) [2025-02-18 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:01:06' and `end` < '2025-02-18 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:01:19] Production.INFO: count ==6080 [2025-02-18 17:01:22] Production.ERROR: pbx CDR StartTime 2025-02-18 14:01:06 - End Time 2025-02-18 17:01:06 [2025-02-18 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504461', 'tblTempUsageDetail_20' ) start [2025-02-18 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504461', 'tblTempUsageDetail_20' ) end [2025-02-18 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504461', 'tblTempVendorCDR_20' ) start [2025-02-18 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504461', 'tblTempVendorCDR_20' ) end [2025-02-18 17:01:22] Production.INFO: ProcessCDR(1,14504461,1,1,2) [2025-02-18 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504461', 'tblTempUsageDetail_20' ) start [2025-02-18 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504461', 'tblTempUsageDetail_20' ) end [2025-02-18 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:01:27] Production.INFO: ==9274== Releasing lock... [2025-02-18 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:01:27] Production.INFO: 73.5 MB #Memory Used# [2025-02-18 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:02:05 [end_date_ymd] => 2025-02-18 17:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:02:05' and `end` < '2025-02-18 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-18 17:02:18] Production.INFO: count ==6051 [2025-02-18 17:02:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:02:05 - End Time 2025-02-18 17:02:05 [2025-02-18 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504466', 'tblTempUsageDetail_20' ) start [2025-02-18 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504466', 'tblTempUsageDetail_20' ) end [2025-02-18 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504466', 'tblTempVendorCDR_20' ) start [2025-02-18 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504466', 'tblTempVendorCDR_20' ) end [2025-02-18 17:02:21] Production.INFO: ProcessCDR(1,14504466,1,1,2) [2025-02-18 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504466', 'tblTempUsageDetail_20' ) start [2025-02-18 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504466', 'tblTempUsageDetail_20' ) end [2025-02-18 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:02:27] Production.INFO: ==9356== Releasing lock... [2025-02-18 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:02:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:03:06 [end_date_ymd] => 2025-02-18 17:03:06 [RateCDR] => 1 ) [2025-02-18 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:03:06' and `end` < '2025-02-18 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:03:19] Production.INFO: count ==6042 [2025-02-18 17:03:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:03:06 - End Time 2025-02-18 17:03:06 [2025-02-18 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504471', 'tblTempUsageDetail_20' ) start [2025-02-18 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504471', 'tblTempUsageDetail_20' ) end [2025-02-18 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504471', 'tblTempVendorCDR_20' ) start [2025-02-18 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504471', 'tblTempVendorCDR_20' ) end [2025-02-18 17:03:22] Production.INFO: ProcessCDR(1,14504471,1,1,2) [2025-02-18 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504471', 'tblTempUsageDetail_20' ) start [2025-02-18 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504471', 'tblTempUsageDetail_20' ) end [2025-02-18 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:03:27] Production.INFO: ==9438== Releasing lock... [2025-02-18 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:03:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:04:05 [end_date_ymd] => 2025-02-18 17:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:04:05' and `end` < '2025-02-18 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-18 17:04:18] Production.INFO: count ==6030 [2025-02-18 17:04:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:04:05 - End Time 2025-02-18 17:04:05 [2025-02-18 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504476', 'tblTempUsageDetail_20' ) start [2025-02-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504476', 'tblTempUsageDetail_20' ) end [2025-02-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504476', 'tblTempVendorCDR_20' ) start [2025-02-18 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504476', 'tblTempVendorCDR_20' ) end [2025-02-18 17:04:21] Production.INFO: ProcessCDR(1,14504476,1,1,2) [2025-02-18 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504476', 'tblTempUsageDetail_20' ) start [2025-02-18 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504476', 'tblTempUsageDetail_20' ) end [2025-02-18 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:04:24] Production.INFO: ==9514== Releasing lock... [2025-02-18 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:04:24] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:05:05 [end_date_ymd] => 2025-02-18 17:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:05:05' and `end` < '2025-02-18 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-18 17:05:18] Production.INFO: count ==6048 [2025-02-18 17:05:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:05:05 - End Time 2025-02-18 17:05:05 [2025-02-18 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504481', 'tblTempUsageDetail_20' ) start [2025-02-18 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504481', 'tblTempUsageDetail_20' ) end [2025-02-18 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504481', 'tblTempVendorCDR_20' ) start [2025-02-18 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504481', 'tblTempVendorCDR_20' ) end [2025-02-18 17:05:21] Production.INFO: ProcessCDR(1,14504481,1,1,2) [2025-02-18 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504481', 'tblTempUsageDetail_20' ) start [2025-02-18 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504481', 'tblTempUsageDetail_20' ) end [2025-02-18 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:05:27] Production.INFO: ==9617== Releasing lock... [2025-02-18 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:05:27] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:06:05 [end_date_ymd] => 2025-02-18 17:06:05 [RateCDR] => 1 ) [2025-02-18 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:06:05' and `end` < '2025-02-18 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:06:18] Production.INFO: count ==6033 [2025-02-18 17:06:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:06:05 - End Time 2025-02-18 17:06:05 [2025-02-18 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504486', 'tblTempUsageDetail_20' ) start [2025-02-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504486', 'tblTempUsageDetail_20' ) end [2025-02-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504486', 'tblTempVendorCDR_20' ) start [2025-02-18 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504486', 'tblTempVendorCDR_20' ) end [2025-02-18 17:06:21] Production.INFO: ProcessCDR(1,14504486,1,1,2) [2025-02-18 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504486', 'tblTempUsageDetail_20' ) start [2025-02-18 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504486', 'tblTempUsageDetail_20' ) end [2025-02-18 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:06:26] Production.INFO: ==9700== Releasing lock... [2025-02-18 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:06:26] Production.INFO: 73.25 MB #Memory Used# [2025-02-18 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:07:05 [end_date_ymd] => 2025-02-18 17:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:07:05' and `end` < '2025-02-18 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-18 17:07:18] Production.INFO: count ==6010 [2025-02-18 17:07:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:07:05 - End Time 2025-02-18 17:07:05 [2025-02-18 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504491', 'tblTempUsageDetail_20' ) start [2025-02-18 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504491', 'tblTempUsageDetail_20' ) end [2025-02-18 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504491', 'tblTempVendorCDR_20' ) start [2025-02-18 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504491', 'tblTempVendorCDR_20' ) end [2025-02-18 17:07:21] Production.INFO: ProcessCDR(1,14504491,1,1,2) [2025-02-18 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504491', 'tblTempUsageDetail_20' ) start [2025-02-18 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504491', 'tblTempUsageDetail_20' ) end [2025-02-18 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:07:26] Production.INFO: ==9782== Releasing lock... [2025-02-18 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:07:26] Production.INFO: 73 MB #Memory Used# [2025-02-18 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:08:05 [end_date_ymd] => 2025-02-18 17:08:05 [RateCDR] => 1 ) [2025-02-18 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:08:05' and `end` < '2025-02-18 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:08:18] Production.INFO: count ==6004 [2025-02-18 17:08:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:08:05 - End Time 2025-02-18 17:08:05 [2025-02-18 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504496', 'tblTempUsageDetail_20' ) start [2025-02-18 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504496', 'tblTempUsageDetail_20' ) end [2025-02-18 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504496', 'tblTempVendorCDR_20' ) start [2025-02-18 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504496', 'tblTempVendorCDR_20' ) end [2025-02-18 17:08:21] Production.INFO: ProcessCDR(1,14504496,1,1,2) [2025-02-18 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504496', 'tblTempUsageDetail_20' ) start [2025-02-18 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504496', 'tblTempUsageDetail_20' ) end [2025-02-18 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:08:26] Production.INFO: ==9860== Releasing lock... [2025-02-18 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:08:26] Production.INFO: 73 MB #Memory Used# [2025-02-18 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:09:06 [end_date_ymd] => 2025-02-18 17:09:06 [RateCDR] => 1 ) [2025-02-18 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:09:06' and `end` < '2025-02-18 17: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-18 17:09:18] Production.INFO: count ==5968 [2025-02-18 17:09:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:09:06 - End Time 2025-02-18 17:09:06 [2025-02-18 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504501', 'tblTempUsageDetail_20' ) start [2025-02-18 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504501', 'tblTempUsageDetail_20' ) end [2025-02-18 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504501', 'tblTempVendorCDR_20' ) start [2025-02-18 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504501', 'tblTempVendorCDR_20' ) end [2025-02-18 17:09:21] Production.INFO: ProcessCDR(1,14504501,1,1,2) [2025-02-18 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504501', 'tblTempUsageDetail_20' ) start [2025-02-18 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504501', 'tblTempUsageDetail_20' ) end [2025-02-18 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:09:26] Production.INFO: ==9943== Releasing lock... [2025-02-18 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:09:26] Production.INFO: 72.75 MB #Memory Used# [2025-02-18 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:10:05 [end_date_ymd] => 2025-02-18 17:10:05 [RateCDR] => 1 ) [2025-02-18 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:10:05' and `end` < '2025-02-18 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:10:18] Production.INFO: count ==5926 [2025-02-18 17:10:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:10:05 - End Time 2025-02-18 17:10:05 [2025-02-18 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504507', 'tblTempUsageDetail_20' ) start [2025-02-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504507', 'tblTempUsageDetail_20' ) end [2025-02-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504507', 'tblTempVendorCDR_20' ) start [2025-02-18 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504507', 'tblTempVendorCDR_20' ) end [2025-02-18 17:10:21] Production.INFO: ProcessCDR(1,14504507,1,1,2) [2025-02-18 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504507', 'tblTempUsageDetail_20' ) start [2025-02-18 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504507', 'tblTempUsageDetail_20' ) end [2025-02-18 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:10:26] Production.INFO: ==10019== Releasing lock... [2025-02-18 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:10:26] Production.INFO: 72.25 MB #Memory Used# [2025-02-18 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:11:05 [end_date_ymd] => 2025-02-18 17:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:11:05' and `end` < '2025-02-18 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-18 17:11:18] Production.INFO: count ==5923 [2025-02-18 17:11:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:11:05 - End Time 2025-02-18 17:11:05 [2025-02-18 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504512', 'tblTempUsageDetail_20' ) start [2025-02-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504512', 'tblTempUsageDetail_20' ) end [2025-02-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504512', 'tblTempVendorCDR_20' ) start [2025-02-18 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504512', 'tblTempVendorCDR_20' ) end [2025-02-18 17:11:21] Production.INFO: ProcessCDR(1,14504512,1,1,2) [2025-02-18 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504512', 'tblTempUsageDetail_20' ) start [2025-02-18 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504512', 'tblTempUsageDetail_20' ) end [2025-02-18 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:11:26] Production.INFO: ==10159== Releasing lock... [2025-02-18 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:11:26] Production.INFO: 72.25 MB #Memory Used# [2025-02-18 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:12:05 [end_date_ymd] => 2025-02-18 17:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:12:05' and `end` < '2025-02-18 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-18 17:12:18] Production.INFO: count ==5939 [2025-02-18 17:12:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:12:05 - End Time 2025-02-18 17:12:05 [2025-02-18 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504517', 'tblTempUsageDetail_20' ) start [2025-02-18 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504517', 'tblTempUsageDetail_20' ) end [2025-02-18 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504517', 'tblTempVendorCDR_20' ) start [2025-02-18 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504517', 'tblTempVendorCDR_20' ) end [2025-02-18 17:12:21] Production.INFO: ProcessCDR(1,14504517,1,1,2) [2025-02-18 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504517', 'tblTempUsageDetail_20' ) start [2025-02-18 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504517', 'tblTempUsageDetail_20' ) end [2025-02-18 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:12:25] Production.INFO: ==10237== Releasing lock... [2025-02-18 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:12:25] Production.INFO: 72.5 MB #Memory Used# [2025-02-18 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:13:05 [end_date_ymd] => 2025-02-18 17:13:05 [RateCDR] => 1 ) [2025-02-18 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:13:05' and `end` < '2025-02-18 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:13:18] Production.INFO: count ==5917 [2025-02-18 17:13:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:13:05 - End Time 2025-02-18 17:13:05 [2025-02-18 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504522', 'tblTempUsageDetail_20' ) start [2025-02-18 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504522', 'tblTempUsageDetail_20' ) end [2025-02-18 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504522', 'tblTempVendorCDR_20' ) start [2025-02-18 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504522', 'tblTempVendorCDR_20' ) end [2025-02-18 17:13:21] Production.INFO: ProcessCDR(1,14504522,1,1,2) [2025-02-18 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504522', 'tblTempUsageDetail_20' ) start [2025-02-18 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504522', 'tblTempUsageDetail_20' ) end [2025-02-18 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:13:26] Production.INFO: ==10333== Releasing lock... [2025-02-18 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:13:26] Production.INFO: 72.25 MB #Memory Used# [2025-02-18 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:14:05 [end_date_ymd] => 2025-02-18 17:14:05 [RateCDR] => 1 ) [2025-02-18 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:14:05' and `end` < '2025-02-18 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:14:18] Production.INFO: count ==5904 [2025-02-18 17:14:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:14:05 - End Time 2025-02-18 17:14:05 [2025-02-18 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504527', 'tblTempUsageDetail_20' ) start [2025-02-18 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504527', 'tblTempUsageDetail_20' ) end [2025-02-18 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504527', 'tblTempVendorCDR_20' ) start [2025-02-18 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504527', 'tblTempVendorCDR_20' ) end [2025-02-18 17:14:21] Production.INFO: ProcessCDR(1,14504527,1,1,2) [2025-02-18 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504527', 'tblTempUsageDetail_20' ) start [2025-02-18 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504527', 'tblTempUsageDetail_20' ) end [2025-02-18 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:14:26] Production.INFO: ==10424== Releasing lock... [2025-02-18 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:14:26] Production.INFO: 72.25 MB #Memory Used# [2025-02-18 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:15:05 [end_date_ymd] => 2025-02-18 17:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:15:05' and `end` < '2025-02-18 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-18 17:15:17] Production.INFO: count ==5898 [2025-02-18 17:15:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:15:05 - End Time 2025-02-18 17:15:05 [2025-02-18 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504532', 'tblTempUsageDetail_20' ) start [2025-02-18 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504532', 'tblTempUsageDetail_20' ) end [2025-02-18 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504532', 'tblTempVendorCDR_20' ) start [2025-02-18 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504532', 'tblTempVendorCDR_20' ) end [2025-02-18 17:15:20] Production.INFO: ProcessCDR(1,14504532,1,1,2) [2025-02-18 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504532', 'tblTempUsageDetail_20' ) start [2025-02-18 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504532', 'tblTempUsageDetail_20' ) end [2025-02-18 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:15:25] Production.INFO: ==10503== Releasing lock... [2025-02-18 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:15:25] Production.INFO: 72.25 MB #Memory Used# [2025-02-18 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:16:05 [end_date_ymd] => 2025-02-18 17:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:16:05' and `end` < '2025-02-18 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-18 17:16:18] Production.INFO: count ==5880 [2025-02-18 17:16:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:16:05 - End Time 2025-02-18 17:16:05 [2025-02-18 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504537', 'tblTempUsageDetail_20' ) start [2025-02-18 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504537', 'tblTempUsageDetail_20' ) end [2025-02-18 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504537', 'tblTempVendorCDR_20' ) start [2025-02-18 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504537', 'tblTempVendorCDR_20' ) end [2025-02-18 17:16:21] Production.INFO: ProcessCDR(1,14504537,1,1,2) [2025-02-18 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504537', 'tblTempUsageDetail_20' ) start [2025-02-18 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504537', 'tblTempUsageDetail_20' ) end [2025-02-18 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:16:26] Production.INFO: ==10581== Releasing lock... [2025-02-18 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:16:26] Production.INFO: 72 MB #Memory Used# [2025-02-18 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:17:05 [end_date_ymd] => 2025-02-18 17:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:17:05' and `end` < '2025-02-18 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-18 17:17:18] Production.INFO: count ==5850 [2025-02-18 17:17:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:17:05 - End Time 2025-02-18 17:17:05 [2025-02-18 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504542', 'tblTempUsageDetail_20' ) start [2025-02-18 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504542', 'tblTempUsageDetail_20' ) end [2025-02-18 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504542', 'tblTempVendorCDR_20' ) start [2025-02-18 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504542', 'tblTempVendorCDR_20' ) end [2025-02-18 17:17:21] Production.INFO: ProcessCDR(1,14504542,1,1,2) [2025-02-18 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504542', 'tblTempUsageDetail_20' ) start [2025-02-18 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504542', 'tblTempUsageDetail_20' ) end [2025-02-18 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:17:24] Production.INFO: ==10658== Releasing lock... [2025-02-18 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:17:24] Production.INFO: 71.75 MB #Memory Used# [2025-02-18 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:18:06 [end_date_ymd] => 2025-02-18 17:18:06 [RateCDR] => 1 ) [2025-02-18 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:18:06' and `end` < '2025-02-18 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:18:18] Production.INFO: count ==5839 [2025-02-18 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:18:06 - End Time 2025-02-18 17:18:06 [2025-02-18 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504547', 'tblTempUsageDetail_20' ) start [2025-02-18 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504547', 'tblTempUsageDetail_20' ) end [2025-02-18 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504547', 'tblTempVendorCDR_20' ) start [2025-02-18 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504547', 'tblTempVendorCDR_20' ) end [2025-02-18 17:18:21] Production.INFO: ProcessCDR(1,14504547,1,1,2) [2025-02-18 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504547', 'tblTempUsageDetail_20' ) start [2025-02-18 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504547', 'tblTempUsageDetail_20' ) end [2025-02-18 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:18:26] Production.INFO: ==10735== Releasing lock... [2025-02-18 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:18:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-18 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:19:05 [end_date_ymd] => 2025-02-18 17:19:05 [RateCDR] => 1 ) [2025-02-18 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:19:05' and `end` < '2025-02-18 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:19:18] Production.INFO: count ==5820 [2025-02-18 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:19:05 - End Time 2025-02-18 17:19:05 [2025-02-18 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504552', 'tblTempUsageDetail_20' ) start [2025-02-18 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504552', 'tblTempUsageDetail_20' ) end [2025-02-18 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504552', 'tblTempVendorCDR_20' ) start [2025-02-18 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504552', 'tblTempVendorCDR_20' ) end [2025-02-18 17:19:21] Production.INFO: ProcessCDR(1,14504552,1,1,2) [2025-02-18 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504552', 'tblTempUsageDetail_20' ) start [2025-02-18 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504552', 'tblTempUsageDetail_20' ) end [2025-02-18 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:19:26] Production.INFO: ==10812== Releasing lock... [2025-02-18 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:19:26] Production.INFO: 71.5 MB #Memory Used# [2025-02-18 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:20:07 [end_date_ymd] => 2025-02-18 17:20:07 [RateCDR] => 1 ) [2025-02-18 17: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-18 14:20:07' and `end` < '2025-02-18 17: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-18 17:20:20] Production.INFO: count ==5816 [2025-02-18 17:20:22] Production.ERROR: pbx CDR StartTime 2025-02-18 14:20:07 - End Time 2025-02-18 17:20:07 [2025-02-18 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504558', 'tblTempUsageDetail_20' ) start [2025-02-18 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504558', 'tblTempUsageDetail_20' ) end [2025-02-18 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504558', 'tblTempVendorCDR_20' ) start [2025-02-18 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504558', 'tblTempVendorCDR_20' ) end [2025-02-18 17:20:23] Production.INFO: ProcessCDR(1,14504558,1,1,2) [2025-02-18 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504558', 'tblTempUsageDetail_20' ) start [2025-02-18 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504558', 'tblTempUsageDetail_20' ) end [2025-02-18 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:20:27] Production.INFO: ==10891== Releasing lock... [2025-02-18 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:20:27] Production.INFO: 71.5 MB #Memory Used# [2025-02-18 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:21:05 [end_date_ymd] => 2025-02-18 17:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:21:05' and `end` < '2025-02-18 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-18 17:21:18] Production.INFO: count ==5803 [2025-02-18 17:21:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:21:05 - End Time 2025-02-18 17:21:05 [2025-02-18 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504563', 'tblTempUsageDetail_20' ) start [2025-02-18 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504563', 'tblTempUsageDetail_20' ) end [2025-02-18 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504563', 'tblTempVendorCDR_20' ) start [2025-02-18 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504563', 'tblTempVendorCDR_20' ) end [2025-02-18 17:21:21] Production.INFO: ProcessCDR(1,14504563,1,1,2) [2025-02-18 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504563', 'tblTempUsageDetail_20' ) start [2025-02-18 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504563', 'tblTempUsageDetail_20' ) end [2025-02-18 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:21:25] Production.INFO: ==10967== Releasing lock... [2025-02-18 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:21:25] Production.INFO: 71.5 MB #Memory Used# [2025-02-18 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:22:06 [end_date_ymd] => 2025-02-18 17:22:06 [RateCDR] => 1 ) [2025-02-18 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:22:06' and `end` < '2025-02-18 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:22:18] Production.INFO: count ==5788 [2025-02-18 17:22:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:22:06 - End Time 2025-02-18 17:22:06 [2025-02-18 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504568', 'tblTempUsageDetail_20' ) start [2025-02-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504568', 'tblTempUsageDetail_20' ) end [2025-02-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504568', 'tblTempVendorCDR_20' ) start [2025-02-18 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504568', 'tblTempVendorCDR_20' ) end [2025-02-18 17:22:21] Production.INFO: ProcessCDR(1,14504568,1,1,2) [2025-02-18 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504568', 'tblTempUsageDetail_20' ) start [2025-02-18 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504568', 'tblTempUsageDetail_20' ) end [2025-02-18 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:22:26] Production.INFO: ==11041== Releasing lock... [2025-02-18 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:22:26] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:23:05 [end_date_ymd] => 2025-02-18 17:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:23:05' and `end` < '2025-02-18 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-18 17:23:18] Production.INFO: count ==5776 [2025-02-18 17:23:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:23:05 - End Time 2025-02-18 17:23:05 [2025-02-18 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504573', 'tblTempUsageDetail_20' ) start [2025-02-18 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504573', 'tblTempUsageDetail_20' ) end [2025-02-18 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504573', 'tblTempVendorCDR_20' ) start [2025-02-18 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504573', 'tblTempVendorCDR_20' ) end [2025-02-18 17:23:21] Production.INFO: ProcessCDR(1,14504573,1,1,2) [2025-02-18 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504573', 'tblTempUsageDetail_20' ) start [2025-02-18 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504573', 'tblTempUsageDetail_20' ) end [2025-02-18 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:23:26] Production.INFO: ==11125== Releasing lock... [2025-02-18 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:23:26] Production.INFO: 71.25 MB #Memory Used# [2025-02-18 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:24:06 [end_date_ymd] => 2025-02-18 17:24:06 [RateCDR] => 1 ) [2025-02-18 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:24:06' and `end` < '2025-02-18 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:24:19] Production.INFO: count ==5745 [2025-02-18 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:24:06 - End Time 2025-02-18 17:24:06 [2025-02-18 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504578', 'tblTempUsageDetail_20' ) start [2025-02-18 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504578', 'tblTempUsageDetail_20' ) end [2025-02-18 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504578', 'tblTempVendorCDR_20' ) start [2025-02-18 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504578', 'tblTempVendorCDR_20' ) end [2025-02-18 17:24:21] Production.INFO: ProcessCDR(1,14504578,1,1,2) [2025-02-18 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504578', 'tblTempUsageDetail_20' ) start [2025-02-18 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504578', 'tblTempUsageDetail_20' ) end [2025-02-18 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:24:25] Production.INFO: ==11199== Releasing lock... [2025-02-18 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:24:25] Production.INFO: 71 MB #Memory Used# [2025-02-18 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:25:05 [end_date_ymd] => 2025-02-18 17:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:25:05' and `end` < '2025-02-18 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-18 17:25:18] Production.INFO: count ==5697 [2025-02-18 17:25:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:25:05 - End Time 2025-02-18 17:25:05 [2025-02-18 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504583', 'tblTempUsageDetail_20' ) start [2025-02-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504583', 'tblTempUsageDetail_20' ) end [2025-02-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504583', 'tblTempVendorCDR_20' ) start [2025-02-18 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504583', 'tblTempVendorCDR_20' ) end [2025-02-18 17:25:21] Production.INFO: ProcessCDR(1,14504583,1,1,2) [2025-02-18 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504583', 'tblTempUsageDetail_20' ) start [2025-02-18 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504583', 'tblTempUsageDetail_20' ) end [2025-02-18 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:25:25] Production.INFO: ==11272== Releasing lock... [2025-02-18 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:25:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-18 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:26:06 [end_date_ymd] => 2025-02-18 17:26:06 [RateCDR] => 1 ) [2025-02-18 17: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-18 14:26:06' and `end` < '2025-02-18 17: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-18 17:26:18] Production.INFO: count ==5645 [2025-02-18 17:27:40] Production.ERROR: pbx CDR StartTime 2025-02-18 14:26:06 - End Time 2025-02-18 17:26:06 [2025-02-18 17:27:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504588', 'tblTempUsageDetail_20' ) start [2025-02-18 17:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504588', 'tblTempUsageDetail_20' ) end [2025-02-18 17:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504588', 'tblTempVendorCDR_20' ) start [2025-02-18 17:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504588', 'tblTempVendorCDR_20' ) end [2025-02-18 17:27:46] Production.INFO: ProcessCDR(1,14504588,1,1,2) [2025-02-18 17:27:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:27:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:27:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504588', 'tblTempUsageDetail_20' ) start [2025-02-18 17:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504588', 'tblTempUsageDetail_20' ) end [2025-02-18 17:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:28:40] Production.INFO: ==11350== Releasing lock... [2025-02-18 17:28:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:28:40] Production.INFO: 70.25 MB #Memory Used# [2025-02-18 17:29:26] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:29:26 [end_date_ymd] => 2025-02-18 17:29:26 [RateCDR] => 1 ) [2025-02-18 17:29: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-18 14:29:26' and `end` < '2025-02-18 17:29: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-18 17:29:39] Production.INFO: count ==5541 [2025-02-18 17:30:52] Production.ERROR: pbx CDR StartTime 2025-02-18 14:29:26 - End Time 2025-02-18 17:29:26 [2025-02-18 17:30:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:30:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504598', 'tblTempUsageDetail_20' ) start [2025-02-18 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504598', 'tblTempUsageDetail_20' ) end [2025-02-18 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504598', 'tblTempVendorCDR_20' ) start [2025-02-18 17:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504598', 'tblTempVendorCDR_20' ) end [2025-02-18 17:30:56] Production.INFO: ProcessCDR(1,14504598,1,1,2) [2025-02-18 17:30:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:30:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:30:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504598', 'tblTempUsageDetail_20' ) start [2025-02-18 17:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504598', 'tblTempUsageDetail_20' ) end [2025-02-18 17:31:40] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:31:40] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:31:47] Production.INFO: ==11592== Releasing lock... [2025-02-18 17:31:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:31:47] Production.INFO: 69.5 MB #Memory Used# [2025-02-18 17:32:43] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:32:43 [end_date_ymd] => 2025-02-18 17:32:43 [RateCDR] => 1 ) [2025-02-18 17:32:43] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:32:43' and `end` < '2025-02-18 17:32:43' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:32:55] Production.INFO: count ==5472 [2025-02-18 17:33:59] Production.ERROR: pbx CDR StartTime 2025-02-18 14:32:43 - End Time 2025-02-18 17:32:43 [2025-02-18 17:33:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:33:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504610', 'tblTempUsageDetail_20' ) start [2025-02-18 17:34:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504610', 'tblTempUsageDetail_20' ) end [2025-02-18 17:34:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504610', 'tblTempVendorCDR_20' ) start [2025-02-18 17:34:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504610', 'tblTempVendorCDR_20' ) end [2025-02-18 17:34:05] Production.INFO: ProcessCDR(1,14504610,1,1,2) [2025-02-18 17:34:05] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:34:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:34:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504610', 'tblTempUsageDetail_20' ) start [2025-02-18 17:34:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504610', 'tblTempUsageDetail_20' ) end [2025-02-18 17:34:59] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:35:00] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:35:04] Production.INFO: ==11801== Releasing lock... [2025-02-18 17:35:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:35:04] Production.INFO: 69 MB #Memory Used# [2025-02-18 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:36:05 [end_date_ymd] => 2025-02-18 17:36:05 [RateCDR] => 1 ) [2025-02-18 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:36:05' and `end` < '2025-02-18 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:36:18] Production.INFO: count ==5444 [2025-02-18 17:36:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:36:05 - End Time 2025-02-18 17:36:05 [2025-02-18 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504625', 'tblTempUsageDetail_20' ) start [2025-02-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504625', 'tblTempUsageDetail_20' ) end [2025-02-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504625', 'tblTempVendorCDR_20' ) start [2025-02-18 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504625', 'tblTempVendorCDR_20' ) end [2025-02-18 17:36:20] Production.INFO: ProcessCDR(1,14504625,1,1,2) [2025-02-18 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504625', 'tblTempUsageDetail_20' ) start [2025-02-18 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504625', 'tblTempUsageDetail_20' ) end [2025-02-18 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:36:26] Production.INFO: ==12081== Releasing lock... [2025-02-18 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:36:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:37:05 [end_date_ymd] => 2025-02-18 17:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:37:05' and `end` < '2025-02-18 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-18 17:37:18] Production.INFO: count ==5438 [2025-02-18 17:37:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:37:05 - End Time 2025-02-18 17:37:05 [2025-02-18 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504630', 'tblTempUsageDetail_20' ) start [2025-02-18 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504630', 'tblTempUsageDetail_20' ) end [2025-02-18 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504630', 'tblTempVendorCDR_20' ) start [2025-02-18 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504630', 'tblTempVendorCDR_20' ) end [2025-02-18 17:37:20] Production.INFO: ProcessCDR(1,14504630,1,1,2) [2025-02-18 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504630', 'tblTempUsageDetail_20' ) start [2025-02-18 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504630', 'tblTempUsageDetail_20' ) end [2025-02-18 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:37:25] Production.INFO: ==12153== Releasing lock... [2025-02-18 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:37:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:38:05 [end_date_ymd] => 2025-02-18 17:38:05 [RateCDR] => 1 ) [2025-02-18 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:38:05' and `end` < '2025-02-18 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:38:18] Production.INFO: count ==5452 [2025-02-18 17:38:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:38:05 - End Time 2025-02-18 17:38:05 [2025-02-18 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504635', 'tblTempUsageDetail_20' ) start [2025-02-18 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504635', 'tblTempUsageDetail_20' ) end [2025-02-18 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504635', 'tblTempVendorCDR_20' ) start [2025-02-18 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504635', 'tblTempVendorCDR_20' ) end [2025-02-18 17:38:20] Production.INFO: ProcessCDR(1,14504635,1,1,2) [2025-02-18 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504635', 'tblTempUsageDetail_20' ) start [2025-02-18 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504635', 'tblTempUsageDetail_20' ) end [2025-02-18 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:38:25] Production.INFO: ==12225== Releasing lock... [2025-02-18 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:38:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:39:05 [end_date_ymd] => 2025-02-18 17:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:39:05' and `end` < '2025-02-18 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-18 17:39:18] Production.INFO: count ==5443 [2025-02-18 17:39:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:39:05 - End Time 2025-02-18 17:39:05 [2025-02-18 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504640', 'tblTempUsageDetail_20' ) start [2025-02-18 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504640', 'tblTempUsageDetail_20' ) end [2025-02-18 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504640', 'tblTempVendorCDR_20' ) start [2025-02-18 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504640', 'tblTempVendorCDR_20' ) end [2025-02-18 17:39:21] Production.INFO: ProcessCDR(1,14504640,1,1,2) [2025-02-18 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504640', 'tblTempUsageDetail_20' ) start [2025-02-18 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504640', 'tblTempUsageDetail_20' ) end [2025-02-18 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:39:26] Production.INFO: ==12296== Releasing lock... [2025-02-18 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:39:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:40:05 [end_date_ymd] => 2025-02-18 17:40:05 [RateCDR] => 1 ) [2025-02-18 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:40:05' and `end` < '2025-02-18 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:40:18] Production.INFO: count ==5434 [2025-02-18 17:40:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:40:05 - End Time 2025-02-18 17:40:05 [2025-02-18 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504645', 'tblTempUsageDetail_20' ) start [2025-02-18 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504645', 'tblTempUsageDetail_20' ) end [2025-02-18 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504645', 'tblTempVendorCDR_20' ) start [2025-02-18 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504645', 'tblTempVendorCDR_20' ) end [2025-02-18 17:40:21] Production.INFO: ProcessCDR(1,14504645,1,1,2) [2025-02-18 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504645', 'tblTempUsageDetail_20' ) start [2025-02-18 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504645', 'tblTempUsageDetail_20' ) end [2025-02-18 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:40:26] Production.INFO: ==12368== Releasing lock... [2025-02-18 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:40:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-18 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:41:05 [end_date_ymd] => 2025-02-18 17:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:41:05' and `end` < '2025-02-18 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-18 17:41:18] Production.INFO: count ==5382 [2025-02-18 17:41:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:41:05 - End Time 2025-02-18 17:41:05 [2025-02-18 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504651', 'tblTempUsageDetail_20' ) start [2025-02-18 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504651', 'tblTempUsageDetail_20' ) end [2025-02-18 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504651', 'tblTempVendorCDR_20' ) start [2025-02-18 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504651', 'tblTempVendorCDR_20' ) end [2025-02-18 17:41:21] Production.INFO: ProcessCDR(1,14504651,1,1,2) [2025-02-18 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504651', 'tblTempUsageDetail_20' ) start [2025-02-18 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504651', 'tblTempUsageDetail_20' ) end [2025-02-18 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:41:26] Production.INFO: ==12442== Releasing lock... [2025-02-18 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:41:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-18 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:42:05 [end_date_ymd] => 2025-02-18 17:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:42:05' and `end` < '2025-02-18 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-18 17:42:18] Production.INFO: count ==5344 [2025-02-18 17:42:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:42:05 - End Time 2025-02-18 17:42:05 [2025-02-18 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504656', 'tblTempUsageDetail_20' ) start [2025-02-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504656', 'tblTempUsageDetail_20' ) end [2025-02-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504656', 'tblTempVendorCDR_20' ) start [2025-02-18 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504656', 'tblTempVendorCDR_20' ) end [2025-02-18 17:42:20] Production.INFO: ProcessCDR(1,14504656,1,1,2) [2025-02-18 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504656', 'tblTempUsageDetail_20' ) start [2025-02-18 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504656', 'tblTempUsageDetail_20' ) end [2025-02-18 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:42:25] Production.INFO: ==12560== Releasing lock... [2025-02-18 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:42:25] Production.INFO: 68 MB #Memory Used# [2025-02-18 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:43:05 [end_date_ymd] => 2025-02-18 17:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:43:05' and `end` < '2025-02-18 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-18 17:43:18] Production.INFO: count ==5320 [2025-02-18 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:43:05 - End Time 2025-02-18 17:43:05 [2025-02-18 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504661', 'tblTempUsageDetail_20' ) start [2025-02-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504661', 'tblTempUsageDetail_20' ) end [2025-02-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504661', 'tblTempVendorCDR_20' ) start [2025-02-18 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504661', 'tblTempVendorCDR_20' ) end [2025-02-18 17:43:20] Production.INFO: ProcessCDR(1,14504661,1,1,2) [2025-02-18 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504661', 'tblTempUsageDetail_20' ) start [2025-02-18 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504661', 'tblTempUsageDetail_20' ) end [2025-02-18 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:43:25] Production.INFO: ==12632== Releasing lock... [2025-02-18 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:43:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-18 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:44:05 [end_date_ymd] => 2025-02-18 17:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:44:05' and `end` < '2025-02-18 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-18 17:44:17] Production.INFO: count ==5284 [2025-02-18 17:44:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:44:05 - End Time 2025-02-18 17:44:05 [2025-02-18 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504666', 'tblTempUsageDetail_20' ) start [2025-02-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504666', 'tblTempUsageDetail_20' ) end [2025-02-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504666', 'tblTempVendorCDR_20' ) start [2025-02-18 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504666', 'tblTempVendorCDR_20' ) end [2025-02-18 17:44:20] Production.INFO: ProcessCDR(1,14504666,1,1,2) [2025-02-18 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504666', 'tblTempUsageDetail_20' ) start [2025-02-18 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504666', 'tblTempUsageDetail_20' ) end [2025-02-18 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:44:25] Production.INFO: ==12704== Releasing lock... [2025-02-18 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:44:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-18 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:45:05 [end_date_ymd] => 2025-02-18 17:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:45:05' and `end` < '2025-02-18 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-18 17:45:18] Production.INFO: count ==5227 [2025-02-18 17:45:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:45:05 - End Time 2025-02-18 17:45:05 [2025-02-18 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504671', 'tblTempUsageDetail_20' ) start [2025-02-18 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504671', 'tblTempUsageDetail_20' ) end [2025-02-18 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504671', 'tblTempVendorCDR_20' ) start [2025-02-18 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504671', 'tblTempVendorCDR_20' ) end [2025-02-18 17:45:20] Production.INFO: ProcessCDR(1,14504671,1,1,2) [2025-02-18 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504671', 'tblTempUsageDetail_20' ) start [2025-02-18 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504671', 'tblTempUsageDetail_20' ) end [2025-02-18 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:45:25] Production.INFO: ==12777== Releasing lock... [2025-02-18 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:45:25] Production.INFO: 67 MB #Memory Used# [2025-02-18 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:46:05 [end_date_ymd] => 2025-02-18 17:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:46:05' and `end` < '2025-02-18 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-18 17:46:18] Production.INFO: count ==5189 [2025-02-18 17:46:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:46:05 - End Time 2025-02-18 17:46:05 [2025-02-18 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504676', 'tblTempUsageDetail_20' ) start [2025-02-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504676', 'tblTempUsageDetail_20' ) end [2025-02-18 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504676', 'tblTempVendorCDR_20' ) start [2025-02-18 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504676', 'tblTempVendorCDR_20' ) end [2025-02-18 17:46:21] Production.INFO: ProcessCDR(1,14504676,1,1,2) [2025-02-18 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504676', 'tblTempUsageDetail_20' ) start [2025-02-18 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504676', 'tblTempUsageDetail_20' ) end [2025-02-18 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:46:25] Production.INFO: ==12847== Releasing lock... [2025-02-18 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:46:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-18 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:47:05 [end_date_ymd] => 2025-02-18 17:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:47:05' and `end` < '2025-02-18 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-18 17:47:18] Production.INFO: count ==5148 [2025-02-18 17:47:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:47:05 - End Time 2025-02-18 17:47:05 [2025-02-18 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504681', 'tblTempUsageDetail_20' ) start [2025-02-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504681', 'tblTempUsageDetail_20' ) end [2025-02-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504681', 'tblTempVendorCDR_20' ) start [2025-02-18 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504681', 'tblTempVendorCDR_20' ) end [2025-02-18 17:47:20] Production.INFO: ProcessCDR(1,14504681,1,1,2) [2025-02-18 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504681', 'tblTempUsageDetail_20' ) start [2025-02-18 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504681', 'tblTempUsageDetail_20' ) end [2025-02-18 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:47:25] Production.INFO: ==12921== Releasing lock... [2025-02-18 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:47:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-18 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:48:05 [end_date_ymd] => 2025-02-18 17:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:48:05' and `end` < '2025-02-18 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-18 17:48:18] Production.INFO: count ==5118 [2025-02-18 17:48:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:48:05 - End Time 2025-02-18 17:48:05 [2025-02-18 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504686', 'tblTempUsageDetail_20' ) start [2025-02-18 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504686', 'tblTempUsageDetail_20' ) end [2025-02-18 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504686', 'tblTempVendorCDR_20' ) start [2025-02-18 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504686', 'tblTempVendorCDR_20' ) end [2025-02-18 17:48:20] Production.INFO: ProcessCDR(1,14504686,1,1,2) [2025-02-18 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504686', 'tblTempUsageDetail_20' ) start [2025-02-18 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504686', 'tblTempUsageDetail_20' ) end [2025-02-18 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:48:23] Production.INFO: ==12994== Releasing lock... [2025-02-18 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:48:23] Production.INFO: 66.25 MB #Memory Used# [2025-02-18 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:49:05 [end_date_ymd] => 2025-02-18 17:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:49:05' and `end` < '2025-02-18 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-18 17:49:18] Production.INFO: count ==5081 [2025-02-18 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:49:05 - End Time 2025-02-18 17:49:05 [2025-02-18 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504691', 'tblTempUsageDetail_20' ) start [2025-02-18 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504691', 'tblTempUsageDetail_20' ) end [2025-02-18 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504691', 'tblTempVendorCDR_20' ) start [2025-02-18 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504691', 'tblTempVendorCDR_20' ) end [2025-02-18 17:49:21] Production.INFO: ProcessCDR(1,14504691,1,1,2) [2025-02-18 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504691', 'tblTempUsageDetail_20' ) start [2025-02-18 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504691', 'tblTempUsageDetail_20' ) end [2025-02-18 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:49:26] Production.INFO: ==13066== Releasing lock... [2025-02-18 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:49:26] Production.INFO: 66 MB #Memory Used# [2025-02-18 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:50:06 [end_date_ymd] => 2025-02-18 17:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 14:50:06' and `end` < '2025-02-18 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-18 17:50:18] Production.INFO: count ==5048 [2025-02-18 17:50:21] Production.ERROR: pbx CDR StartTime 2025-02-18 14:50:06 - End Time 2025-02-18 17:50:06 [2025-02-18 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504696', 'tblTempUsageDetail_20' ) start [2025-02-18 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504696', 'tblTempUsageDetail_20' ) end [2025-02-18 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504696', 'tblTempVendorCDR_20' ) start [2025-02-18 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504696', 'tblTempVendorCDR_20' ) end [2025-02-18 17:50:21] Production.INFO: ProcessCDR(1,14504696,1,1,2) [2025-02-18 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504696', 'tblTempUsageDetail_20' ) start [2025-02-18 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504696', 'tblTempUsageDetail_20' ) end [2025-02-18 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:50:26] Production.INFO: ==13138== Releasing lock... [2025-02-18 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:50:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-18 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:51:05 [end_date_ymd] => 2025-02-18 17:51:05 [RateCDR] => 1 ) [2025-02-18 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:51:05' and `end` < '2025-02-18 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:51:17] Production.INFO: count ==5027 [2025-02-18 17:51:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:51:05 - End Time 2025-02-18 17:51:05 [2025-02-18 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504702', 'tblTempUsageDetail_20' ) start [2025-02-18 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504702', 'tblTempUsageDetail_20' ) end [2025-02-18 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504702', 'tblTempVendorCDR_20' ) start [2025-02-18 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504702', 'tblTempVendorCDR_20' ) end [2025-02-18 17:51:20] Production.INFO: ProcessCDR(1,14504702,1,1,2) [2025-02-18 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504702', 'tblTempUsageDetail_20' ) start [2025-02-18 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504702', 'tblTempUsageDetail_20' ) end [2025-02-18 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:51:25] Production.INFO: ==13210== Releasing lock... [2025-02-18 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:51:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-18 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:52:05 [end_date_ymd] => 2025-02-18 17:52:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:52:05' and `end` < '2025-02-18 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-18 17:52:18] Production.INFO: count ==5025 [2025-02-18 17:52:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:52:05 - End Time 2025-02-18 17:52:05 [2025-02-18 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504707', 'tblTempUsageDetail_20' ) start [2025-02-18 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504707', 'tblTempUsageDetail_20' ) end [2025-02-18 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504707', 'tblTempVendorCDR_20' ) start [2025-02-18 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504707', 'tblTempVendorCDR_20' ) end [2025-02-18 17:52:20] Production.INFO: ProcessCDR(1,14504707,1,1,2) [2025-02-18 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504707', 'tblTempUsageDetail_20' ) start [2025-02-18 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504707', 'tblTempUsageDetail_20' ) end [2025-02-18 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:52:25] Production.INFO: ==13282== Releasing lock... [2025-02-18 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:52:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-18 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:53:05 [end_date_ymd] => 2025-02-18 17:53:05 [RateCDR] => 1 ) [2025-02-18 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:53:05' and `end` < '2025-02-18 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:53:17] Production.INFO: count ==5008 [2025-02-18 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:53:05 - End Time 2025-02-18 17:53:05 [2025-02-18 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504712', 'tblTempUsageDetail_20' ) start [2025-02-18 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504712', 'tblTempUsageDetail_20' ) end [2025-02-18 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504712', 'tblTempVendorCDR_20' ) start [2025-02-18 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504712', 'tblTempVendorCDR_20' ) end [2025-02-18 17:53:20] Production.INFO: ProcessCDR(1,14504712,1,1,2) [2025-02-18 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504712', 'tblTempUsageDetail_20' ) start [2025-02-18 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504712', 'tblTempUsageDetail_20' ) end [2025-02-18 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:53:25] Production.INFO: ==13354== Releasing lock... [2025-02-18 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:53:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-18 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:54:05 [end_date_ymd] => 2025-02-18 17:54:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:54:05' and `end` < '2025-02-18 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-18 17:54:18] Production.INFO: count ==4978 [2025-02-18 17:54:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:54:05 - End Time 2025-02-18 17:54:05 [2025-02-18 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504717', 'tblTempUsageDetail_20' ) start [2025-02-18 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504717', 'tblTempUsageDetail_20' ) end [2025-02-18 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504717', 'tblTempVendorCDR_20' ) start [2025-02-18 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504717', 'tblTempVendorCDR_20' ) end [2025-02-18 17:54:20] Production.INFO: ProcessCDR(1,14504717,1,1,2) [2025-02-18 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504717', 'tblTempUsageDetail_20' ) start [2025-02-18 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504717', 'tblTempUsageDetail_20' ) end [2025-02-18 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:54:25] Production.INFO: ==13427== Releasing lock... [2025-02-18 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:54:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-18 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:55:05 [end_date_ymd] => 2025-02-18 17:55:05 [RateCDR] => 1 ) [2025-02-18 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:55:05' and `end` < '2025-02-18 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:55:18] Production.INFO: count ==4994 [2025-02-18 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:55:05 - End Time 2025-02-18 17:55:05 [2025-02-18 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504722', 'tblTempUsageDetail_20' ) start [2025-02-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504722', 'tblTempUsageDetail_20' ) end [2025-02-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504722', 'tblTempVendorCDR_20' ) start [2025-02-18 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504722', 'tblTempVendorCDR_20' ) end [2025-02-18 17:55:20] Production.INFO: ProcessCDR(1,14504722,1,1,2) [2025-02-18 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504722', 'tblTempUsageDetail_20' ) start [2025-02-18 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504722', 'tblTempUsageDetail_20' ) end [2025-02-18 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:55:25] Production.INFO: ==13500== Releasing lock... [2025-02-18 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:55:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-18 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:56:05 [end_date_ymd] => 2025-02-18 17:56:05 [RateCDR] => 1 ) [2025-02-18 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:56:05' and `end` < '2025-02-18 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:56:18] Production.INFO: count ==4994 [2025-02-18 17:56:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:56:05 - End Time 2025-02-18 17:56:05 [2025-02-18 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504727', 'tblTempUsageDetail_20' ) start [2025-02-18 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504727', 'tblTempUsageDetail_20' ) end [2025-02-18 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504727', 'tblTempVendorCDR_20' ) start [2025-02-18 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504727', 'tblTempVendorCDR_20' ) end [2025-02-18 17:56:20] Production.INFO: ProcessCDR(1,14504727,1,1,2) [2025-02-18 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504727', 'tblTempUsageDetail_20' ) start [2025-02-18 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504727', 'tblTempUsageDetail_20' ) end [2025-02-18 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:56:25] Production.INFO: ==13572== Releasing lock... [2025-02-18 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:56:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-18 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:57:05 [end_date_ymd] => 2025-02-18 17:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:57:05' and `end` < '2025-02-18 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-18 17:57:17] Production.INFO: count ==4977 [2025-02-18 17:57:19] Production.ERROR: pbx CDR StartTime 2025-02-18 14:57:05 - End Time 2025-02-18 17:57:05 [2025-02-18 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504732', 'tblTempUsageDetail_20' ) start [2025-02-18 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504732', 'tblTempUsageDetail_20' ) end [2025-02-18 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504732', 'tblTempVendorCDR_20' ) start [2025-02-18 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504732', 'tblTempVendorCDR_20' ) end [2025-02-18 17:57:20] Production.INFO: ProcessCDR(1,14504732,1,1,2) [2025-02-18 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504732', 'tblTempUsageDetail_20' ) start [2025-02-18 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504732', 'tblTempUsageDetail_20' ) end [2025-02-18 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:57:25] Production.INFO: ==13641== Releasing lock... [2025-02-18 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:57:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-18 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:58:05 [end_date_ymd] => 2025-02-18 17:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 14:58:05' and `end` < '2025-02-18 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-18 17:58:18] Production.INFO: count ==4964 [2025-02-18 17:58:20] Production.ERROR: pbx CDR StartTime 2025-02-18 14:58:05 - End Time 2025-02-18 17:58:05 [2025-02-18 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504737', 'tblTempUsageDetail_20' ) start [2025-02-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504737', 'tblTempUsageDetail_20' ) end [2025-02-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504737', 'tblTempVendorCDR_20' ) start [2025-02-18 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504737', 'tblTempVendorCDR_20' ) end [2025-02-18 17:58:20] Production.INFO: ProcessCDR(1,14504737,1,1,2) [2025-02-18 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504737', 'tblTempUsageDetail_20' ) start [2025-02-18 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504737', 'tblTempUsageDetail_20' ) end [2025-02-18 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:58:24] Production.INFO: ==13754== Releasing lock... [2025-02-18 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:58:24] Production.INFO: 65.25 MB #Memory Used# [2025-02-18 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 14:59:04 [end_date_ymd] => 2025-02-18 17:59:04 [RateCDR] => 1 ) [2025-02-18 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 14:59:04' and `end` < '2025-02-18 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 17:59:17] Production.INFO: count ==4952 [2025-02-18 17:59:19] Production.ERROR: pbx CDR StartTime 2025-02-18 14:59:04 - End Time 2025-02-18 17:59:04 [2025-02-18 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504742', 'tblTempUsageDetail_20' ) start [2025-02-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504742', 'tblTempUsageDetail_20' ) end [2025-02-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504742', 'tblTempVendorCDR_20' ) start [2025-02-18 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504742', 'tblTempVendorCDR_20' ) end [2025-02-18 17:59:19] Production.INFO: ProcessCDR(1,14504742,1,1,2) [2025-02-18 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504742', 'tblTempUsageDetail_20' ) start [2025-02-18 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504742', 'tblTempUsageDetail_20' ) end [2025-02-18 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 17:59:24] Production.INFO: ==13825== Releasing lock... [2025-02-18 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 17:59:24] Production.INFO: 65 MB #Memory Used# [2025-02-18 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:00:06 [end_date_ymd] => 2025-02-18 18:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 15:00:06' and `end` < '2025-02-18 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-18 18:00:18] Production.INFO: count ==4932 [2025-02-18 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:00:06 - End Time 2025-02-18 18:00:06 [2025-02-18 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504748', 'tblTempUsageDetail_20' ) start [2025-02-18 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504748', 'tblTempUsageDetail_20' ) end [2025-02-18 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504748', 'tblTempVendorCDR_20' ) start [2025-02-18 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504748', 'tblTempVendorCDR_20' ) end [2025-02-18 18:00:21] Production.INFO: ProcessCDR(1,14504748,1,1,2) [2025-02-18 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504748', 'tblTempUsageDetail_20' ) start [2025-02-18 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504748', 'tblTempUsageDetail_20' ) end [2025-02-18 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:00:26] Production.INFO: ==13900== Releasing lock... [2025-02-18 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:00:26] Production.INFO: 65 MB #Memory Used# [2025-02-18 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:01:05 [end_date_ymd] => 2025-02-18 18:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:01:05' and `end` < '2025-02-18 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-18 18:01:18] Production.INFO: count ==4894 [2025-02-18 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:01:05 - End Time 2025-02-18 18:01:05 [2025-02-18 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504753', 'tblTempUsageDetail_20' ) start [2025-02-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504753', 'tblTempUsageDetail_20' ) end [2025-02-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504753', 'tblTempVendorCDR_20' ) start [2025-02-18 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504753', 'tblTempVendorCDR_20' ) end [2025-02-18 18:01:20] Production.INFO: ProcessCDR(1,14504753,1,1,2) [2025-02-18 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504753', 'tblTempUsageDetail_20' ) start [2025-02-18 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504753', 'tblTempUsageDetail_20' ) end [2025-02-18 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:01:25] Production.INFO: ==13988== Releasing lock... [2025-02-18 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:01:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-18 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:02:05 [end_date_ymd] => 2025-02-18 18:02:05 [RateCDR] => 1 ) [2025-02-18 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:02:05' and `end` < '2025-02-18 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:02:18] Production.INFO: count ==4870 [2025-02-18 18:02:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:02:05 - End Time 2025-02-18 18:02:05 [2025-02-18 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504758', 'tblTempUsageDetail_20' ) start [2025-02-18 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504758', 'tblTempUsageDetail_20' ) end [2025-02-18 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504758', 'tblTempVendorCDR_20' ) start [2025-02-18 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504758', 'tblTempVendorCDR_20' ) end [2025-02-18 18:02:20] Production.INFO: ProcessCDR(1,14504758,1,1,2) [2025-02-18 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504758', 'tblTempUsageDetail_20' ) start [2025-02-18 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504758', 'tblTempUsageDetail_20' ) end [2025-02-18 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:02:25] Production.INFO: ==14062== Releasing lock... [2025-02-18 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:02:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-18 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:03:05 [end_date_ymd] => 2025-02-18 18:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:03:05' and `end` < '2025-02-18 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-18 18:03:17] Production.INFO: count ==4848 [2025-02-18 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:03:05 - End Time 2025-02-18 18:03:05 [2025-02-18 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504763', 'tblTempUsageDetail_20' ) start [2025-02-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504763', 'tblTempUsageDetail_20' ) end [2025-02-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504763', 'tblTempVendorCDR_20' ) start [2025-02-18 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504763', 'tblTempVendorCDR_20' ) end [2025-02-18 18:03:19] Production.INFO: ProcessCDR(1,14504763,1,1,2) [2025-02-18 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504763', 'tblTempUsageDetail_20' ) start [2025-02-18 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504763', 'tblTempUsageDetail_20' ) end [2025-02-18 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:03:24] Production.INFO: ==14132== Releasing lock... [2025-02-18 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:03:24] Production.INFO: 64.25 MB #Memory Used# [2025-02-18 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:04:05 [end_date_ymd] => 2025-02-18 18:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:04:05' and `end` < '2025-02-18 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-18 18:04:18] Production.INFO: count ==4818 [2025-02-18 18:04:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:04:05 - End Time 2025-02-18 18:04:05 [2025-02-18 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504768', 'tblTempUsageDetail_20' ) start [2025-02-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504768', 'tblTempUsageDetail_20' ) end [2025-02-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504768', 'tblTempVendorCDR_20' ) start [2025-02-18 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504768', 'tblTempVendorCDR_20' ) end [2025-02-18 18:04:20] Production.INFO: ProcessCDR(1,14504768,1,1,2) [2025-02-18 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504768', 'tblTempUsageDetail_20' ) start [2025-02-18 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504768', 'tblTempUsageDetail_20' ) end [2025-02-18 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:04:25] Production.INFO: ==14202== Releasing lock... [2025-02-18 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:04:25] Production.INFO: 64 MB #Memory Used# [2025-02-18 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:05:05 [end_date_ymd] => 2025-02-18 18:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:05:05' and `end` < '2025-02-18 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-18 18:05:17] Production.INFO: count ==4814 [2025-02-18 18:05:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:05:05 - End Time 2025-02-18 18:05:05 [2025-02-18 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504773', 'tblTempUsageDetail_20' ) start [2025-02-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504773', 'tblTempUsageDetail_20' ) end [2025-02-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504773', 'tblTempVendorCDR_20' ) start [2025-02-18 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504773', 'tblTempVendorCDR_20' ) end [2025-02-18 18:05:19] Production.INFO: ProcessCDR(1,14504773,1,1,2) [2025-02-18 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504773', 'tblTempUsageDetail_20' ) start [2025-02-18 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504773', 'tblTempUsageDetail_20' ) end [2025-02-18 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:05:24] Production.INFO: ==14273== Releasing lock... [2025-02-18 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:05:24] Production.INFO: 64 MB #Memory Used# [2025-02-18 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:06:05 [end_date_ymd] => 2025-02-18 18:06:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:06:05' and `end` < '2025-02-18 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-18 18:06:18] Production.INFO: count ==4811 [2025-02-18 18:06:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:06:05 - End Time 2025-02-18 18:06:05 [2025-02-18 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504778', 'tblTempUsageDetail_20' ) start [2025-02-18 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504778', 'tblTempUsageDetail_20' ) end [2025-02-18 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504778', 'tblTempVendorCDR_20' ) start [2025-02-18 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504778', 'tblTempVendorCDR_20' ) end [2025-02-18 18:06:20] Production.INFO: ProcessCDR(1,14504778,1,1,2) [2025-02-18 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504778', 'tblTempUsageDetail_20' ) start [2025-02-18 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504778', 'tblTempUsageDetail_20' ) end [2025-02-18 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:06:25] Production.INFO: ==14345== Releasing lock... [2025-02-18 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:06:25] Production.INFO: 64 MB #Memory Used# [2025-02-18 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:07:06 [end_date_ymd] => 2025-02-18 18:07:06 [RateCDR] => 1 ) [2025-02-18 18: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-18 15:07:06' and `end` < '2025-02-18 18: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-18 18:07:18] Production.INFO: count ==4797 [2025-02-18 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:07:06 - End Time 2025-02-18 18:07:06 [2025-02-18 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504783', 'tblTempUsageDetail_20' ) start [2025-02-18 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504783', 'tblTempUsageDetail_20' ) end [2025-02-18 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504783', 'tblTempVendorCDR_20' ) start [2025-02-18 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504783', 'tblTempVendorCDR_20' ) end [2025-02-18 18:07:20] Production.INFO: ProcessCDR(1,14504783,1,1,2) [2025-02-18 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504783', 'tblTempUsageDetail_20' ) start [2025-02-18 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504783', 'tblTempUsageDetail_20' ) end [2025-02-18 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:07:25] Production.INFO: ==14417== Releasing lock... [2025-02-18 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:07:25] Production.INFO: 64 MB #Memory Used# [2025-02-18 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:08:05 [end_date_ymd] => 2025-02-18 18:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:08:05' and `end` < '2025-02-18 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-18 18:08:17] Production.INFO: count ==4781 [2025-02-18 18:08:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:08:05 - End Time 2025-02-18 18:08:05 [2025-02-18 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504788', 'tblTempUsageDetail_20' ) start [2025-02-18 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504788', 'tblTempUsageDetail_20' ) end [2025-02-18 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504788', 'tblTempVendorCDR_20' ) start [2025-02-18 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504788', 'tblTempVendorCDR_20' ) end [2025-02-18 18:08:20] Production.INFO: ProcessCDR(1,14504788,1,1,2) [2025-02-18 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504788', 'tblTempUsageDetail_20' ) start [2025-02-18 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504788', 'tblTempUsageDetail_20' ) end [2025-02-18 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:08:24] Production.INFO: ==14493== Releasing lock... [2025-02-18 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:08:24] Production.INFO: 63.75 MB #Memory Used# [2025-02-18 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:09:05 [end_date_ymd] => 2025-02-18 18:09:05 [RateCDR] => 1 ) [2025-02-18 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:09:05' and `end` < '2025-02-18 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-18 18:09:18] Production.INFO: count ==4772 [2025-02-18 18:09:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:09:05 - End Time 2025-02-18 18:09:05 [2025-02-18 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504793', 'tblTempUsageDetail_20' ) start [2025-02-18 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504793', 'tblTempUsageDetail_20' ) end [2025-02-18 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504793', 'tblTempVendorCDR_20' ) start [2025-02-18 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504793', 'tblTempVendorCDR_20' ) end [2025-02-18 18:09:20] Production.INFO: ProcessCDR(1,14504793,1,1,2) [2025-02-18 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504793', 'tblTempUsageDetail_20' ) start [2025-02-18 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504793', 'tblTempUsageDetail_20' ) end [2025-02-18 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:09:25] Production.INFO: ==14563== Releasing lock... [2025-02-18 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:09:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-18 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:10:05 [end_date_ymd] => 2025-02-18 18:10:05 [RateCDR] => 1 ) [2025-02-18 18: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-18 15:10:05' and `end` < '2025-02-18 18: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-18 18:10:18] Production.INFO: count ==4774 [2025-02-18 18:10:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:10:05 - End Time 2025-02-18 18:10:05 [2025-02-18 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504799', 'tblTempUsageDetail_20' ) start [2025-02-18 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504799', 'tblTempUsageDetail_20' ) end [2025-02-18 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504799', 'tblTempVendorCDR_20' ) start [2025-02-18 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504799', 'tblTempVendorCDR_20' ) end [2025-02-18 18:10:21] Production.INFO: ProcessCDR(1,14504799,1,1,2) [2025-02-18 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504799', 'tblTempUsageDetail_20' ) start [2025-02-18 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504799', 'tblTempUsageDetail_20' ) end [2025-02-18 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:10:26] Production.INFO: ==14636== Releasing lock... [2025-02-18 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-18 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:11:05 [end_date_ymd] => 2025-02-18 18:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:11:05' and `end` < '2025-02-18 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-18 18:11:17] Production.INFO: count ==4729 [2025-02-18 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:11:05 - End Time 2025-02-18 18:11:05 [2025-02-18 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504804', 'tblTempUsageDetail_20' ) start [2025-02-18 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504804', 'tblTempUsageDetail_20' ) end [2025-02-18 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504804', 'tblTempVendorCDR_20' ) start [2025-02-18 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504804', 'tblTempVendorCDR_20' ) end [2025-02-18 18:11:20] Production.INFO: ProcessCDR(1,14504804,1,1,2) [2025-02-18 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504804', 'tblTempUsageDetail_20' ) start [2025-02-18 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504804', 'tblTempUsageDetail_20' ) end [2025-02-18 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:11:25] Production.INFO: ==14714== Releasing lock... [2025-02-18 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:11:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-18 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:12:05 [end_date_ymd] => 2025-02-18 18:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:12:05' and `end` < '2025-02-18 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-18 18:12:17] Production.INFO: count ==4728 [2025-02-18 18:12:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:12:05 - End Time 2025-02-18 18:12:05 [2025-02-18 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504809', 'tblTempUsageDetail_20' ) start [2025-02-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504809', 'tblTempUsageDetail_20' ) end [2025-02-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504809', 'tblTempVendorCDR_20' ) start [2025-02-18 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504809', 'tblTempVendorCDR_20' ) end [2025-02-18 18:12:19] Production.INFO: ProcessCDR(1,14504809,1,1,2) [2025-02-18 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504809', 'tblTempUsageDetail_20' ) start [2025-02-18 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504809', 'tblTempUsageDetail_20' ) end [2025-02-18 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:12:23] Production.INFO: ==14788== Releasing lock... [2025-02-18 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:12:23] Production.INFO: 63.5 MB #Memory Used# [2025-02-18 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:13:05 [end_date_ymd] => 2025-02-18 18:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:13:05' and `end` < '2025-02-18 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-18 18:13:17] Production.INFO: count ==4722 [2025-02-18 18:13:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:13:05 - End Time 2025-02-18 18:13:05 [2025-02-18 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504814', 'tblTempUsageDetail_20' ) start [2025-02-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504814', 'tblTempUsageDetail_20' ) end [2025-02-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504814', 'tblTempVendorCDR_20' ) start [2025-02-18 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504814', 'tblTempVendorCDR_20' ) end [2025-02-18 18:13:19] Production.INFO: ProcessCDR(1,14504814,1,1,2) [2025-02-18 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504814', 'tblTempUsageDetail_20' ) start [2025-02-18 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504814', 'tblTempUsageDetail_20' ) end [2025-02-18 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:13:24] Production.INFO: ==14898== Releasing lock... [2025-02-18 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:13:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:14:05 [end_date_ymd] => 2025-02-18 18:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:14:05' and `end` < '2025-02-18 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-18 18:14:18] Production.INFO: count ==4713 [2025-02-18 18:14:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:14:05 - End Time 2025-02-18 18:14:05 [2025-02-18 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504819', 'tblTempUsageDetail_20' ) start [2025-02-18 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504819', 'tblTempUsageDetail_20' ) end [2025-02-18 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504819', 'tblTempVendorCDR_20' ) start [2025-02-18 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504819', 'tblTempVendorCDR_20' ) end [2025-02-18 18:14:20] Production.INFO: ProcessCDR(1,14504819,1,1,2) [2025-02-18 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504819', 'tblTempUsageDetail_20' ) start [2025-02-18 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504819', 'tblTempUsageDetail_20' ) end [2025-02-18 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:14:25] Production.INFO: ==14978== Releasing lock... [2025-02-18 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:14:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:15:05 [end_date_ymd] => 2025-02-18 18:15:05 [RateCDR] => 1 ) [2025-02-18 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:15:05' and `end` < '2025-02-18 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:15:17] Production.INFO: count ==4712 [2025-02-18 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:15:05 - End Time 2025-02-18 18:15:05 [2025-02-18 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504824', 'tblTempUsageDetail_20' ) start [2025-02-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504824', 'tblTempUsageDetail_20' ) end [2025-02-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504824', 'tblTempVendorCDR_20' ) start [2025-02-18 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504824', 'tblTempVendorCDR_20' ) end [2025-02-18 18:15:19] Production.INFO: ProcessCDR(1,14504824,1,1,2) [2025-02-18 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504824', 'tblTempUsageDetail_20' ) start [2025-02-18 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504824', 'tblTempUsageDetail_20' ) end [2025-02-18 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:15:24] Production.INFO: ==15054== Releasing lock... [2025-02-18 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:15:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:16:05 [end_date_ymd] => 2025-02-18 18:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:16:05' and `end` < '2025-02-18 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-18 18:16:17] Production.INFO: count ==4713 [2025-02-18 18:16:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:16:05 - End Time 2025-02-18 18:16:05 [2025-02-18 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504829', 'tblTempUsageDetail_20' ) start [2025-02-18 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504829', 'tblTempUsageDetail_20' ) end [2025-02-18 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504829', 'tblTempVendorCDR_20' ) start [2025-02-18 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504829', 'tblTempVendorCDR_20' ) end [2025-02-18 18:16:20] Production.INFO: ProcessCDR(1,14504829,1,1,2) [2025-02-18 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504829', 'tblTempUsageDetail_20' ) start [2025-02-18 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504829', 'tblTempUsageDetail_20' ) end [2025-02-18 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:16:23] Production.INFO: ==15126== Releasing lock... [2025-02-18 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:16:23] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:17:05 [end_date_ymd] => 2025-02-18 18:17:05 [RateCDR] => 1 ) [2025-02-18 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:17:05' and `end` < '2025-02-18 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:17:17] Production.INFO: count ==4697 [2025-02-18 18:17:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:17:05 - End Time 2025-02-18 18:17:05 [2025-02-18 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504834', 'tblTempUsageDetail_20' ) start [2025-02-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504834', 'tblTempUsageDetail_20' ) end [2025-02-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504834', 'tblTempVendorCDR_20' ) start [2025-02-18 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504834', 'tblTempVendorCDR_20' ) end [2025-02-18 18:17:19] Production.INFO: ProcessCDR(1,14504834,1,1,2) [2025-02-18 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504834', 'tblTempUsageDetail_20' ) start [2025-02-18 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504834', 'tblTempUsageDetail_20' ) end [2025-02-18 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:17:24] Production.INFO: ==15204== Releasing lock... [2025-02-18 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:17:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-18 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:18:05 [end_date_ymd] => 2025-02-18 18:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:18:05' and `end` < '2025-02-18 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-18 18:18:18] Production.INFO: count ==4694 [2025-02-18 18:18:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:18:05 - End Time 2025-02-18 18:18:05 [2025-02-18 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504839', 'tblTempUsageDetail_20' ) start [2025-02-18 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504839', 'tblTempUsageDetail_20' ) end [2025-02-18 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504839', 'tblTempVendorCDR_20' ) start [2025-02-18 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504839', 'tblTempVendorCDR_20' ) end [2025-02-18 18:18:20] Production.INFO: ProcessCDR(1,14504839,1,1,2) [2025-02-18 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504839', 'tblTempUsageDetail_20' ) start [2025-02-18 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504839', 'tblTempUsageDetail_20' ) end [2025-02-18 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:18:25] Production.INFO: ==15279== Releasing lock... [2025-02-18 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:18:25] Production.INFO: 63 MB #Memory Used# [2025-02-18 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:19:05 [end_date_ymd] => 2025-02-18 18:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:19:05' and `end` < '2025-02-18 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-18 18:19:17] Production.INFO: count ==4679 [2025-02-18 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:19:05 - End Time 2025-02-18 18:19:05 [2025-02-18 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504844', 'tblTempUsageDetail_20' ) start [2025-02-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504844', 'tblTempUsageDetail_20' ) end [2025-02-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504844', 'tblTempVendorCDR_20' ) start [2025-02-18 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504844', 'tblTempVendorCDR_20' ) end [2025-02-18 18:19:19] Production.INFO: ProcessCDR(1,14504844,1,1,2) [2025-02-18 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504844', 'tblTempUsageDetail_20' ) start [2025-02-18 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504844', 'tblTempUsageDetail_20' ) end [2025-02-18 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:19:24] Production.INFO: ==15357== Releasing lock... [2025-02-18 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:19:24] Production.INFO: 63 MB #Memory Used# [2025-02-18 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:20:06 [end_date_ymd] => 2025-02-18 18:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 15:20:06' and `end` < '2025-02-18 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-18 18:20:18] Production.INFO: count ==4674 [2025-02-18 18:20:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:20:06 - End Time 2025-02-18 18:20:06 [2025-02-18 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504850', 'tblTempUsageDetail_20' ) start [2025-02-18 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504850', 'tblTempUsageDetail_20' ) end [2025-02-18 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504850', 'tblTempVendorCDR_20' ) start [2025-02-18 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504850', 'tblTempVendorCDR_20' ) end [2025-02-18 18:20:20] Production.INFO: ProcessCDR(1,14504850,1,1,2) [2025-02-18 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504850', 'tblTempUsageDetail_20' ) start [2025-02-18 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504850', 'tblTempUsageDetail_20' ) end [2025-02-18 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:20:24] Production.INFO: ==15442== Releasing lock... [2025-02-18 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:20:24] Production.INFO: 63 MB #Memory Used# [2025-02-18 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:21:05 [end_date_ymd] => 2025-02-18 18:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:21:05' and `end` < '2025-02-18 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-18 18:21:17] Production.INFO: count ==4613 [2025-02-18 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:21:05 - End Time 2025-02-18 18:21:05 [2025-02-18 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504855', 'tblTempUsageDetail_20' ) start [2025-02-18 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504855', 'tblTempUsageDetail_20' ) end [2025-02-18 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504855', 'tblTempVendorCDR_20' ) start [2025-02-18 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504855', 'tblTempVendorCDR_20' ) end [2025-02-18 18:21:20] Production.INFO: ProcessCDR(1,14504855,1,1,2) [2025-02-18 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504855', 'tblTempUsageDetail_20' ) start [2025-02-18 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504855', 'tblTempUsageDetail_20' ) end [2025-02-18 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:21:24] Production.INFO: ==15528== Releasing lock... [2025-02-18 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:21:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-18 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:22:06 [end_date_ymd] => 2025-02-18 18:22:06 [RateCDR] => 1 ) [2025-02-18 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:22:06' and `end` < '2025-02-18 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:22:18] Production.INFO: count ==4580 [2025-02-18 18:22:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:22:06 - End Time 2025-02-18 18:22:06 [2025-02-18 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504860', 'tblTempUsageDetail_20' ) start [2025-02-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504860', 'tblTempUsageDetail_20' ) end [2025-02-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504860', 'tblTempVendorCDR_20' ) start [2025-02-18 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504860', 'tblTempVendorCDR_20' ) end [2025-02-18 18:22:20] Production.INFO: ProcessCDR(1,14504860,1,1,2) [2025-02-18 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504860', 'tblTempUsageDetail_20' ) start [2025-02-18 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504860', 'tblTempUsageDetail_20' ) end [2025-02-18 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:22:25] Production.INFO: ==15665== Releasing lock... [2025-02-18 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:22:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-18 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:23:05 [end_date_ymd] => 2025-02-18 18:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:23:05' and `end` < '2025-02-18 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-18 18:23:17] Production.INFO: count ==4566 [2025-02-18 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:23:05 - End Time 2025-02-18 18:23:05 [2025-02-18 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504865', 'tblTempUsageDetail_20' ) start [2025-02-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504865', 'tblTempUsageDetail_20' ) end [2025-02-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504865', 'tblTempVendorCDR_20' ) start [2025-02-18 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504865', 'tblTempVendorCDR_20' ) end [2025-02-18 18:23:19] Production.INFO: ProcessCDR(1,14504865,1,1,2) [2025-02-18 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504865', 'tblTempUsageDetail_20' ) start [2025-02-18 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504865', 'tblTempUsageDetail_20' ) end [2025-02-18 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:23:24] Production.INFO: ==15747== Releasing lock... [2025-02-18 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:23:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-18 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:24:05 [end_date_ymd] => 2025-02-18 18:24:05 [RateCDR] => 1 ) [2025-02-18 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:24:05' and `end` < '2025-02-18 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:24:18] Production.INFO: count ==4530 [2025-02-18 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:24:05 - End Time 2025-02-18 18:24:05 [2025-02-18 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504870', 'tblTempUsageDetail_20' ) start [2025-02-18 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504870', 'tblTempUsageDetail_20' ) end [2025-02-18 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504870', 'tblTempVendorCDR_20' ) start [2025-02-18 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504870', 'tblTempVendorCDR_20' ) end [2025-02-18 18:24:20] Production.INFO: ProcessCDR(1,14504870,1,1,2) [2025-02-18 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504870', 'tblTempUsageDetail_20' ) start [2025-02-18 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504870', 'tblTempUsageDetail_20' ) end [2025-02-18 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:24:23] Production.INFO: ==15824== Releasing lock... [2025-02-18 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:24:23] Production.INFO: 62 MB #Memory Used# [2025-02-18 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:25:05 [end_date_ymd] => 2025-02-18 18:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:25:05' and `end` < '2025-02-18 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-18 18:25:17] Production.INFO: count ==4504 [2025-02-18 18:25:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:25:05 - End Time 2025-02-18 18:25:05 [2025-02-18 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504875', 'tblTempUsageDetail_20' ) start [2025-02-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504875', 'tblTempUsageDetail_20' ) end [2025-02-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504875', 'tblTempVendorCDR_20' ) start [2025-02-18 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504875', 'tblTempVendorCDR_20' ) end [2025-02-18 18:25:19] Production.INFO: ProcessCDR(1,14504875,1,1,2) [2025-02-18 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504875', 'tblTempUsageDetail_20' ) start [2025-02-18 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504875', 'tblTempUsageDetail_20' ) end [2025-02-18 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:25:24] Production.INFO: ==15899== Releasing lock... [2025-02-18 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:25:24] Production.INFO: 61.75 MB #Memory Used# [2025-02-18 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:26:05 [end_date_ymd] => 2025-02-18 18:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:26:05' and `end` < '2025-02-18 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-18 18:26:17] Production.INFO: count ==4463 [2025-02-18 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:26:05 - End Time 2025-02-18 18:26:05 [2025-02-18 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504880', 'tblTempUsageDetail_20' ) start [2025-02-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504880', 'tblTempUsageDetail_20' ) end [2025-02-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504880', 'tblTempVendorCDR_20' ) start [2025-02-18 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504880', 'tblTempVendorCDR_20' ) end [2025-02-18 18:26:20] Production.INFO: ProcessCDR(1,14504880,1,1,2) [2025-02-18 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504880', 'tblTempUsageDetail_20' ) start [2025-02-18 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504880', 'tblTempUsageDetail_20' ) end [2025-02-18 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:26:23] Production.INFO: ==15981== Releasing lock... [2025-02-18 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:26:23] Production.INFO: 61.5 MB #Memory Used# [2025-02-18 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:27:06 [end_date_ymd] => 2025-02-18 18:27:06 [RateCDR] => 1 ) [2025-02-18 18:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:27:06' and `end` < '2025-02-18 18: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-18 18:27:18] Production.INFO: count ==4446 [2025-02-18 18:27:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:27:06 - End Time 2025-02-18 18:27:06 [2025-02-18 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504885', 'tblTempUsageDetail_20' ) start [2025-02-18 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504885', 'tblTempUsageDetail_20' ) end [2025-02-18 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504885', 'tblTempVendorCDR_20' ) start [2025-02-18 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504885', 'tblTempVendorCDR_20' ) end [2025-02-18 18:27:20] Production.INFO: ProcessCDR(1,14504885,1,1,2) [2025-02-18 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504885', 'tblTempUsageDetail_20' ) start [2025-02-18 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504885', 'tblTempUsageDetail_20' ) end [2025-02-18 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:27:25] Production.INFO: ==16059== Releasing lock... [2025-02-18 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:27:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-18 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:28:05 [end_date_ymd] => 2025-02-18 18:28:05 [RateCDR] => 1 ) [2025-02-18 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:28:05' and `end` < '2025-02-18 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-18 18:28:17] Production.INFO: count ==4437 [2025-02-18 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:28:05 - End Time 2025-02-18 18:28:05 [2025-02-18 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504890', 'tblTempUsageDetail_20' ) start [2025-02-18 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504890', 'tblTempUsageDetail_20' ) end [2025-02-18 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504890', 'tblTempVendorCDR_20' ) start [2025-02-18 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504890', 'tblTempVendorCDR_20' ) end [2025-02-18 18:28:19] Production.INFO: ProcessCDR(1,14504890,1,1,2) [2025-02-18 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504890', 'tblTempUsageDetail_20' ) start [2025-02-18 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504890', 'tblTempUsageDetail_20' ) end [2025-02-18 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:28:24] Production.INFO: ==16142== Releasing lock... [2025-02-18 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:28:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-18 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:29:05 [end_date_ymd] => 2025-02-18 18:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:29:05' and `end` < '2025-02-18 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-18 18:29:18] Production.INFO: count ==4424 [2025-02-18 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:29:05 - End Time 2025-02-18 18:29:05 [2025-02-18 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504895', 'tblTempUsageDetail_20' ) start [2025-02-18 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504895', 'tblTempUsageDetail_20' ) end [2025-02-18 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504895', 'tblTempVendorCDR_20' ) start [2025-02-18 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504895', 'tblTempVendorCDR_20' ) end [2025-02-18 18:29:20] Production.INFO: ProcessCDR(1,14504895,1,1,2) [2025-02-18 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504895', 'tblTempUsageDetail_20' ) start [2025-02-18 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504895', 'tblTempUsageDetail_20' ) end [2025-02-18 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:29:25] Production.INFO: ==16259== Releasing lock... [2025-02-18 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:29:25] Production.INFO: 61 MB #Memory Used# [2025-02-18 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:30:06 [end_date_ymd] => 2025-02-18 18:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 15:30:06' and `end` < '2025-02-18 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-18 18:30:19] Production.INFO: count ==4413 [2025-02-18 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-18 15:30:06 - End Time 2025-02-18 18:30:06 [2025-02-18 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504901', 'tblTempUsageDetail_20' ) start [2025-02-18 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504901', 'tblTempUsageDetail_20' ) end [2025-02-18 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504901', 'tblTempVendorCDR_20' ) start [2025-02-18 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504901', 'tblTempVendorCDR_20' ) end [2025-02-18 18:30:21] Production.INFO: ProcessCDR(1,14504901,1,1,2) [2025-02-18 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504901', 'tblTempUsageDetail_20' ) start [2025-02-18 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504901', 'tblTempUsageDetail_20' ) end [2025-02-18 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:30:25] Production.INFO: ==16342== Releasing lock... [2025-02-18 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:30:25] Production.INFO: 61 MB #Memory Used# [2025-02-18 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:31:06 [end_date_ymd] => 2025-02-18 18:31:06 [RateCDR] => 1 ) [2025-02-18 18: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-18 15:31:06' and `end` < '2025-02-18 18: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-18 18:31:18] Production.INFO: count ==4363 [2025-02-18 18:31:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:31:06 - End Time 2025-02-18 18:31:06 [2025-02-18 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504906', 'tblTempUsageDetail_20' ) start [2025-02-18 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504906', 'tblTempUsageDetail_20' ) end [2025-02-18 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504906', 'tblTempVendorCDR_20' ) start [2025-02-18 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504906', 'tblTempVendorCDR_20' ) end [2025-02-18 18:31:20] Production.INFO: ProcessCDR(1,14504906,1,1,2) [2025-02-18 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504906', 'tblTempUsageDetail_20' ) start [2025-02-18 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504906', 'tblTempUsageDetail_20' ) end [2025-02-18 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:31:23] Production.INFO: ==16429== Releasing lock... [2025-02-18 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:31:23] Production.INFO: 60.75 MB #Memory Used# [2025-02-18 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:32:05 [end_date_ymd] => 2025-02-18 18:32:05 [RateCDR] => 1 ) [2025-02-18 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:32:05' and `end` < '2025-02-18 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:32:17] Production.INFO: count ==4337 [2025-02-18 18:32:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:32:05 - End Time 2025-02-18 18:32:05 [2025-02-18 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504911', 'tblTempUsageDetail_20' ) start [2025-02-18 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504911', 'tblTempUsageDetail_20' ) end [2025-02-18 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504911', 'tblTempVendorCDR_20' ) start [2025-02-18 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504911', 'tblTempVendorCDR_20' ) end [2025-02-18 18:32:20] Production.INFO: ProcessCDR(1,14504911,1,1,2) [2025-02-18 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504911', 'tblTempUsageDetail_20' ) start [2025-02-18 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504911', 'tblTempUsageDetail_20' ) end [2025-02-18 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:32:25] Production.INFO: ==16510== Releasing lock... [2025-02-18 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:32:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-18 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:33:05 [end_date_ymd] => 2025-02-18 18:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:33:05' and `end` < '2025-02-18 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-18 18:33:18] Production.INFO: count ==4323 [2025-02-18 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:33:05 - End Time 2025-02-18 18:33:05 [2025-02-18 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504916', 'tblTempUsageDetail_20' ) start [2025-02-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504916', 'tblTempUsageDetail_20' ) end [2025-02-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504916', 'tblTempVendorCDR_20' ) start [2025-02-18 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504916', 'tblTempVendorCDR_20' ) end [2025-02-18 18:33:19] Production.INFO: ProcessCDR(1,14504916,1,1,2) [2025-02-18 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504916', 'tblTempUsageDetail_20' ) start [2025-02-18 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504916', 'tblTempUsageDetail_20' ) end [2025-02-18 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:33:24] Production.INFO: ==16589== Releasing lock... [2025-02-18 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:33:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-18 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:34:05 [end_date_ymd] => 2025-02-18 18:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:34:05' and `end` < '2025-02-18 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-18 18:34:17] Production.INFO: count ==4300 [2025-02-18 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:34:05 - End Time 2025-02-18 18:34:05 [2025-02-18 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504921', 'tblTempUsageDetail_20' ) start [2025-02-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504921', 'tblTempUsageDetail_20' ) end [2025-02-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504921', 'tblTempVendorCDR_20' ) start [2025-02-18 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504921', 'tblTempVendorCDR_20' ) end [2025-02-18 18:34:19] Production.INFO: ProcessCDR(1,14504921,1,1,2) [2025-02-18 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504921', 'tblTempUsageDetail_20' ) start [2025-02-18 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504921', 'tblTempUsageDetail_20' ) end [2025-02-18 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:34:24] Production.INFO: ==16672== Releasing lock... [2025-02-18 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:34:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-18 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:35:06 [end_date_ymd] => 2025-02-18 18:35:06 [RateCDR] => 1 ) [2025-02-18 18: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-18 15:35:06' and `end` < '2025-02-18 18: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-18 18:35:18] Production.INFO: count ==4280 [2025-02-18 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:35:06 - End Time 2025-02-18 18:35:06 [2025-02-18 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504926', 'tblTempUsageDetail_20' ) start [2025-02-18 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504926', 'tblTempUsageDetail_20' ) end [2025-02-18 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504926', 'tblTempVendorCDR_20' ) start [2025-02-18 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504926', 'tblTempVendorCDR_20' ) end [2025-02-18 18:35:20] Production.INFO: ProcessCDR(1,14504926,1,1,2) [2025-02-18 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504926', 'tblTempUsageDetail_20' ) start [2025-02-18 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504926', 'tblTempUsageDetail_20' ) end [2025-02-18 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:35:25] Production.INFO: ==16757== Releasing lock... [2025-02-18 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:35:25] Production.INFO: 60 MB #Memory Used# [2025-02-18 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:36:05 [end_date_ymd] => 2025-02-18 18:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:36:05' and `end` < '2025-02-18 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-18 18:36:17] Production.INFO: count ==4287 [2025-02-18 18:36:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:36:05 - End Time 2025-02-18 18:36:05 [2025-02-18 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504931', 'tblTempUsageDetail_20' ) start [2025-02-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504931', 'tblTempUsageDetail_20' ) end [2025-02-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504931', 'tblTempVendorCDR_20' ) start [2025-02-18 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504931', 'tblTempVendorCDR_20' ) end [2025-02-18 18:36:19] Production.INFO: ProcessCDR(1,14504931,1,1,2) [2025-02-18 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504931', 'tblTempUsageDetail_20' ) start [2025-02-18 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504931', 'tblTempUsageDetail_20' ) end [2025-02-18 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:36:24] Production.INFO: ==16834== Releasing lock... [2025-02-18 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:36:24] Production.INFO: 60 MB #Memory Used# [2025-02-18 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:37:05 [end_date_ymd] => 2025-02-18 18:37:05 [RateCDR] => 1 ) [2025-02-18 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:37:05' and `end` < '2025-02-18 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:37:18] Production.INFO: count ==4289 [2025-02-18 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:37:05 - End Time 2025-02-18 18:37:05 [2025-02-18 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504936', 'tblTempUsageDetail_20' ) start [2025-02-18 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504936', 'tblTempUsageDetail_20' ) end [2025-02-18 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504936', 'tblTempVendorCDR_20' ) start [2025-02-18 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504936', 'tblTempVendorCDR_20' ) end [2025-02-18 18:37:20] Production.INFO: ProcessCDR(1,14504936,1,1,2) [2025-02-18 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504936', 'tblTempUsageDetail_20' ) start [2025-02-18 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504936', 'tblTempUsageDetail_20' ) end [2025-02-18 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:37:24] Production.INFO: ==16927== Releasing lock... [2025-02-18 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:37:24] Production.INFO: 60 MB #Memory Used# [2025-02-18 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:38:05 [end_date_ymd] => 2025-02-18 18:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:38:05' and `end` < '2025-02-18 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-18 18:38:17] Production.INFO: count ==4264 [2025-02-18 18:38:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:38:05 - End Time 2025-02-18 18:38:05 [2025-02-18 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504941', 'tblTempUsageDetail_20' ) start [2025-02-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504941', 'tblTempUsageDetail_20' ) end [2025-02-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504941', 'tblTempVendorCDR_20' ) start [2025-02-18 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504941', 'tblTempVendorCDR_20' ) end [2025-02-18 18:38:19] Production.INFO: ProcessCDR(1,14504941,1,1,2) [2025-02-18 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504941', 'tblTempUsageDetail_20' ) start [2025-02-18 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504941', 'tblTempUsageDetail_20' ) end [2025-02-18 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:38:24] Production.INFO: ==17010== Releasing lock... [2025-02-18 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:38:24] Production.INFO: 60 MB #Memory Used# [2025-02-18 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:39:05 [end_date_ymd] => 2025-02-18 18:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:39:05' and `end` < '2025-02-18 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-18 18:39:17] Production.INFO: count ==4246 [2025-02-18 18:39:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:39:05 - End Time 2025-02-18 18:39:05 [2025-02-18 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504946', 'tblTempUsageDetail_20' ) start [2025-02-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504946', 'tblTempUsageDetail_20' ) end [2025-02-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504946', 'tblTempVendorCDR_20' ) start [2025-02-18 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504946', 'tblTempVendorCDR_20' ) end [2025-02-18 18:39:19] Production.INFO: ProcessCDR(1,14504946,1,1,2) [2025-02-18 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504946', 'tblTempUsageDetail_20' ) start [2025-02-18 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504946', 'tblTempUsageDetail_20' ) end [2025-02-18 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:39:24] Production.INFO: ==17090== Releasing lock... [2025-02-18 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:39:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-18 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:40:06 [end_date_ymd] => 2025-02-18 18:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 15:40:06' and `end` < '2025-02-18 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-18 18:40:18] Production.INFO: count ==4217 [2025-02-18 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:40:06 - End Time 2025-02-18 18:40:06 [2025-02-18 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504952', 'tblTempUsageDetail_20' ) start [2025-02-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504952', 'tblTempUsageDetail_20' ) end [2025-02-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504952', 'tblTempVendorCDR_20' ) start [2025-02-18 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504952', 'tblTempVendorCDR_20' ) end [2025-02-18 18:40:20] Production.INFO: ProcessCDR(1,14504952,1,1,2) [2025-02-18 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504952', 'tblTempUsageDetail_20' ) start [2025-02-18 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504952', 'tblTempUsageDetail_20' ) end [2025-02-18 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:40:25] Production.INFO: ==17175== Releasing lock... [2025-02-18 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:40:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-18 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:41:05 [end_date_ymd] => 2025-02-18 18:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:41:05' and `end` < '2025-02-18 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-18 18:41:17] Production.INFO: count ==4134 [2025-02-18 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:41:05 - End Time 2025-02-18 18:41:05 [2025-02-18 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504957', 'tblTempUsageDetail_20' ) start [2025-02-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504957', 'tblTempUsageDetail_20' ) end [2025-02-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504957', 'tblTempVendorCDR_20' ) start [2025-02-18 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504957', 'tblTempVendorCDR_20' ) end [2025-02-18 18:41:19] Production.INFO: ProcessCDR(1,14504957,1,1,2) [2025-02-18 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504957', 'tblTempUsageDetail_20' ) start [2025-02-18 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504957', 'tblTempUsageDetail_20' ) end [2025-02-18 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:41:22] Production.INFO: ==17269== Releasing lock... [2025-02-18 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:41:22] Production.INFO: 59 MB #Memory Used# [2025-02-18 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:42:05 [end_date_ymd] => 2025-02-18 18:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:42:05' and `end` < '2025-02-18 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-18 18:42:17] Production.INFO: count ==4118 [2025-02-18 18:42:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:42:05 - End Time 2025-02-18 18:42:05 [2025-02-18 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504962', 'tblTempUsageDetail_20' ) start [2025-02-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504962', 'tblTempUsageDetail_20' ) end [2025-02-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504962', 'tblTempVendorCDR_20' ) start [2025-02-18 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504962', 'tblTempVendorCDR_20' ) end [2025-02-18 18:42:19] Production.INFO: ProcessCDR(1,14504962,1,1,2) [2025-02-18 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504962', 'tblTempUsageDetail_20' ) start [2025-02-18 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504962', 'tblTempUsageDetail_20' ) end [2025-02-18 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:42:24] Production.INFO: ==17350== Releasing lock... [2025-02-18 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:42:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-18 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:43:05 [end_date_ymd] => 2025-02-18 18:43:05 [RateCDR] => 1 ) [2025-02-18 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:43:05' and `end` < '2025-02-18 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:43:17] Production.INFO: count ==4115 [2025-02-18 18:43:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:43:05 - End Time 2025-02-18 18:43:05 [2025-02-18 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504967', 'tblTempUsageDetail_20' ) start [2025-02-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504967', 'tblTempUsageDetail_20' ) end [2025-02-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504967', 'tblTempVendorCDR_20' ) start [2025-02-18 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504967', 'tblTempVendorCDR_20' ) end [2025-02-18 18:43:19] Production.INFO: ProcessCDR(1,14504967,1,1,2) [2025-02-18 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504967', 'tblTempUsageDetail_20' ) start [2025-02-18 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504967', 'tblTempUsageDetail_20' ) end [2025-02-18 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:43:24] Production.INFO: ==17440== Releasing lock... [2025-02-18 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:43:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-18 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:44:05 [end_date_ymd] => 2025-02-18 18:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:44:05' and `end` < '2025-02-18 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-18 18:44:17] Production.INFO: count ==4121 [2025-02-18 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:44:05 - End Time 2025-02-18 18:44:05 [2025-02-18 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504972', 'tblTempUsageDetail_20' ) start [2025-02-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504972', 'tblTempUsageDetail_20' ) end [2025-02-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504972', 'tblTempVendorCDR_20' ) start [2025-02-18 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504972', 'tblTempVendorCDR_20' ) end [2025-02-18 18:44:19] Production.INFO: ProcessCDR(1,14504972,1,1,2) [2025-02-18 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504972', 'tblTempUsageDetail_20' ) start [2025-02-18 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504972', 'tblTempUsageDetail_20' ) end [2025-02-18 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:44:24] Production.INFO: ==17554== Releasing lock... [2025-02-18 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:44:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-18 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:45:05 [end_date_ymd] => 2025-02-18 18:45:05 [RateCDR] => 1 ) [2025-02-18 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:45:05' and `end` < '2025-02-18 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:45:17] Production.INFO: count ==4122 [2025-02-18 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:45:05 - End Time 2025-02-18 18:45:05 [2025-02-18 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504977', 'tblTempUsageDetail_20' ) start [2025-02-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504977', 'tblTempUsageDetail_20' ) end [2025-02-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504977', 'tblTempVendorCDR_20' ) start [2025-02-18 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504977', 'tblTempVendorCDR_20' ) end [2025-02-18 18:45:19] Production.INFO: ProcessCDR(1,14504977,1,1,2) [2025-02-18 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504977', 'tblTempUsageDetail_20' ) start [2025-02-18 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504977', 'tblTempUsageDetail_20' ) end [2025-02-18 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:45:24] Production.INFO: ==17642== Releasing lock... [2025-02-18 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:45:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-18 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:46:06 [end_date_ymd] => 2025-02-18 18:46:06 [RateCDR] => 1 ) [2025-02-18 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:46:06' and `end` < '2025-02-18 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:46:18] Production.INFO: count ==4112 [2025-02-18 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:46:06 - End Time 2025-02-18 18:46:06 [2025-02-18 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504982', 'tblTempUsageDetail_20' ) start [2025-02-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504982', 'tblTempUsageDetail_20' ) end [2025-02-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504982', 'tblTempVendorCDR_20' ) start [2025-02-18 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504982', 'tblTempVendorCDR_20' ) end [2025-02-18 18:46:20] Production.INFO: ProcessCDR(1,14504982,1,1,2) [2025-02-18 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504982', 'tblTempUsageDetail_20' ) start [2025-02-18 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504982', 'tblTempUsageDetail_20' ) end [2025-02-18 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:46:23] Production.INFO: ==17723== Releasing lock... [2025-02-18 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:46:23] Production.INFO: 58.75 MB #Memory Used# [2025-02-18 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:47:05 [end_date_ymd] => 2025-02-18 18:47:05 [RateCDR] => 1 ) [2025-02-18 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:47:05' and `end` < '2025-02-18 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:47:17] Production.INFO: count ==4108 [2025-02-18 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:47:05 - End Time 2025-02-18 18:47:05 [2025-02-18 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504987', 'tblTempUsageDetail_20' ) start [2025-02-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504987', 'tblTempUsageDetail_20' ) end [2025-02-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504987', 'tblTempVendorCDR_20' ) start [2025-02-18 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504987', 'tblTempVendorCDR_20' ) end [2025-02-18 18:47:19] Production.INFO: ProcessCDR(1,14504987,1,1,2) [2025-02-18 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504987', 'tblTempUsageDetail_20' ) start [2025-02-18 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504987', 'tblTempUsageDetail_20' ) end [2025-02-18 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:47:22] Production.INFO: ==17803== Releasing lock... [2025-02-18 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:47:22] Production.INFO: 58.75 MB #Memory Used# [2025-02-18 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:48:05 [end_date_ymd] => 2025-02-18 18:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:48:05' and `end` < '2025-02-18 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-18 18:48:18] Production.INFO: count ==4085 [2025-02-18 18:48:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:48:05 - End Time 2025-02-18 18:48:05 [2025-02-18 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504992', 'tblTempUsageDetail_20' ) start [2025-02-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504992', 'tblTempUsageDetail_20' ) end [2025-02-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504992', 'tblTempVendorCDR_20' ) start [2025-02-18 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504992', 'tblTempVendorCDR_20' ) end [2025-02-18 18:48:19] Production.INFO: ProcessCDR(1,14504992,1,1,2) [2025-02-18 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504992', 'tblTempUsageDetail_20' ) start [2025-02-18 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504992', 'tblTempUsageDetail_20' ) end [2025-02-18 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:48:23] Production.INFO: ==17885== Releasing lock... [2025-02-18 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:48:23] Production.INFO: 58.5 MB #Memory Used# [2025-02-18 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:49:05 [end_date_ymd] => 2025-02-18 18:49:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:49:05' and `end` < '2025-02-18 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-18 18:49:17] Production.INFO: count ==4067 [2025-02-18 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:49:05 - End Time 2025-02-18 18:49:05 [2025-02-18 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504997', 'tblTempUsageDetail_20' ) start [2025-02-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14504997', 'tblTempUsageDetail_20' ) end [2025-02-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504997', 'tblTempVendorCDR_20' ) start [2025-02-18 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14504997', 'tblTempVendorCDR_20' ) end [2025-02-18 18:49:19] Production.INFO: ProcessCDR(1,14504997,1,1,2) [2025-02-18 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14504997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14504997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14504997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14504997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504997', 'tblTempUsageDetail_20' ) start [2025-02-18 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14504997', 'tblTempUsageDetail_20' ) end [2025-02-18 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:49:24] Production.INFO: ==17968== Releasing lock... [2025-02-18 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:49:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-18 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:50:06 [end_date_ymd] => 2025-02-18 18:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 15:50:06' and `end` < '2025-02-18 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-18 18:50:19] Production.INFO: count ==4037 [2025-02-18 18:50:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:50:06 - End Time 2025-02-18 18:50:06 [2025-02-18 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505003', 'tblTempUsageDetail_20' ) start [2025-02-18 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505003', 'tblTempUsageDetail_20' ) end [2025-02-18 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505003', 'tblTempVendorCDR_20' ) start [2025-02-18 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505003', 'tblTempVendorCDR_20' ) end [2025-02-18 18:50:20] Production.INFO: ProcessCDR(1,14505003,1,1,2) [2025-02-18 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505003', 'tblTempUsageDetail_20' ) start [2025-02-18 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505003', 'tblTempUsageDetail_20' ) end [2025-02-18 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:50:25] Production.INFO: ==18051== Releasing lock... [2025-02-18 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:50:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-18 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:51:05 [end_date_ymd] => 2025-02-18 18:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:51:05' and `end` < '2025-02-18 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-18 18:51:17] Production.INFO: count ==3991 [2025-02-18 18:51:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:51:05 - End Time 2025-02-18 18:51:05 [2025-02-18 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505008', 'tblTempUsageDetail_20' ) start [2025-02-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505008', 'tblTempUsageDetail_20' ) end [2025-02-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505008', 'tblTempVendorCDR_20' ) start [2025-02-18 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505008', 'tblTempVendorCDR_20' ) end [2025-02-18 18:51:19] Production.INFO: ProcessCDR(1,14505008,1,1,2) [2025-02-18 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505008', 'tblTempUsageDetail_20' ) start [2025-02-18 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505008', 'tblTempUsageDetail_20' ) end [2025-02-18 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:51:24] Production.INFO: ==18137== Releasing lock... [2025-02-18 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:51:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:52:06 [end_date_ymd] => 2025-02-18 18:52:06 [RateCDR] => 1 ) [2025-02-18 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:52:06' and `end` < '2025-02-18 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:52:18] Production.INFO: count ==3981 [2025-02-18 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:52:06 - End Time 2025-02-18 18:52:06 [2025-02-18 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505013', 'tblTempUsageDetail_20' ) start [2025-02-18 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505013', 'tblTempUsageDetail_20' ) end [2025-02-18 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505013', 'tblTempVendorCDR_20' ) start [2025-02-18 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505013', 'tblTempVendorCDR_20' ) end [2025-02-18 18:52:20] Production.INFO: ProcessCDR(1,14505013,1,1,2) [2025-02-18 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505013', 'tblTempUsageDetail_20' ) start [2025-02-18 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505013', 'tblTempUsageDetail_20' ) end [2025-02-18 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:52:24] Production.INFO: ==18211== Releasing lock... [2025-02-18 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:52:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:53:04 [end_date_ymd] => 2025-02-18 18:53:04 [RateCDR] => 1 ) [2025-02-18 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:53:04' and `end` < '2025-02-18 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:53:17] Production.INFO: count ==3961 [2025-02-18 18:53:18] Production.ERROR: pbx CDR StartTime 2025-02-18 15:53:04 - End Time 2025-02-18 18:53:04 [2025-02-18 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505018', 'tblTempUsageDetail_20' ) start [2025-02-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505018', 'tblTempUsageDetail_20' ) end [2025-02-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505018', 'tblTempVendorCDR_20' ) start [2025-02-18 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505018', 'tblTempVendorCDR_20' ) end [2025-02-18 18:53:19] Production.INFO: ProcessCDR(1,14505018,1,1,2) [2025-02-18 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505018', 'tblTempUsageDetail_20' ) start [2025-02-18 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505018', 'tblTempUsageDetail_20' ) end [2025-02-18 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:53:22] Production.INFO: ==18286== Releasing lock... [2025-02-18 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:53:22] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:54:06 [end_date_ymd] => 2025-02-18 18:54:06 [RateCDR] => 1 ) [2025-02-18 18: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-18 15:54:06' and `end` < '2025-02-18 18: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-18 18:54:18] Production.INFO: count ==3981 [2025-02-18 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-18 15:54:06 - End Time 2025-02-18 18:54:06 [2025-02-18 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505023', 'tblTempUsageDetail_20' ) start [2025-02-18 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505023', 'tblTempUsageDetail_20' ) end [2025-02-18 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505023', 'tblTempVendorCDR_20' ) start [2025-02-18 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505023', 'tblTempVendorCDR_20' ) end [2025-02-18 18:54:20] Production.INFO: ProcessCDR(1,14505023,1,1,2) [2025-02-18 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505023', 'tblTempUsageDetail_20' ) start [2025-02-18 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505023', 'tblTempUsageDetail_20' ) end [2025-02-18 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:54:25] Production.INFO: ==18370== Releasing lock... [2025-02-18 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:54:25] Production.INFO: 58 MB #Memory Used# [2025-02-18 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:55:05 [end_date_ymd] => 2025-02-18 18:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:55:05' and `end` < '2025-02-18 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-18 18:55:17] Production.INFO: count ==3972 [2025-02-18 18:55:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:55:05 - End Time 2025-02-18 18:55:05 [2025-02-18 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505028', 'tblTempUsageDetail_20' ) start [2025-02-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505028', 'tblTempUsageDetail_20' ) end [2025-02-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505028', 'tblTempVendorCDR_20' ) start [2025-02-18 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505028', 'tblTempVendorCDR_20' ) end [2025-02-18 18:55:19] Production.INFO: ProcessCDR(1,14505028,1,1,2) [2025-02-18 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505028', 'tblTempUsageDetail_20' ) start [2025-02-18 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505028', 'tblTempUsageDetail_20' ) end [2025-02-18 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:55:22] Production.INFO: ==18451== Releasing lock... [2025-02-18 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:55:22] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:56:05 [end_date_ymd] => 2025-02-18 18:56:05 [RateCDR] => 1 ) [2025-02-18 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 15:56:05' and `end` < '2025-02-18 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 18:56:18] Production.INFO: count ==3982 [2025-02-18 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:56:05 - End Time 2025-02-18 18:56:05 [2025-02-18 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505033', 'tblTempUsageDetail_20' ) start [2025-02-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505033', 'tblTempUsageDetail_20' ) end [2025-02-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505033', 'tblTempVendorCDR_20' ) start [2025-02-18 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505033', 'tblTempVendorCDR_20' ) end [2025-02-18 18:56:19] Production.INFO: ProcessCDR(1,14505033,1,1,2) [2025-02-18 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505033', 'tblTempUsageDetail_20' ) start [2025-02-18 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505033', 'tblTempUsageDetail_20' ) end [2025-02-18 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:56:24] Production.INFO: ==18532== Releasing lock... [2025-02-18 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:56:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:57:05 [end_date_ymd] => 2025-02-18 18:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:57:05' and `end` < '2025-02-18 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-18 18:57:17] Production.INFO: count ==3983 [2025-02-18 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:57:05 - End Time 2025-02-18 18:57:05 [2025-02-18 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505038', 'tblTempUsageDetail_20' ) start [2025-02-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505038', 'tblTempUsageDetail_20' ) end [2025-02-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505038', 'tblTempVendorCDR_20' ) start [2025-02-18 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505038', 'tblTempVendorCDR_20' ) end [2025-02-18 18:57:19] Production.INFO: ProcessCDR(1,14505038,1,1,2) [2025-02-18 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505038', 'tblTempUsageDetail_20' ) start [2025-02-18 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505038', 'tblTempUsageDetail_20' ) end [2025-02-18 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:57:22] Production.INFO: ==18608== Releasing lock... [2025-02-18 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:57:22] Production.INFO: 57.75 MB #Memory Used# [2025-02-18 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:58:06 [end_date_ymd] => 2025-02-18 18:58:06 [RateCDR] => 1 ) [2025-02-18 18: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-18 15:58:06' and `end` < '2025-02-18 18: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-18 18:58:18] Production.INFO: count ==3960 [2025-02-18 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:58:06 - End Time 2025-02-18 18:58:06 [2025-02-18 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505043', 'tblTempUsageDetail_20' ) start [2025-02-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505043', 'tblTempUsageDetail_20' ) end [2025-02-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505043', 'tblTempVendorCDR_20' ) start [2025-02-18 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505043', 'tblTempVendorCDR_20' ) end [2025-02-18 18:58:20] Production.INFO: ProcessCDR(1,14505043,1,1,2) [2025-02-18 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505043', 'tblTempUsageDetail_20' ) start [2025-02-18 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505043', 'tblTempUsageDetail_20' ) end [2025-02-18 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:58:24] Production.INFO: ==18685== Releasing lock... [2025-02-18 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:58:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-18 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 15:59:05 [end_date_ymd] => 2025-02-18 18:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 15:59:05' and `end` < '2025-02-18 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-18 18:59:17] Production.INFO: count ==3952 [2025-02-18 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-18 15:59:05 - End Time 2025-02-18 18:59:05 [2025-02-18 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505048', 'tblTempUsageDetail_20' ) start [2025-02-18 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505048', 'tblTempUsageDetail_20' ) end [2025-02-18 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505048', 'tblTempVendorCDR_20' ) start [2025-02-18 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505048', 'tblTempVendorCDR_20' ) end [2025-02-18 18:59:19] Production.INFO: ProcessCDR(1,14505048,1,1,2) [2025-02-18 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505048', 'tblTempUsageDetail_20' ) start [2025-02-18 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505048', 'tblTempUsageDetail_20' ) end [2025-02-18 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 18:59:24] Production.INFO: ==18767== Releasing lock... [2025-02-18 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 18:59:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-18 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:00:06 [end_date_ymd] => 2025-02-18 19:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 16:00:06' and `end` < '2025-02-18 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-18 19:00:18] Production.INFO: count ==3944 [2025-02-18 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-18 16:00:06 - End Time 2025-02-18 19:00:06 [2025-02-18 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505054', 'tblTempUsageDetail_20' ) start [2025-02-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505054', 'tblTempUsageDetail_20' ) end [2025-02-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505054', 'tblTempVendorCDR_20' ) start [2025-02-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505054', 'tblTempVendorCDR_20' ) end [2025-02-18 19:00:20] Production.INFO: ProcessCDR(1,14505054,1,1,2) [2025-02-18 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505054', 'tblTempUsageDetail_20' ) start [2025-02-18 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505054', 'tblTempUsageDetail_20' ) end [2025-02-18 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:00:23] Production.INFO: ==18893== Releasing lock... [2025-02-18 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:00:23] Production.INFO: 57.5 MB #Memory Used# [2025-02-18 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:01:05 [end_date_ymd] => 2025-02-18 19:01:05 [RateCDR] => 1 ) [2025-02-18 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:01:05' and `end` < '2025-02-18 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:01:17] Production.INFO: count ==3874 [2025-02-18 19:01:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:01:05 - End Time 2025-02-18 19:01:05 [2025-02-18 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505059', 'tblTempUsageDetail_20' ) start [2025-02-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505059', 'tblTempUsageDetail_20' ) end [2025-02-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505059', 'tblTempVendorCDR_20' ) start [2025-02-18 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505059', 'tblTempVendorCDR_20' ) end [2025-02-18 19:01:19] Production.INFO: ProcessCDR(1,14505059,1,1,2) [2025-02-18 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505059', 'tblTempUsageDetail_20' ) start [2025-02-18 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505059', 'tblTempUsageDetail_20' ) end [2025-02-18 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:01:22] Production.INFO: ==19018== Releasing lock... [2025-02-18 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:01:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-18 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:02:05 [end_date_ymd] => 2025-02-18 19:02:05 [RateCDR] => 1 ) [2025-02-18 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:02:05' and `end` < '2025-02-18 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:02:17] Production.INFO: count ==3865 [2025-02-18 19:02:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:02:05 - End Time 2025-02-18 19:02:05 [2025-02-18 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505064', 'tblTempUsageDetail_20' ) start [2025-02-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505064', 'tblTempUsageDetail_20' ) end [2025-02-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505064', 'tblTempVendorCDR_20' ) start [2025-02-18 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505064', 'tblTempVendorCDR_20' ) end [2025-02-18 19:02:19] Production.INFO: ProcessCDR(1,14505064,1,1,2) [2025-02-18 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505064', 'tblTempUsageDetail_20' ) start [2025-02-18 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505064', 'tblTempUsageDetail_20' ) end [2025-02-18 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:02:24] Production.INFO: ==19139== Releasing lock... [2025-02-18 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:02:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-18 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:03:05 [end_date_ymd] => 2025-02-18 19:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:03:05' and `end` < '2025-02-18 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-18 19:03:17] Production.INFO: count ==3832 [2025-02-18 19:03:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:03:05 - End Time 2025-02-18 19:03:05 [2025-02-18 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505069', 'tblTempUsageDetail_20' ) start [2025-02-18 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505069', 'tblTempUsageDetail_20' ) end [2025-02-18 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505069', 'tblTempVendorCDR_20' ) start [2025-02-18 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505069', 'tblTempVendorCDR_20' ) end [2025-02-18 19:03:19] Production.INFO: ProcessCDR(1,14505069,1,1,2) [2025-02-18 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505069', 'tblTempUsageDetail_20' ) start [2025-02-18 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505069', 'tblTempUsageDetail_20' ) end [2025-02-18 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:03:23] Production.INFO: ==19214== Releasing lock... [2025-02-18 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:03:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-18 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:04:06 [end_date_ymd] => 2025-02-18 19:04:06 [RateCDR] => 1 ) [2025-02-18 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-18 16:04:06' and `end` < '2025-02-18 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-18 19:04:18] Production.INFO: count ==3821 [2025-02-18 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:04:06 - End Time 2025-02-18 19:04:06 [2025-02-18 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505074', 'tblTempUsageDetail_20' ) start [2025-02-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505074', 'tblTempUsageDetail_20' ) end [2025-02-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505074', 'tblTempVendorCDR_20' ) start [2025-02-18 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505074', 'tblTempVendorCDR_20' ) end [2025-02-18 19:04:19] Production.INFO: ProcessCDR(1,14505074,1,1,2) [2025-02-18 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505074', 'tblTempUsageDetail_20' ) start [2025-02-18 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505074', 'tblTempUsageDetail_20' ) end [2025-02-18 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:04:24] Production.INFO: ==19290== Releasing lock... [2025-02-18 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:04:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-18 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:05:04 [end_date_ymd] => 2025-02-18 19:05:04 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:05:04' and `end` < '2025-02-18 19: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-18 19:05:17] Production.INFO: count ==3796 [2025-02-18 19:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:05:04 - End Time 2025-02-18 19:05:04 [2025-02-18 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505079', 'tblTempUsageDetail_20' ) start [2025-02-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505079', 'tblTempUsageDetail_20' ) end [2025-02-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505079', 'tblTempVendorCDR_20' ) start [2025-02-18 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505079', 'tblTempVendorCDR_20' ) end [2025-02-18 19:05:18] Production.INFO: ProcessCDR(1,14505079,1,1,2) [2025-02-18 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505079', 'tblTempUsageDetail_20' ) start [2025-02-18 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505079', 'tblTempUsageDetail_20' ) end [2025-02-18 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:05:23] Production.INFO: ==19442== Releasing lock... [2025-02-18 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:05:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-18 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:06:06 [end_date_ymd] => 2025-02-18 19:06:06 [RateCDR] => 1 ) [2025-02-18 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-18 16:06:06' and `end` < '2025-02-18 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-18 19:06:18] Production.INFO: count ==3772 [2025-02-18 19:06:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:06:06 - End Time 2025-02-18 19:06:06 [2025-02-18 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505084', 'tblTempUsageDetail_20' ) start [2025-02-18 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505084', 'tblTempUsageDetail_20' ) end [2025-02-18 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505084', 'tblTempVendorCDR_20' ) start [2025-02-18 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505084', 'tblTempVendorCDR_20' ) end [2025-02-18 19:06:19] Production.INFO: ProcessCDR(1,14505084,1,1,2) [2025-02-18 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505084', 'tblTempUsageDetail_20' ) start [2025-02-18 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505084', 'tblTempUsageDetail_20' ) end [2025-02-18 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:06:24] Production.INFO: ==19516== Releasing lock... [2025-02-18 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:06:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-18 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:07:05 [end_date_ymd] => 2025-02-18 19:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:07:05' and `end` < '2025-02-18 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-18 19:07:17] Production.INFO: count ==3732 [2025-02-18 19:07:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:07:05 - End Time 2025-02-18 19:07:05 [2025-02-18 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505089', 'tblTempUsageDetail_20' ) start [2025-02-18 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505089', 'tblTempUsageDetail_20' ) end [2025-02-18 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505089', 'tblTempVendorCDR_20' ) start [2025-02-18 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505089', 'tblTempVendorCDR_20' ) end [2025-02-18 19:07:19] Production.INFO: ProcessCDR(1,14505089,1,1,2) [2025-02-18 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505089', 'tblTempUsageDetail_20' ) start [2025-02-18 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505089', 'tblTempUsageDetail_20' ) end [2025-02-18 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:07:22] Production.INFO: ==19589== Releasing lock... [2025-02-18 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:07:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-18 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:08:05 [end_date_ymd] => 2025-02-18 19:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:08:05' and `end` < '2025-02-18 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-18 19:08:17] Production.INFO: count ==3700 [2025-02-18 19:08:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:08:05 - End Time 2025-02-18 19:08:05 [2025-02-18 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505094', 'tblTempUsageDetail_20' ) start [2025-02-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505094', 'tblTempUsageDetail_20' ) end [2025-02-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505094', 'tblTempVendorCDR_20' ) start [2025-02-18 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505094', 'tblTempVendorCDR_20' ) end [2025-02-18 19:08:19] Production.INFO: ProcessCDR(1,14505094,1,1,2) [2025-02-18 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505094', 'tblTempUsageDetail_20' ) start [2025-02-18 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505094', 'tblTempUsageDetail_20' ) end [2025-02-18 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:08:24] Production.INFO: ==19742== Releasing lock... [2025-02-18 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:08:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-18 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:09:05 [end_date_ymd] => 2025-02-18 19:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:09:05' and `end` < '2025-02-18 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-18 19:09:17] Production.INFO: count ==3683 [2025-02-18 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:09:05 - End Time 2025-02-18 19:09:05 [2025-02-18 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505099', 'tblTempUsageDetail_20' ) start [2025-02-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505099', 'tblTempUsageDetail_20' ) end [2025-02-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505099', 'tblTempVendorCDR_20' ) start [2025-02-18 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505099', 'tblTempVendorCDR_20' ) end [2025-02-18 19:09:18] Production.INFO: ProcessCDR(1,14505099,1,1,2) [2025-02-18 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505099', 'tblTempUsageDetail_20' ) start [2025-02-18 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505099', 'tblTempUsageDetail_20' ) end [2025-02-18 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:09:23] Production.INFO: ==19813== Releasing lock... [2025-02-18 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:09:23] Production.INFO: 55.5 MB #Memory Used# [2025-02-18 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:10:06 [end_date_ymd] => 2025-02-18 19:10:06 [RateCDR] => 1 ) [2025-02-18 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:10:06' and `end` < '2025-02-18 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:10:19] Production.INFO: count ==3672 [2025-02-18 19:10:20] Production.ERROR: pbx CDR StartTime 2025-02-18 16:10:06 - End Time 2025-02-18 19:10:06 [2025-02-18 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505105', 'tblTempUsageDetail_20' ) start [2025-02-18 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505105', 'tblTempUsageDetail_20' ) end [2025-02-18 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505105', 'tblTempVendorCDR_20' ) start [2025-02-18 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505105', 'tblTempVendorCDR_20' ) end [2025-02-18 19:10:20] Production.INFO: ProcessCDR(1,14505105,1,1,2) [2025-02-18 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505105', 'tblTempUsageDetail_20' ) start [2025-02-18 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505105', 'tblTempUsageDetail_20' ) end [2025-02-18 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:10:25] Production.INFO: ==19886== Releasing lock... [2025-02-18 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:10:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-18 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:11:05 [end_date_ymd] => 2025-02-18 19:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:11:05' and `end` < '2025-02-18 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-18 19:11:17] Production.INFO: count ==3604 [2025-02-18 19:11:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:11:05 - End Time 2025-02-18 19:11:05 [2025-02-18 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505110', 'tblTempUsageDetail_20' ) start [2025-02-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505110', 'tblTempUsageDetail_20' ) end [2025-02-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505110', 'tblTempVendorCDR_20' ) start [2025-02-18 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505110', 'tblTempVendorCDR_20' ) end [2025-02-18 19:11:18] Production.INFO: ProcessCDR(1,14505110,1,1,2) [2025-02-18 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505110', 'tblTempUsageDetail_20' ) start [2025-02-18 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505110', 'tblTempUsageDetail_20' ) end [2025-02-18 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:11:22] Production.INFO: ==19969== Releasing lock... [2025-02-18 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:11:22] Production.INFO: 55.5 MB #Memory Used# [2025-02-18 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:12:05 [end_date_ymd] => 2025-02-18 19:12:05 [RateCDR] => 1 ) [2025-02-18 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:12:05' and `end` < '2025-02-18 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:12:18] Production.INFO: count ==3603 [2025-02-18 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:12:05 - End Time 2025-02-18 19:12:05 [2025-02-18 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505115', 'tblTempUsageDetail_20' ) start [2025-02-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505115', 'tblTempUsageDetail_20' ) end [2025-02-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505115', 'tblTempVendorCDR_20' ) start [2025-02-18 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505115', 'tblTempVendorCDR_20' ) end [2025-02-18 19:12:19] Production.INFO: ProcessCDR(1,14505115,1,1,2) [2025-02-18 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505115', 'tblTempUsageDetail_20' ) start [2025-02-18 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505115', 'tblTempUsageDetail_20' ) end [2025-02-18 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:12:24] Production.INFO: ==20122== Releasing lock... [2025-02-18 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:12:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-18 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:13:06 [end_date_ymd] => 2025-02-18 19:13:06 [RateCDR] => 1 ) [2025-02-18 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:13:06' and `end` < '2025-02-18 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:13:18] Production.INFO: count ==3556 [2025-02-18 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:13:06 - End Time 2025-02-18 19:13:06 [2025-02-18 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505120', 'tblTempUsageDetail_20' ) start [2025-02-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505120', 'tblTempUsageDetail_20' ) end [2025-02-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505120', 'tblTempVendorCDR_20' ) start [2025-02-18 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505120', 'tblTempVendorCDR_20' ) end [2025-02-18 19:13:19] Production.INFO: ProcessCDR(1,14505120,1,1,2) [2025-02-18 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505120', 'tblTempUsageDetail_20' ) start [2025-02-18 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505120', 'tblTempUsageDetail_20' ) end [2025-02-18 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:13:25] Production.INFO: ==20194== Releasing lock... [2025-02-18 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:13:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-18 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:14:05 [end_date_ymd] => 2025-02-18 19:14:05 [RateCDR] => 1 ) [2025-02-18 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:14:05' and `end` < '2025-02-18 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:14:17] Production.INFO: count ==3524 [2025-02-18 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:14:05 - End Time 2025-02-18 19:14:05 [2025-02-18 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505125', 'tblTempUsageDetail_20' ) start [2025-02-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505125', 'tblTempUsageDetail_20' ) end [2025-02-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505125', 'tblTempVendorCDR_20' ) start [2025-02-18 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505125', 'tblTempVendorCDR_20' ) end [2025-02-18 19:14:19] Production.INFO: ProcessCDR(1,14505125,1,1,2) [2025-02-18 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505125', 'tblTempUsageDetail_20' ) start [2025-02-18 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505125', 'tblTempUsageDetail_20' ) end [2025-02-18 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:14:23] Production.INFO: ==20263== Releasing lock... [2025-02-18 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:14:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-18 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:15:05 [end_date_ymd] => 2025-02-18 19:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:15:05' and `end` < '2025-02-18 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-18 19:15:18] Production.INFO: count ==3504 [2025-02-18 19:15:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:15:05 - End Time 2025-02-18 19:15:05 [2025-02-18 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505130', 'tblTempUsageDetail_20' ) start [2025-02-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505130', 'tblTempUsageDetail_20' ) end [2025-02-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505130', 'tblTempVendorCDR_20' ) start [2025-02-18 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505130', 'tblTempVendorCDR_20' ) end [2025-02-18 19:15:19] Production.INFO: ProcessCDR(1,14505130,1,1,2) [2025-02-18 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505130', 'tblTempUsageDetail_20' ) start [2025-02-18 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505130', 'tblTempUsageDetail_20' ) end [2025-02-18 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:15:24] Production.INFO: ==20454== Releasing lock... [2025-02-18 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:15:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-18 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:16:05 [end_date_ymd] => 2025-02-18 19:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:16:05' and `end` < '2025-02-18 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-18 19:16:17] Production.INFO: count ==3447 [2025-02-18 19:16:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:16:05 - End Time 2025-02-18 19:16:05 [2025-02-18 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505135', 'tblTempUsageDetail_20' ) start [2025-02-18 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505135', 'tblTempUsageDetail_20' ) end [2025-02-18 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505135', 'tblTempVendorCDR_20' ) start [2025-02-18 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505135', 'tblTempVendorCDR_20' ) end [2025-02-18 19:16:18] Production.INFO: ProcessCDR(1,14505135,1,1,2) [2025-02-18 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505135', 'tblTempUsageDetail_20' ) start [2025-02-18 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505135', 'tblTempUsageDetail_20' ) end [2025-02-18 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:16:23] Production.INFO: ==20527== Releasing lock... [2025-02-18 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:16:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-18 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:17:06 [end_date_ymd] => 2025-02-18 19:17:06 [RateCDR] => 1 ) [2025-02-18 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:17:06' and `end` < '2025-02-18 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:17:18] Production.INFO: count ==3418 [2025-02-18 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:17:06 - End Time 2025-02-18 19:17:06 [2025-02-18 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505140', 'tblTempUsageDetail_20' ) start [2025-02-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505140', 'tblTempUsageDetail_20' ) end [2025-02-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505140', 'tblTempVendorCDR_20' ) start [2025-02-18 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505140', 'tblTempVendorCDR_20' ) end [2025-02-18 19:17:19] Production.INFO: ProcessCDR(1,14505140,1,1,2) [2025-02-18 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505140', 'tblTempUsageDetail_20' ) start [2025-02-18 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505140', 'tblTempUsageDetail_20' ) end [2025-02-18 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:17:24] Production.INFO: ==20603== Releasing lock... [2025-02-18 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:17:24] Production.INFO: 54 MB #Memory Used# [2025-02-18 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:18:05 [end_date_ymd] => 2025-02-18 19:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:18:05' and `end` < '2025-02-18 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-18 19:18:17] Production.INFO: count ==3383 [2025-02-18 19:18:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:18:05 - End Time 2025-02-18 19:18:05 [2025-02-18 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505145', 'tblTempUsageDetail_20' ) start [2025-02-18 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505145', 'tblTempUsageDetail_20' ) end [2025-02-18 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505145', 'tblTempVendorCDR_20' ) start [2025-02-18 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505145', 'tblTempVendorCDR_20' ) end [2025-02-18 19:18:18] Production.INFO: ProcessCDR(1,14505145,1,1,2) [2025-02-18 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505145', 'tblTempUsageDetail_20' ) start [2025-02-18 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505145', 'tblTempUsageDetail_20' ) end [2025-02-18 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:18:22] Production.INFO: ==20673== Releasing lock... [2025-02-18 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:18:22] Production.INFO: 53.25 MB #Memory Used# [2025-02-18 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:19:06 [end_date_ymd] => 2025-02-18 19:19:06 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:19:06' and `end` < '2025-02-18 19: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-18 19:19:18] Production.INFO: count ==3355 [2025-02-18 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:19:06 - End Time 2025-02-18 19:19:06 [2025-02-18 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505150', 'tblTempUsageDetail_20' ) start [2025-02-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505150', 'tblTempUsageDetail_20' ) end [2025-02-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505150', 'tblTempVendorCDR_20' ) start [2025-02-18 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505150', 'tblTempVendorCDR_20' ) end [2025-02-18 19:19:19] Production.INFO: ProcessCDR(1,14505150,1,1,2) [2025-02-18 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505150', 'tblTempUsageDetail_20' ) start [2025-02-18 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505150', 'tblTempUsageDetail_20' ) end [2025-02-18 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:19:23] Production.INFO: ==20751== Releasing lock... [2025-02-18 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:19:23] Production.INFO: 53 MB #Memory Used# [2025-02-18 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:20:05 [end_date_ymd] => 2025-02-18 19:20:05 [RateCDR] => 1 ) [2025-02-18 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:20:05' and `end` < '2025-02-18 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:20:18] Production.INFO: count ==3324 [2025-02-18 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:20:05 - End Time 2025-02-18 19:20:05 [2025-02-18 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505155', 'tblTempUsageDetail_20' ) start [2025-02-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505155', 'tblTempUsageDetail_20' ) end [2025-02-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505155', 'tblTempVendorCDR_20' ) start [2025-02-18 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505155', 'tblTempVendorCDR_20' ) end [2025-02-18 19:20:19] Production.INFO: ProcessCDR(1,14505155,1,1,2) [2025-02-18 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505155', 'tblTempUsageDetail_20' ) start [2025-02-18 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505155', 'tblTempUsageDetail_20' ) end [2025-02-18 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:20:24] Production.INFO: ==20830== Releasing lock... [2025-02-18 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:20:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-18 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:21:05 [end_date_ymd] => 2025-02-18 19:21:05 [RateCDR] => 1 ) [2025-02-18 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:21:05' and `end` < '2025-02-18 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:21:17] Production.INFO: count ==3222 [2025-02-18 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:21:05 - End Time 2025-02-18 19:21:05 [2025-02-18 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505161', 'tblTempUsageDetail_20' ) start [2025-02-18 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505161', 'tblTempUsageDetail_20' ) end [2025-02-18 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505161', 'tblTempVendorCDR_20' ) start [2025-02-18 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505161', 'tblTempVendorCDR_20' ) end [2025-02-18 19:21:19] Production.INFO: ProcessCDR(1,14505161,1,1,2) [2025-02-18 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505161', 'tblTempUsageDetail_20' ) start [2025-02-18 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505161', 'tblTempUsageDetail_20' ) end [2025-02-18 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:21:22] Production.INFO: ==20908== Releasing lock... [2025-02-18 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:21:22] Production.INFO: 52 MB #Memory Used# [2025-02-18 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:22:05 [end_date_ymd] => 2025-02-18 19:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:22:05' and `end` < '2025-02-18 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-18 19:22:17] Production.INFO: count ==3195 [2025-02-18 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:22:05 - End Time 2025-02-18 19:22:05 [2025-02-18 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505166', 'tblTempUsageDetail_20' ) start [2025-02-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505166', 'tblTempUsageDetail_20' ) end [2025-02-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505166', 'tblTempVendorCDR_20' ) start [2025-02-18 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505166', 'tblTempVendorCDR_20' ) end [2025-02-18 19:22:18] Production.INFO: ProcessCDR(1,14505166,1,1,2) [2025-02-18 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505166', 'tblTempUsageDetail_20' ) start [2025-02-18 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505166', 'tblTempUsageDetail_20' ) end [2025-02-18 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:22:22] Production.INFO: ==20988== Releasing lock... [2025-02-18 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:22:22] Production.INFO: 52.75 MB #Memory Used# [2025-02-18 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:23:06 [end_date_ymd] => 2025-02-18 19:23:06 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:23:06' and `end` < '2025-02-18 19: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-18 19:23:18] Production.INFO: count ==3170 [2025-02-18 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:23:06 - End Time 2025-02-18 19:23:06 [2025-02-18 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505171', 'tblTempUsageDetail_20' ) start [2025-02-18 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505171', 'tblTempUsageDetail_20' ) end [2025-02-18 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505171', 'tblTempVendorCDR_20' ) start [2025-02-18 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505171', 'tblTempVendorCDR_20' ) end [2025-02-18 19:23:19] Production.INFO: ProcessCDR(1,14505171,1,1,2) [2025-02-18 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505171', 'tblTempUsageDetail_20' ) start [2025-02-18 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505171', 'tblTempUsageDetail_20' ) end [2025-02-18 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:23:23] Production.INFO: ==21064== Releasing lock... [2025-02-18 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:23:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-18 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:24:05 [end_date_ymd] => 2025-02-18 19:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:24:05' and `end` < '2025-02-18 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-18 19:24:18] Production.INFO: count ==3149 [2025-02-18 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:24:05 - End Time 2025-02-18 19:24:05 [2025-02-18 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505176', 'tblTempUsageDetail_20' ) start [2025-02-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505176', 'tblTempUsageDetail_20' ) end [2025-02-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505176', 'tblTempVendorCDR_20' ) start [2025-02-18 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505176', 'tblTempVendorCDR_20' ) end [2025-02-18 19:24:19] Production.INFO: ProcessCDR(1,14505176,1,1,2) [2025-02-18 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505176', 'tblTempUsageDetail_20' ) start [2025-02-18 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505176', 'tblTempUsageDetail_20' ) end [2025-02-18 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:24:22] Production.INFO: ==21134== Releasing lock... [2025-02-18 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:24:22] Production.INFO: 51.5 MB #Memory Used# [2025-02-18 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:25:06 [end_date_ymd] => 2025-02-18 19:25:06 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:25:06' and `end` < '2025-02-18 19: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-18 19:25:18] Production.INFO: count ==3136 [2025-02-18 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:25:06 - End Time 2025-02-18 19:25:06 [2025-02-18 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505181', 'tblTempUsageDetail_20' ) start [2025-02-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505181', 'tblTempUsageDetail_20' ) end [2025-02-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505181', 'tblTempVendorCDR_20' ) start [2025-02-18 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505181', 'tblTempVendorCDR_20' ) end [2025-02-18 19:25:19] Production.INFO: ProcessCDR(1,14505181,1,1,2) [2025-02-18 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505181', 'tblTempUsageDetail_20' ) start [2025-02-18 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505181', 'tblTempUsageDetail_20' ) end [2025-02-18 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:25:22] Production.INFO: ==21208== Releasing lock... [2025-02-18 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:25:22] Production.INFO: 51.5 MB #Memory Used# [2025-02-18 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:26:05 [end_date_ymd] => 2025-02-18 19:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:26:05' and `end` < '2025-02-18 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-18 19:26:17] Production.INFO: count ==3125 [2025-02-18 19:26:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:26:05 - End Time 2025-02-18 19:26:05 [2025-02-18 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505186', 'tblTempUsageDetail_20' ) start [2025-02-18 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505186', 'tblTempUsageDetail_20' ) end [2025-02-18 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505186', 'tblTempVendorCDR_20' ) start [2025-02-18 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505186', 'tblTempVendorCDR_20' ) end [2025-02-18 19:26:18] Production.INFO: ProcessCDR(1,14505186,1,1,2) [2025-02-18 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505186', 'tblTempUsageDetail_20' ) start [2025-02-18 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505186', 'tblTempUsageDetail_20' ) end [2025-02-18 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:26:22] Production.INFO: ==21282== Releasing lock... [2025-02-18 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:26:22] Production.INFO: 51.25 MB #Memory Used# [2025-02-18 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:27:05 [end_date_ymd] => 2025-02-18 19:27:05 [RateCDR] => 1 ) [2025-02-18 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:27:05' and `end` < '2025-02-18 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:27:17] Production.INFO: count ==3118 [2025-02-18 19:27:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:27:05 - End Time 2025-02-18 19:27:05 [2025-02-18 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505191', 'tblTempUsageDetail_20' ) start [2025-02-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505191', 'tblTempUsageDetail_20' ) end [2025-02-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505191', 'tblTempVendorCDR_20' ) start [2025-02-18 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505191', 'tblTempVendorCDR_20' ) end [2025-02-18 19:27:18] Production.INFO: ProcessCDR(1,14505191,1,1,2) [2025-02-18 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505191', 'tblTempUsageDetail_20' ) start [2025-02-18 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505191', 'tblTempUsageDetail_20' ) end [2025-02-18 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:27:22] Production.INFO: ==21355== Releasing lock... [2025-02-18 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:27:22] Production.INFO: 52 MB #Memory Used# [2025-02-18 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:28:05 [end_date_ymd] => 2025-02-18 19:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:28:05' and `end` < '2025-02-18 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-18 19:28:17] Production.INFO: count ==3093 [2025-02-18 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:28:05 - End Time 2025-02-18 19:28:05 [2025-02-18 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505196', 'tblTempUsageDetail_20' ) start [2025-02-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505196', 'tblTempUsageDetail_20' ) end [2025-02-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505196', 'tblTempVendorCDR_20' ) start [2025-02-18 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505196', 'tblTempVendorCDR_20' ) end [2025-02-18 19:28:18] Production.INFO: ProcessCDR(1,14505196,1,1,2) [2025-02-18 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505196', 'tblTempUsageDetail_20' ) start [2025-02-18 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505196', 'tblTempUsageDetail_20' ) end [2025-02-18 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:28:21] Production.INFO: ==21428== Releasing lock... [2025-02-18 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:28:21] Production.INFO: 52 MB #Memory Used# [2025-02-18 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:29:05 [end_date_ymd] => 2025-02-18 19:29:05 [RateCDR] => 1 ) [2025-02-18 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:29:05' and `end` < '2025-02-18 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:29:17] Production.INFO: count ==3061 [2025-02-18 19:29:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:29:05 - End Time 2025-02-18 19:29:05 [2025-02-18 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505201', 'tblTempUsageDetail_20' ) start [2025-02-18 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505201', 'tblTempUsageDetail_20' ) end [2025-02-18 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505201', 'tblTempVendorCDR_20' ) start [2025-02-18 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505201', 'tblTempVendorCDR_20' ) end [2025-02-18 19:29:18] Production.INFO: ProcessCDR(1,14505201,1,1,2) [2025-02-18 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505201', 'tblTempUsageDetail_20' ) start [2025-02-18 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505201', 'tblTempUsageDetail_20' ) end [2025-02-18 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:29:23] Production.INFO: ==21502== Releasing lock... [2025-02-18 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:29:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-18 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:30:05 [end_date_ymd] => 2025-02-18 19:30:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:30:05' and `end` < '2025-02-18 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-18 19:30:18] Production.INFO: count ==3038 [2025-02-18 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:30:05 - End Time 2025-02-18 19:30:05 [2025-02-18 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505207', 'tblTempUsageDetail_20' ) start [2025-02-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505207', 'tblTempUsageDetail_20' ) end [2025-02-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505207', 'tblTempVendorCDR_20' ) start [2025-02-18 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505207', 'tblTempVendorCDR_20' ) end [2025-02-18 19:30:19] Production.INFO: ProcessCDR(1,14505207,1,1,2) [2025-02-18 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505207', 'tblTempUsageDetail_20' ) start [2025-02-18 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505207', 'tblTempUsageDetail_20' ) end [2025-02-18 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:30:22] Production.INFO: ==21615== Releasing lock... [2025-02-18 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:30:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-18 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:31:05 [end_date_ymd] => 2025-02-18 19:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:31:05' and `end` < '2025-02-18 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-18 19:31:17] Production.INFO: count ==3000 [2025-02-18 19:31:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:31:05 - End Time 2025-02-18 19:31:05 [2025-02-18 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505212', 'tblTempUsageDetail_20' ) start [2025-02-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505212', 'tblTempUsageDetail_20' ) end [2025-02-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505212', 'tblTempVendorCDR_20' ) start [2025-02-18 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505212', 'tblTempVendorCDR_20' ) end [2025-02-18 19:31:18] Production.INFO: ProcessCDR(1,14505212,1,1,2) [2025-02-18 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505212', 'tblTempUsageDetail_20' ) start [2025-02-18 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505212', 'tblTempUsageDetail_20' ) end [2025-02-18 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:31:23] Production.INFO: ==21691== Releasing lock... [2025-02-18 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:31:23] Production.INFO: 50.25 MB #Memory Used# [2025-02-18 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:32:05 [end_date_ymd] => 2025-02-18 19:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:32:05' and `end` < '2025-02-18 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-18 19:32:17] Production.INFO: count ==2947 [2025-02-18 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:32:05 - End Time 2025-02-18 19:32:05 [2025-02-18 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505217', 'tblTempUsageDetail_20' ) start [2025-02-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505217', 'tblTempUsageDetail_20' ) end [2025-02-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505217', 'tblTempVendorCDR_20' ) start [2025-02-18 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505217', 'tblTempVendorCDR_20' ) end [2025-02-18 19:32:18] Production.INFO: ProcessCDR(1,14505217,1,1,2) [2025-02-18 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505217', 'tblTempUsageDetail_20' ) start [2025-02-18 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505217', 'tblTempUsageDetail_20' ) end [2025-02-18 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:32:22] Production.INFO: ==21765== Releasing lock... [2025-02-18 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:32:22] Production.INFO: 50 MB #Memory Used# [2025-02-18 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:33:05 [end_date_ymd] => 2025-02-18 19:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:33:05' and `end` < '2025-02-18 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-18 19:33:17] Production.INFO: count ==2898 [2025-02-18 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:33:05 - End Time 2025-02-18 19:33:05 [2025-02-18 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505222', 'tblTempUsageDetail_20' ) start [2025-02-18 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505222', 'tblTempUsageDetail_20' ) end [2025-02-18 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505222', 'tblTempVendorCDR_20' ) start [2025-02-18 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505222', 'tblTempVendorCDR_20' ) end [2025-02-18 19:33:18] Production.INFO: ProcessCDR(1,14505222,1,1,2) [2025-02-18 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505222', 'tblTempUsageDetail_20' ) start [2025-02-18 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505222', 'tblTempUsageDetail_20' ) end [2025-02-18 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:33:22] Production.INFO: ==21839== Releasing lock... [2025-02-18 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:33:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-18 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:34:06 [end_date_ymd] => 2025-02-18 19:34:06 [RateCDR] => 1 ) [2025-02-18 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-18 16:34:06' and `end` < '2025-02-18 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-18 19:34:18] Production.INFO: count ==2846 [2025-02-18 19:34:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:34:06 - End Time 2025-02-18 19:34:06 [2025-02-18 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505227', 'tblTempUsageDetail_20' ) start [2025-02-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505227', 'tblTempUsageDetail_20' ) end [2025-02-18 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505227', 'tblTempVendorCDR_20' ) start [2025-02-18 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505227', 'tblTempVendorCDR_20' ) end [2025-02-18 19:34:19] Production.INFO: ProcessCDR(1,14505227,1,1,2) [2025-02-18 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505227', 'tblTempUsageDetail_20' ) start [2025-02-18 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505227', 'tblTempUsageDetail_20' ) end [2025-02-18 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:34:22] Production.INFO: ==21915== Releasing lock... [2025-02-18 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:34:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-18 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:35:05 [end_date_ymd] => 2025-02-18 19:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:35:05' and `end` < '2025-02-18 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-18 19:35:17] Production.INFO: count ==2815 [2025-02-18 19:35:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:35:05 - End Time 2025-02-18 19:35:05 [2025-02-18 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505232', 'tblTempUsageDetail_20' ) start [2025-02-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505232', 'tblTempUsageDetail_20' ) end [2025-02-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505232', 'tblTempVendorCDR_20' ) start [2025-02-18 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505232', 'tblTempVendorCDR_20' ) end [2025-02-18 19:35:18] Production.INFO: ProcessCDR(1,14505232,1,1,2) [2025-02-18 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505232', 'tblTempUsageDetail_20' ) start [2025-02-18 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505232', 'tblTempUsageDetail_20' ) end [2025-02-18 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:35:21] Production.INFO: ==21993== Releasing lock... [2025-02-18 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:35:21] Production.INFO: 49.25 MB #Memory Used# [2025-02-18 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:36:05 [end_date_ymd] => 2025-02-18 19:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:36:05' and `end` < '2025-02-18 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-18 19:36:17] Production.INFO: count ==2796 [2025-02-18 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:36:05 - End Time 2025-02-18 19:36:05 [2025-02-18 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505237', 'tblTempUsageDetail_20' ) start [2025-02-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505237', 'tblTempUsageDetail_20' ) end [2025-02-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505237', 'tblTempVendorCDR_20' ) start [2025-02-18 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505237', 'tblTempVendorCDR_20' ) end [2025-02-18 19:36:18] Production.INFO: ProcessCDR(1,14505237,1,1,2) [2025-02-18 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505237', 'tblTempUsageDetail_20' ) start [2025-02-18 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505237', 'tblTempUsageDetail_20' ) end [2025-02-18 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:36:21] Production.INFO: ==22069== Releasing lock... [2025-02-18 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:36:21] Production.INFO: 49 MB #Memory Used# [2025-02-18 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:37:05 [end_date_ymd] => 2025-02-18 19:37:05 [RateCDR] => 1 ) [2025-02-18 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:37:05' and `end` < '2025-02-18 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:37:17] Production.INFO: count ==2786 [2025-02-18 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:37:05 - End Time 2025-02-18 19:37:05 [2025-02-18 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505242', 'tblTempUsageDetail_20' ) start [2025-02-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505242', 'tblTempUsageDetail_20' ) end [2025-02-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505242', 'tblTempVendorCDR_20' ) start [2025-02-18 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505242', 'tblTempVendorCDR_20' ) end [2025-02-18 19:37:18] Production.INFO: ProcessCDR(1,14505242,1,1,2) [2025-02-18 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505242', 'tblTempUsageDetail_20' ) start [2025-02-18 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505242', 'tblTempUsageDetail_20' ) end [2025-02-18 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:37:21] Production.INFO: ==22157== Releasing lock... [2025-02-18 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:37:21] Production.INFO: 49.25 MB #Memory Used# [2025-02-18 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:38:06 [end_date_ymd] => 2025-02-18 19:38:06 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:38:06' and `end` < '2025-02-18 19: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-18 19:38:18] Production.INFO: count ==2774 [2025-02-18 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:38:06 - End Time 2025-02-18 19:38:06 [2025-02-18 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505247', 'tblTempUsageDetail_20' ) start [2025-02-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505247', 'tblTempUsageDetail_20' ) end [2025-02-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505247', 'tblTempVendorCDR_20' ) start [2025-02-18 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505247', 'tblTempVendorCDR_20' ) end [2025-02-18 19:38:19] Production.INFO: ProcessCDR(1,14505247,1,1,2) [2025-02-18 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505247', 'tblTempUsageDetail_20' ) start [2025-02-18 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505247', 'tblTempUsageDetail_20' ) end [2025-02-18 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:38:23] Production.INFO: ==22321== Releasing lock... [2025-02-18 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:38:23] Production.INFO: 49 MB #Memory Used# [2025-02-18 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:39:05 [end_date_ymd] => 2025-02-18 19:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:39:05' and `end` < '2025-02-18 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-18 19:39:17] Production.INFO: count ==2754 [2025-02-18 19:39:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:39:05 - End Time 2025-02-18 19:39:05 [2025-02-18 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505252', 'tblTempUsageDetail_20' ) start [2025-02-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505252', 'tblTempUsageDetail_20' ) end [2025-02-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505252', 'tblTempVendorCDR_20' ) start [2025-02-18 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505252', 'tblTempVendorCDR_20' ) end [2025-02-18 19:39:18] Production.INFO: ProcessCDR(1,14505252,1,1,2) [2025-02-18 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505252', 'tblTempUsageDetail_20' ) start [2025-02-18 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505252', 'tblTempUsageDetail_20' ) end [2025-02-18 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:39:21] Production.INFO: ==22478== Releasing lock... [2025-02-18 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:39:21] Production.INFO: 48.75 MB #Memory Used# [2025-02-18 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:40:06 [end_date_ymd] => 2025-02-18 19:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 16:40:06' and `end` < '2025-02-18 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-18 19:40:18] Production.INFO: count ==2753 [2025-02-18 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:40:06 - End Time 2025-02-18 19:40:06 [2025-02-18 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505258', 'tblTempUsageDetail_20' ) start [2025-02-18 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505258', 'tblTempUsageDetail_20' ) end [2025-02-18 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505258', 'tblTempVendorCDR_20' ) start [2025-02-18 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505258', 'tblTempVendorCDR_20' ) end [2025-02-18 19:40:19] Production.INFO: ProcessCDR(1,14505258,1,1,2) [2025-02-18 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505258', 'tblTempUsageDetail_20' ) start [2025-02-18 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505258', 'tblTempUsageDetail_20' ) end [2025-02-18 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:40:24] Production.INFO: ==22632== Releasing lock... [2025-02-18 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:40:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-18 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:41:05 [end_date_ymd] => 2025-02-18 19:41:05 [RateCDR] => 1 ) [2025-02-18 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:41:05' and `end` < '2025-02-18 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:41:17] Production.INFO: count ==2704 [2025-02-18 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:41:05 - End Time 2025-02-18 19:41:05 [2025-02-18 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505263', 'tblTempUsageDetail_20' ) start [2025-02-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505263', 'tblTempUsageDetail_20' ) end [2025-02-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505263', 'tblTempVendorCDR_20' ) start [2025-02-18 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505263', 'tblTempVendorCDR_20' ) end [2025-02-18 19:41:18] Production.INFO: ProcessCDR(1,14505263,1,1,2) [2025-02-18 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505263', 'tblTempUsageDetail_20' ) start [2025-02-18 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505263', 'tblTempUsageDetail_20' ) end [2025-02-18 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:41:23] Production.INFO: ==22793== Releasing lock... [2025-02-18 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:41:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-18 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:42:05 [end_date_ymd] => 2025-02-18 19:42:05 [RateCDR] => 1 ) [2025-02-18 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:42:05' and `end` < '2025-02-18 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:42:17] Production.INFO: count ==2686 [2025-02-18 19:42:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:42:05 - End Time 2025-02-18 19:42:05 [2025-02-18 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505268', 'tblTempUsageDetail_20' ) start [2025-02-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505268', 'tblTempUsageDetail_20' ) end [2025-02-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505268', 'tblTempVendorCDR_20' ) start [2025-02-18 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505268', 'tblTempVendorCDR_20' ) end [2025-02-18 19:42:18] Production.INFO: ProcessCDR(1,14505268,1,1,2) [2025-02-18 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505268', 'tblTempUsageDetail_20' ) start [2025-02-18 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505268', 'tblTempUsageDetail_20' ) end [2025-02-18 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:42:21] Production.INFO: ==22956== Releasing lock... [2025-02-18 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:42:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-18 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:43:05 [end_date_ymd] => 2025-02-18 19:43:05 [RateCDR] => 1 ) [2025-02-18 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:43:05' and `end` < '2025-02-18 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:43:17] Production.INFO: count ==2674 [2025-02-18 19:43:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:43:05 - End Time 2025-02-18 19:43:05 [2025-02-18 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505273', 'tblTempUsageDetail_20' ) start [2025-02-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505273', 'tblTempUsageDetail_20' ) end [2025-02-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505273', 'tblTempVendorCDR_20' ) start [2025-02-18 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505273', 'tblTempVendorCDR_20' ) end [2025-02-18 19:43:18] Production.INFO: ProcessCDR(1,14505273,1,1,2) [2025-02-18 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505273', 'tblTempUsageDetail_20' ) start [2025-02-18 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505273', 'tblTempUsageDetail_20' ) end [2025-02-18 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:43:21] Production.INFO: ==23116== Releasing lock... [2025-02-18 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:43:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-18 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:44:05 [end_date_ymd] => 2025-02-18 19:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:44:05' and `end` < '2025-02-18 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-18 19:44:17] Production.INFO: count ==2673 [2025-02-18 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:44:05 - End Time 2025-02-18 19:44:05 [2025-02-18 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505278', 'tblTempUsageDetail_20' ) start [2025-02-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505278', 'tblTempUsageDetail_20' ) end [2025-02-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505278', 'tblTempVendorCDR_20' ) start [2025-02-18 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505278', 'tblTempVendorCDR_20' ) end [2025-02-18 19:44:18] Production.INFO: ProcessCDR(1,14505278,1,1,2) [2025-02-18 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505278', 'tblTempUsageDetail_20' ) start [2025-02-18 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505278', 'tblTempUsageDetail_20' ) end [2025-02-18 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:44:22] Production.INFO: ==23277== Releasing lock... [2025-02-18 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:44:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-18 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:45:06 [end_date_ymd] => 2025-02-18 19:45:06 [RateCDR] => 1 ) [2025-02-18 19:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:45:06' and `end` < '2025-02-18 19:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:45:18] Production.INFO: count ==2635 [2025-02-18 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:45:06 - End Time 2025-02-18 19:45:06 [2025-02-18 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505283', 'tblTempUsageDetail_20' ) start [2025-02-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505283', 'tblTempUsageDetail_20' ) end [2025-02-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505283', 'tblTempVendorCDR_20' ) start [2025-02-18 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505283', 'tblTempVendorCDR_20' ) end [2025-02-18 19:45:19] Production.INFO: ProcessCDR(1,14505283,1,1,2) [2025-02-18 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505283', 'tblTempUsageDetail_20' ) start [2025-02-18 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505283', 'tblTempUsageDetail_20' ) end [2025-02-18 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:45:23] Production.INFO: ==23437== Releasing lock... [2025-02-18 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:45:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-18 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:46:05 [end_date_ymd] => 2025-02-18 19:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:46:05' and `end` < '2025-02-18 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-18 19:46:17] Production.INFO: count ==2607 [2025-02-18 19:46:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:46:05 - End Time 2025-02-18 19:46:05 [2025-02-18 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505288', 'tblTempUsageDetail_20' ) start [2025-02-18 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505288', 'tblTempUsageDetail_20' ) end [2025-02-18 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505288', 'tblTempVendorCDR_20' ) start [2025-02-18 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505288', 'tblTempVendorCDR_20' ) end [2025-02-18 19:46:18] Production.INFO: ProcessCDR(1,14505288,1,1,2) [2025-02-18 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505288', 'tblTempUsageDetail_20' ) start [2025-02-18 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505288', 'tblTempUsageDetail_20' ) end [2025-02-18 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:46:23] Production.INFO: ==23638== Releasing lock... [2025-02-18 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:46:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-18 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:47:05 [end_date_ymd] => 2025-02-18 19:47:05 [RateCDR] => 1 ) [2025-02-18 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:47:05' and `end` < '2025-02-18 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:47:18] Production.INFO: count ==2575 [2025-02-18 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-18 16:47:05 - End Time 2025-02-18 19:47:05 [2025-02-18 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505293', 'tblTempUsageDetail_20' ) start [2025-02-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505293', 'tblTempUsageDetail_20' ) end [2025-02-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505293', 'tblTempVendorCDR_20' ) start [2025-02-18 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505293', 'tblTempVendorCDR_20' ) end [2025-02-18 19:47:19] Production.INFO: ProcessCDR(1,14505293,1,1,2) [2025-02-18 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505293', 'tblTempUsageDetail_20' ) start [2025-02-18 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505293', 'tblTempUsageDetail_20' ) end [2025-02-18 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:47:22] Production.INFO: ==23792== Releasing lock... [2025-02-18 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:47:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-18 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:48:05 [end_date_ymd] => 2025-02-18 19:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:48:05' and `end` < '2025-02-18 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-18 19:48:17] Production.INFO: count ==2535 [2025-02-18 19:48:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:48:05 - End Time 2025-02-18 19:48:05 [2025-02-18 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505298', 'tblTempUsageDetail_20' ) start [2025-02-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505298', 'tblTempUsageDetail_20' ) end [2025-02-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505298', 'tblTempVendorCDR_20' ) start [2025-02-18 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505298', 'tblTempVendorCDR_20' ) end [2025-02-18 19:48:18] Production.INFO: ProcessCDR(1,14505298,1,1,2) [2025-02-18 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505298', 'tblTempUsageDetail_20' ) start [2025-02-18 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505298', 'tblTempUsageDetail_20' ) end [2025-02-18 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:48:22] Production.INFO: ==23949== Releasing lock... [2025-02-18 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:48:22] Production.INFO: 47 MB #Memory Used# [2025-02-18 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:49:05 [end_date_ymd] => 2025-02-18 19:49:05 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:49:05' and `end` < '2025-02-18 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-18 19:49:18] Production.INFO: count ==2533 [2025-02-18 19:49:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:49:05 - End Time 2025-02-18 19:49:05 [2025-02-18 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505303', 'tblTempUsageDetail_20' ) start [2025-02-18 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505303', 'tblTempUsageDetail_20' ) end [2025-02-18 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505303', 'tblTempVendorCDR_20' ) start [2025-02-18 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505303', 'tblTempVendorCDR_20' ) end [2025-02-18 19:49:18] Production.INFO: ProcessCDR(1,14505303,1,1,2) [2025-02-18 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505303', 'tblTempUsageDetail_20' ) start [2025-02-18 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505303', 'tblTempUsageDetail_20' ) end [2025-02-18 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:49:22] Production.INFO: ==24118== Releasing lock... [2025-02-18 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:49:22] Production.INFO: 47 MB #Memory Used# [2025-02-18 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:50:05 [end_date_ymd] => 2025-02-18 19:50:05 [RateCDR] => 1 ) [2025-02-18 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:50:05' and `end` < '2025-02-18 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:50:18] Production.INFO: count ==2528 [2025-02-18 19:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:50:05 - End Time 2025-02-18 19:50:05 [2025-02-18 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505308', 'tblTempUsageDetail_20' ) start [2025-02-18 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505308', 'tblTempUsageDetail_20' ) end [2025-02-18 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505308', 'tblTempVendorCDR_20' ) start [2025-02-18 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505308', 'tblTempVendorCDR_20' ) end [2025-02-18 19:50:19] Production.INFO: ProcessCDR(1,14505308,1,1,2) [2025-02-18 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505308', 'tblTempUsageDetail_20' ) start [2025-02-18 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505308', 'tblTempUsageDetail_20' ) end [2025-02-18 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:50:23] Production.INFO: ==24280== Releasing lock... [2025-02-18 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:50:23] Production.INFO: 47 MB #Memory Used# [2025-02-18 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:51:05 [end_date_ymd] => 2025-02-18 19:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:51:05' and `end` < '2025-02-18 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-18 19:51:17] Production.INFO: count ==2494 [2025-02-18 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:51:05 - End Time 2025-02-18 19:51:05 [2025-02-18 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505314', 'tblTempUsageDetail_20' ) start [2025-02-18 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505314', 'tblTempUsageDetail_20' ) end [2025-02-18 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505314', 'tblTempVendorCDR_20' ) start [2025-02-18 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505314', 'tblTempVendorCDR_20' ) end [2025-02-18 19:51:18] Production.INFO: ProcessCDR(1,14505314,1,1,2) [2025-02-18 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505314', 'tblTempUsageDetail_20' ) start [2025-02-18 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505314', 'tblTempUsageDetail_20' ) end [2025-02-18 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:51:23] Production.INFO: ==24437== Releasing lock... [2025-02-18 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:51:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-18 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:52:05 [end_date_ymd] => 2025-02-18 19:52:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:52:05' and `end` < '2025-02-18 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-18 19:52:17] Production.INFO: count ==2502 [2025-02-18 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:52:05 - End Time 2025-02-18 19:52:05 [2025-02-18 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505319', 'tblTempUsageDetail_20' ) start [2025-02-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505319', 'tblTempUsageDetail_20' ) end [2025-02-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505319', 'tblTempVendorCDR_20' ) start [2025-02-18 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505319', 'tblTempVendorCDR_20' ) end [2025-02-18 19:52:18] Production.INFO: ProcessCDR(1,14505319,1,1,2) [2025-02-18 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505319', 'tblTempUsageDetail_20' ) start [2025-02-18 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505319', 'tblTempUsageDetail_20' ) end [2025-02-18 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:52:23] Production.INFO: ==24591== Releasing lock... [2025-02-18 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:52:23] Production.INFO: 47 MB #Memory Used# [2025-02-18 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:53:05 [end_date_ymd] => 2025-02-18 19:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:53:05' and `end` < '2025-02-18 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-18 19:53:17] Production.INFO: count ==2478 [2025-02-18 19:53:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:53:05 - End Time 2025-02-18 19:53:05 [2025-02-18 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505324', 'tblTempUsageDetail_20' ) start [2025-02-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505324', 'tblTempUsageDetail_20' ) end [2025-02-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505324', 'tblTempVendorCDR_20' ) start [2025-02-18 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505324', 'tblTempVendorCDR_20' ) end [2025-02-18 19:53:18] Production.INFO: ProcessCDR(1,14505324,1,1,2) [2025-02-18 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505324', 'tblTempUsageDetail_20' ) start [2025-02-18 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505324', 'tblTempUsageDetail_20' ) end [2025-02-18 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:53:21] Production.INFO: ==24751== Releasing lock... [2025-02-18 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:53:21] Production.INFO: 46.75 MB #Memory Used# [2025-02-18 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:54:05 [end_date_ymd] => 2025-02-18 19:54:05 [RateCDR] => 1 ) [2025-02-18 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:54:05' and `end` < '2025-02-18 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:54:17] Production.INFO: count ==2469 [2025-02-18 19:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 16:54:05 - End Time 2025-02-18 19:54:05 [2025-02-18 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505329', 'tblTempUsageDetail_20' ) start [2025-02-18 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505329', 'tblTempUsageDetail_20' ) end [2025-02-18 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505329', 'tblTempVendorCDR_20' ) start [2025-02-18 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505329', 'tblTempVendorCDR_20' ) end [2025-02-18 19:54:18] Production.INFO: ProcessCDR(1,14505329,1,1,2) [2025-02-18 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505329', 'tblTempUsageDetail_20' ) start [2025-02-18 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505329', 'tblTempUsageDetail_20' ) end [2025-02-18 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:54:21] Production.INFO: ==24913== Releasing lock... [2025-02-18 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:54:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-18 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:55:06 [end_date_ymd] => 2025-02-18 19:55:06 [RateCDR] => 1 ) [2025-02-18 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:55:06' and `end` < '2025-02-18 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:55:18] Production.INFO: count ==2472 [2025-02-18 19:55:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:55:06 - End Time 2025-02-18 19:55:06 [2025-02-18 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505334', 'tblTempUsageDetail_20' ) start [2025-02-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505334', 'tblTempUsageDetail_20' ) end [2025-02-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505334', 'tblTempVendorCDR_20' ) start [2025-02-18 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505334', 'tblTempVendorCDR_20' ) end [2025-02-18 19:55:18] Production.INFO: ProcessCDR(1,14505334,1,1,2) [2025-02-18 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505334', 'tblTempUsageDetail_20' ) start [2025-02-18 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505334', 'tblTempUsageDetail_20' ) end [2025-02-18 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:55:23] Production.INFO: ==25082== Releasing lock... [2025-02-18 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:55:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-18 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:56:05 [end_date_ymd] => 2025-02-18 19:56:05 [RateCDR] => 1 ) [2025-02-18 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 16:56:05' and `end` < '2025-02-18 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 19:56:17] Production.INFO: count ==2459 [2025-02-18 19:56:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:56:05 - End Time 2025-02-18 19:56:05 [2025-02-18 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505339', 'tblTempUsageDetail_20' ) start [2025-02-18 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505339', 'tblTempUsageDetail_20' ) end [2025-02-18 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505339', 'tblTempVendorCDR_20' ) start [2025-02-18 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505339', 'tblTempVendorCDR_20' ) end [2025-02-18 19:56:18] Production.INFO: ProcessCDR(1,14505339,1,1,2) [2025-02-18 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505339', 'tblTempUsageDetail_20' ) start [2025-02-18 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505339', 'tblTempUsageDetail_20' ) end [2025-02-18 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:56:22] Production.INFO: ==25257== Releasing lock... [2025-02-18 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:56:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-18 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:57:05 [end_date_ymd] => 2025-02-18 19:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:57:05' and `end` < '2025-02-18 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-18 19:57:17] Production.INFO: count ==2453 [2025-02-18 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:57:05 - End Time 2025-02-18 19:57:05 [2025-02-18 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505344', 'tblTempUsageDetail_20' ) start [2025-02-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505344', 'tblTempUsageDetail_20' ) end [2025-02-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505344', 'tblTempVendorCDR_20' ) start [2025-02-18 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505344', 'tblTempVendorCDR_20' ) end [2025-02-18 19:57:18] Production.INFO: ProcessCDR(1,14505344,1,1,2) [2025-02-18 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505344', 'tblTempUsageDetail_20' ) start [2025-02-18 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505344', 'tblTempUsageDetail_20' ) end [2025-02-18 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:57:22] Production.INFO: ==25431== Releasing lock... [2025-02-18 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:57:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-18 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:58:05 [end_date_ymd] => 2025-02-18 19:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 16:58:05' and `end` < '2025-02-18 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-18 19:58:17] Production.INFO: count ==2437 [2025-02-18 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:58:05 - End Time 2025-02-18 19:58:05 [2025-02-18 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505349', 'tblTempUsageDetail_20' ) start [2025-02-18 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505349', 'tblTempUsageDetail_20' ) end [2025-02-18 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505349', 'tblTempVendorCDR_20' ) start [2025-02-18 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505349', 'tblTempVendorCDR_20' ) end [2025-02-18 19:58:18] Production.INFO: ProcessCDR(1,14505349,1,1,2) [2025-02-18 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505349', 'tblTempUsageDetail_20' ) start [2025-02-18 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505349', 'tblTempUsageDetail_20' ) end [2025-02-18 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:58:23] Production.INFO: ==25610== Releasing lock... [2025-02-18 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:58:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-18 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 16:59:06 [end_date_ymd] => 2025-02-18 19:59:06 [RateCDR] => 1 ) [2025-02-18 19: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-18 16:59:06' and `end` < '2025-02-18 19: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-18 19:59:18] Production.INFO: count ==2434 [2025-02-18 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-18 16:59:06 - End Time 2025-02-18 19:59:06 [2025-02-18 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505354', 'tblTempUsageDetail_20' ) start [2025-02-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505354', 'tblTempUsageDetail_20' ) end [2025-02-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505354', 'tblTempVendorCDR_20' ) start [2025-02-18 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505354', 'tblTempVendorCDR_20' ) end [2025-02-18 19:59:19] Production.INFO: ProcessCDR(1,14505354,1,1,2) [2025-02-18 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505354', 'tblTempUsageDetail_20' ) start [2025-02-18 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505354', 'tblTempUsageDetail_20' ) end [2025-02-18 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 19:59:24] Production.INFO: ==25796== Releasing lock... [2025-02-18 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 19:59:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-18 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:00:05 [end_date_ymd] => 2025-02-18 20:00:05 [RateCDR] => 1 ) [2025-02-18 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:00:05' and `end` < '2025-02-18 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:00:17] Production.INFO: count ==2427 [2025-02-18 20:00:19] Production.ERROR: pbx CDR StartTime 2025-02-18 17:00:05 - End Time 2025-02-18 20:00:05 [2025-02-18 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505359', 'tblTempUsageDetail_20' ) start [2025-02-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505359', 'tblTempUsageDetail_20' ) end [2025-02-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505359', 'tblTempVendorCDR_20' ) start [2025-02-18 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505359', 'tblTempVendorCDR_20' ) end [2025-02-18 20:00:19] Production.INFO: ProcessCDR(1,14505359,1,1,2) [2025-02-18 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505359', 'tblTempUsageDetail_20' ) start [2025-02-18 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505359', 'tblTempUsageDetail_20' ) end [2025-02-18 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:00:22] Production.INFO: ==25974== Releasing lock... [2025-02-18 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:00:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-18 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:01:05 [end_date_ymd] => 2025-02-18 20:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:01:05' and `end` < '2025-02-18 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-18 20:01:17] Production.INFO: count ==2390 [2025-02-18 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:01:05 - End Time 2025-02-18 20:01:05 [2025-02-18 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505365', 'tblTempUsageDetail_20' ) start [2025-02-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505365', 'tblTempUsageDetail_20' ) end [2025-02-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505365', 'tblTempVendorCDR_20' ) start [2025-02-18 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505365', 'tblTempVendorCDR_20' ) end [2025-02-18 20:01:18] Production.INFO: ProcessCDR(1,14505365,1,1,2) [2025-02-18 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505365', 'tblTempUsageDetail_20' ) start [2025-02-18 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505365', 'tblTempUsageDetail_20' ) end [2025-02-18 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:01:23] Production.INFO: ==26244== Releasing lock... [2025-02-18 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:01:23] Production.INFO: 46 MB #Memory Used# [2025-02-18 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:02:05 [end_date_ymd] => 2025-02-18 20:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:02:05' and `end` < '2025-02-18 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-18 20:02:17] Production.INFO: count ==2383 [2025-02-18 20:02:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:02:05 - End Time 2025-02-18 20:02:05 [2025-02-18 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505370', 'tblTempUsageDetail_20' ) start [2025-02-18 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505370', 'tblTempUsageDetail_20' ) end [2025-02-18 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505370', 'tblTempVendorCDR_20' ) start [2025-02-18 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505370', 'tblTempVendorCDR_20' ) end [2025-02-18 20:02:18] Production.INFO: ProcessCDR(1,14505370,1,1,2) [2025-02-18 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505370', 'tblTempUsageDetail_20' ) start [2025-02-18 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505370', 'tblTempUsageDetail_20' ) end [2025-02-18 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:02:21] Production.INFO: ==26421== Releasing lock... [2025-02-18 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:02:21] Production.INFO: 46 MB #Memory Used# [2025-02-18 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:03:05 [end_date_ymd] => 2025-02-18 20:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:03:05' and `end` < '2025-02-18 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-18 20:03:17] Production.INFO: count ==2348 [2025-02-18 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:03:05 - End Time 2025-02-18 20:03:05 [2025-02-18 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505375', 'tblTempUsageDetail_20' ) start [2025-02-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505375', 'tblTempUsageDetail_20' ) end [2025-02-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505375', 'tblTempVendorCDR_20' ) start [2025-02-18 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505375', 'tblTempVendorCDR_20' ) end [2025-02-18 20:03:18] Production.INFO: ProcessCDR(1,14505375,1,1,2) [2025-02-18 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505375', 'tblTempUsageDetail_20' ) start [2025-02-18 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505375', 'tblTempUsageDetail_20' ) end [2025-02-18 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:03:23] Production.INFO: ==26598== Releasing lock... [2025-02-18 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:03:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-18 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:04:05 [end_date_ymd] => 2025-02-18 20:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:04:05' and `end` < '2025-02-18 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-18 20:04:17] Production.INFO: count ==2337 [2025-02-18 20:04:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:04:05 - End Time 2025-02-18 20:04:05 [2025-02-18 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505380', 'tblTempUsageDetail_20' ) start [2025-02-18 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505380', 'tblTempUsageDetail_20' ) end [2025-02-18 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505380', 'tblTempVendorCDR_20' ) start [2025-02-18 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505380', 'tblTempVendorCDR_20' ) end [2025-02-18 20:04:18] Production.INFO: ProcessCDR(1,14505380,1,1,2) [2025-02-18 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505380', 'tblTempUsageDetail_20' ) start [2025-02-18 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505380', 'tblTempUsageDetail_20' ) end [2025-02-18 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:04:21] Production.INFO: ==26776== Releasing lock... [2025-02-18 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:04:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-18 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:05:06 [end_date_ymd] => 2025-02-18 20:05:06 [RateCDR] => 1 ) [2025-02-18 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:05:06' and `end` < '2025-02-18 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:05:18] Production.INFO: count ==2301 [2025-02-18 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:05:06 - End Time 2025-02-18 20:05:06 [2025-02-18 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505385', 'tblTempUsageDetail_20' ) start [2025-02-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505385', 'tblTempUsageDetail_20' ) end [2025-02-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505385', 'tblTempVendorCDR_20' ) start [2025-02-18 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505385', 'tblTempVendorCDR_20' ) end [2025-02-18 20:05:18] Production.INFO: ProcessCDR(1,14505385,1,1,2) [2025-02-18 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505385', 'tblTempUsageDetail_20' ) start [2025-02-18 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505385', 'tblTempUsageDetail_20' ) end [2025-02-18 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:05:21] Production.INFO: ==26939== Releasing lock... [2025-02-18 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:05:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-18 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:06:04 [end_date_ymd] => 2025-02-18 20:06:04 [RateCDR] => 1 ) [2025-02-18 20: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-18 17:06:04' and `end` < '2025-02-18 20: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-18 20:06:16] Production.INFO: count ==2279 [2025-02-18 20:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:06:04 - End Time 2025-02-18 20:06:04 [2025-02-18 20:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505390', 'tblTempUsageDetail_20' ) start [2025-02-18 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505390', 'tblTempUsageDetail_20' ) end [2025-02-18 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505390', 'tblTempVendorCDR_20' ) start [2025-02-18 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505390', 'tblTempVendorCDR_20' ) end [2025-02-18 20:06:17] Production.INFO: ProcessCDR(1,14505390,1,1,2) [2025-02-18 20:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505390', 'tblTempUsageDetail_20' ) start [2025-02-18 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505390', 'tblTempUsageDetail_20' ) end [2025-02-18 20:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:06:20] Production.INFO: ==27055== Releasing lock... [2025-02-18 20:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:06:20] Production.INFO: 45.25 MB #Memory Used# [2025-02-18 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:07:05 [end_date_ymd] => 2025-02-18 20:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:07:05' and `end` < '2025-02-18 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-18 20:07:17] Production.INFO: count ==2248 [2025-02-18 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:07:05 - End Time 2025-02-18 20:07:05 [2025-02-18 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505395', 'tblTempUsageDetail_20' ) start [2025-02-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505395', 'tblTempUsageDetail_20' ) end [2025-02-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505395', 'tblTempVendorCDR_20' ) start [2025-02-18 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505395', 'tblTempVendorCDR_20' ) end [2025-02-18 20:07:18] Production.INFO: ProcessCDR(1,14505395,1,1,2) [2025-02-18 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505395', 'tblTempUsageDetail_20' ) start [2025-02-18 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505395', 'tblTempUsageDetail_20' ) end [2025-02-18 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:07:22] Production.INFO: ==27141== Releasing lock... [2025-02-18 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:07:22] Production.INFO: 45 MB #Memory Used# [2025-02-18 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:08:05 [end_date_ymd] => 2025-02-18 20:08:05 [RateCDR] => 1 ) [2025-02-18 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:08:05' and `end` < '2025-02-18 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:08:17] Production.INFO: count ==2231 [2025-02-18 20:08:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:08:05 - End Time 2025-02-18 20:08:05 [2025-02-18 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505400', 'tblTempUsageDetail_20' ) start [2025-02-18 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505400', 'tblTempUsageDetail_20' ) end [2025-02-18 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505400', 'tblTempVendorCDR_20' ) start [2025-02-18 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505400', 'tblTempVendorCDR_20' ) end [2025-02-18 20:08:18] Production.INFO: ProcessCDR(1,14505400,1,1,2) [2025-02-18 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505400', 'tblTempUsageDetail_20' ) start [2025-02-18 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505400', 'tblTempUsageDetail_20' ) end [2025-02-18 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:08:21] Production.INFO: ==27228== Releasing lock... [2025-02-18 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:08:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-18 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:09:05 [end_date_ymd] => 2025-02-18 20:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:09:05' and `end` < '2025-02-18 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-18 20:09:17] Production.INFO: count ==2227 [2025-02-18 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:09:05 - End Time 2025-02-18 20:09:05 [2025-02-18 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505405', 'tblTempUsageDetail_20' ) start [2025-02-18 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505405', 'tblTempUsageDetail_20' ) end [2025-02-18 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505405', 'tblTempVendorCDR_20' ) start [2025-02-18 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505405', 'tblTempVendorCDR_20' ) end [2025-02-18 20:09:18] Production.INFO: ProcessCDR(1,14505405,1,1,2) [2025-02-18 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505405', 'tblTempUsageDetail_20' ) start [2025-02-18 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505405', 'tblTempUsageDetail_20' ) end [2025-02-18 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:09:21] Production.INFO: ==27313== Releasing lock... [2025-02-18 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:09:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-18 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:10:06 [end_date_ymd] => 2025-02-18 20:10:06 [RateCDR] => 1 ) [2025-02-18 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:10:06' and `end` < '2025-02-18 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:10:18] Production.INFO: count ==2223 [2025-02-18 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-18 17:10:06 - End Time 2025-02-18 20:10:06 [2025-02-18 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505411', 'tblTempUsageDetail_20' ) start [2025-02-18 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505411', 'tblTempUsageDetail_20' ) end [2025-02-18 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505411', 'tblTempVendorCDR_20' ) start [2025-02-18 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505411', 'tblTempVendorCDR_20' ) end [2025-02-18 20:10:19] Production.INFO: ProcessCDR(1,14505411,1,1,2) [2025-02-18 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505411', 'tblTempUsageDetail_20' ) start [2025-02-18 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505411', 'tblTempUsageDetail_20' ) end [2025-02-18 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:10:24] Production.INFO: ==27406== Releasing lock... [2025-02-18 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:10:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-18 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:11:05 [end_date_ymd] => 2025-02-18 20:11:05 [RateCDR] => 1 ) [2025-02-18 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:11:05' and `end` < '2025-02-18 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:11:17] Production.INFO: count ==2133 [2025-02-18 20:11:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:11:05 - End Time 2025-02-18 20:11:05 [2025-02-18 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505416', 'tblTempUsageDetail_20' ) start [2025-02-18 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505416', 'tblTempUsageDetail_20' ) end [2025-02-18 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505416', 'tblTempVendorCDR_20' ) start [2025-02-18 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505416', 'tblTempVendorCDR_20' ) end [2025-02-18 20:11:18] Production.INFO: ProcessCDR(1,14505416,1,1,2) [2025-02-18 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505416', 'tblTempUsageDetail_20' ) start [2025-02-18 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505416', 'tblTempUsageDetail_20' ) end [2025-02-18 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:11:21] Production.INFO: ==27491== Releasing lock... [2025-02-18 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:11:21] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:12:05 [end_date_ymd] => 2025-02-18 20:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:12:05' and `end` < '2025-02-18 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-18 20:12:17] Production.INFO: count ==2117 [2025-02-18 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:12:05 - End Time 2025-02-18 20:12:05 [2025-02-18 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505421', 'tblTempUsageDetail_20' ) start [2025-02-18 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505421', 'tblTempUsageDetail_20' ) end [2025-02-18 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505421', 'tblTempVendorCDR_20' ) start [2025-02-18 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505421', 'tblTempVendorCDR_20' ) end [2025-02-18 20:12:18] Production.INFO: ProcessCDR(1,14505421,1,1,2) [2025-02-18 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505421', 'tblTempUsageDetail_20' ) start [2025-02-18 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505421', 'tblTempUsageDetail_20' ) end [2025-02-18 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:12:21] Production.INFO: ==27576== Releasing lock... [2025-02-18 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:12:21] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:13:05 [end_date_ymd] => 2025-02-18 20:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:13:05' and `end` < '2025-02-18 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-18 20:13:17] Production.INFO: count ==2110 [2025-02-18 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:13:05 - End Time 2025-02-18 20:13:05 [2025-02-18 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505426', 'tblTempUsageDetail_20' ) start [2025-02-18 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505426', 'tblTempUsageDetail_20' ) end [2025-02-18 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505426', 'tblTempVendorCDR_20' ) start [2025-02-18 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505426', 'tblTempVendorCDR_20' ) end [2025-02-18 20:13:18] Production.INFO: ProcessCDR(1,14505426,1,1,2) [2025-02-18 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505426', 'tblTempUsageDetail_20' ) start [2025-02-18 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505426', 'tblTempUsageDetail_20' ) end [2025-02-18 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:13:21] Production.INFO: ==27664== Releasing lock... [2025-02-18 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:13:21] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:14:06 [end_date_ymd] => 2025-02-18 20:14:06 [RateCDR] => 1 ) [2025-02-18 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:14:06' and `end` < '2025-02-18 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:14:18] Production.INFO: count ==2111 [2025-02-18 20:14:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:14:06 - End Time 2025-02-18 20:14:06 [2025-02-18 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505431', 'tblTempUsageDetail_20' ) start [2025-02-18 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505431', 'tblTempUsageDetail_20' ) end [2025-02-18 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505431', 'tblTempVendorCDR_20' ) start [2025-02-18 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505431', 'tblTempVendorCDR_20' ) end [2025-02-18 20:14:18] Production.INFO: ProcessCDR(1,14505431,1,1,2) [2025-02-18 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505431', 'tblTempUsageDetail_20' ) start [2025-02-18 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505431', 'tblTempUsageDetail_20' ) end [2025-02-18 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:14:22] Production.INFO: ==27745== Releasing lock... [2025-02-18 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:14:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-18 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:15:05 [end_date_ymd] => 2025-02-18 20:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:15:05' and `end` < '2025-02-18 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-18 20:15:17] Production.INFO: count ==2111 [2025-02-18 20:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:15:05 - End Time 2025-02-18 20:15:05 [2025-02-18 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505436', 'tblTempUsageDetail_20' ) start [2025-02-18 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505436', 'tblTempUsageDetail_20' ) end [2025-02-18 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505436', 'tblTempVendorCDR_20' ) start [2025-02-18 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505436', 'tblTempVendorCDR_20' ) end [2025-02-18 20:15:17] Production.INFO: ProcessCDR(1,14505436,1,1,2) [2025-02-18 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505436', 'tblTempUsageDetail_20' ) start [2025-02-18 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505436', 'tblTempUsageDetail_20' ) end [2025-02-18 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:15:21] Production.INFO: ==27838== Releasing lock... [2025-02-18 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:15:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-18 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:16:05 [end_date_ymd] => 2025-02-18 20:16:05 [RateCDR] => 1 ) [2025-02-18 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:16:05' and `end` < '2025-02-18 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:16:17] Production.INFO: count ==2110 [2025-02-18 20:16:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:16:05 - End Time 2025-02-18 20:16:05 [2025-02-18 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505441', 'tblTempUsageDetail_20' ) start [2025-02-18 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505441', 'tblTempUsageDetail_20' ) end [2025-02-18 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505441', 'tblTempVendorCDR_20' ) start [2025-02-18 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505441', 'tblTempVendorCDR_20' ) end [2025-02-18 20:16:18] Production.INFO: ProcessCDR(1,14505441,1,1,2) [2025-02-18 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505441', 'tblTempUsageDetail_20' ) start [2025-02-18 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505441', 'tblTempUsageDetail_20' ) end [2025-02-18 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:16:21] Production.INFO: ==27922== Releasing lock... [2025-02-18 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:16:21] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:17:05 [end_date_ymd] => 2025-02-18 20:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:17:05' and `end` < '2025-02-18 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-18 20:17:17] Production.INFO: count ==2109 [2025-02-18 20:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:17:05 - End Time 2025-02-18 20:17:05 [2025-02-18 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505446', 'tblTempUsageDetail_20' ) start [2025-02-18 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505446', 'tblTempUsageDetail_20' ) end [2025-02-18 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505446', 'tblTempVendorCDR_20' ) start [2025-02-18 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505446', 'tblTempVendorCDR_20' ) end [2025-02-18 20:17:17] Production.INFO: ProcessCDR(1,14505446,1,1,2) [2025-02-18 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505446', 'tblTempUsageDetail_20' ) start [2025-02-18 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505446', 'tblTempUsageDetail_20' ) end [2025-02-18 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:17:21] Production.INFO: ==28048== Releasing lock... [2025-02-18 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:17:21] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:18:05 [end_date_ymd] => 2025-02-18 20:18:05 [RateCDR] => 1 ) [2025-02-18 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:18:05' and `end` < '2025-02-18 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:18:17] Production.INFO: count ==2111 [2025-02-18 20:18:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:18:05 - End Time 2025-02-18 20:18:05 [2025-02-18 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505451', 'tblTempUsageDetail_20' ) start [2025-02-18 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505451', 'tblTempUsageDetail_20' ) end [2025-02-18 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505451', 'tblTempVendorCDR_20' ) start [2025-02-18 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505451', 'tblTempVendorCDR_20' ) end [2025-02-18 20:18:18] Production.INFO: ProcessCDR(1,14505451,1,1,2) [2025-02-18 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505451', 'tblTempUsageDetail_20' ) start [2025-02-18 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505451', 'tblTempUsageDetail_20' ) end [2025-02-18 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:18:21] Production.INFO: ==28140== Releasing lock... [2025-02-18 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:18:21] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:19:06 [end_date_ymd] => 2025-02-18 20:19:06 [RateCDR] => 1 ) [2025-02-18 20: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-18 17:19:06' and `end` < '2025-02-18 20: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-18 20:19:18] Production.INFO: count ==2108 [2025-02-18 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-18 17:19:06 - End Time 2025-02-18 20:19:06 [2025-02-18 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505456', 'tblTempUsageDetail_20' ) start [2025-02-18 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505456', 'tblTempUsageDetail_20' ) end [2025-02-18 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505456', 'tblTempVendorCDR_20' ) start [2025-02-18 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505456', 'tblTempVendorCDR_20' ) end [2025-02-18 20:19:19] Production.INFO: ProcessCDR(1,14505456,1,1,2) [2025-02-18 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505456', 'tblTempUsageDetail_20' ) start [2025-02-18 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505456', 'tblTempUsageDetail_20' ) end [2025-02-18 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:19:22] Production.INFO: ==28224== Releasing lock... [2025-02-18 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:19:22] Production.INFO: 44 MB #Memory Used# [2025-02-18 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:20:06 [end_date_ymd] => 2025-02-18 20:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 17:20:06' and `end` < '2025-02-18 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-18 20:20:18] Production.INFO: count ==2100 [2025-02-18 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-18 17:20:06 - End Time 2025-02-18 20:20:06 [2025-02-18 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505462', 'tblTempUsageDetail_20' ) start [2025-02-18 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505462', 'tblTempUsageDetail_20' ) end [2025-02-18 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505462', 'tblTempVendorCDR_20' ) start [2025-02-18 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505462', 'tblTempVendorCDR_20' ) end [2025-02-18 20:20:19] Production.INFO: ProcessCDR(1,14505462,1,1,2) [2025-02-18 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505462', 'tblTempUsageDetail_20' ) start [2025-02-18 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505462', 'tblTempUsageDetail_20' ) end [2025-02-18 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:20:22] Production.INFO: ==28310== Releasing lock... [2025-02-18 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:20:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-18 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:21:06 [end_date_ymd] => 2025-02-18 20:21:06 [RateCDR] => 1 ) [2025-02-18 20: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-18 17:21:06' and `end` < '2025-02-18 20: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-18 20:21:18] Production.INFO: count ==2044 [2025-02-18 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:21:06 - End Time 2025-02-18 20:21:06 [2025-02-18 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505467', 'tblTempUsageDetail_20' ) start [2025-02-18 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505467', 'tblTempUsageDetail_20' ) end [2025-02-18 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505467', 'tblTempVendorCDR_20' ) start [2025-02-18 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505467', 'tblTempVendorCDR_20' ) end [2025-02-18 20:21:18] Production.INFO: ProcessCDR(1,14505467,1,1,2) [2025-02-18 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505467', 'tblTempUsageDetail_20' ) start [2025-02-18 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505467', 'tblTempUsageDetail_20' ) end [2025-02-18 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:21:22] Production.INFO: ==28397== Releasing lock... [2025-02-18 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:21:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-18 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:22:05 [end_date_ymd] => 2025-02-18 20:22:05 [RateCDR] => 1 ) [2025-02-18 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:22:05' and `end` < '2025-02-18 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:22:17] Production.INFO: count ==2041 [2025-02-18 20:22:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:22:05 - End Time 2025-02-18 20:22:05 [2025-02-18 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505472', 'tblTempUsageDetail_20' ) start [2025-02-18 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505472', 'tblTempUsageDetail_20' ) end [2025-02-18 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505472', 'tblTempVendorCDR_20' ) start [2025-02-18 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505472', 'tblTempVendorCDR_20' ) end [2025-02-18 20:22:18] Production.INFO: ProcessCDR(1,14505472,1,1,2) [2025-02-18 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505472', 'tblTempUsageDetail_20' ) start [2025-02-18 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505472', 'tblTempUsageDetail_20' ) end [2025-02-18 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:22:21] Production.INFO: ==28476== Releasing lock... [2025-02-18 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:22:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-18 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:23:05 [end_date_ymd] => 2025-02-18 20:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:23:05' and `end` < '2025-02-18 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-18 20:23:17] Production.INFO: count ==2038 [2025-02-18 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:23:05 - End Time 2025-02-18 20:23:05 [2025-02-18 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505477', 'tblTempUsageDetail_20' ) start [2025-02-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505477', 'tblTempUsageDetail_20' ) end [2025-02-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505477', 'tblTempVendorCDR_20' ) start [2025-02-18 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505477', 'tblTempVendorCDR_20' ) end [2025-02-18 20:23:18] Production.INFO: ProcessCDR(1,14505477,1,1,2) [2025-02-18 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505477', 'tblTempUsageDetail_20' ) start [2025-02-18 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505477', 'tblTempUsageDetail_20' ) end [2025-02-18 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:23:23] Production.INFO: ==28561== Releasing lock... [2025-02-18 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:23:23] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:24:05 [end_date_ymd] => 2025-02-18 20:24:05 [RateCDR] => 1 ) [2025-02-18 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:24:05' and `end` < '2025-02-18 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:24:17] Production.INFO: count ==2037 [2025-02-18 20:24:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:24:05 - End Time 2025-02-18 20:24:05 [2025-02-18 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505482', 'tblTempUsageDetail_20' ) start [2025-02-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505482', 'tblTempUsageDetail_20' ) end [2025-02-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505482', 'tblTempVendorCDR_20' ) start [2025-02-18 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505482', 'tblTempVendorCDR_20' ) end [2025-02-18 20:24:18] Production.INFO: ProcessCDR(1,14505482,1,1,2) [2025-02-18 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505482', 'tblTempUsageDetail_20' ) start [2025-02-18 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505482', 'tblTempUsageDetail_20' ) end [2025-02-18 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:24:21] Production.INFO: ==28649== Releasing lock... [2025-02-18 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:24:21] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:25:06 [end_date_ymd] => 2025-02-18 20:25:06 [RateCDR] => 1 ) [2025-02-18 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:25:06' and `end` < '2025-02-18 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:25:18] Production.INFO: count ==2031 [2025-02-18 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:25:06 - End Time 2025-02-18 20:25:06 [2025-02-18 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505487', 'tblTempUsageDetail_20' ) start [2025-02-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505487', 'tblTempUsageDetail_20' ) end [2025-02-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505487', 'tblTempVendorCDR_20' ) start [2025-02-18 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505487', 'tblTempVendorCDR_20' ) end [2025-02-18 20:25:18] Production.INFO: ProcessCDR(1,14505487,1,1,2) [2025-02-18 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505487', 'tblTempUsageDetail_20' ) start [2025-02-18 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505487', 'tblTempUsageDetail_20' ) end [2025-02-18 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:25:21] Production.INFO: ==28735== Releasing lock... [2025-02-18 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:25:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-18 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:26:05 [end_date_ymd] => 2025-02-18 20:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:26:05' and `end` < '2025-02-18 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-18 20:26:17] Production.INFO: count ==2026 [2025-02-18 20:26:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:26:05 - End Time 2025-02-18 20:26:05 [2025-02-18 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505492', 'tblTempUsageDetail_20' ) start [2025-02-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505492', 'tblTempUsageDetail_20' ) end [2025-02-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505492', 'tblTempVendorCDR_20' ) start [2025-02-18 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505492', 'tblTempVendorCDR_20' ) end [2025-02-18 20:26:18] Production.INFO: ProcessCDR(1,14505492,1,1,2) [2025-02-18 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505492', 'tblTempUsageDetail_20' ) start [2025-02-18 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505492', 'tblTempUsageDetail_20' ) end [2025-02-18 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:26:21] Production.INFO: ==28821== Releasing lock... [2025-02-18 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:26:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-18 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:27:06 [end_date_ymd] => 2025-02-18 20:27:06 [RateCDR] => 1 ) [2025-02-18 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:27:06' and `end` < '2025-02-18 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:27:18] Production.INFO: count ==2021 [2025-02-18 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:27:06 - End Time 2025-02-18 20:27:06 [2025-02-18 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505497', 'tblTempUsageDetail_20' ) start [2025-02-18 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505497', 'tblTempUsageDetail_20' ) end [2025-02-18 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505497', 'tblTempVendorCDR_20' ) start [2025-02-18 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505497', 'tblTempVendorCDR_20' ) end [2025-02-18 20:27:18] Production.INFO: ProcessCDR(1,14505497,1,1,2) [2025-02-18 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505497', 'tblTempUsageDetail_20' ) start [2025-02-18 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505497', 'tblTempUsageDetail_20' ) end [2025-02-18 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:27:22] Production.INFO: ==28912== Releasing lock... [2025-02-18 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:27:22] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:28:05 [end_date_ymd] => 2025-02-18 20:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:28:05' and `end` < '2025-02-18 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-18 20:28:17] Production.INFO: count ==2018 [2025-02-18 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:28:05 - End Time 2025-02-18 20:28:05 [2025-02-18 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505502', 'tblTempUsageDetail_20' ) start [2025-02-18 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505502', 'tblTempUsageDetail_20' ) end [2025-02-18 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505502', 'tblTempVendorCDR_20' ) start [2025-02-18 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505502', 'tblTempVendorCDR_20' ) end [2025-02-18 20:28:18] Production.INFO: ProcessCDR(1,14505502,1,1,2) [2025-02-18 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505502', 'tblTempUsageDetail_20' ) start [2025-02-18 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505502', 'tblTempUsageDetail_20' ) end [2025-02-18 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:28:21] Production.INFO: ==29001== Releasing lock... [2025-02-18 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:28:21] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:29:05 [end_date_ymd] => 2025-02-18 20:29:05 [RateCDR] => 1 ) [2025-02-18 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:29:05' and `end` < '2025-02-18 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:29:17] Production.INFO: count ==2015 [2025-02-18 20:29:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:29:05 - End Time 2025-02-18 20:29:05 [2025-02-18 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505507', 'tblTempUsageDetail_20' ) start [2025-02-18 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505507', 'tblTempUsageDetail_20' ) end [2025-02-18 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505507', 'tblTempVendorCDR_20' ) start [2025-02-18 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505507', 'tblTempVendorCDR_20' ) end [2025-02-18 20:29:18] Production.INFO: ProcessCDR(1,14505507,1,1,2) [2025-02-18 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505507', 'tblTempUsageDetail_20' ) start [2025-02-18 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505507', 'tblTempUsageDetail_20' ) end [2025-02-18 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:29:21] Production.INFO: ==29093== Releasing lock... [2025-02-18 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:29:21] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:30:05 [end_date_ymd] => 2025-02-18 20:30:05 [RateCDR] => 1 ) [2025-02-18 20: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-18 17:30:05' and `end` < '2025-02-18 20: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-18 20:30:17] Production.INFO: count ==2011 [2025-02-18 20:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:30:05 - End Time 2025-02-18 20:30:05 [2025-02-18 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505512', 'tblTempUsageDetail_20' ) start [2025-02-18 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505512', 'tblTempUsageDetail_20' ) end [2025-02-18 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505512', 'tblTempVendorCDR_20' ) start [2025-02-18 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505512', 'tblTempVendorCDR_20' ) end [2025-02-18 20:30:18] Production.INFO: ProcessCDR(1,14505512,1,1,2) [2025-02-18 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505512', 'tblTempUsageDetail_20' ) start [2025-02-18 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505512', 'tblTempUsageDetail_20' ) end [2025-02-18 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:30:22] Production.INFO: ==29181== Releasing lock... [2025-02-18 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:30:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-18 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:31:05 [end_date_ymd] => 2025-02-18 20:31:05 [RateCDR] => 1 ) [2025-02-18 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:31:05' and `end` < '2025-02-18 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:31:17] Production.INFO: count ==1987 [2025-02-18 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:31:05 - End Time 2025-02-18 20:31:05 [2025-02-18 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505518', 'tblTempUsageDetail_20' ) start [2025-02-18 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505518', 'tblTempUsageDetail_20' ) end [2025-02-18 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505518', 'tblTempVendorCDR_20' ) start [2025-02-18 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505518', 'tblTempVendorCDR_20' ) end [2025-02-18 20:31:18] Production.INFO: ProcessCDR(1,14505518,1,1,2) [2025-02-18 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505518', 'tblTempUsageDetail_20' ) start [2025-02-18 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505518', 'tblTempUsageDetail_20' ) end [2025-02-18 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:31:23] Production.INFO: ==29272== Releasing lock... [2025-02-18 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:31:23] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:32:05 [end_date_ymd] => 2025-02-18 20:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:32:05' and `end` < '2025-02-18 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-18 20:32:17] Production.INFO: count ==1993 [2025-02-18 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:32:05 - End Time 2025-02-18 20:32:05 [2025-02-18 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505523', 'tblTempUsageDetail_20' ) start [2025-02-18 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505523', 'tblTempUsageDetail_20' ) end [2025-02-18 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505523', 'tblTempVendorCDR_20' ) start [2025-02-18 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505523', 'tblTempVendorCDR_20' ) end [2025-02-18 20:32:18] Production.INFO: ProcessCDR(1,14505523,1,1,2) [2025-02-18 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505523', 'tblTempUsageDetail_20' ) start [2025-02-18 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505523', 'tblTempUsageDetail_20' ) end [2025-02-18 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:32:22] Production.INFO: ==29400== Releasing lock... [2025-02-18 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:32:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:33:05 [end_date_ymd] => 2025-02-18 20:33:05 [RateCDR] => 1 ) [2025-02-18 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:33:05' and `end` < '2025-02-18 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:33:17] Production.INFO: count ==1993 [2025-02-18 20:33:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:33:05 - End Time 2025-02-18 20:33:05 [2025-02-18 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505528', 'tblTempUsageDetail_20' ) start [2025-02-18 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505528', 'tblTempUsageDetail_20' ) end [2025-02-18 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505528', 'tblTempVendorCDR_20' ) start [2025-02-18 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505528', 'tblTempVendorCDR_20' ) end [2025-02-18 20:33:18] Production.INFO: ProcessCDR(1,14505528,1,1,2) [2025-02-18 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505528', 'tblTempUsageDetail_20' ) start [2025-02-18 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505528', 'tblTempUsageDetail_20' ) end [2025-02-18 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:33:21] Production.INFO: ==29489== Releasing lock... [2025-02-18 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:33:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:34:05 [end_date_ymd] => 2025-02-18 20:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:34:05' and `end` < '2025-02-18 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-18 20:34:17] Production.INFO: count ==1989 [2025-02-18 20:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:34:05 - End Time 2025-02-18 20:34:05 [2025-02-18 20:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505533', 'tblTempUsageDetail_20' ) start [2025-02-18 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505533', 'tblTempUsageDetail_20' ) end [2025-02-18 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505533', 'tblTempVendorCDR_20' ) start [2025-02-18 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505533', 'tblTempVendorCDR_20' ) end [2025-02-18 20:34:17] Production.INFO: ProcessCDR(1,14505533,1,1,2) [2025-02-18 20:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505533', 'tblTempUsageDetail_20' ) start [2025-02-18 20:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505533', 'tblTempUsageDetail_20' ) end [2025-02-18 20:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:34:20] Production.INFO: ==29580== Releasing lock... [2025-02-18 20:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:34:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:35:05 [end_date_ymd] => 2025-02-18 20:35:05 [RateCDR] => 1 ) [2025-02-18 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:35:05' and `end` < '2025-02-18 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:35:17] Production.INFO: count ==1986 [2025-02-18 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:35:05 - End Time 2025-02-18 20:35:05 [2025-02-18 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505538', 'tblTempUsageDetail_20' ) start [2025-02-18 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505538', 'tblTempUsageDetail_20' ) end [2025-02-18 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505538', 'tblTempVendorCDR_20' ) start [2025-02-18 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505538', 'tblTempVendorCDR_20' ) end [2025-02-18 20:35:18] Production.INFO: ProcessCDR(1,14505538,1,1,2) [2025-02-18 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505538', 'tblTempUsageDetail_20' ) start [2025-02-18 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505538', 'tblTempUsageDetail_20' ) end [2025-02-18 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:35:21] Production.INFO: ==29667== Releasing lock... [2025-02-18 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:35:21] Production.INFO: 43 MB #Memory Used# [2025-02-18 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:36:05 [end_date_ymd] => 2025-02-18 20:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:36:05' and `end` < '2025-02-18 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-18 20:36:17] Production.INFO: count ==1973 [2025-02-18 20:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:36:05 - End Time 2025-02-18 20:36:05 [2025-02-18 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505543', 'tblTempUsageDetail_20' ) start [2025-02-18 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505543', 'tblTempUsageDetail_20' ) end [2025-02-18 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505543', 'tblTempVendorCDR_20' ) start [2025-02-18 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505543', 'tblTempVendorCDR_20' ) end [2025-02-18 20:36:17] Production.INFO: ProcessCDR(1,14505543,1,1,2) [2025-02-18 20:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505543', 'tblTempUsageDetail_20' ) start [2025-02-18 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505543', 'tblTempUsageDetail_20' ) end [2025-02-18 20:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:36:20] Production.INFO: ==29753== Releasing lock... [2025-02-18 20:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:36:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:37:06 [end_date_ymd] => 2025-02-18 20:37:06 [RateCDR] => 1 ) [2025-02-18 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:37:06' and `end` < '2025-02-18 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:37:17] Production.INFO: count ==1974 [2025-02-18 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:37:06 - End Time 2025-02-18 20:37:06 [2025-02-18 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505548', 'tblTempUsageDetail_20' ) start [2025-02-18 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505548', 'tblTempUsageDetail_20' ) end [2025-02-18 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505548', 'tblTempVendorCDR_20' ) start [2025-02-18 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505548', 'tblTempVendorCDR_20' ) end [2025-02-18 20:37:18] Production.INFO: ProcessCDR(1,14505548,1,1,2) [2025-02-18 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505548', 'tblTempUsageDetail_20' ) start [2025-02-18 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505548', 'tblTempUsageDetail_20' ) end [2025-02-18 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:37:21] Production.INFO: ==29845== Releasing lock... [2025-02-18 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:37:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:38:05 [end_date_ymd] => 2025-02-18 20:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:38:05' and `end` < '2025-02-18 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-18 20:38:17] Production.INFO: count ==1969 [2025-02-18 20:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:38:05 - End Time 2025-02-18 20:38:05 [2025-02-18 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505553', 'tblTempUsageDetail_20' ) start [2025-02-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505553', 'tblTempUsageDetail_20' ) end [2025-02-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505553', 'tblTempVendorCDR_20' ) start [2025-02-18 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505553', 'tblTempVendorCDR_20' ) end [2025-02-18 20:38:17] Production.INFO: ProcessCDR(1,14505553,1,1,2) [2025-02-18 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505553', 'tblTempUsageDetail_20' ) start [2025-02-18 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505553', 'tblTempUsageDetail_20' ) end [2025-02-18 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:38:22] Production.INFO: ==29928== Releasing lock... [2025-02-18 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:38:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:39:05 [end_date_ymd] => 2025-02-18 20:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:39:05' and `end` < '2025-02-18 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-18 20:39:17] Production.INFO: count ==1966 [2025-02-18 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:39:05 - End Time 2025-02-18 20:39:05 [2025-02-18 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505558', 'tblTempUsageDetail_20' ) start [2025-02-18 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505558', 'tblTempUsageDetail_20' ) end [2025-02-18 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505558', 'tblTempVendorCDR_20' ) start [2025-02-18 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505558', 'tblTempVendorCDR_20' ) end [2025-02-18 20:39:18] Production.INFO: ProcessCDR(1,14505558,1,1,2) [2025-02-18 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505558', 'tblTempUsageDetail_20' ) start [2025-02-18 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505558', 'tblTempUsageDetail_20' ) end [2025-02-18 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:39:21] Production.INFO: ==30014== Releasing lock... [2025-02-18 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:39:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-18 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:40:06 [end_date_ymd] => 2025-02-18 20:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 17:40:06' and `end` < '2025-02-18 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-18 20:40:17] Production.INFO: count ==1947 [2025-02-18 20:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:40:06 - End Time 2025-02-18 20:40:06 [2025-02-18 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505564', 'tblTempUsageDetail_20' ) start [2025-02-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505564', 'tblTempUsageDetail_20' ) end [2025-02-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505564', 'tblTempVendorCDR_20' ) start [2025-02-18 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505564', 'tblTempVendorCDR_20' ) end [2025-02-18 20:40:18] Production.INFO: ProcessCDR(1,14505564,1,1,2) [2025-02-18 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505564', 'tblTempUsageDetail_20' ) start [2025-02-18 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505564', 'tblTempUsageDetail_20' ) end [2025-02-18 20:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:40:21] Production.INFO: ==30100== Releasing lock... [2025-02-18 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:40:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-18 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:41:05 [end_date_ymd] => 2025-02-18 20:41:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:41:05' and `end` < '2025-02-18 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-18 20:41:17] Production.INFO: count ==1903 [2025-02-18 20:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:41:05 - End Time 2025-02-18 20:41:05 [2025-02-18 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505569', 'tblTempUsageDetail_20' ) start [2025-02-18 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505569', 'tblTempUsageDetail_20' ) end [2025-02-18 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505569', 'tblTempVendorCDR_20' ) start [2025-02-18 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505569', 'tblTempVendorCDR_20' ) end [2025-02-18 20:41:18] Production.INFO: ProcessCDR(1,14505569,1,1,2) [2025-02-18 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505569', 'tblTempUsageDetail_20' ) start [2025-02-18 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505569', 'tblTempUsageDetail_20' ) end [2025-02-18 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:41:21] Production.INFO: ==30189== Releasing lock... [2025-02-18 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:41:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-18 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:42:05 [end_date_ymd] => 2025-02-18 20:42:05 [RateCDR] => 1 ) [2025-02-18 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:42:05' and `end` < '2025-02-18 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:42:17] Production.INFO: count ==1884 [2025-02-18 20:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:42:05 - End Time 2025-02-18 20:42:05 [2025-02-18 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505574', 'tblTempUsageDetail_20' ) start [2025-02-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505574', 'tblTempUsageDetail_20' ) end [2025-02-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505574', 'tblTempVendorCDR_20' ) start [2025-02-18 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505574', 'tblTempVendorCDR_20' ) end [2025-02-18 20:42:17] Production.INFO: ProcessCDR(1,14505574,1,1,2) [2025-02-18 20:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505574', 'tblTempUsageDetail_20' ) start [2025-02-18 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505574', 'tblTempUsageDetail_20' ) end [2025-02-18 20:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:42:20] Production.INFO: ==30275== Releasing lock... [2025-02-18 20:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:42:20] Production.INFO: 42 MB #Memory Used# [2025-02-18 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:43:05 [end_date_ymd] => 2025-02-18 20:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:43:05' and `end` < '2025-02-18 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-18 20:43:17] Production.INFO: count ==1882 [2025-02-18 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:43:05 - End Time 2025-02-18 20:43:05 [2025-02-18 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505579', 'tblTempUsageDetail_20' ) start [2025-02-18 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505579', 'tblTempUsageDetail_20' ) end [2025-02-18 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505579', 'tblTempVendorCDR_20' ) start [2025-02-18 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505579', 'tblTempVendorCDR_20' ) end [2025-02-18 20:43:18] Production.INFO: ProcessCDR(1,14505579,1,1,2) [2025-02-18 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505579', 'tblTempUsageDetail_20' ) start [2025-02-18 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505579', 'tblTempUsageDetail_20' ) end [2025-02-18 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:43:21] Production.INFO: ==30363== Releasing lock... [2025-02-18 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:43:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-18 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:44:05 [end_date_ymd] => 2025-02-18 20:44:05 [RateCDR] => 1 ) [2025-02-18 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:44:05' and `end` < '2025-02-18 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:44:17] Production.INFO: count ==1877 [2025-02-18 20:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:44:05 - End Time 2025-02-18 20:44:05 [2025-02-18 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505584', 'tblTempUsageDetail_20' ) start [2025-02-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505584', 'tblTempUsageDetail_20' ) end [2025-02-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505584', 'tblTempVendorCDR_20' ) start [2025-02-18 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505584', 'tblTempVendorCDR_20' ) end [2025-02-18 20:44:17] Production.INFO: ProcessCDR(1,14505584,1,1,2) [2025-02-18 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505584', 'tblTempUsageDetail_20' ) start [2025-02-18 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505584', 'tblTempUsageDetail_20' ) end [2025-02-18 20:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:44:20] Production.INFO: ==30448== Releasing lock... [2025-02-18 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:44:20] Production.INFO: 42 MB #Memory Used# [2025-02-18 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:45:05 [end_date_ymd] => 2025-02-18 20:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:45:05' and `end` < '2025-02-18 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-18 20:45:17] Production.INFO: count ==1869 [2025-02-18 20:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:45:05 - End Time 2025-02-18 20:45:05 [2025-02-18 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505589', 'tblTempUsageDetail_20' ) start [2025-02-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505589', 'tblTempUsageDetail_20' ) end [2025-02-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505589', 'tblTempVendorCDR_20' ) start [2025-02-18 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505589', 'tblTempVendorCDR_20' ) end [2025-02-18 20:45:17] Production.INFO: ProcessCDR(1,14505589,1,1,2) [2025-02-18 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505589', 'tblTempUsageDetail_20' ) start [2025-02-18 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505589', 'tblTempUsageDetail_20' ) end [2025-02-18 20:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:45:20] Production.INFO: ==30537== Releasing lock... [2025-02-18 20:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:45:20] Production.INFO: 42 MB #Memory Used# [2025-02-18 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:46:04 [end_date_ymd] => 2025-02-18 20:46:04 [RateCDR] => 1 ) [2025-02-18 20:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:46:04' and `end` < '2025-02-18 20:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:46:16] Production.INFO: count ==1863 [2025-02-18 20:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:46:04 - End Time 2025-02-18 20:46:04 [2025-02-18 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505594', 'tblTempUsageDetail_20' ) start [2025-02-18 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505594', 'tblTempUsageDetail_20' ) end [2025-02-18 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505594', 'tblTempVendorCDR_20' ) start [2025-02-18 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505594', 'tblTempVendorCDR_20' ) end [2025-02-18 20:46:17] Production.INFO: ProcessCDR(1,14505594,1,1,2) [2025-02-18 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505594', 'tblTempUsageDetail_20' ) start [2025-02-18 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505594', 'tblTempUsageDetail_20' ) end [2025-02-18 20:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:46:20] Production.INFO: ==30621== Releasing lock... [2025-02-18 20:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:46:20] Production.INFO: 42 MB #Memory Used# [2025-02-18 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:47:05 [end_date_ymd] => 2025-02-18 20:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:47:05' and `end` < '2025-02-18 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-18 20:47:17] Production.INFO: count ==1861 [2025-02-18 20:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:47:05 - End Time 2025-02-18 20:47:05 [2025-02-18 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505595', 'tblTempUsageDetail_20' ) start [2025-02-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505595', 'tblTempUsageDetail_20' ) end [2025-02-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505595', 'tblTempVendorCDR_20' ) start [2025-02-18 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505595', 'tblTempVendorCDR_20' ) end [2025-02-18 20:47:17] Production.INFO: ProcessCDR(1,14505595,1,1,2) [2025-02-18 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505595', 'tblTempUsageDetail_20' ) start [2025-02-18 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505595', 'tblTempUsageDetail_20' ) end [2025-02-18 20:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:47:21] Production.INFO: ==30710== Releasing lock... [2025-02-18 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:47:21] Production.INFO: 42 MB #Memory Used# [2025-02-18 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:48:06 [end_date_ymd] => 2025-02-18 20:48:06 [RateCDR] => 1 ) [2025-02-18 20:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:48:06' and `end` < '2025-02-18 20:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:48:18] Production.INFO: count ==1857 [2025-02-18 20:48:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:48:06 - End Time 2025-02-18 20:48:06 [2025-02-18 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505604', 'tblTempUsageDetail_20' ) start [2025-02-18 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505604', 'tblTempUsageDetail_20' ) end [2025-02-18 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505604', 'tblTempVendorCDR_20' ) start [2025-02-18 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505604', 'tblTempVendorCDR_20' ) end [2025-02-18 20:48:18] Production.INFO: ProcessCDR(1,14505604,1,1,2) [2025-02-18 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505604', 'tblTempUsageDetail_20' ) start [2025-02-18 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505604', 'tblTempUsageDetail_20' ) end [2025-02-18 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:48:21] Production.INFO: ==30834== Releasing lock... [2025-02-18 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:48:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-18 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:49:05 [end_date_ymd] => 2025-02-18 20:49:05 [RateCDR] => 1 ) [2025-02-18 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:49:05' and `end` < '2025-02-18 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:49:17] Production.INFO: count ==1846 [2025-02-18 20:49:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:49:05 - End Time 2025-02-18 20:49:05 [2025-02-18 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505609', 'tblTempUsageDetail_20' ) start [2025-02-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505609', 'tblTempUsageDetail_20' ) end [2025-02-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505609', 'tblTempVendorCDR_20' ) start [2025-02-18 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505609', 'tblTempVendorCDR_20' ) end [2025-02-18 20:49:17] Production.INFO: ProcessCDR(1,14505609,1,1,2) [2025-02-18 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505609', 'tblTempUsageDetail_20' ) start [2025-02-18 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505609', 'tblTempUsageDetail_20' ) end [2025-02-18 20:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:49:20] Production.INFO: ==30922== Releasing lock... [2025-02-18 20:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:49:20] Production.INFO: 41.75 MB #Memory Used# [2025-02-18 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:50:06 [end_date_ymd] => 2025-02-18 20:50:06 [RateCDR] => 1 ) [2025-02-18 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:50:06' and `end` < '2025-02-18 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:50:18] Production.INFO: count ==1827 [2025-02-18 20:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:50:06 - End Time 2025-02-18 20:50:06 [2025-02-18 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505614', 'tblTempUsageDetail_20' ) start [2025-02-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505614', 'tblTempUsageDetail_20' ) end [2025-02-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505614', 'tblTempVendorCDR_20' ) start [2025-02-18 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505614', 'tblTempVendorCDR_20' ) end [2025-02-18 20:50:18] Production.INFO: ProcessCDR(1,14505614,1,1,2) [2025-02-18 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505614', 'tblTempUsageDetail_20' ) start [2025-02-18 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505614', 'tblTempUsageDetail_20' ) end [2025-02-18 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:50:22] Production.INFO: ==31017== Releasing lock... [2025-02-18 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:50:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-18 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:51:05 [end_date_ymd] => 2025-02-18 20:51:05 [RateCDR] => 1 ) [2025-02-18 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:51:05' and `end` < '2025-02-18 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:51:17] Production.INFO: count ==1781 [2025-02-18 20:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:51:05 - End Time 2025-02-18 20:51:05 [2025-02-18 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505620', 'tblTempUsageDetail_20' ) start [2025-02-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505620', 'tblTempUsageDetail_20' ) end [2025-02-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505620', 'tblTempVendorCDR_20' ) start [2025-02-18 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505620', 'tblTempVendorCDR_20' ) end [2025-02-18 20:51:17] Production.INFO: ProcessCDR(1,14505620,1,1,2) [2025-02-18 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505620', 'tblTempUsageDetail_20' ) start [2025-02-18 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505620', 'tblTempUsageDetail_20' ) end [2025-02-18 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:51:22] Production.INFO: ==31111== Releasing lock... [2025-02-18 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-18 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:52:06 [end_date_ymd] => 2025-02-18 20:52:06 [RateCDR] => 1 ) [2025-02-18 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:52:06' and `end` < '2025-02-18 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:52:18] Production.INFO: count ==1772 [2025-02-18 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:52:06 - End Time 2025-02-18 20:52:06 [2025-02-18 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505625', 'tblTempUsageDetail_20' ) start [2025-02-18 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505625', 'tblTempUsageDetail_20' ) end [2025-02-18 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505625', 'tblTempVendorCDR_20' ) start [2025-02-18 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505625', 'tblTempVendorCDR_20' ) end [2025-02-18 20:52:18] Production.INFO: ProcessCDR(1,14505625,1,1,2) [2025-02-18 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505625', 'tblTempUsageDetail_20' ) start [2025-02-18 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505625', 'tblTempUsageDetail_20' ) end [2025-02-18 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:52:23] Production.INFO: ==31202== Releasing lock... [2025-02-18 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:52:23] Production.INFO: 41 MB #Memory Used# [2025-02-18 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:53:05 [end_date_ymd] => 2025-02-18 20:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:53:05' and `end` < '2025-02-18 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-18 20:53:16] Production.INFO: count ==1763 [2025-02-18 20:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:53:05 - End Time 2025-02-18 20:53:05 [2025-02-18 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505630', 'tblTempUsageDetail_20' ) start [2025-02-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505630', 'tblTempUsageDetail_20' ) end [2025-02-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505630', 'tblTempVendorCDR_20' ) start [2025-02-18 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505630', 'tblTempVendorCDR_20' ) end [2025-02-18 20:53:17] Production.INFO: ProcessCDR(1,14505630,1,1,2) [2025-02-18 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505630', 'tblTempUsageDetail_20' ) start [2025-02-18 20:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505630', 'tblTempUsageDetail_20' ) end [2025-02-18 20:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:53:20] Production.INFO: ==31292== Releasing lock... [2025-02-18 20:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:53:20] Production.INFO: 41.25 MB #Memory Used# [2025-02-18 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:54:05 [end_date_ymd] => 2025-02-18 20:54:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:54:05' and `end` < '2025-02-18 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-18 20:54:17] Production.INFO: count ==1758 [2025-02-18 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:54:05 - End Time 2025-02-18 20:54:05 [2025-02-18 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505635', 'tblTempUsageDetail_20' ) start [2025-02-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505635', 'tblTempUsageDetail_20' ) end [2025-02-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505635', 'tblTempVendorCDR_20' ) start [2025-02-18 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505635', 'tblTempVendorCDR_20' ) end [2025-02-18 20:54:18] Production.INFO: ProcessCDR(1,14505635,1,1,2) [2025-02-18 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505635', 'tblTempUsageDetail_20' ) start [2025-02-18 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505635', 'tblTempUsageDetail_20' ) end [2025-02-18 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:54:21] Production.INFO: ==31381== Releasing lock... [2025-02-18 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:54:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-18 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:55:05 [end_date_ymd] => 2025-02-18 20:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:55:05' and `end` < '2025-02-18 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-18 20:55:17] Production.INFO: count ==1730 [2025-02-18 20:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:55:05 - End Time 2025-02-18 20:55:05 [2025-02-18 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505640', 'tblTempUsageDetail_20' ) start [2025-02-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505640', 'tblTempUsageDetail_20' ) end [2025-02-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505640', 'tblTempVendorCDR_20' ) start [2025-02-18 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505640', 'tblTempVendorCDR_20' ) end [2025-02-18 20:55:17] Production.INFO: ProcessCDR(1,14505640,1,1,2) [2025-02-18 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505640', 'tblTempUsageDetail_20' ) start [2025-02-18 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505640', 'tblTempUsageDetail_20' ) end [2025-02-18 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:55:21] Production.INFO: ==31469== Releasing lock... [2025-02-18 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:55:21] Production.INFO: 41 MB #Memory Used# [2025-02-18 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:56:06 [end_date_ymd] => 2025-02-18 20:56:06 [RateCDR] => 1 ) [2025-02-18 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:56:06' and `end` < '2025-02-18 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:56:18] Production.INFO: count ==1727 [2025-02-18 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:56:06 - End Time 2025-02-18 20:56:06 [2025-02-18 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505645', 'tblTempUsageDetail_20' ) start [2025-02-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505645', 'tblTempUsageDetail_20' ) end [2025-02-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505645', 'tblTempVendorCDR_20' ) start [2025-02-18 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505645', 'tblTempVendorCDR_20' ) end [2025-02-18 20:56:18] Production.INFO: ProcessCDR(1,14505645,1,1,2) [2025-02-18 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505645', 'tblTempUsageDetail_20' ) start [2025-02-18 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505645', 'tblTempUsageDetail_20' ) end [2025-02-18 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:56:21] Production.INFO: ==31574== Releasing lock... [2025-02-18 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:56:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-18 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:57:05 [end_date_ymd] => 2025-02-18 20:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:57:05' and `end` < '2025-02-18 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-18 20:57:16] Production.INFO: count ==1725 [2025-02-18 20:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:57:05 - End Time 2025-02-18 20:57:05 [2025-02-18 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505650', 'tblTempUsageDetail_20' ) start [2025-02-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505650', 'tblTempUsageDetail_20' ) end [2025-02-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505650', 'tblTempVendorCDR_20' ) start [2025-02-18 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505650', 'tblTempVendorCDR_20' ) end [2025-02-18 20:57:17] Production.INFO: ProcessCDR(1,14505650,1,1,2) [2025-02-18 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505650', 'tblTempUsageDetail_20' ) start [2025-02-18 20:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505650', 'tblTempUsageDetail_20' ) end [2025-02-18 20:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:57:20] Production.INFO: ==31689== Releasing lock... [2025-02-18 20:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:57:20] Production.INFO: 40.75 MB #Memory Used# [2025-02-18 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:58:05 [end_date_ymd] => 2025-02-18 20:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 17:58:05' and `end` < '2025-02-18 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-18 20:58:17] Production.INFO: count ==1722 [2025-02-18 20:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 17:58:05 - End Time 2025-02-18 20:58:05 [2025-02-18 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505655', 'tblTempUsageDetail_20' ) start [2025-02-18 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505655', 'tblTempUsageDetail_20' ) end [2025-02-18 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505655', 'tblTempVendorCDR_20' ) start [2025-02-18 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505655', 'tblTempVendorCDR_20' ) end [2025-02-18 20:58:17] Production.INFO: ProcessCDR(1,14505655,1,1,2) [2025-02-18 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505655', 'tblTempUsageDetail_20' ) start [2025-02-18 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505655', 'tblTempUsageDetail_20' ) end [2025-02-18 20:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:58:21] Production.INFO: ==31816== Releasing lock... [2025-02-18 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:58:21] Production.INFO: 41 MB #Memory Used# [2025-02-18 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 17:59:05 [end_date_ymd] => 2025-02-18 20:59:05 [RateCDR] => 1 ) [2025-02-18 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 17:59:05' and `end` < '2025-02-18 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 20:59:17] Production.INFO: count ==1718 [2025-02-18 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-18 17:59:05 - End Time 2025-02-18 20:59:05 [2025-02-18 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505660', 'tblTempUsageDetail_20' ) start [2025-02-18 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505660', 'tblTempUsageDetail_20' ) end [2025-02-18 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505660', 'tblTempVendorCDR_20' ) start [2025-02-18 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505660', 'tblTempVendorCDR_20' ) end [2025-02-18 20:59:18] Production.INFO: ProcessCDR(1,14505660,1,1,2) [2025-02-18 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505660', 'tblTempUsageDetail_20' ) start [2025-02-18 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505660', 'tblTempUsageDetail_20' ) end [2025-02-18 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 20:59:22] Production.INFO: ==31930== Releasing lock... [2025-02-18 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 20:59:22] Production.INFO: 41 MB #Memory Used# [2025-02-18 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:00:06 [end_date_ymd] => 2025-02-18 21:00:06 [RateCDR] => 1 ) [2025-02-18 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:00:06' and `end` < '2025-02-18 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:00:18] Production.INFO: count ==1714 [2025-02-18 21:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:00:06 - End Time 2025-02-18 21:00:06 [2025-02-18 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505666', 'tblTempUsageDetail_20' ) start [2025-02-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505666', 'tblTempUsageDetail_20' ) end [2025-02-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505666', 'tblTempVendorCDR_20' ) start [2025-02-18 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505666', 'tblTempVendorCDR_20' ) end [2025-02-18 21:00:18] Production.INFO: ProcessCDR(1,14505666,1,1,2) [2025-02-18 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505666', 'tblTempUsageDetail_20' ) start [2025-02-18 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505666', 'tblTempUsageDetail_20' ) end [2025-02-18 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:00:22] Production.INFO: ==32021== Releasing lock... [2025-02-18 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:00:22] Production.INFO: 41 MB #Memory Used# [2025-02-18 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:01:05 [end_date_ymd] => 2025-02-18 21:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:01:05' and `end` < '2025-02-18 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-18 21:01:17] Production.INFO: count ==1686 [2025-02-18 21:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:01:05 - End Time 2025-02-18 21:01:05 [2025-02-18 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505671', 'tblTempUsageDetail_20' ) start [2025-02-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505671', 'tblTempUsageDetail_20' ) end [2025-02-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505671', 'tblTempVendorCDR_20' ) start [2025-02-18 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505671', 'tblTempVendorCDR_20' ) end [2025-02-18 21:01:17] Production.INFO: ProcessCDR(1,14505671,1,1,2) [2025-02-18 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505671', 'tblTempUsageDetail_20' ) start [2025-02-18 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505671', 'tblTempUsageDetail_20' ) end [2025-02-18 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:01:21] Production.INFO: ==32131== Releasing lock... [2025-02-18 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:01:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-18 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:02:05 [end_date_ymd] => 2025-02-18 21:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:02:05' and `end` < '2025-02-18 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-18 21:02:17] Production.INFO: count ==1682 [2025-02-18 21:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:02:05 - End Time 2025-02-18 21:02:05 [2025-02-18 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505676', 'tblTempUsageDetail_20' ) start [2025-02-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505676', 'tblTempUsageDetail_20' ) end [2025-02-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505676', 'tblTempVendorCDR_20' ) start [2025-02-18 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505676', 'tblTempVendorCDR_20' ) end [2025-02-18 21:02:17] Production.INFO: ProcessCDR(1,14505676,1,1,2) [2025-02-18 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505676', 'tblTempUsageDetail_20' ) start [2025-02-18 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505676', 'tblTempUsageDetail_20' ) end [2025-02-18 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:02:21] Production.INFO: ==32220== Releasing lock... [2025-02-18 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:02:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-18 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:03:05 [end_date_ymd] => 2025-02-18 21:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:03:05' and `end` < '2025-02-18 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-18 21:03:17] Production.INFO: count ==1681 [2025-02-18 21:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:03:05 - End Time 2025-02-18 21:03:05 [2025-02-18 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505681', 'tblTempUsageDetail_20' ) start [2025-02-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505681', 'tblTempUsageDetail_20' ) end [2025-02-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505681', 'tblTempVendorCDR_20' ) start [2025-02-18 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505681', 'tblTempVendorCDR_20' ) end [2025-02-18 21:03:17] Production.INFO: ProcessCDR(1,14505681,1,1,2) [2025-02-18 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505681', 'tblTempUsageDetail_20' ) start [2025-02-18 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505681', 'tblTempUsageDetail_20' ) end [2025-02-18 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:03:21] Production.INFO: ==32347== Releasing lock... [2025-02-18 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:03:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-18 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:04:05 [end_date_ymd] => 2025-02-18 21:04:05 [RateCDR] => 1 ) [2025-02-18 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:04:05' and `end` < '2025-02-18 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-18 21:04:17] Production.INFO: count ==1673 [2025-02-18 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:04:05 - End Time 2025-02-18 21:04:05 [2025-02-18 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505686', 'tblTempUsageDetail_20' ) start [2025-02-18 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505686', 'tblTempUsageDetail_20' ) end [2025-02-18 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505686', 'tblTempVendorCDR_20' ) start [2025-02-18 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505686', 'tblTempVendorCDR_20' ) end [2025-02-18 21:04:18] Production.INFO: ProcessCDR(1,14505686,1,1,2) [2025-02-18 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505686', 'tblTempUsageDetail_20' ) start [2025-02-18 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505686', 'tblTempUsageDetail_20' ) end [2025-02-18 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:04:21] Production.INFO: ==32439== Releasing lock... [2025-02-18 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:04:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:05:05 [end_date_ymd] => 2025-02-18 21:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:05:05' and `end` < '2025-02-18 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-18 21:05:17] Production.INFO: count ==1657 [2025-02-18 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:05:05 - End Time 2025-02-18 21:05:05 [2025-02-18 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505691', 'tblTempUsageDetail_20' ) start [2025-02-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505691', 'tblTempUsageDetail_20' ) end [2025-02-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505691', 'tblTempVendorCDR_20' ) start [2025-02-18 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505691', 'tblTempVendorCDR_20' ) end [2025-02-18 21:05:18] Production.INFO: ProcessCDR(1,14505691,1,1,2) [2025-02-18 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505691', 'tblTempUsageDetail_20' ) start [2025-02-18 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505691', 'tblTempUsageDetail_20' ) end [2025-02-18 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:05:21] Production.INFO: ==32525== Releasing lock... [2025-02-18 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:05:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:06:05 [end_date_ymd] => 2025-02-18 21:06:05 [RateCDR] => 1 ) [2025-02-18 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:06:05' and `end` < '2025-02-18 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:06:17] Production.INFO: count ==1644 [2025-02-18 21:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:06:05 - End Time 2025-02-18 21:06:05 [2025-02-18 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505696', 'tblTempUsageDetail_20' ) start [2025-02-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505696', 'tblTempUsageDetail_20' ) end [2025-02-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505696', 'tblTempVendorCDR_20' ) start [2025-02-18 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505696', 'tblTempVendorCDR_20' ) end [2025-02-18 21:06:17] Production.INFO: ProcessCDR(1,14505696,1,1,2) [2025-02-18 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505696', 'tblTempUsageDetail_20' ) start [2025-02-18 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505696', 'tblTempUsageDetail_20' ) end [2025-02-18 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:06:22] Production.INFO: ==32616== Releasing lock... [2025-02-18 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:06:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:07:05 [end_date_ymd] => 2025-02-18 21:07:05 [RateCDR] => 1 ) [2025-02-18 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:07:05' and `end` < '2025-02-18 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:07:17] Production.INFO: count ==1644 [2025-02-18 21:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:07:05 - End Time 2025-02-18 21:07:05 [2025-02-18 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505701', 'tblTempUsageDetail_20' ) start [2025-02-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505701', 'tblTempUsageDetail_20' ) end [2025-02-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505701', 'tblTempVendorCDR_20' ) start [2025-02-18 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505701', 'tblTempVendorCDR_20' ) end [2025-02-18 21:07:18] Production.INFO: ProcessCDR(1,14505701,1,1,2) [2025-02-18 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505701', 'tblTempUsageDetail_20' ) start [2025-02-18 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505701', 'tblTempUsageDetail_20' ) end [2025-02-18 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:07:21] Production.INFO: ==32710== Releasing lock... [2025-02-18 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:07:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-18 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:08:05 [end_date_ymd] => 2025-02-18 21:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:08:05' and `end` < '2025-02-18 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-18 21:08:17] Production.INFO: count ==1644 [2025-02-18 21:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:08:05 - End Time 2025-02-18 21:08:05 [2025-02-18 21:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505706', 'tblTempUsageDetail_20' ) start [2025-02-18 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505706', 'tblTempUsageDetail_20' ) end [2025-02-18 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505706', 'tblTempVendorCDR_20' ) start [2025-02-18 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505706', 'tblTempVendorCDR_20' ) end [2025-02-18 21:08:17] Production.INFO: ProcessCDR(1,14505706,1,1,2) [2025-02-18 21:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505706', 'tblTempUsageDetail_20' ) start [2025-02-18 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505706', 'tblTempUsageDetail_20' ) end [2025-02-18 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:08:22] Production.INFO: ==337== Releasing lock... [2025-02-18 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:08:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:09:05 [end_date_ymd] => 2025-02-18 21:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:09:05' and `end` < '2025-02-18 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-18 21:09:17] Production.INFO: count ==1634 [2025-02-18 21:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:09:05 - End Time 2025-02-18 21:09:05 [2025-02-18 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505711', 'tblTempUsageDetail_20' ) start [2025-02-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505711', 'tblTempUsageDetail_20' ) end [2025-02-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505711', 'tblTempVendorCDR_20' ) start [2025-02-18 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505711', 'tblTempVendorCDR_20' ) end [2025-02-18 21:09:17] Production.INFO: ProcessCDR(1,14505711,1,1,2) [2025-02-18 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505711', 'tblTempUsageDetail_20' ) start [2025-02-18 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505711', 'tblTempUsageDetail_20' ) end [2025-02-18 21:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:09:20] Production.INFO: ==451== Releasing lock... [2025-02-18 21:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:09:20] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:10:06 [end_date_ymd] => 2025-02-18 21:10:06 [RateCDR] => 1 ) [2025-02-18 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:10:06' and `end` < '2025-02-18 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:10:18] Production.INFO: count ==1630 [2025-02-18 21:10:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:10:06 - End Time 2025-02-18 21:10:06 [2025-02-18 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505717', 'tblTempUsageDetail_20' ) start [2025-02-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505717', 'tblTempUsageDetail_20' ) end [2025-02-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505717', 'tblTempVendorCDR_20' ) start [2025-02-18 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505717', 'tblTempVendorCDR_20' ) end [2025-02-18 21:10:18] Production.INFO: ProcessCDR(1,14505717,1,1,2) [2025-02-18 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505717', 'tblTempUsageDetail_20' ) start [2025-02-18 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505717', 'tblTempUsageDetail_20' ) end [2025-02-18 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:10:23] Production.INFO: ==551== Releasing lock... [2025-02-18 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-18 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:11:05 [end_date_ymd] => 2025-02-18 21:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:11:05' and `end` < '2025-02-18 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-18 21:11:17] Production.INFO: count ==1574 [2025-02-18 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:11:05 - End Time 2025-02-18 21:11:05 [2025-02-18 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505722', 'tblTempUsageDetail_20' ) start [2025-02-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505722', 'tblTempUsageDetail_20' ) end [2025-02-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505722', 'tblTempVendorCDR_20' ) start [2025-02-18 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505722', 'tblTempVendorCDR_20' ) end [2025-02-18 21:11:18] Production.INFO: ProcessCDR(1,14505722,1,1,2) [2025-02-18 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505722', 'tblTempUsageDetail_20' ) start [2025-02-18 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505722', 'tblTempUsageDetail_20' ) end [2025-02-18 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:11:21] Production.INFO: ==664== Releasing lock... [2025-02-18 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:11:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-18 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:12:05 [end_date_ymd] => 2025-02-18 21:12:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:12:05' and `end` < '2025-02-18 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-18 21:12:17] Production.INFO: count ==1565 [2025-02-18 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:12:05 - End Time 2025-02-18 21:12:05 [2025-02-18 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505727', 'tblTempUsageDetail_20' ) start [2025-02-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505727', 'tblTempUsageDetail_20' ) end [2025-02-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505727', 'tblTempVendorCDR_20' ) start [2025-02-18 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505727', 'tblTempVendorCDR_20' ) end [2025-02-18 21:12:18] Production.INFO: ProcessCDR(1,14505727,1,1,2) [2025-02-18 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505727', 'tblTempUsageDetail_20' ) start [2025-02-18 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505727', 'tblTempUsageDetail_20' ) end [2025-02-18 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:12:23] Production.INFO: ==787== Releasing lock... [2025-02-18 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:12:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-18 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:13:05 [end_date_ymd] => 2025-02-18 21:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:13:05' and `end` < '2025-02-18 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-18 21:13:17] Production.INFO: count ==1562 [2025-02-18 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:13:05 - End Time 2025-02-18 21:13:05 [2025-02-18 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505732', 'tblTempUsageDetail_20' ) start [2025-02-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505732', 'tblTempUsageDetail_20' ) end [2025-02-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505732', 'tblTempVendorCDR_20' ) start [2025-02-18 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505732', 'tblTempVendorCDR_20' ) end [2025-02-18 21:13:18] Production.INFO: ProcessCDR(1,14505732,1,1,2) [2025-02-18 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505732', 'tblTempUsageDetail_20' ) start [2025-02-18 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505732', 'tblTempUsageDetail_20' ) end [2025-02-18 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:13:21] Production.INFO: ==882== Releasing lock... [2025-02-18 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:13:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-18 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:14:06 [end_date_ymd] => 2025-02-18 21:14:06 [RateCDR] => 1 ) [2025-02-18 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:14:06' and `end` < '2025-02-18 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:14:17] Production.INFO: count ==1558 [2025-02-18 21:14:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:14:06 - End Time 2025-02-18 21:14:06 [2025-02-18 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505737', 'tblTempUsageDetail_20' ) start [2025-02-18 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505737', 'tblTempUsageDetail_20' ) end [2025-02-18 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505737', 'tblTempVendorCDR_20' ) start [2025-02-18 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505737', 'tblTempVendorCDR_20' ) end [2025-02-18 21:14:18] Production.INFO: ProcessCDR(1,14505737,1,1,2) [2025-02-18 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505737', 'tblTempUsageDetail_20' ) start [2025-02-18 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505737', 'tblTempUsageDetail_20' ) end [2025-02-18 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:14:21] Production.INFO: ==982== Releasing lock... [2025-02-18 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:14:21] Production.INFO: 40 MB #Memory Used# [2025-02-18 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:15:05 [end_date_ymd] => 2025-02-18 21:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:15:05' and `end` < '2025-02-18 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-18 21:15:17] Production.INFO: count ==1545 [2025-02-18 21:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:15:05 - End Time 2025-02-18 21:15:05 [2025-02-18 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505742', 'tblTempUsageDetail_20' ) start [2025-02-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505742', 'tblTempUsageDetail_20' ) end [2025-02-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505742', 'tblTempVendorCDR_20' ) start [2025-02-18 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505742', 'tblTempVendorCDR_20' ) end [2025-02-18 21:15:17] Production.INFO: ProcessCDR(1,14505742,1,1,2) [2025-02-18 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505742', 'tblTempUsageDetail_20' ) start [2025-02-18 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505742', 'tblTempUsageDetail_20' ) end [2025-02-18 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:15:21] Production.INFO: ==1082== Releasing lock... [2025-02-18 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:15:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-18 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:16:06 [end_date_ymd] => 2025-02-18 21:16:06 [RateCDR] => 1 ) [2025-02-18 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-18 18:16:06' and `end` < '2025-02-18 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-18 21:16:18] Production.INFO: count ==1530 [2025-02-18 21:16:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:16:06 - End Time 2025-02-18 21:16:06 [2025-02-18 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505747', 'tblTempUsageDetail_20' ) start [2025-02-18 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505747', 'tblTempUsageDetail_20' ) end [2025-02-18 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505747', 'tblTempVendorCDR_20' ) start [2025-02-18 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505747', 'tblTempVendorCDR_20' ) end [2025-02-18 21:16:18] Production.INFO: ProcessCDR(1,14505747,1,1,2) [2025-02-18 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505747', 'tblTempUsageDetail_20' ) start [2025-02-18 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505747', 'tblTempUsageDetail_20' ) end [2025-02-18 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:16:21] Production.INFO: ==1184== Releasing lock... [2025-02-18 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:16:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-18 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:17:05 [end_date_ymd] => 2025-02-18 21:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:17:05' and `end` < '2025-02-18 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-18 21:17:17] Production.INFO: count ==1527 [2025-02-18 21:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:17:05 - End Time 2025-02-18 21:17:05 [2025-02-18 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505752', 'tblTempUsageDetail_20' ) start [2025-02-18 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505752', 'tblTempUsageDetail_20' ) end [2025-02-18 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505752', 'tblTempVendorCDR_20' ) start [2025-02-18 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505752', 'tblTempVendorCDR_20' ) end [2025-02-18 21:17:17] Production.INFO: ProcessCDR(1,14505752,1,1,2) [2025-02-18 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505752', 'tblTempUsageDetail_20' ) start [2025-02-18 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505752', 'tblTempUsageDetail_20' ) end [2025-02-18 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:17:21] Production.INFO: ==1294== Releasing lock... [2025-02-18 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:17:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-18 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:18:06 [end_date_ymd] => 2025-02-18 21:18:06 [RateCDR] => 1 ) [2025-02-18 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:18:06' and `end` < '2025-02-18 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:18:18] Production.INFO: count ==1525 [2025-02-18 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:18:06 - End Time 2025-02-18 21:18:06 [2025-02-18 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505757', 'tblTempUsageDetail_20' ) start [2025-02-18 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505757', 'tblTempUsageDetail_20' ) end [2025-02-18 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505757', 'tblTempVendorCDR_20' ) start [2025-02-18 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505757', 'tblTempVendorCDR_20' ) end [2025-02-18 21:18:18] Production.INFO: ProcessCDR(1,14505757,1,1,2) [2025-02-18 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505757', 'tblTempUsageDetail_20' ) start [2025-02-18 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505757', 'tblTempUsageDetail_20' ) end [2025-02-18 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:18:23] Production.INFO: ==1394== Releasing lock... [2025-02-18 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:18:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-18 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:19:05 [end_date_ymd] => 2025-02-18 21:19:05 [RateCDR] => 1 ) [2025-02-18 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:19:05' and `end` < '2025-02-18 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:19:17] Production.INFO: count ==1519 [2025-02-18 21:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:19:05 - End Time 2025-02-18 21:19:05 [2025-02-18 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505762', 'tblTempUsageDetail_20' ) start [2025-02-18 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505762', 'tblTempUsageDetail_20' ) end [2025-02-18 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505762', 'tblTempVendorCDR_20' ) start [2025-02-18 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505762', 'tblTempVendorCDR_20' ) end [2025-02-18 21:19:17] Production.INFO: ProcessCDR(1,14505762,1,1,2) [2025-02-18 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505762', 'tblTempUsageDetail_20' ) start [2025-02-18 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505762', 'tblTempUsageDetail_20' ) end [2025-02-18 21:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:19:20] Production.INFO: ==1560== Releasing lock... [2025-02-18 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:19:20] Production.INFO: 39.5 MB #Memory Used# [2025-02-18 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:20:06 [end_date_ymd] => 2025-02-18 21:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 18:20:06' and `end` < '2025-02-18 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-18 21:20:18] Production.INFO: count ==1516 [2025-02-18 21:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:20:06 - End Time 2025-02-18 21:20:06 [2025-02-18 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505768', 'tblTempUsageDetail_20' ) start [2025-02-18 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505768', 'tblTempUsageDetail_20' ) end [2025-02-18 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505768', 'tblTempVendorCDR_20' ) start [2025-02-18 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505768', 'tblTempVendorCDR_20' ) end [2025-02-18 21:20:18] Production.INFO: ProcessCDR(1,14505768,1,1,2) [2025-02-18 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505768', 'tblTempUsageDetail_20' ) start [2025-02-18 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505768', 'tblTempUsageDetail_20' ) end [2025-02-18 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:20:22] Production.INFO: ==1662== Releasing lock... [2025-02-18 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-18 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:21:05 [end_date_ymd] => 2025-02-18 21:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:21:05' and `end` < '2025-02-18 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-18 21:21:17] Production.INFO: count ==1490 [2025-02-18 21:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:21:05 - End Time 2025-02-18 21:21:05 [2025-02-18 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505773', 'tblTempUsageDetail_20' ) start [2025-02-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505773', 'tblTempUsageDetail_20' ) end [2025-02-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505773', 'tblTempVendorCDR_20' ) start [2025-02-18 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505773', 'tblTempVendorCDR_20' ) end [2025-02-18 21:21:17] Production.INFO: ProcessCDR(1,14505773,1,1,2) [2025-02-18 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505773', 'tblTempUsageDetail_20' ) start [2025-02-18 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505773', 'tblTempUsageDetail_20' ) end [2025-02-18 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:21:21] Production.INFO: ==1760== Releasing lock... [2025-02-18 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:21:21] Production.INFO: 39 MB #Memory Used# [2025-02-18 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:22:06 [end_date_ymd] => 2025-02-18 21:22:06 [RateCDR] => 1 ) [2025-02-18 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:22:06' and `end` < '2025-02-18 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:22:18] Production.INFO: count ==1478 [2025-02-18 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:22:06 - End Time 2025-02-18 21:22:06 [2025-02-18 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505778', 'tblTempUsageDetail_20' ) start [2025-02-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505778', 'tblTempUsageDetail_20' ) end [2025-02-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505778', 'tblTempVendorCDR_20' ) start [2025-02-18 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505778', 'tblTempVendorCDR_20' ) end [2025-02-18 21:22:18] Production.INFO: ProcessCDR(1,14505778,1,1,2) [2025-02-18 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505778', 'tblTempUsageDetail_20' ) start [2025-02-18 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505778', 'tblTempUsageDetail_20' ) end [2025-02-18 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:22:23] Production.INFO: ==1865== Releasing lock... [2025-02-18 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:22:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-18 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:23:05 [end_date_ymd] => 2025-02-18 21:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:23:05' and `end` < '2025-02-18 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-18 21:23:17] Production.INFO: count ==1463 [2025-02-18 21:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:23:05 - End Time 2025-02-18 21:23:05 [2025-02-18 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505783', 'tblTempUsageDetail_20' ) start [2025-02-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505783', 'tblTempUsageDetail_20' ) end [2025-02-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505783', 'tblTempVendorCDR_20' ) start [2025-02-18 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505783', 'tblTempVendorCDR_20' ) end [2025-02-18 21:23:17] Production.INFO: ProcessCDR(1,14505783,1,1,2) [2025-02-18 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505783', 'tblTempUsageDetail_20' ) start [2025-02-18 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505783', 'tblTempUsageDetail_20' ) end [2025-02-18 21:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:23:20] Production.INFO: ==1972== Releasing lock... [2025-02-18 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:23:20] Production.INFO: 39 MB #Memory Used# [2025-02-18 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:24:06 [end_date_ymd] => 2025-02-18 21:24:06 [RateCDR] => 1 ) [2025-02-18 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-18 18:24:06' and `end` < '2025-02-18 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:24:17] Production.INFO: count ==1463 [2025-02-18 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:24:06 - End Time 2025-02-18 21:24:06 [2025-02-18 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505788', 'tblTempUsageDetail_20' ) start [2025-02-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505788', 'tblTempUsageDetail_20' ) end [2025-02-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505788', 'tblTempVendorCDR_20' ) start [2025-02-18 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505788', 'tblTempVendorCDR_20' ) end [2025-02-18 21:24:18] Production.INFO: ProcessCDR(1,14505788,1,1,2) [2025-02-18 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505788', 'tblTempUsageDetail_20' ) start [2025-02-18 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505788', 'tblTempUsageDetail_20' ) end [2025-02-18 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:24:21] Production.INFO: ==2062== Releasing lock... [2025-02-18 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:24:21] Production.INFO: 39 MB #Memory Used# [2025-02-18 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:25:06 [end_date_ymd] => 2025-02-18 21:25:06 [RateCDR] => 1 ) [2025-02-18 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:25:06' and `end` < '2025-02-18 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:25:17] Production.INFO: count ==1457 [2025-02-18 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:25:06 - End Time 2025-02-18 21:25:06 [2025-02-18 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505793', 'tblTempUsageDetail_20' ) start [2025-02-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505793', 'tblTempUsageDetail_20' ) end [2025-02-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505793', 'tblTempVendorCDR_20' ) start [2025-02-18 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505793', 'tblTempVendorCDR_20' ) end [2025-02-18 21:25:18] Production.INFO: ProcessCDR(1,14505793,1,1,2) [2025-02-18 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505793', 'tblTempUsageDetail_20' ) start [2025-02-18 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505793', 'tblTempUsageDetail_20' ) end [2025-02-18 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:25:21] Production.INFO: ==2161== Releasing lock... [2025-02-18 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-18 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:26:06 [end_date_ymd] => 2025-02-18 21:26:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:26:06' and `end` < '2025-02-18 21: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-18 21:26:17] Production.INFO: count ==1457 [2025-02-18 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:26:06 - End Time 2025-02-18 21:26:06 [2025-02-18 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505798', 'tblTempUsageDetail_20' ) start [2025-02-18 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505798', 'tblTempUsageDetail_20' ) end [2025-02-18 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505798', 'tblTempVendorCDR_20' ) start [2025-02-18 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505798', 'tblTempVendorCDR_20' ) end [2025-02-18 21:26:18] Production.INFO: ProcessCDR(1,14505798,1,1,2) [2025-02-18 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505798', 'tblTempUsageDetail_20' ) start [2025-02-18 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505798', 'tblTempUsageDetail_20' ) end [2025-02-18 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:26:21] Production.INFO: ==2256== Releasing lock... [2025-02-18 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:26:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-18 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:27:04 [end_date_ymd] => 2025-02-18 21:27:04 [RateCDR] => 1 ) [2025-02-18 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:27:04' and `end` < '2025-02-18 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:27:16] Production.INFO: count ==1442 [2025-02-18 21:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:27:04 - End Time 2025-02-18 21:27:04 [2025-02-18 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505803', 'tblTempUsageDetail_20' ) start [2025-02-18 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505803', 'tblTempUsageDetail_20' ) end [2025-02-18 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505803', 'tblTempVendorCDR_20' ) start [2025-02-18 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505803', 'tblTempVendorCDR_20' ) end [2025-02-18 21:27:17] Production.INFO: ProcessCDR(1,14505803,1,1,2) [2025-02-18 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505803', 'tblTempUsageDetail_20' ) start [2025-02-18 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505803', 'tblTempUsageDetail_20' ) end [2025-02-18 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:27:20] Production.INFO: ==2341== Releasing lock... [2025-02-18 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:27:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-18 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:28:05 [end_date_ymd] => 2025-02-18 21:28:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:28:05' and `end` < '2025-02-18 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-18 21:28:17] Production.INFO: count ==1430 [2025-02-18 21:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:28:05 - End Time 2025-02-18 21:28:05 [2025-02-18 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505808', 'tblTempUsageDetail_20' ) start [2025-02-18 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505808', 'tblTempUsageDetail_20' ) end [2025-02-18 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505808', 'tblTempVendorCDR_20' ) start [2025-02-18 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505808', 'tblTempVendorCDR_20' ) end [2025-02-18 21:28:17] Production.INFO: ProcessCDR(1,14505808,1,1,2) [2025-02-18 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505808', 'tblTempUsageDetail_20' ) start [2025-02-18 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505808', 'tblTempUsageDetail_20' ) end [2025-02-18 21:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:28:20] Production.INFO: ==2429== Releasing lock... [2025-02-18 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:28:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-18 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:29:05 [end_date_ymd] => 2025-02-18 21:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:29:05' and `end` < '2025-02-18 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-18 21:29:17] Production.INFO: count ==1423 [2025-02-18 21:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:29:05 - End Time 2025-02-18 21:29:05 [2025-02-18 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505813', 'tblTempUsageDetail_20' ) start [2025-02-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505813', 'tblTempUsageDetail_20' ) end [2025-02-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505813', 'tblTempVendorCDR_20' ) start [2025-02-18 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505813', 'tblTempVendorCDR_20' ) end [2025-02-18 21:29:17] Production.INFO: ProcessCDR(1,14505813,1,1,2) [2025-02-18 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505813', 'tblTempUsageDetail_20' ) start [2025-02-18 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505813', 'tblTempUsageDetail_20' ) end [2025-02-18 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:29:22] Production.INFO: ==2518== Releasing lock... [2025-02-18 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:29:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-18 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:30:06 [end_date_ymd] => 2025-02-18 21:30:06 [RateCDR] => 1 ) [2025-02-18 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:30:06' and `end` < '2025-02-18 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:30:18] Production.INFO: count ==1421 [2025-02-18 21:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:30:06 - End Time 2025-02-18 21:30:06 [2025-02-18 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505818', 'tblTempUsageDetail_20' ) start [2025-02-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505818', 'tblTempUsageDetail_20' ) end [2025-02-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505818', 'tblTempVendorCDR_20' ) start [2025-02-18 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505818', 'tblTempVendorCDR_20' ) end [2025-02-18 21:30:18] Production.INFO: ProcessCDR(1,14505818,1,1,2) [2025-02-18 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505818', 'tblTempUsageDetail_20' ) start [2025-02-18 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505818', 'tblTempUsageDetail_20' ) end [2025-02-18 21:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:30:21] Production.INFO: ==2615== Releasing lock... [2025-02-18 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:30:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-18 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:31:05 [end_date_ymd] => 2025-02-18 21:31:05 [RateCDR] => 1 ) [2025-02-18 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:31:05' and `end` < '2025-02-18 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:31:17] Production.INFO: count ==1364 [2025-02-18 21:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:31:05 - End Time 2025-02-18 21:31:05 [2025-02-18 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505824', 'tblTempUsageDetail_20' ) start [2025-02-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505824', 'tblTempUsageDetail_20' ) end [2025-02-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505824', 'tblTempVendorCDR_20' ) start [2025-02-18 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505824', 'tblTempVendorCDR_20' ) end [2025-02-18 21:31:17] Production.INFO: ProcessCDR(1,14505824,1,1,2) [2025-02-18 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505824', 'tblTempUsageDetail_20' ) start [2025-02-18 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505824', 'tblTempUsageDetail_20' ) end [2025-02-18 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:31:22] Production.INFO: ==2710== Releasing lock... [2025-02-18 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:31:22] Production.INFO: 38 MB #Memory Used# [2025-02-18 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:32:05 [end_date_ymd] => 2025-02-18 21:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:32:05' and `end` < '2025-02-18 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-18 21:32:17] Production.INFO: count ==1365 [2025-02-18 21:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:32:05 - End Time 2025-02-18 21:32:05 [2025-02-18 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505829', 'tblTempUsageDetail_20' ) start [2025-02-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505829', 'tblTempUsageDetail_20' ) end [2025-02-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505829', 'tblTempVendorCDR_20' ) start [2025-02-18 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505829', 'tblTempVendorCDR_20' ) end [2025-02-18 21:32:17] Production.INFO: ProcessCDR(1,14505829,1,1,2) [2025-02-18 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505829', 'tblTempUsageDetail_20' ) start [2025-02-18 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505829', 'tblTempUsageDetail_20' ) end [2025-02-18 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:32:21] Production.INFO: ==2805== Releasing lock... [2025-02-18 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:32:21] Production.INFO: 38 MB #Memory Used# [2025-02-18 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:33:06 [end_date_ymd] => 2025-02-18 21:33:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:33:06' and `end` < '2025-02-18 21: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-18 21:33:18] Production.INFO: count ==1363 [2025-02-18 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:33:06 - End Time 2025-02-18 21:33:06 [2025-02-18 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505834', 'tblTempUsageDetail_20' ) start [2025-02-18 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505834', 'tblTempUsageDetail_20' ) end [2025-02-18 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505834', 'tblTempVendorCDR_20' ) start [2025-02-18 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505834', 'tblTempVendorCDR_20' ) end [2025-02-18 21:33:18] Production.INFO: ProcessCDR(1,14505834,1,1,2) [2025-02-18 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505834', 'tblTempUsageDetail_20' ) start [2025-02-18 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505834', 'tblTempUsageDetail_20' ) end [2025-02-18 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:33:21] Production.INFO: ==2895== Releasing lock... [2025-02-18 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:33:21] Production.INFO: 38 MB #Memory Used# [2025-02-18 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:34:05 [end_date_ymd] => 2025-02-18 21:34:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:34:05' and `end` < '2025-02-18 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-18 21:34:17] Production.INFO: count ==1365 [2025-02-18 21:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:34:05 - End Time 2025-02-18 21:34:05 [2025-02-18 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505839', 'tblTempUsageDetail_20' ) start [2025-02-18 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505839', 'tblTempUsageDetail_20' ) end [2025-02-18 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505839', 'tblTempVendorCDR_20' ) start [2025-02-18 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505839', 'tblTempVendorCDR_20' ) end [2025-02-18 21:34:17] Production.INFO: ProcessCDR(1,14505839,1,1,2) [2025-02-18 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505839', 'tblTempUsageDetail_20' ) start [2025-02-18 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505839', 'tblTempUsageDetail_20' ) end [2025-02-18 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:34:22] Production.INFO: ==3025== Releasing lock... [2025-02-18 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:34:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-18 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:35:06 [end_date_ymd] => 2025-02-18 21:35:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:35:06' and `end` < '2025-02-18 21: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-18 21:35:18] Production.INFO: count ==1365 [2025-02-18 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:35:06 - End Time 2025-02-18 21:35:06 [2025-02-18 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505844', 'tblTempUsageDetail_20' ) start [2025-02-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505844', 'tblTempUsageDetail_20' ) end [2025-02-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505844', 'tblTempVendorCDR_20' ) start [2025-02-18 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505844', 'tblTempVendorCDR_20' ) end [2025-02-18 21:35:18] Production.INFO: ProcessCDR(1,14505844,1,1,2) [2025-02-18 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505844', 'tblTempUsageDetail_20' ) start [2025-02-18 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505844', 'tblTempUsageDetail_20' ) end [2025-02-18 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:35:23] Production.INFO: ==3121== Releasing lock... [2025-02-18 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:35:23] Production.INFO: 38 MB #Memory Used# [2025-02-18 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:36:05 [end_date_ymd] => 2025-02-18 21:36:05 [RateCDR] => 1 ) [2025-02-18 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:36:05' and `end` < '2025-02-18 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:36:17] Production.INFO: count ==1343 [2025-02-18 21:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:36:05 - End Time 2025-02-18 21:36:05 [2025-02-18 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505849', 'tblTempUsageDetail_20' ) start [2025-02-18 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505849', 'tblTempUsageDetail_20' ) end [2025-02-18 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505849', 'tblTempVendorCDR_20' ) start [2025-02-18 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505849', 'tblTempVendorCDR_20' ) end [2025-02-18 21:36:18] Production.INFO: ProcessCDR(1,14505849,1,1,2) [2025-02-18 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505849', 'tblTempUsageDetail_20' ) start [2025-02-18 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505849', 'tblTempUsageDetail_20' ) end [2025-02-18 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:36:22] Production.INFO: ==3211== Releasing lock... [2025-02-18 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:36:22] Production.INFO: 38 MB #Memory Used# [2025-02-18 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:37:05 [end_date_ymd] => 2025-02-18 21:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:37:05' and `end` < '2025-02-18 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-18 21:37:17] Production.INFO: count ==1325 [2025-02-18 21:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:37:05 - End Time 2025-02-18 21:37:05 [2025-02-18 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505854', 'tblTempUsageDetail_20' ) start [2025-02-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505854', 'tblTempUsageDetail_20' ) end [2025-02-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505854', 'tblTempVendorCDR_20' ) start [2025-02-18 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505854', 'tblTempVendorCDR_20' ) end [2025-02-18 21:37:17] Production.INFO: ProcessCDR(1,14505854,1,1,2) [2025-02-18 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505854', 'tblTempUsageDetail_20' ) start [2025-02-18 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505854', 'tblTempUsageDetail_20' ) end [2025-02-18 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:37:21] Production.INFO: ==3311== Releasing lock... [2025-02-18 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:37:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-18 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:38:06 [end_date_ymd] => 2025-02-18 21:38:06 [RateCDR] => 1 ) [2025-02-18 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-18 18:38:06' and `end` < '2025-02-18 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-18 21:38:17] Production.INFO: count ==1328 [2025-02-18 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:38:06 - End Time 2025-02-18 21:38:06 [2025-02-18 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505859', 'tblTempUsageDetail_20' ) start [2025-02-18 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505859', 'tblTempUsageDetail_20' ) end [2025-02-18 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505859', 'tblTempVendorCDR_20' ) start [2025-02-18 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505859', 'tblTempVendorCDR_20' ) end [2025-02-18 21:38:18] Production.INFO: ProcessCDR(1,14505859,1,1,2) [2025-02-18 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505859', 'tblTempUsageDetail_20' ) start [2025-02-18 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505859', 'tblTempUsageDetail_20' ) end [2025-02-18 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:38:21] Production.INFO: ==3404== Releasing lock... [2025-02-18 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:38:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-18 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:39:06 [end_date_ymd] => 2025-02-18 21:39:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:39:06' and `end` < '2025-02-18 21: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-18 21:39:18] Production.INFO: count ==1327 [2025-02-18 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:39:06 - End Time 2025-02-18 21:39:06 [2025-02-18 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505864', 'tblTempUsageDetail_20' ) start [2025-02-18 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505864', 'tblTempUsageDetail_20' ) end [2025-02-18 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505864', 'tblTempVendorCDR_20' ) start [2025-02-18 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505864', 'tblTempVendorCDR_20' ) end [2025-02-18 21:39:18] Production.INFO: ProcessCDR(1,14505864,1,1,2) [2025-02-18 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505864', 'tblTempUsageDetail_20' ) start [2025-02-18 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505864', 'tblTempUsageDetail_20' ) end [2025-02-18 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:39:21] Production.INFO: ==3495== Releasing lock... [2025-02-18 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:39:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-18 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:40:06 [end_date_ymd] => 2025-02-18 21:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 18:40:06' and `end` < '2025-02-18 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-18 21:40:18] Production.INFO: count ==1325 [2025-02-18 21:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:40:06 - End Time 2025-02-18 21:40:06 [2025-02-18 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505870', 'tblTempUsageDetail_20' ) start [2025-02-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505870', 'tblTempUsageDetail_20' ) end [2025-02-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505870', 'tblTempVendorCDR_20' ) start [2025-02-18 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505870', 'tblTempVendorCDR_20' ) end [2025-02-18 21:40:18] Production.INFO: ProcessCDR(1,14505870,1,1,2) [2025-02-18 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505870', 'tblTempUsageDetail_20' ) start [2025-02-18 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505870', 'tblTempUsageDetail_20' ) end [2025-02-18 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:40:22] Production.INFO: ==3586== Releasing lock... [2025-02-18 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:40:22] Production.INFO: 38 MB #Memory Used# [2025-02-18 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:41:06 [end_date_ymd] => 2025-02-18 21:41:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:41:06' and `end` < '2025-02-18 21: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-18 21:41:18] Production.INFO: count ==1291 [2025-02-18 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:41:06 - End Time 2025-02-18 21:41:06 [2025-02-18 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505875', 'tblTempUsageDetail_20' ) start [2025-02-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505875', 'tblTempUsageDetail_20' ) end [2025-02-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505875', 'tblTempVendorCDR_20' ) start [2025-02-18 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505875', 'tblTempVendorCDR_20' ) end [2025-02-18 21:41:18] Production.INFO: ProcessCDR(1,14505875,1,1,2) [2025-02-18 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505875', 'tblTempUsageDetail_20' ) start [2025-02-18 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505875', 'tblTempUsageDetail_20' ) end [2025-02-18 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:41:21] Production.INFO: ==3684== Releasing lock... [2025-02-18 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:41:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-18 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:42:05 [end_date_ymd] => 2025-02-18 21:42:05 [RateCDR] => 1 ) [2025-02-18 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:42:05' and `end` < '2025-02-18 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:42:17] Production.INFO: count ==1289 [2025-02-18 21:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:42:05 - End Time 2025-02-18 21:42:05 [2025-02-18 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505880', 'tblTempUsageDetail_20' ) start [2025-02-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505880', 'tblTempUsageDetail_20' ) end [2025-02-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505880', 'tblTempVendorCDR_20' ) start [2025-02-18 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505880', 'tblTempVendorCDR_20' ) end [2025-02-18 21:42:17] Production.INFO: ProcessCDR(1,14505880,1,1,2) [2025-02-18 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505880', 'tblTempUsageDetail_20' ) start [2025-02-18 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505880', 'tblTempUsageDetail_20' ) end [2025-02-18 21:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:42:20] Production.INFO: ==3767== Releasing lock... [2025-02-18 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:42:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-18 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:43:05 [end_date_ymd] => 2025-02-18 21:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:43:05' and `end` < '2025-02-18 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-18 21:43:17] Production.INFO: count ==1280 [2025-02-18 21:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:43:05 - End Time 2025-02-18 21:43:05 [2025-02-18 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505885', 'tblTempUsageDetail_20' ) start [2025-02-18 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505885', 'tblTempUsageDetail_20' ) end [2025-02-18 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505885', 'tblTempVendorCDR_20' ) start [2025-02-18 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505885', 'tblTempVendorCDR_20' ) end [2025-02-18 21:43:17] Production.INFO: ProcessCDR(1,14505885,1,1,2) [2025-02-18 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505885', 'tblTempUsageDetail_20' ) start [2025-02-18 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505885', 'tblTempUsageDetail_20' ) end [2025-02-18 21:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:43:21] Production.INFO: ==3847== Releasing lock... [2025-02-18 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:43:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-18 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:44:05 [end_date_ymd] => 2025-02-18 21:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:44:05' and `end` < '2025-02-18 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-18 21:44:17] Production.INFO: count ==1274 [2025-02-18 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:44:05 - End Time 2025-02-18 21:44:05 [2025-02-18 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505890', 'tblTempUsageDetail_20' ) start [2025-02-18 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505890', 'tblTempUsageDetail_20' ) end [2025-02-18 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505890', 'tblTempVendorCDR_20' ) start [2025-02-18 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505890', 'tblTempVendorCDR_20' ) end [2025-02-18 21:44:18] Production.INFO: ProcessCDR(1,14505890,1,1,2) [2025-02-18 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505890', 'tblTempUsageDetail_20' ) start [2025-02-18 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505890', 'tblTempUsageDetail_20' ) end [2025-02-18 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:44:21] Production.INFO: ==3933== Releasing lock... [2025-02-18 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:44:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-18 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:45:05 [end_date_ymd] => 2025-02-18 21:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:45:05' and `end` < '2025-02-18 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-18 21:45:17] Production.INFO: count ==1269 [2025-02-18 21:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:45:05 - End Time 2025-02-18 21:45:05 [2025-02-18 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505895', 'tblTempUsageDetail_20' ) start [2025-02-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505895', 'tblTempUsageDetail_20' ) end [2025-02-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505895', 'tblTempVendorCDR_20' ) start [2025-02-18 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505895', 'tblTempVendorCDR_20' ) end [2025-02-18 21:45:17] Production.INFO: ProcessCDR(1,14505895,1,1,2) [2025-02-18 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505895', 'tblTempUsageDetail_20' ) start [2025-02-18 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505895', 'tblTempUsageDetail_20' ) end [2025-02-18 21:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:45:20] Production.INFO: ==4020== Releasing lock... [2025-02-18 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:45:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-18 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:46:05 [end_date_ymd] => 2025-02-18 21:46:05 [RateCDR] => 1 ) [2025-02-18 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:46:05' and `end` < '2025-02-18 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:46:17] Production.INFO: count ==1256 [2025-02-18 21:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:46:05 - End Time 2025-02-18 21:46:05 [2025-02-18 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505900', 'tblTempUsageDetail_20' ) start [2025-02-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505900', 'tblTempUsageDetail_20' ) end [2025-02-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505900', 'tblTempVendorCDR_20' ) start [2025-02-18 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505900', 'tblTempVendorCDR_20' ) end [2025-02-18 21:46:17] Production.INFO: ProcessCDR(1,14505900,1,1,2) [2025-02-18 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505900', 'tblTempUsageDetail_20' ) start [2025-02-18 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505900', 'tblTempUsageDetail_20' ) end [2025-02-18 21:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:46:20] Production.INFO: ==4097== Releasing lock... [2025-02-18 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:46:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-18 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:47:05 [end_date_ymd] => 2025-02-18 21:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:47:05' and `end` < '2025-02-18 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-18 21:47:17] Production.INFO: count ==1253 [2025-02-18 21:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:47:05 - End Time 2025-02-18 21:47:05 [2025-02-18 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505905', 'tblTempUsageDetail_20' ) start [2025-02-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505905', 'tblTempUsageDetail_20' ) end [2025-02-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505905', 'tblTempVendorCDR_20' ) start [2025-02-18 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505905', 'tblTempVendorCDR_20' ) end [2025-02-18 21:47:17] Production.INFO: ProcessCDR(1,14505905,1,1,2) [2025-02-18 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505905', 'tblTempUsageDetail_20' ) start [2025-02-18 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505905', 'tblTempUsageDetail_20' ) end [2025-02-18 21:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:47:20] Production.INFO: ==4183== Releasing lock... [2025-02-18 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:47:20] Production.INFO: 37 MB #Memory Used# [2025-02-18 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:48:06 [end_date_ymd] => 2025-02-18 21:48:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:48:06' and `end` < '2025-02-18 21: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-18 21:48:17] Production.INFO: count ==1253 [2025-02-18 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:48:06 - End Time 2025-02-18 21:48:06 [2025-02-18 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505910', 'tblTempUsageDetail_20' ) start [2025-02-18 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505910', 'tblTempUsageDetail_20' ) end [2025-02-18 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505910', 'tblTempVendorCDR_20' ) start [2025-02-18 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505910', 'tblTempVendorCDR_20' ) end [2025-02-18 21:48:18] Production.INFO: ProcessCDR(1,14505910,1,1,2) [2025-02-18 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505910', 'tblTempUsageDetail_20' ) start [2025-02-18 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505910', 'tblTempUsageDetail_20' ) end [2025-02-18 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:48:21] Production.INFO: ==4269== Releasing lock... [2025-02-18 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:48:21] Production.INFO: 37 MB #Memory Used# [2025-02-18 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:49:05 [end_date_ymd] => 2025-02-18 21:49:05 [RateCDR] => 1 ) [2025-02-18 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:49:05' and `end` < '2025-02-18 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:49:17] Production.INFO: count ==1251 [2025-02-18 21:49:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:49:05 - End Time 2025-02-18 21:49:05 [2025-02-18 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505915', 'tblTempUsageDetail_20' ) start [2025-02-18 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505915', 'tblTempUsageDetail_20' ) end [2025-02-18 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505915', 'tblTempVendorCDR_20' ) start [2025-02-18 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505915', 'tblTempVendorCDR_20' ) end [2025-02-18 21:49:17] Production.INFO: ProcessCDR(1,14505915,1,1,2) [2025-02-18 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505915', 'tblTempUsageDetail_20' ) start [2025-02-18 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505915', 'tblTempUsageDetail_20' ) end [2025-02-18 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:49:21] Production.INFO: ==4391== Releasing lock... [2025-02-18 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:49:21] Production.INFO: 37 MB #Memory Used# [2025-02-18 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:50:06 [end_date_ymd] => 2025-02-18 21:50:06 [RateCDR] => 1 ) [2025-02-18 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-18 18:50:06' and `end` < '2025-02-18 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-18 21:50:18] Production.INFO: count ==1250 [2025-02-18 21:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:50:06 - End Time 2025-02-18 21:50:06 [2025-02-18 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505920', 'tblTempUsageDetail_20' ) start [2025-02-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505920', 'tblTempUsageDetail_20' ) end [2025-02-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505920', 'tblTempVendorCDR_20' ) start [2025-02-18 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505920', 'tblTempVendorCDR_20' ) end [2025-02-18 21:50:18] Production.INFO: ProcessCDR(1,14505920,1,1,2) [2025-02-18 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505920', 'tblTempUsageDetail_20' ) start [2025-02-18 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505920', 'tblTempUsageDetail_20' ) end [2025-02-18 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:50:22] Production.INFO: ==4478== Releasing lock... [2025-02-18 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:50:22] Production.INFO: 37 MB #Memory Used# [2025-02-18 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:51:05 [end_date_ymd] => 2025-02-18 21:51:05 [RateCDR] => 1 ) [2025-02-18 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:51:05' and `end` < '2025-02-18 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:51:17] Production.INFO: count ==1190 [2025-02-18 21:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:51:05 - End Time 2025-02-18 21:51:05 [2025-02-18 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505926', 'tblTempUsageDetail_20' ) start [2025-02-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505926', 'tblTempUsageDetail_20' ) end [2025-02-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505926', 'tblTempVendorCDR_20' ) start [2025-02-18 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505926', 'tblTempVendorCDR_20' ) end [2025-02-18 21:51:17] Production.INFO: ProcessCDR(1,14505926,1,1,2) [2025-02-18 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505926', 'tblTempUsageDetail_20' ) start [2025-02-18 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505926', 'tblTempUsageDetail_20' ) end [2025-02-18 21:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:51:20] Production.INFO: ==4561== Releasing lock... [2025-02-18 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:51:20] Production.INFO: 36.75 MB #Memory Used# [2025-02-18 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:52:06 [end_date_ymd] => 2025-02-18 21:52:06 [RateCDR] => 1 ) [2025-02-18 21: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-18 18:52:06' and `end` < '2025-02-18 21: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-18 21:52:17] Production.INFO: count ==1190 [2025-02-18 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:52:06 - End Time 2025-02-18 21:52:06 [2025-02-18 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505931', 'tblTempUsageDetail_20' ) start [2025-02-18 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505931', 'tblTempUsageDetail_20' ) end [2025-02-18 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505931', 'tblTempVendorCDR_20' ) start [2025-02-18 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505931', 'tblTempVendorCDR_20' ) end [2025-02-18 21:52:18] Production.INFO: ProcessCDR(1,14505931,1,1,2) [2025-02-18 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505931', 'tblTempUsageDetail_20' ) start [2025-02-18 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505931', 'tblTempUsageDetail_20' ) end [2025-02-18 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:52:23] Production.INFO: ==4650== Releasing lock... [2025-02-18 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:52:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-18 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:53:05 [end_date_ymd] => 2025-02-18 21:53:05 [RateCDR] => 1 ) [2025-02-18 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:53:05' and `end` < '2025-02-18 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:53:17] Production.INFO: count ==1185 [2025-02-18 21:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:53:05 - End Time 2025-02-18 21:53:05 [2025-02-18 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505936', 'tblTempUsageDetail_20' ) start [2025-02-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505936', 'tblTempUsageDetail_20' ) end [2025-02-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505936', 'tblTempVendorCDR_20' ) start [2025-02-18 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505936', 'tblTempVendorCDR_20' ) end [2025-02-18 21:53:17] Production.INFO: ProcessCDR(1,14505936,1,1,2) [2025-02-18 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505936', 'tblTempUsageDetail_20' ) start [2025-02-18 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505936', 'tblTempUsageDetail_20' ) end [2025-02-18 21:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:53:20] Production.INFO: ==4733== Releasing lock... [2025-02-18 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:53:20] Production.INFO: 36.75 MB #Memory Used# [2025-02-18 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:54:05 [end_date_ymd] => 2025-02-18 21:54:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:54:05' and `end` < '2025-02-18 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-18 21:54:17] Production.INFO: count ==1154 [2025-02-18 21:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:54:05 - End Time 2025-02-18 21:54:05 [2025-02-18 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505941', 'tblTempUsageDetail_20' ) start [2025-02-18 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505941', 'tblTempUsageDetail_20' ) end [2025-02-18 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505941', 'tblTempVendorCDR_20' ) start [2025-02-18 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505941', 'tblTempVendorCDR_20' ) end [2025-02-18 21:54:17] Production.INFO: ProcessCDR(1,14505941,1,1,2) [2025-02-18 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505941', 'tblTempUsageDetail_20' ) start [2025-02-18 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505941', 'tblTempUsageDetail_20' ) end [2025-02-18 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:54:21] Production.INFO: ==4820== Releasing lock... [2025-02-18 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:54:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-18 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:55:05 [end_date_ymd] => 2025-02-18 21:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:55:05' and `end` < '2025-02-18 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-18 21:55:17] Production.INFO: count ==1153 [2025-02-18 21:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:55:05 - End Time 2025-02-18 21:55:05 [2025-02-18 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505946', 'tblTempUsageDetail_20' ) start [2025-02-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505946', 'tblTempUsageDetail_20' ) end [2025-02-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505946', 'tblTempVendorCDR_20' ) start [2025-02-18 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505946', 'tblTempVendorCDR_20' ) end [2025-02-18 21:55:17] Production.INFO: ProcessCDR(1,14505946,1,1,2) [2025-02-18 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505946', 'tblTempUsageDetail_20' ) start [2025-02-18 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505946', 'tblTempUsageDetail_20' ) end [2025-02-18 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:55:20] Production.INFO: ==4902== Releasing lock... [2025-02-18 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:55:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-18 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:56:06 [end_date_ymd] => 2025-02-18 21:56:06 [RateCDR] => 1 ) [2025-02-18 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:56:06' and `end` < '2025-02-18 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:56:17] Production.INFO: count ==1134 [2025-02-18 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-18 18:56:06 - End Time 2025-02-18 21:56:06 [2025-02-18 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505951', 'tblTempUsageDetail_20' ) start [2025-02-18 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505951', 'tblTempUsageDetail_20' ) end [2025-02-18 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505951', 'tblTempVendorCDR_20' ) start [2025-02-18 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505951', 'tblTempVendorCDR_20' ) end [2025-02-18 21:56:18] Production.INFO: ProcessCDR(1,14505951,1,1,2) [2025-02-18 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505951', 'tblTempUsageDetail_20' ) start [2025-02-18 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505951', 'tblTempUsageDetail_20' ) end [2025-02-18 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:56:21] Production.INFO: ==4982== Releasing lock... [2025-02-18 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:56:21] Production.INFO: 36 MB #Memory Used# [2025-02-18 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:57:05 [end_date_ymd] => 2025-02-18 21:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:57:05' and `end` < '2025-02-18 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-18 21:57:17] Production.INFO: count ==1131 [2025-02-18 21:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:57:05 - End Time 2025-02-18 21:57:05 [2025-02-18 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505956', 'tblTempUsageDetail_20' ) start [2025-02-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505956', 'tblTempUsageDetail_20' ) end [2025-02-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505956', 'tblTempVendorCDR_20' ) start [2025-02-18 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505956', 'tblTempVendorCDR_20' ) end [2025-02-18 21:57:17] Production.INFO: ProcessCDR(1,14505956,1,1,2) [2025-02-18 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505956', 'tblTempUsageDetail_20' ) start [2025-02-18 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505956', 'tblTempUsageDetail_20' ) end [2025-02-18 21:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:57:20] Production.INFO: ==5085== Releasing lock... [2025-02-18 21:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:57:20] Production.INFO: 36 MB #Memory Used# [2025-02-18 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:58:05 [end_date_ymd] => 2025-02-18 21:58:05 [RateCDR] => 1 ) [2025-02-18 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 18:58:05' and `end` < '2025-02-18 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 21:58:17] Production.INFO: count ==1134 [2025-02-18 21:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:58:05 - End Time 2025-02-18 21:58:05 [2025-02-18 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505961', 'tblTempUsageDetail_20' ) start [2025-02-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505961', 'tblTempUsageDetail_20' ) end [2025-02-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505961', 'tblTempVendorCDR_20' ) start [2025-02-18 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505961', 'tblTempVendorCDR_20' ) end [2025-02-18 21:58:17] Production.INFO: ProcessCDR(1,14505961,1,1,2) [2025-02-18 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505961', 'tblTempUsageDetail_20' ) start [2025-02-18 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505961', 'tblTempUsageDetail_20' ) end [2025-02-18 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:58:22] Production.INFO: ==5210== Releasing lock... [2025-02-18 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:58:22] Production.INFO: 36 MB #Memory Used# [2025-02-18 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 18:59:05 [end_date_ymd] => 2025-02-18 21:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 18:59:05' and `end` < '2025-02-18 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-18 21:59:17] Production.INFO: count ==1133 [2025-02-18 21:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 18:59:05 - End Time 2025-02-18 21:59:05 [2025-02-18 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505966', 'tblTempUsageDetail_20' ) start [2025-02-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505966', 'tblTempUsageDetail_20' ) end [2025-02-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505966', 'tblTempVendorCDR_20' ) start [2025-02-18 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505966', 'tblTempVendorCDR_20' ) end [2025-02-18 21:59:17] Production.INFO: ProcessCDR(1,14505966,1,1,2) [2025-02-18 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505966', 'tblTempUsageDetail_20' ) start [2025-02-18 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505966', 'tblTempUsageDetail_20' ) end [2025-02-18 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 21:59:21] Production.INFO: ==5329== Releasing lock... [2025-02-18 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 21:59:21] Production.INFO: 36 MB #Memory Used# [2025-02-18 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:00:06 [end_date_ymd] => 2025-02-18 22:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 19:00:06' and `end` < '2025-02-18 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-18 22:00:18] Production.INFO: count ==1127 [2025-02-18 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-18 19:00:06 - End Time 2025-02-18 22:00:06 [2025-02-18 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505972', 'tblTempUsageDetail_20' ) start [2025-02-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505972', 'tblTempUsageDetail_20' ) end [2025-02-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505972', 'tblTempVendorCDR_20' ) start [2025-02-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505972', 'tblTempVendorCDR_20' ) end [2025-02-18 22:00:19] Production.INFO: ProcessCDR(1,14505972,1,1,2) [2025-02-18 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505972', 'tblTempUsageDetail_20' ) start [2025-02-18 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505972', 'tblTempUsageDetail_20' ) end [2025-02-18 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:00:22] Production.INFO: ==5451== Releasing lock... [2025-02-18 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:00:22] Production.INFO: 36 MB #Memory Used# [2025-02-18 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:01:05 [end_date_ymd] => 2025-02-18 22:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:01:05' and `end` < '2025-02-18 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-18 22:01:17] Production.INFO: count ==1089 [2025-02-18 22:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:01:05 - End Time 2025-02-18 22:01:05 [2025-02-18 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505977', 'tblTempUsageDetail_20' ) start [2025-02-18 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505977', 'tblTempUsageDetail_20' ) end [2025-02-18 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505977', 'tblTempVendorCDR_20' ) start [2025-02-18 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505977', 'tblTempVendorCDR_20' ) end [2025-02-18 22:01:17] Production.INFO: ProcessCDR(1,14505977,1,1,2) [2025-02-18 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505977', 'tblTempUsageDetail_20' ) start [2025-02-18 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505977', 'tblTempUsageDetail_20' ) end [2025-02-18 22:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:01:21] Production.INFO: ==5589== Releasing lock... [2025-02-18 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:01:21] Production.INFO: 36 MB #Memory Used# [2025-02-18 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:02:05 [end_date_ymd] => 2025-02-18 22:02:05 [RateCDR] => 1 ) [2025-02-18 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:02:05' and `end` < '2025-02-18 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:02:17] Production.INFO: count ==1072 [2025-02-18 22:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:02:05 - End Time 2025-02-18 22:02:05 [2025-02-18 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505982', 'tblTempUsageDetail_20' ) start [2025-02-18 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505982', 'tblTempUsageDetail_20' ) end [2025-02-18 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505982', 'tblTempVendorCDR_20' ) start [2025-02-18 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505982', 'tblTempVendorCDR_20' ) end [2025-02-18 22:02:17] Production.INFO: ProcessCDR(1,14505982,1,1,2) [2025-02-18 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505982', 'tblTempUsageDetail_20' ) start [2025-02-18 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505982', 'tblTempUsageDetail_20' ) end [2025-02-18 22:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:02:20] Production.INFO: ==5706== Releasing lock... [2025-02-18 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:02:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:03:05 [end_date_ymd] => 2025-02-18 22:03:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:03:05' and `end` < '2025-02-18 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-18 22:03:17] Production.INFO: count ==1070 [2025-02-18 22:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:03:05 - End Time 2025-02-18 22:03:05 [2025-02-18 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505987', 'tblTempUsageDetail_20' ) start [2025-02-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505987', 'tblTempUsageDetail_20' ) end [2025-02-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505987', 'tblTempVendorCDR_20' ) start [2025-02-18 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505987', 'tblTempVendorCDR_20' ) end [2025-02-18 22:03:17] Production.INFO: ProcessCDR(1,14505987,1,1,2) [2025-02-18 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505987', 'tblTempUsageDetail_20' ) start [2025-02-18 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505987', 'tblTempUsageDetail_20' ) end [2025-02-18 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:03:21] Production.INFO: ==5823== Releasing lock... [2025-02-18 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:03:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:04:05 [end_date_ymd] => 2025-02-18 22:04:05 [RateCDR] => 1 ) [2025-02-18 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:04:05' and `end` < '2025-02-18 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:04:17] Production.INFO: count ==1067 [2025-02-18 22:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:04:05 - End Time 2025-02-18 22:04:05 [2025-02-18 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505992', 'tblTempUsageDetail_20' ) start [2025-02-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505992', 'tblTempUsageDetail_20' ) end [2025-02-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505992', 'tblTempVendorCDR_20' ) start [2025-02-18 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505992', 'tblTempVendorCDR_20' ) end [2025-02-18 22:04:17] Production.INFO: ProcessCDR(1,14505992,1,1,2) [2025-02-18 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505992', 'tblTempUsageDetail_20' ) start [2025-02-18 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505992', 'tblTempUsageDetail_20' ) end [2025-02-18 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:04:21] Production.INFO: ==5949== Releasing lock... [2025-02-18 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:04:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:05:05 [end_date_ymd] => 2025-02-18 22:05:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:05:05' and `end` < '2025-02-18 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-18 22:05:17] Production.INFO: count ==1066 [2025-02-18 22:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:05:05 - End Time 2025-02-18 22:05:05 [2025-02-18 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505997', 'tblTempUsageDetail_20' ) start [2025-02-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14505997', 'tblTempUsageDetail_20' ) end [2025-02-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505997', 'tblTempVendorCDR_20' ) start [2025-02-18 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14505997', 'tblTempVendorCDR_20' ) end [2025-02-18 22:05:17] Production.INFO: ProcessCDR(1,14505997,1,1,2) [2025-02-18 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14505997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14505997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14505997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14505997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505997', 'tblTempUsageDetail_20' ) start [2025-02-18 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14505997', 'tblTempUsageDetail_20' ) end [2025-02-18 22:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:05:20] Production.INFO: ==6105== Releasing lock... [2025-02-18 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:05:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:06:05 [end_date_ymd] => 2025-02-18 22:06:05 [RateCDR] => 1 ) [2025-02-18 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:06:05' and `end` < '2025-02-18 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:06:17] Production.INFO: count ==1065 [2025-02-18 22:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:06:05 - End Time 2025-02-18 22:06:05 [2025-02-18 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506002', 'tblTempUsageDetail_20' ) start [2025-02-18 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506002', 'tblTempUsageDetail_20' ) end [2025-02-18 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506002', 'tblTempVendorCDR_20' ) start [2025-02-18 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506002', 'tblTempVendorCDR_20' ) end [2025-02-18 22:06:17] Production.INFO: ProcessCDR(1,14506002,1,1,2) [2025-02-18 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506002', 'tblTempUsageDetail_20' ) start [2025-02-18 22:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506002', 'tblTempUsageDetail_20' ) end [2025-02-18 22:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:06:20] Production.INFO: ==6221== Releasing lock... [2025-02-18 22:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:06:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:07:05 [end_date_ymd] => 2025-02-18 22:07:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:07:05' and `end` < '2025-02-18 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-18 22:07:17] Production.INFO: count ==1066 [2025-02-18 22:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:07:05 - End Time 2025-02-18 22:07:05 [2025-02-18 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506007', 'tblTempUsageDetail_20' ) start [2025-02-18 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506007', 'tblTempUsageDetail_20' ) end [2025-02-18 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506007', 'tblTempVendorCDR_20' ) start [2025-02-18 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506007', 'tblTempVendorCDR_20' ) end [2025-02-18 22:07:17] Production.INFO: ProcessCDR(1,14506007,1,1,2) [2025-02-18 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506007', 'tblTempUsageDetail_20' ) start [2025-02-18 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506007', 'tblTempUsageDetail_20' ) end [2025-02-18 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:07:21] Production.INFO: ==6334== Releasing lock... [2025-02-18 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:07:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:08:06 [end_date_ymd] => 2025-02-18 22:08:06 [RateCDR] => 1 ) [2025-02-18 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-18 19:08:06' and `end` < '2025-02-18 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-18 22:08:17] Production.INFO: count ==1057 [2025-02-18 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:08:06 - End Time 2025-02-18 22:08:06 [2025-02-18 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506012', 'tblTempUsageDetail_20' ) start [2025-02-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506012', 'tblTempUsageDetail_20' ) end [2025-02-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506012', 'tblTempVendorCDR_20' ) start [2025-02-18 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506012', 'tblTempVendorCDR_20' ) end [2025-02-18 22:08:18] Production.INFO: ProcessCDR(1,14506012,1,1,2) [2025-02-18 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506012', 'tblTempUsageDetail_20' ) start [2025-02-18 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506012', 'tblTempUsageDetail_20' ) end [2025-02-18 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:08:21] Production.INFO: ==6450== Releasing lock... [2025-02-18 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:08:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:09:05 [end_date_ymd] => 2025-02-18 22:09:05 [RateCDR] => 1 ) [2025-02-18 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:09:05' and `end` < '2025-02-18 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:09:17] Production.INFO: count ==1053 [2025-02-18 22:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:09:05 - End Time 2025-02-18 22:09:05 [2025-02-18 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506017', 'tblTempUsageDetail_20' ) start [2025-02-18 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506017', 'tblTempUsageDetail_20' ) end [2025-02-18 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506017', 'tblTempVendorCDR_20' ) start [2025-02-18 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506017', 'tblTempVendorCDR_20' ) end [2025-02-18 22:09:17] Production.INFO: ProcessCDR(1,14506017,1,1,2) [2025-02-18 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506017', 'tblTempUsageDetail_20' ) start [2025-02-18 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506017', 'tblTempUsageDetail_20' ) end [2025-02-18 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:09:21] Production.INFO: ==6569== Releasing lock... [2025-02-18 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:09:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:10:06 [end_date_ymd] => 2025-02-18 22:10:06 [RateCDR] => 1 ) [2025-02-18 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-18 19:10:06' and `end` < '2025-02-18 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-18 22:10:18] Production.INFO: count ==1052 [2025-02-18 22:10:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:10:06 - End Time 2025-02-18 22:10:06 [2025-02-18 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506023', 'tblTempUsageDetail_20' ) start [2025-02-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506023', 'tblTempUsageDetail_20' ) end [2025-02-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506023', 'tblTempVendorCDR_20' ) start [2025-02-18 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506023', 'tblTempVendorCDR_20' ) end [2025-02-18 22:10:18] Production.INFO: ProcessCDR(1,14506023,1,1,2) [2025-02-18 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506023', 'tblTempUsageDetail_20' ) start [2025-02-18 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506023', 'tblTempUsageDetail_20' ) end [2025-02-18 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:10:22] Production.INFO: ==6686== Releasing lock... [2025-02-18 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:10:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:11:06 [end_date_ymd] => 2025-02-18 22:11:06 [RateCDR] => 1 ) [2025-02-18 22: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-18 19:11:06' and `end` < '2025-02-18 22: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-18 22:11:18] Production.INFO: count ==1036 [2025-02-18 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:11:06 - End Time 2025-02-18 22:11:06 [2025-02-18 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506028', 'tblTempUsageDetail_20' ) start [2025-02-18 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506028', 'tblTempUsageDetail_20' ) end [2025-02-18 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506028', 'tblTempVendorCDR_20' ) start [2025-02-18 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506028', 'tblTempVendorCDR_20' ) end [2025-02-18 22:11:18] Production.INFO: ProcessCDR(1,14506028,1,1,2) [2025-02-18 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506028', 'tblTempUsageDetail_20' ) start [2025-02-18 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506028', 'tblTempUsageDetail_20' ) end [2025-02-18 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:11:21] Production.INFO: ==6804== Releasing lock... [2025-02-18 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:11:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:12:05 [end_date_ymd] => 2025-02-18 22:12:05 [RateCDR] => 1 ) [2025-02-18 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:12:05' and `end` < '2025-02-18 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:12:17] Production.INFO: count ==1039 [2025-02-18 22:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:12:05 - End Time 2025-02-18 22:12:05 [2025-02-18 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506033', 'tblTempUsageDetail_20' ) start [2025-02-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506033', 'tblTempUsageDetail_20' ) end [2025-02-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506033', 'tblTempVendorCDR_20' ) start [2025-02-18 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506033', 'tblTempVendorCDR_20' ) end [2025-02-18 22:12:17] Production.INFO: ProcessCDR(1,14506033,1,1,2) [2025-02-18 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506033', 'tblTempUsageDetail_20' ) start [2025-02-18 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506033', 'tblTempUsageDetail_20' ) end [2025-02-18 22:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:12:20] Production.INFO: ==6917== Releasing lock... [2025-02-18 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:12:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:13:06 [end_date_ymd] => 2025-02-18 22:13:06 [RateCDR] => 1 ) [2025-02-18 22: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-18 19:13:06' and `end` < '2025-02-18 22: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-18 22:13:18] Production.INFO: count ==1039 [2025-02-18 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:13:06 - End Time 2025-02-18 22:13:06 [2025-02-18 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506038', 'tblTempUsageDetail_20' ) start [2025-02-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506038', 'tblTempUsageDetail_20' ) end [2025-02-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506038', 'tblTempVendorCDR_20' ) start [2025-02-18 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506038', 'tblTempVendorCDR_20' ) end [2025-02-18 22:13:18] Production.INFO: ProcessCDR(1,14506038,1,1,2) [2025-02-18 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506038', 'tblTempUsageDetail_20' ) start [2025-02-18 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506038', 'tblTempUsageDetail_20' ) end [2025-02-18 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:13:21] Production.INFO: ==7036== Releasing lock... [2025-02-18 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:14:05 [end_date_ymd] => 2025-02-18 22:14:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:14:05' and `end` < '2025-02-18 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-18 22:14:17] Production.INFO: count ==1044 [2025-02-18 22:14:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:14:05 - End Time 2025-02-18 22:14:05 [2025-02-18 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506043', 'tblTempUsageDetail_20' ) start [2025-02-18 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506043', 'tblTempUsageDetail_20' ) end [2025-02-18 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506043', 'tblTempVendorCDR_20' ) start [2025-02-18 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506043', 'tblTempVendorCDR_20' ) end [2025-02-18 22:14:17] Production.INFO: ProcessCDR(1,14506043,1,1,2) [2025-02-18 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506043', 'tblTempUsageDetail_20' ) start [2025-02-18 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506043', 'tblTempUsageDetail_20' ) end [2025-02-18 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:14:22] Production.INFO: ==7147== Releasing lock... [2025-02-18 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:14:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:15:05 [end_date_ymd] => 2025-02-18 22:15:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:15:05' and `end` < '2025-02-18 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-18 22:15:17] Production.INFO: count ==1044 [2025-02-18 22:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:15:05 - End Time 2025-02-18 22:15:05 [2025-02-18 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506048', 'tblTempUsageDetail_20' ) start [2025-02-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506048', 'tblTempUsageDetail_20' ) end [2025-02-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506048', 'tblTempVendorCDR_20' ) start [2025-02-18 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506048', 'tblTempVendorCDR_20' ) end [2025-02-18 22:15:17] Production.INFO: ProcessCDR(1,14506048,1,1,2) [2025-02-18 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506048', 'tblTempUsageDetail_20' ) start [2025-02-18 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506048', 'tblTempUsageDetail_20' ) end [2025-02-18 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:15:21] Production.INFO: ==7262== Releasing lock... [2025-02-18 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:15:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:16:05 [end_date_ymd] => 2025-02-18 22:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:16:05' and `end` < '2025-02-18 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-18 22:16:17] Production.INFO: count ==1043 [2025-02-18 22:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:16:05 - End Time 2025-02-18 22:16:05 [2025-02-18 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506053', 'tblTempUsageDetail_20' ) start [2025-02-18 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506053', 'tblTempUsageDetail_20' ) end [2025-02-18 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506053', 'tblTempVendorCDR_20' ) start [2025-02-18 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506053', 'tblTempVendorCDR_20' ) end [2025-02-18 22:16:17] Production.INFO: ProcessCDR(1,14506053,1,1,2) [2025-02-18 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506053', 'tblTempUsageDetail_20' ) start [2025-02-18 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506053', 'tblTempUsageDetail_20' ) end [2025-02-18 22:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:16:20] Production.INFO: ==7364== Releasing lock... [2025-02-18 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:16:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:17:05 [end_date_ymd] => 2025-02-18 22:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:17:05' and `end` < '2025-02-18 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-18 22:17:17] Production.INFO: count ==1046 [2025-02-18 22:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:17:05 - End Time 2025-02-18 22:17:05 [2025-02-18 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506058', 'tblTempUsageDetail_20' ) start [2025-02-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506058', 'tblTempUsageDetail_20' ) end [2025-02-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506058', 'tblTempVendorCDR_20' ) start [2025-02-18 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506058', 'tblTempVendorCDR_20' ) end [2025-02-18 22:17:17] Production.INFO: ProcessCDR(1,14506058,1,1,2) [2025-02-18 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506058', 'tblTempUsageDetail_20' ) start [2025-02-18 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506058', 'tblTempUsageDetail_20' ) end [2025-02-18 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:17:21] Production.INFO: ==7457== Releasing lock... [2025-02-18 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:17:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:18:05 [end_date_ymd] => 2025-02-18 22:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:18:05' and `end` < '2025-02-18 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-18 22:18:17] Production.INFO: count ==1047 [2025-02-18 22:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:18:05 - End Time 2025-02-18 22:18:05 [2025-02-18 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506063', 'tblTempUsageDetail_20' ) start [2025-02-18 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506063', 'tblTempUsageDetail_20' ) end [2025-02-18 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506063', 'tblTempVendorCDR_20' ) start [2025-02-18 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506063', 'tblTempVendorCDR_20' ) end [2025-02-18 22:18:17] Production.INFO: ProcessCDR(1,14506063,1,1,2) [2025-02-18 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506063', 'tblTempUsageDetail_20' ) start [2025-02-18 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506063', 'tblTempUsageDetail_20' ) end [2025-02-18 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:18:20] Production.INFO: ==7533== Releasing lock... [2025-02-18 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:18:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:19:05 [end_date_ymd] => 2025-02-18 22:19:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:19:05' and `end` < '2025-02-18 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-18 22:19:17] Production.INFO: count ==1054 [2025-02-18 22:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:19:05 - End Time 2025-02-18 22:19:05 [2025-02-18 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506068', 'tblTempUsageDetail_20' ) start [2025-02-18 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506068', 'tblTempUsageDetail_20' ) end [2025-02-18 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506068', 'tblTempVendorCDR_20' ) start [2025-02-18 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506068', 'tblTempVendorCDR_20' ) end [2025-02-18 22:19:17] Production.INFO: ProcessCDR(1,14506068,1,1,2) [2025-02-18 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506068', 'tblTempUsageDetail_20' ) start [2025-02-18 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506068', 'tblTempUsageDetail_20' ) end [2025-02-18 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:19:20] Production.INFO: ==7605== Releasing lock... [2025-02-18 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:19:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:20:06 [end_date_ymd] => 2025-02-18 22:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 19:20:06' and `end` < '2025-02-18 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-18 22:20:18] Production.INFO: count ==1053 [2025-02-18 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:20:06 - End Time 2025-02-18 22:20:06 [2025-02-18 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506074', 'tblTempUsageDetail_20' ) start [2025-02-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506074', 'tblTempUsageDetail_20' ) end [2025-02-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506074', 'tblTempVendorCDR_20' ) start [2025-02-18 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506074', 'tblTempVendorCDR_20' ) end [2025-02-18 22:20:18] Production.INFO: ProcessCDR(1,14506074,1,1,2) [2025-02-18 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506074', 'tblTempUsageDetail_20' ) start [2025-02-18 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506074', 'tblTempUsageDetail_20' ) end [2025-02-18 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:20:21] Production.INFO: ==7719== Releasing lock... [2025-02-18 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:20:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:21:05 [end_date_ymd] => 2025-02-18 22:21:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:21:05' and `end` < '2025-02-18 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-18 22:21:16] Production.INFO: count ==1034 [2025-02-18 22:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:21:05 - End Time 2025-02-18 22:21:05 [2025-02-18 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506079', 'tblTempUsageDetail_20' ) start [2025-02-18 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506079', 'tblTempUsageDetail_20' ) end [2025-02-18 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506079', 'tblTempVendorCDR_20' ) start [2025-02-18 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506079', 'tblTempVendorCDR_20' ) end [2025-02-18 22:21:17] Production.INFO: ProcessCDR(1,14506079,1,1,2) [2025-02-18 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506079', 'tblTempUsageDetail_20' ) start [2025-02-18 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506079', 'tblTempUsageDetail_20' ) end [2025-02-18 22:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:21:20] Production.INFO: ==7797== Releasing lock... [2025-02-18 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:21:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:22:05 [end_date_ymd] => 2025-02-18 22:22:05 [RateCDR] => 1 ) [2025-02-18 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:22:05' and `end` < '2025-02-18 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:22:17] Production.INFO: count ==1034 [2025-02-18 22:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:22:05 - End Time 2025-02-18 22:22:05 [2025-02-18 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506084', 'tblTempUsageDetail_20' ) start [2025-02-18 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506084', 'tblTempUsageDetail_20' ) end [2025-02-18 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506084', 'tblTempVendorCDR_20' ) start [2025-02-18 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506084', 'tblTempVendorCDR_20' ) end [2025-02-18 22:22:17] Production.INFO: ProcessCDR(1,14506084,1,1,2) [2025-02-18 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506084', 'tblTempUsageDetail_20' ) start [2025-02-18 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506084', 'tblTempUsageDetail_20' ) end [2025-02-18 22:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:22:20] Production.INFO: ==7867== Releasing lock... [2025-02-18 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:22:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:23:05 [end_date_ymd] => 2025-02-18 22:23:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:23:05' and `end` < '2025-02-18 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-18 22:23:17] Production.INFO: count ==1036 [2025-02-18 22:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:23:05 - End Time 2025-02-18 22:23:05 [2025-02-18 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506089', 'tblTempUsageDetail_20' ) start [2025-02-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506089', 'tblTempUsageDetail_20' ) end [2025-02-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506089', 'tblTempVendorCDR_20' ) start [2025-02-18 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506089', 'tblTempVendorCDR_20' ) end [2025-02-18 22:23:17] Production.INFO: ProcessCDR(1,14506089,1,1,2) [2025-02-18 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506089', 'tblTempUsageDetail_20' ) start [2025-02-18 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506089', 'tblTempUsageDetail_20' ) end [2025-02-18 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:23:20] Production.INFO: ==7938== Releasing lock... [2025-02-18 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:23:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:24:06 [end_date_ymd] => 2025-02-18 22:24:06 [RateCDR] => 1 ) [2025-02-18 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-18 19:24:06' and `end` < '2025-02-18 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-18 22:24:18] Production.INFO: count ==1035 [2025-02-18 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:24:06 - End Time 2025-02-18 22:24:06 [2025-02-18 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506094', 'tblTempUsageDetail_20' ) start [2025-02-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506094', 'tblTempUsageDetail_20' ) end [2025-02-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506094', 'tblTempVendorCDR_20' ) start [2025-02-18 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506094', 'tblTempVendorCDR_20' ) end [2025-02-18 22:24:18] Production.INFO: ProcessCDR(1,14506094,1,1,2) [2025-02-18 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506094', 'tblTempUsageDetail_20' ) start [2025-02-18 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506094', 'tblTempUsageDetail_20' ) end [2025-02-18 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:24:22] Production.INFO: ==8010== Releasing lock... [2025-02-18 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:24:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-18 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:25:05 [end_date_ymd] => 2025-02-18 22:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:25:05' and `end` < '2025-02-18 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-18 22:25:16] Production.INFO: count ==1031 [2025-02-18 22:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:25:05 - End Time 2025-02-18 22:25:05 [2025-02-18 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506099', 'tblTempUsageDetail_20' ) start [2025-02-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506099', 'tblTempUsageDetail_20' ) end [2025-02-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506099', 'tblTempVendorCDR_20' ) start [2025-02-18 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506099', 'tblTempVendorCDR_20' ) end [2025-02-18 22:25:17] Production.INFO: ProcessCDR(1,14506099,1,1,2) [2025-02-18 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506099', 'tblTempUsageDetail_20' ) start [2025-02-18 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506099', 'tblTempUsageDetail_20' ) end [2025-02-18 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:25:20] Production.INFO: ==8086== Releasing lock... [2025-02-18 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:25:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:26:05 [end_date_ymd] => 2025-02-18 22:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:26:05' and `end` < '2025-02-18 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-18 22:26:17] Production.INFO: count ==1032 [2025-02-18 22:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:26:05 - End Time 2025-02-18 22:26:05 [2025-02-18 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506104', 'tblTempUsageDetail_20' ) start [2025-02-18 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506104', 'tblTempUsageDetail_20' ) end [2025-02-18 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506104', 'tblTempVendorCDR_20' ) start [2025-02-18 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506104', 'tblTempVendorCDR_20' ) end [2025-02-18 22:26:17] Production.INFO: ProcessCDR(1,14506104,1,1,2) [2025-02-18 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506104', 'tblTempUsageDetail_20' ) start [2025-02-18 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506104', 'tblTempUsageDetail_20' ) end [2025-02-18 22:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:26:20] Production.INFO: ==8158== Releasing lock... [2025-02-18 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:26:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:27:05 [end_date_ymd] => 2025-02-18 22:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:27:05' and `end` < '2025-02-18 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-18 22:27:16] Production.INFO: count ==1036 [2025-02-18 22:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:27:05 - End Time 2025-02-18 22:27:05 [2025-02-18 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506109', 'tblTempUsageDetail_20' ) start [2025-02-18 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506109', 'tblTempUsageDetail_20' ) end [2025-02-18 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506109', 'tblTempVendorCDR_20' ) start [2025-02-18 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506109', 'tblTempVendorCDR_20' ) end [2025-02-18 22:27:17] Production.INFO: ProcessCDR(1,14506109,1,1,2) [2025-02-18 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506109', 'tblTempUsageDetail_20' ) start [2025-02-18 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506109', 'tblTempUsageDetail_20' ) end [2025-02-18 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:27:21] Production.INFO: ==8229== Releasing lock... [2025-02-18 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:27:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:28:05 [end_date_ymd] => 2025-02-18 22:28:05 [RateCDR] => 1 ) [2025-02-18 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:28:05' and `end` < '2025-02-18 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-18 22:28:17] Production.INFO: count ==1036 [2025-02-18 22:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:28:05 - End Time 2025-02-18 22:28:05 [2025-02-18 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506114', 'tblTempUsageDetail_20' ) start [2025-02-18 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506114', 'tblTempUsageDetail_20' ) end [2025-02-18 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506114', 'tblTempVendorCDR_20' ) start [2025-02-18 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506114', 'tblTempVendorCDR_20' ) end [2025-02-18 22:28:17] Production.INFO: ProcessCDR(1,14506114,1,1,2) [2025-02-18 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506114', 'tblTempUsageDetail_20' ) start [2025-02-18 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506114', 'tblTempUsageDetail_20' ) end [2025-02-18 22:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:28:20] Production.INFO: ==8309== Releasing lock... [2025-02-18 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:28:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:29:04 [end_date_ymd] => 2025-02-18 22:29:04 [RateCDR] => 1 ) [2025-02-18 22: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-18 19:29:04' and `end` < '2025-02-18 22: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-18 22:29:16] Production.INFO: count ==1032 [2025-02-18 22:29:16] Production.ERROR: pbx CDR StartTime 2025-02-18 19:29:04 - End Time 2025-02-18 22:29:04 [2025-02-18 22:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506119', 'tblTempUsageDetail_20' ) start [2025-02-18 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506119', 'tblTempUsageDetail_20' ) end [2025-02-18 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506119', 'tblTempVendorCDR_20' ) start [2025-02-18 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506119', 'tblTempVendorCDR_20' ) end [2025-02-18 22:29:16] Production.INFO: ProcessCDR(1,14506119,1,1,2) [2025-02-18 22:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506119', 'tblTempUsageDetail_20' ) start [2025-02-18 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506119', 'tblTempUsageDetail_20' ) end [2025-02-18 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:29:21] Production.INFO: ==8379== Releasing lock... [2025-02-18 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:29:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:30:06 [end_date_ymd] => 2025-02-18 22:30:06 [RateCDR] => 1 ) [2025-02-18 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:30:06' and `end` < '2025-02-18 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:30:18] Production.INFO: count ==1060 [2025-02-18 22:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:30:06 - End Time 2025-02-18 22:30:06 [2025-02-18 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506125', 'tblTempUsageDetail_20' ) start [2025-02-18 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506125', 'tblTempUsageDetail_20' ) end [2025-02-18 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506125', 'tblTempVendorCDR_20' ) start [2025-02-18 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506125', 'tblTempVendorCDR_20' ) end [2025-02-18 22:30:18] Production.INFO: ProcessCDR(1,14506125,1,1,2) [2025-02-18 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506125', 'tblTempUsageDetail_20' ) start [2025-02-18 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506125', 'tblTempUsageDetail_20' ) end [2025-02-18 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:30:22] Production.INFO: ==8457== Releasing lock... [2025-02-18 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-18 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:31:05 [end_date_ymd] => 2025-02-18 22:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:31:05' and `end` < '2025-02-18 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-18 22:31:17] Production.INFO: count ==1012 [2025-02-18 22:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:31:05 - End Time 2025-02-18 22:31:05 [2025-02-18 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506130', 'tblTempUsageDetail_20' ) start [2025-02-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506130', 'tblTempUsageDetail_20' ) end [2025-02-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506130', 'tblTempVendorCDR_20' ) start [2025-02-18 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506130', 'tblTempVendorCDR_20' ) end [2025-02-18 22:31:17] Production.INFO: ProcessCDR(1,14506130,1,1,2) [2025-02-18 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506130', 'tblTempUsageDetail_20' ) start [2025-02-18 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506130', 'tblTempUsageDetail_20' ) end [2025-02-18 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:31:21] Production.INFO: ==8532== Releasing lock... [2025-02-18 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:32:05 [end_date_ymd] => 2025-02-18 22:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:32:05' and `end` < '2025-02-18 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-18 22:32:17] Production.INFO: count ==1012 [2025-02-18 22:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:32:05 - End Time 2025-02-18 22:32:05 [2025-02-18 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506135', 'tblTempUsageDetail_20' ) start [2025-02-18 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506135', 'tblTempUsageDetail_20' ) end [2025-02-18 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506135', 'tblTempVendorCDR_20' ) start [2025-02-18 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506135', 'tblTempVendorCDR_20' ) end [2025-02-18 22:32:17] Production.INFO: ProcessCDR(1,14506135,1,1,2) [2025-02-18 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506135', 'tblTempUsageDetail_20' ) start [2025-02-18 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506135', 'tblTempUsageDetail_20' ) end [2025-02-18 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:32:21] Production.INFO: ==8602== Releasing lock... [2025-02-18 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:32:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:33:06 [end_date_ymd] => 2025-02-18 22:33:06 [RateCDR] => 1 ) [2025-02-18 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:33:06' and `end` < '2025-02-18 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:33:17] Production.INFO: count ==1012 [2025-02-18 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:33:06 - End Time 2025-02-18 22:33:06 [2025-02-18 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506140', 'tblTempUsageDetail_20' ) start [2025-02-18 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506140', 'tblTempUsageDetail_20' ) end [2025-02-18 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506140', 'tblTempVendorCDR_20' ) start [2025-02-18 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506140', 'tblTempVendorCDR_20' ) end [2025-02-18 22:33:18] Production.INFO: ProcessCDR(1,14506140,1,1,2) [2025-02-18 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506140', 'tblTempUsageDetail_20' ) start [2025-02-18 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506140', 'tblTempUsageDetail_20' ) end [2025-02-18 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:33:22] Production.INFO: ==8680== Releasing lock... [2025-02-18 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:33:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:34:05 [end_date_ymd] => 2025-02-18 22:34:05 [RateCDR] => 1 ) [2025-02-18 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:34:05' and `end` < '2025-02-18 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:34:17] Production.INFO: count ==1012 [2025-02-18 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:34:05 - End Time 2025-02-18 22:34:05 [2025-02-18 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506145', 'tblTempUsageDetail_20' ) start [2025-02-18 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506145', 'tblTempUsageDetail_20' ) end [2025-02-18 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506145', 'tblTempVendorCDR_20' ) start [2025-02-18 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506145', 'tblTempVendorCDR_20' ) end [2025-02-18 22:34:17] Production.INFO: ProcessCDR(1,14506145,1,1,2) [2025-02-18 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506145', 'tblTempUsageDetail_20' ) start [2025-02-18 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506145', 'tblTempUsageDetail_20' ) end [2025-02-18 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:34:20] Production.INFO: ==8752== Releasing lock... [2025-02-18 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:34:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:35:05 [end_date_ymd] => 2025-02-18 22:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:35:05' and `end` < '2025-02-18 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-18 22:35:17] Production.INFO: count ==1012 [2025-02-18 22:35:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:35:05 - End Time 2025-02-18 22:35:05 [2025-02-18 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506150', 'tblTempUsageDetail_20' ) start [2025-02-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506150', 'tblTempUsageDetail_20' ) end [2025-02-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506150', 'tblTempVendorCDR_20' ) start [2025-02-18 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506150', 'tblTempVendorCDR_20' ) end [2025-02-18 22:35:17] Production.INFO: ProcessCDR(1,14506150,1,1,2) [2025-02-18 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506150', 'tblTempUsageDetail_20' ) start [2025-02-18 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506150', 'tblTempUsageDetail_20' ) end [2025-02-18 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:35:21] Production.INFO: ==8824== Releasing lock... [2025-02-18 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:36:05 [end_date_ymd] => 2025-02-18 22:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:36:05' and `end` < '2025-02-18 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-18 22:36:17] Production.INFO: count ==1013 [2025-02-18 22:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:36:05 - End Time 2025-02-18 22:36:05 [2025-02-18 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506155', 'tblTempUsageDetail_20' ) start [2025-02-18 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506155', 'tblTempUsageDetail_20' ) end [2025-02-18 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506155', 'tblTempVendorCDR_20' ) start [2025-02-18 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506155', 'tblTempVendorCDR_20' ) end [2025-02-18 22:36:17] Production.INFO: ProcessCDR(1,14506155,1,1,2) [2025-02-18 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506155', 'tblTempUsageDetail_20' ) start [2025-02-18 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506155', 'tblTempUsageDetail_20' ) end [2025-02-18 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:36:21] Production.INFO: ==8934== Releasing lock... [2025-02-18 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:36:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:37:05 [end_date_ymd] => 2025-02-18 22:37:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:37:05' and `end` < '2025-02-18 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-18 22:37:17] Production.INFO: count ==1006 [2025-02-18 22:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:37:05 - End Time 2025-02-18 22:37:05 [2025-02-18 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506160', 'tblTempUsageDetail_20' ) start [2025-02-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506160', 'tblTempUsageDetail_20' ) end [2025-02-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506160', 'tblTempVendorCDR_20' ) start [2025-02-18 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506160', 'tblTempVendorCDR_20' ) end [2025-02-18 22:37:17] Production.INFO: ProcessCDR(1,14506160,1,1,2) [2025-02-18 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506160', 'tblTempUsageDetail_20' ) start [2025-02-18 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506160', 'tblTempUsageDetail_20' ) end [2025-02-18 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:37:22] Production.INFO: ==9006== Releasing lock... [2025-02-18 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:37:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:38:05 [end_date_ymd] => 2025-02-18 22:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:38:05' and `end` < '2025-02-18 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-18 22:38:17] Production.INFO: count ==1006 [2025-02-18 22:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:38:05 - End Time 2025-02-18 22:38:05 [2025-02-18 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506165', 'tblTempUsageDetail_20' ) start [2025-02-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506165', 'tblTempUsageDetail_20' ) end [2025-02-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506165', 'tblTempVendorCDR_20' ) start [2025-02-18 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506165', 'tblTempVendorCDR_20' ) end [2025-02-18 22:38:17] Production.INFO: ProcessCDR(1,14506165,1,1,2) [2025-02-18 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506165', 'tblTempUsageDetail_20' ) start [2025-02-18 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506165', 'tblTempUsageDetail_20' ) end [2025-02-18 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:38:20] Production.INFO: ==9076== Releasing lock... [2025-02-18 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:38:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:39:05 [end_date_ymd] => 2025-02-18 22:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:39:05' and `end` < '2025-02-18 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-18 22:39:17] Production.INFO: count ==1000 [2025-02-18 22:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:39:05 - End Time 2025-02-18 22:39:05 [2025-02-18 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506170', 'tblTempUsageDetail_20' ) start [2025-02-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506170', 'tblTempUsageDetail_20' ) end [2025-02-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506170', 'tblTempVendorCDR_20' ) start [2025-02-18 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506170', 'tblTempVendorCDR_20' ) end [2025-02-18 22:39:17] Production.INFO: ProcessCDR(1,14506170,1,1,2) [2025-02-18 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506170', 'tblTempUsageDetail_20' ) start [2025-02-18 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506170', 'tblTempUsageDetail_20' ) end [2025-02-18 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:39:22] Production.INFO: ==9147== Releasing lock... [2025-02-18 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:39:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:40:06 [end_date_ymd] => 2025-02-18 22:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 19:40:06' and `end` < '2025-02-18 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-18 22:40:18] Production.INFO: count ==997 [2025-02-18 22:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:40:06 - End Time 2025-02-18 22:40:06 [2025-02-18 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506176', 'tblTempUsageDetail_20' ) start [2025-02-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506176', 'tblTempUsageDetail_20' ) end [2025-02-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506176', 'tblTempVendorCDR_20' ) start [2025-02-18 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506176', 'tblTempVendorCDR_20' ) end [2025-02-18 22:40:18] Production.INFO: ProcessCDR(1,14506176,1,1,2) [2025-02-18 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506176', 'tblTempUsageDetail_20' ) start [2025-02-18 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506176', 'tblTempUsageDetail_20' ) end [2025-02-18 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:40:21] Production.INFO: ==9220== Releasing lock... [2025-02-18 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:40:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:41:05 [end_date_ymd] => 2025-02-18 22:41:05 [RateCDR] => 1 ) [2025-02-18 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:41:05' and `end` < '2025-02-18 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:41:17] Production.INFO: count ==951 [2025-02-18 22:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:41:05 - End Time 2025-02-18 22:41:05 [2025-02-18 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506181', 'tblTempUsageDetail_20' ) start [2025-02-18 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506181', 'tblTempUsageDetail_20' ) end [2025-02-18 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506181', 'tblTempVendorCDR_20' ) start [2025-02-18 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506181', 'tblTempVendorCDR_20' ) end [2025-02-18 22:41:17] Production.INFO: ProcessCDR(1,14506181,1,1,2) [2025-02-18 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506181', 'tblTempUsageDetail_20' ) start [2025-02-18 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506181', 'tblTempUsageDetail_20' ) end [2025-02-18 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:41:20] Production.INFO: ==9294== Releasing lock... [2025-02-18 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:41:20] Production.INFO: 35 MB #Memory Used# [2025-02-18 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:42:05 [end_date_ymd] => 2025-02-18 22:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:42:05' and `end` < '2025-02-18 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-18 22:42:17] Production.INFO: count ==951 [2025-02-18 22:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:42:05 - End Time 2025-02-18 22:42:05 [2025-02-18 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506186', 'tblTempUsageDetail_20' ) start [2025-02-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506186', 'tblTempUsageDetail_20' ) end [2025-02-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506186', 'tblTempVendorCDR_20' ) start [2025-02-18 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506186', 'tblTempVendorCDR_20' ) end [2025-02-18 22:42:17] Production.INFO: ProcessCDR(1,14506186,1,1,2) [2025-02-18 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506186', 'tblTempUsageDetail_20' ) start [2025-02-18 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506186', 'tblTempUsageDetail_20' ) end [2025-02-18 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:42:21] Production.INFO: ==9365== Releasing lock... [2025-02-18 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:42:21] Production.INFO: 35 MB #Memory Used# [2025-02-18 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:43:05 [end_date_ymd] => 2025-02-18 22:43:05 [RateCDR] => 1 ) [2025-02-18 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:43:05' and `end` < '2025-02-18 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:43:17] Production.INFO: count ==951 [2025-02-18 22:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:43:05 - End Time 2025-02-18 22:43:05 [2025-02-18 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506191', 'tblTempUsageDetail_20' ) start [2025-02-18 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506191', 'tblTempUsageDetail_20' ) end [2025-02-18 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506191', 'tblTempVendorCDR_20' ) start [2025-02-18 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506191', 'tblTempVendorCDR_20' ) end [2025-02-18 22:43:17] Production.INFO: ProcessCDR(1,14506191,1,1,2) [2025-02-18 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506191', 'tblTempUsageDetail_20' ) start [2025-02-18 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506191', 'tblTempUsageDetail_20' ) end [2025-02-18 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:43:20] Production.INFO: ==9436== Releasing lock... [2025-02-18 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:43:20] Production.INFO: 35 MB #Memory Used# [2025-02-18 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:44:05 [end_date_ymd] => 2025-02-18 22:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:44:05' and `end` < '2025-02-18 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-18 22:44:17] Production.INFO: count ==952 [2025-02-18 22:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:44:05 - End Time 2025-02-18 22:44:05 [2025-02-18 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506196', 'tblTempUsageDetail_20' ) start [2025-02-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506196', 'tblTempUsageDetail_20' ) end [2025-02-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506196', 'tblTempVendorCDR_20' ) start [2025-02-18 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506196', 'tblTempVendorCDR_20' ) end [2025-02-18 22:44:17] Production.INFO: ProcessCDR(1,14506196,1,1,2) [2025-02-18 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506196', 'tblTempUsageDetail_20' ) start [2025-02-18 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506196', 'tblTempUsageDetail_20' ) end [2025-02-18 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:44:22] Production.INFO: ==9508== Releasing lock... [2025-02-18 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:44:22] Production.INFO: 35 MB #Memory Used# [2025-02-18 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:45:05 [end_date_ymd] => 2025-02-18 22:45:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:45:05' and `end` < '2025-02-18 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-18 22:45:17] Production.INFO: count ==949 [2025-02-18 22:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:45:05 - End Time 2025-02-18 22:45:05 [2025-02-18 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506201', 'tblTempUsageDetail_20' ) start [2025-02-18 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506201', 'tblTempUsageDetail_20' ) end [2025-02-18 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506201', 'tblTempVendorCDR_20' ) start [2025-02-18 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506201', 'tblTempVendorCDR_20' ) end [2025-02-18 22:45:17] Production.INFO: ProcessCDR(1,14506201,1,1,2) [2025-02-18 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506201', 'tblTempUsageDetail_20' ) start [2025-02-18 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506201', 'tblTempUsageDetail_20' ) end [2025-02-18 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:45:21] Production.INFO: ==9583== Releasing lock... [2025-02-18 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:45:21] Production.INFO: 35 MB #Memory Used# [2025-02-18 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:46:06 [end_date_ymd] => 2025-02-18 22:46:06 [RateCDR] => 1 ) [2025-02-18 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:46:06' and `end` < '2025-02-18 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:46:18] Production.INFO: count ==946 [2025-02-18 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:46:06 - End Time 2025-02-18 22:46:06 [2025-02-18 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506206', 'tblTempUsageDetail_20' ) start [2025-02-18 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506206', 'tblTempUsageDetail_20' ) end [2025-02-18 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506206', 'tblTempVendorCDR_20' ) start [2025-02-18 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506206', 'tblTempVendorCDR_20' ) end [2025-02-18 22:46:18] Production.INFO: ProcessCDR(1,14506206,1,1,2) [2025-02-18 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506206', 'tblTempUsageDetail_20' ) start [2025-02-18 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506206', 'tblTempUsageDetail_20' ) end [2025-02-18 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:46:21] Production.INFO: ==9653== Releasing lock... [2025-02-18 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:46:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-18 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:47:05 [end_date_ymd] => 2025-02-18 22:47:05 [RateCDR] => 1 ) [2025-02-18 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:47:05' and `end` < '2025-02-18 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:47:17] Production.INFO: count ==944 [2025-02-18 22:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:47:05 - End Time 2025-02-18 22:47:05 [2025-02-18 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506211', 'tblTempUsageDetail_20' ) start [2025-02-18 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506211', 'tblTempUsageDetail_20' ) end [2025-02-18 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506211', 'tblTempVendorCDR_20' ) start [2025-02-18 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506211', 'tblTempVendorCDR_20' ) end [2025-02-18 22:47:17] Production.INFO: ProcessCDR(1,14506211,1,1,2) [2025-02-18 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506211', 'tblTempUsageDetail_20' ) start [2025-02-18 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506211', 'tblTempUsageDetail_20' ) end [2025-02-18 22:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:47:20] Production.INFO: ==9729== Releasing lock... [2025-02-18 22:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:47:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-18 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:48:05 [end_date_ymd] => 2025-02-18 22:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:48:05' and `end` < '2025-02-18 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-18 22:48:17] Production.INFO: count ==939 [2025-02-18 22:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:48:05 - End Time 2025-02-18 22:48:05 [2025-02-18 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506216', 'tblTempUsageDetail_20' ) start [2025-02-18 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506216', 'tblTempUsageDetail_20' ) end [2025-02-18 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506216', 'tblTempVendorCDR_20' ) start [2025-02-18 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506216', 'tblTempVendorCDR_20' ) end [2025-02-18 22:48:17] Production.INFO: ProcessCDR(1,14506216,1,1,2) [2025-02-18 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506216', 'tblTempUsageDetail_20' ) start [2025-02-18 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506216', 'tblTempUsageDetail_20' ) end [2025-02-18 22:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:48:20] Production.INFO: ==9803== Releasing lock... [2025-02-18 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:48:20] Production.INFO: 35 MB #Memory Used# [2025-02-18 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:49:05 [end_date_ymd] => 2025-02-18 22:49:05 [RateCDR] => 1 ) [2025-02-18 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:49:05' and `end` < '2025-02-18 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:49:17] Production.INFO: count ==912 [2025-02-18 22:49:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:49:05 - End Time 2025-02-18 22:49:05 [2025-02-18 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506221', 'tblTempUsageDetail_20' ) start [2025-02-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506221', 'tblTempUsageDetail_20' ) end [2025-02-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506221', 'tblTempVendorCDR_20' ) start [2025-02-18 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506221', 'tblTempVendorCDR_20' ) end [2025-02-18 22:49:17] Production.INFO: ProcessCDR(1,14506221,1,1,2) [2025-02-18 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506221', 'tblTempUsageDetail_20' ) start [2025-02-18 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506221', 'tblTempUsageDetail_20' ) end [2025-02-18 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:49:20] Production.INFO: ==9880== Releasing lock... [2025-02-18 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:49:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-18 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:50:06 [end_date_ymd] => 2025-02-18 22:50:06 [RateCDR] => 1 ) [2025-02-18 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:50:06' and `end` < '2025-02-18 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:50:18] Production.INFO: count ==906 [2025-02-18 22:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:50:06 - End Time 2025-02-18 22:50:06 [2025-02-18 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506227', 'tblTempUsageDetail_20' ) start [2025-02-18 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506227', 'tblTempUsageDetail_20' ) end [2025-02-18 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506227', 'tblTempVendorCDR_20' ) start [2025-02-18 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506227', 'tblTempVendorCDR_20' ) end [2025-02-18 22:50:18] Production.INFO: ProcessCDR(1,14506227,1,1,2) [2025-02-18 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506227', 'tblTempUsageDetail_20' ) start [2025-02-18 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506227', 'tblTempUsageDetail_20' ) end [2025-02-18 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:50:23] Production.INFO: ==9956== Releasing lock... [2025-02-18 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:50:23] Production.INFO: 34 MB #Memory Used# [2025-02-18 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:51:05 [end_date_ymd] => 2025-02-18 22:51:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:51:05' and `end` < '2025-02-18 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-18 22:51:16] Production.INFO: count ==841 [2025-02-18 22:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:51:05 - End Time 2025-02-18 22:51:05 [2025-02-18 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506232', 'tblTempUsageDetail_20' ) start [2025-02-18 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506232', 'tblTempUsageDetail_20' ) end [2025-02-18 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506232', 'tblTempVendorCDR_20' ) start [2025-02-18 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506232', 'tblTempVendorCDR_20' ) end [2025-02-18 22:51:17] Production.INFO: ProcessCDR(1,14506232,1,1,2) [2025-02-18 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506232', 'tblTempUsageDetail_20' ) start [2025-02-18 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506232', 'tblTempUsageDetail_20' ) end [2025-02-18 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:51:20] Production.INFO: ==10074== Releasing lock... [2025-02-18 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:51:20] Production.INFO: 34 MB #Memory Used# [2025-02-18 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:52:06 [end_date_ymd] => 2025-02-18 22:52:06 [RateCDR] => 1 ) [2025-02-18 22: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-18 19:52:06' and `end` < '2025-02-18 22: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-18 22:52:18] Production.INFO: count ==841 [2025-02-18 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:52:06 - End Time 2025-02-18 22:52:06 [2025-02-18 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506237', 'tblTempUsageDetail_20' ) start [2025-02-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506237', 'tblTempUsageDetail_20' ) end [2025-02-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506237', 'tblTempVendorCDR_20' ) start [2025-02-18 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506237', 'tblTempVendorCDR_20' ) end [2025-02-18 22:52:18] Production.INFO: ProcessCDR(1,14506237,1,1,2) [2025-02-18 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506237', 'tblTempUsageDetail_20' ) start [2025-02-18 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506237', 'tblTempUsageDetail_20' ) end [2025-02-18 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:52:22] Production.INFO: ==10162== Releasing lock... [2025-02-18 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:53:05 [end_date_ymd] => 2025-02-18 22:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:53:05' and `end` < '2025-02-18 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-18 22:53:16] Production.INFO: count ==827 [2025-02-18 22:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:53:05 - End Time 2025-02-18 22:53:05 [2025-02-18 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506242', 'tblTempUsageDetail_20' ) start [2025-02-18 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506242', 'tblTempUsageDetail_20' ) end [2025-02-18 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506242', 'tblTempVendorCDR_20' ) start [2025-02-18 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506242', 'tblTempVendorCDR_20' ) end [2025-02-18 22:53:17] Production.INFO: ProcessCDR(1,14506242,1,1,2) [2025-02-18 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506242', 'tblTempUsageDetail_20' ) start [2025-02-18 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506242', 'tblTempUsageDetail_20' ) end [2025-02-18 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:53:20] Production.INFO: ==10240== Releasing lock... [2025-02-18 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:53:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:54:06 [end_date_ymd] => 2025-02-18 22:54:06 [RateCDR] => 1 ) [2025-02-18 22: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-18 19:54:06' and `end` < '2025-02-18 22: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-18 22:54:18] Production.INFO: count ==827 [2025-02-18 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-18 19:54:06 - End Time 2025-02-18 22:54:06 [2025-02-18 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506247', 'tblTempUsageDetail_20' ) start [2025-02-18 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506247', 'tblTempUsageDetail_20' ) end [2025-02-18 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506247', 'tblTempVendorCDR_20' ) start [2025-02-18 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506247', 'tblTempVendorCDR_20' ) end [2025-02-18 22:54:18] Production.INFO: ProcessCDR(1,14506247,1,1,2) [2025-02-18 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506247', 'tblTempUsageDetail_20' ) start [2025-02-18 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506247', 'tblTempUsageDetail_20' ) end [2025-02-18 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:54:21] Production.INFO: ==10323== Releasing lock... [2025-02-18 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:55:05 [end_date_ymd] => 2025-02-18 22:55:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:55:05' and `end` < '2025-02-18 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-18 22:55:17] Production.INFO: count ==825 [2025-02-18 22:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:55:05 - End Time 2025-02-18 22:55:05 [2025-02-18 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506252', 'tblTempUsageDetail_20' ) start [2025-02-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506252', 'tblTempUsageDetail_20' ) end [2025-02-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506252', 'tblTempVendorCDR_20' ) start [2025-02-18 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506252', 'tblTempVendorCDR_20' ) end [2025-02-18 22:55:17] Production.INFO: ProcessCDR(1,14506252,1,1,2) [2025-02-18 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506252', 'tblTempUsageDetail_20' ) start [2025-02-18 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506252', 'tblTempUsageDetail_20' ) end [2025-02-18 22:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:55:20] Production.INFO: ==10401== Releasing lock... [2025-02-18 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:55:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:56:05 [end_date_ymd] => 2025-02-18 22:56:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:56:05' and `end` < '2025-02-18 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-18 22:56:17] Production.INFO: count ==828 [2025-02-18 22:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:56:05 - End Time 2025-02-18 22:56:05 [2025-02-18 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506257', 'tblTempUsageDetail_20' ) start [2025-02-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506257', 'tblTempUsageDetail_20' ) end [2025-02-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506257', 'tblTempVendorCDR_20' ) start [2025-02-18 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506257', 'tblTempVendorCDR_20' ) end [2025-02-18 22:56:17] Production.INFO: ProcessCDR(1,14506257,1,1,2) [2025-02-18 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506257', 'tblTempUsageDetail_20' ) start [2025-02-18 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506257', 'tblTempUsageDetail_20' ) end [2025-02-18 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:56:20] Production.INFO: ==10485== Releasing lock... [2025-02-18 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:56:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:57:05 [end_date_ymd] => 2025-02-18 22:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:57:05' and `end` < '2025-02-18 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-18 22:57:17] Production.INFO: count ==828 [2025-02-18 22:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:57:05 - End Time 2025-02-18 22:57:05 [2025-02-18 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506262', 'tblTempUsageDetail_20' ) start [2025-02-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506262', 'tblTempUsageDetail_20' ) end [2025-02-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506262', 'tblTempVendorCDR_20' ) start [2025-02-18 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506262', 'tblTempVendorCDR_20' ) end [2025-02-18 22:57:17] Production.INFO: ProcessCDR(1,14506262,1,1,2) [2025-02-18 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506262', 'tblTempUsageDetail_20' ) start [2025-02-18 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506262', 'tblTempUsageDetail_20' ) end [2025-02-18 22:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:57:20] Production.INFO: ==10564== Releasing lock... [2025-02-18 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:57:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-18 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:58:05 [end_date_ymd] => 2025-02-18 22:58:05 [RateCDR] => 1 ) [2025-02-18 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 19:58:05' and `end` < '2025-02-18 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 22:58:17] Production.INFO: count ==826 [2025-02-18 22:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:58:05 - End Time 2025-02-18 22:58:05 [2025-02-18 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506267', 'tblTempUsageDetail_20' ) start [2025-02-18 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506267', 'tblTempUsageDetail_20' ) end [2025-02-18 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506267', 'tblTempVendorCDR_20' ) start [2025-02-18 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506267', 'tblTempVendorCDR_20' ) end [2025-02-18 22:58:17] Production.INFO: ProcessCDR(1,14506267,1,1,2) [2025-02-18 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506267', 'tblTempUsageDetail_20' ) start [2025-02-18 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506267', 'tblTempUsageDetail_20' ) end [2025-02-18 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:58:20] Production.INFO: ==10643== Releasing lock... [2025-02-18 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:58:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-18 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 19:59:05 [end_date_ymd] => 2025-02-18 22:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 19:59:05' and `end` < '2025-02-18 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-18 22:59:16] Production.INFO: count ==819 [2025-02-18 22:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 19:59:05 - End Time 2025-02-18 22:59:05 [2025-02-18 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506272', 'tblTempUsageDetail_20' ) start [2025-02-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506272', 'tblTempUsageDetail_20' ) end [2025-02-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506272', 'tblTempVendorCDR_20' ) start [2025-02-18 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506272', 'tblTempVendorCDR_20' ) end [2025-02-18 22:59:17] Production.INFO: ProcessCDR(1,14506272,1,1,2) [2025-02-18 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506272', 'tblTempUsageDetail_20' ) start [2025-02-18 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506272', 'tblTempUsageDetail_20' ) end [2025-02-18 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 22:59:20] Production.INFO: ==10727== Releasing lock... [2025-02-18 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 22:59:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:00:06 [end_date_ymd] => 2025-02-18 23:00:06 [RateCDR] => 1 ) [2025-02-18 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-18 20:00:06' and `end` < '2025-02-18 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-18 23:00:18] Production.INFO: count ==815 [2025-02-18 23:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:00:06 - End Time 2025-02-18 23:00:06 [2025-02-18 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506277', 'tblTempUsageDetail_20' ) start [2025-02-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506277', 'tblTempUsageDetail_20' ) end [2025-02-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506277', 'tblTempVendorCDR_20' ) start [2025-02-18 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506277', 'tblTempVendorCDR_20' ) end [2025-02-18 23:00:18] Production.INFO: ProcessCDR(1,14506277,1,1,2) [2025-02-18 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506277', 'tblTempUsageDetail_20' ) start [2025-02-18 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506277', 'tblTempUsageDetail_20' ) end [2025-02-18 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:00:21] Production.INFO: ==10815== Releasing lock... [2025-02-18 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:00:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:01:05 [end_date_ymd] => 2025-02-18 23:01:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:01:05' and `end` < '2025-02-18 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-18 23:01:16] Production.INFO: count ==773 [2025-02-18 23:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:01:05 - End Time 2025-02-18 23:01:05 [2025-02-18 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506283', 'tblTempUsageDetail_20' ) start [2025-02-18 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506283', 'tblTempUsageDetail_20' ) end [2025-02-18 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506283', 'tblTempVendorCDR_20' ) start [2025-02-18 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506283', 'tblTempVendorCDR_20' ) end [2025-02-18 23:01:17] Production.INFO: ProcessCDR(1,14506283,1,1,2) [2025-02-18 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506283', 'tblTempUsageDetail_20' ) start [2025-02-18 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506283', 'tblTempUsageDetail_20' ) end [2025-02-18 23:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:01:20] Production.INFO: ==10982== Releasing lock... [2025-02-18 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:01:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:02:05 [end_date_ymd] => 2025-02-18 23:02:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:02:05' and `end` < '2025-02-18 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-18 23:02:17] Production.INFO: count ==774 [2025-02-18 23:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:02:05 - End Time 2025-02-18 23:02:05 [2025-02-18 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506288', 'tblTempUsageDetail_20' ) start [2025-02-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506288', 'tblTempUsageDetail_20' ) end [2025-02-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506288', 'tblTempVendorCDR_20' ) start [2025-02-18 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506288', 'tblTempVendorCDR_20' ) end [2025-02-18 23:02:17] Production.INFO: ProcessCDR(1,14506288,1,1,2) [2025-02-18 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506288', 'tblTempUsageDetail_20' ) start [2025-02-18 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506288', 'tblTempUsageDetail_20' ) end [2025-02-18 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:02:22] Production.INFO: ==11061== Releasing lock... [2025-02-18 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:03:06 [end_date_ymd] => 2025-02-18 23:03:06 [RateCDR] => 1 ) [2025-02-18 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:03:06' and `end` < '2025-02-18 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:03:18] Production.INFO: count ==774 [2025-02-18 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:03:06 - End Time 2025-02-18 23:03:06 [2025-02-18 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506293', 'tblTempUsageDetail_20' ) start [2025-02-18 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506293', 'tblTempUsageDetail_20' ) end [2025-02-18 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506293', 'tblTempVendorCDR_20' ) start [2025-02-18 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506293', 'tblTempVendorCDR_20' ) end [2025-02-18 23:03:18] Production.INFO: ProcessCDR(1,14506293,1,1,2) [2025-02-18 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506293', 'tblTempUsageDetail_20' ) start [2025-02-18 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506293', 'tblTempUsageDetail_20' ) end [2025-02-18 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:03:21] Production.INFO: ==11142== Releasing lock... [2025-02-18 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:03:21] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:04:05 [end_date_ymd] => 2025-02-18 23:04:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:04:05' and `end` < '2025-02-18 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-18 23:04:17] Production.INFO: count ==774 [2025-02-18 23:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:04:05 - End Time 2025-02-18 23:04:05 [2025-02-18 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506298', 'tblTempUsageDetail_20' ) start [2025-02-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506298', 'tblTempUsageDetail_20' ) end [2025-02-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506298', 'tblTempVendorCDR_20' ) start [2025-02-18 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506298', 'tblTempVendorCDR_20' ) end [2025-02-18 23:04:17] Production.INFO: ProcessCDR(1,14506298,1,1,2) [2025-02-18 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506298', 'tblTempUsageDetail_20' ) start [2025-02-18 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506298', 'tblTempUsageDetail_20' ) end [2025-02-18 23:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:04:20] Production.INFO: ==11223== Releasing lock... [2025-02-18 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:04:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:05:06 [end_date_ymd] => 2025-02-18 23:05:06 [RateCDR] => 1 ) [2025-02-18 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:05:06' and `end` < '2025-02-18 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:05:17] Production.INFO: count ==774 [2025-02-18 23:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:05:06 - End Time 2025-02-18 23:05:06 [2025-02-18 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506303', 'tblTempUsageDetail_20' ) start [2025-02-18 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506303', 'tblTempUsageDetail_20' ) end [2025-02-18 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506303', 'tblTempVendorCDR_20' ) start [2025-02-18 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506303', 'tblTempVendorCDR_20' ) end [2025-02-18 23:05:18] Production.INFO: ProcessCDR(1,14506303,1,1,2) [2025-02-18 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506303', 'tblTempUsageDetail_20' ) start [2025-02-18 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506303', 'tblTempUsageDetail_20' ) end [2025-02-18 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:05:21] Production.INFO: ==11377== Releasing lock... [2025-02-18 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:05:21] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:06:05 [end_date_ymd] => 2025-02-18 23:06:05 [RateCDR] => 1 ) [2025-02-18 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:06:05' and `end` < '2025-02-18 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:06:17] Production.INFO: count ==774 [2025-02-18 23:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:06:05 - End Time 2025-02-18 23:06:05 [2025-02-18 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506308', 'tblTempUsageDetail_20' ) start [2025-02-18 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506308', 'tblTempUsageDetail_20' ) end [2025-02-18 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506308', 'tblTempVendorCDR_20' ) start [2025-02-18 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506308', 'tblTempVendorCDR_20' ) end [2025-02-18 23:06:17] Production.INFO: ProcessCDR(1,14506308,1,1,2) [2025-02-18 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506308', 'tblTempUsageDetail_20' ) start [2025-02-18 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506308', 'tblTempUsageDetail_20' ) end [2025-02-18 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:06:20] Production.INFO: ==11455== Releasing lock... [2025-02-18 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:06:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:07:05 [end_date_ymd] => 2025-02-18 23:07:05 [RateCDR] => 1 ) [2025-02-18 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:07:05' and `end` < '2025-02-18 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:07:17] Production.INFO: count ==773 [2025-02-18 23:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:07:05 - End Time 2025-02-18 23:07:05 [2025-02-18 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506313', 'tblTempUsageDetail_20' ) start [2025-02-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506313', 'tblTempUsageDetail_20' ) end [2025-02-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506313', 'tblTempVendorCDR_20' ) start [2025-02-18 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506313', 'tblTempVendorCDR_20' ) end [2025-02-18 23:07:17] Production.INFO: ProcessCDR(1,14506313,1,1,2) [2025-02-18 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506313', 'tblTempUsageDetail_20' ) start [2025-02-18 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506313', 'tblTempUsageDetail_20' ) end [2025-02-18 23:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:07:20] Production.INFO: ==11573== Releasing lock... [2025-02-18 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:07:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:08:05 [end_date_ymd] => 2025-02-18 23:08:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:08:05' and `end` < '2025-02-18 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-18 23:08:17] Production.INFO: count ==773 [2025-02-18 23:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:08:05 - End Time 2025-02-18 23:08:05 [2025-02-18 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506318', 'tblTempUsageDetail_20' ) start [2025-02-18 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506318', 'tblTempUsageDetail_20' ) end [2025-02-18 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506318', 'tblTempVendorCDR_20' ) start [2025-02-18 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506318', 'tblTempVendorCDR_20' ) end [2025-02-18 23:08:17] Production.INFO: ProcessCDR(1,14506318,1,1,2) [2025-02-18 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506318', 'tblTempUsageDetail_20' ) start [2025-02-18 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506318', 'tblTempUsageDetail_20' ) end [2025-02-18 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:08:20] Production.INFO: ==11730== Releasing lock... [2025-02-18 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:08:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:09:05 [end_date_ymd] => 2025-02-18 23:09:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:09:05' and `end` < '2025-02-18 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-18 23:09:17] Production.INFO: count ==771 [2025-02-18 23:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:09:05 - End Time 2025-02-18 23:09:05 [2025-02-18 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506323', 'tblTempUsageDetail_20' ) start [2025-02-18 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506323', 'tblTempUsageDetail_20' ) end [2025-02-18 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506323', 'tblTempVendorCDR_20' ) start [2025-02-18 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506323', 'tblTempVendorCDR_20' ) end [2025-02-18 23:09:17] Production.INFO: ProcessCDR(1,14506323,1,1,2) [2025-02-18 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506323', 'tblTempUsageDetail_20' ) start [2025-02-18 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506323', 'tblTempUsageDetail_20' ) end [2025-02-18 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:09:22] Production.INFO: ==11809== Releasing lock... [2025-02-18 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:09:22] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:10:05 [end_date_ymd] => 2025-02-18 23:10:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:10:05' and `end` < '2025-02-18 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-18 23:10:17] Production.INFO: count ==770 [2025-02-18 23:10:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:10:05 - End Time 2025-02-18 23:10:05 [2025-02-18 23:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506328', 'tblTempUsageDetail_20' ) start [2025-02-18 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506328', 'tblTempUsageDetail_20' ) end [2025-02-18 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506328', 'tblTempVendorCDR_20' ) start [2025-02-18 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506328', 'tblTempVendorCDR_20' ) end [2025-02-18 23:10:17] Production.INFO: ProcessCDR(1,14506328,1,1,2) [2025-02-18 23:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506328', 'tblTempUsageDetail_20' ) start [2025-02-18 23:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506328', 'tblTempUsageDetail_20' ) end [2025-02-18 23:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:10:20] Production.INFO: ==11896== Releasing lock... [2025-02-18 23:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:10:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:11:05 [end_date_ymd] => 2025-02-18 23:11:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:11:05' and `end` < '2025-02-18 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-18 23:11:17] Production.INFO: count ==754 [2025-02-18 23:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:11:05 - End Time 2025-02-18 23:11:05 [2025-02-18 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506334', 'tblTempUsageDetail_20' ) start [2025-02-18 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506334', 'tblTempUsageDetail_20' ) end [2025-02-18 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506334', 'tblTempVendorCDR_20' ) start [2025-02-18 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506334', 'tblTempVendorCDR_20' ) end [2025-02-18 23:11:17] Production.INFO: ProcessCDR(1,14506334,1,1,2) [2025-02-18 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506334', 'tblTempUsageDetail_20' ) start [2025-02-18 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506334', 'tblTempUsageDetail_20' ) end [2025-02-18 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:11:22] Production.INFO: ==11983== Releasing lock... [2025-02-18 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:11:22] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:12:05 [end_date_ymd] => 2025-02-18 23:12:05 [RateCDR] => 1 ) [2025-02-18 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:12:05' and `end` < '2025-02-18 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:12:16] Production.INFO: count ==757 [2025-02-18 23:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:12:05 - End Time 2025-02-18 23:12:05 [2025-02-18 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506339', 'tblTempUsageDetail_20' ) start [2025-02-18 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506339', 'tblTempUsageDetail_20' ) end [2025-02-18 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506339', 'tblTempVendorCDR_20' ) start [2025-02-18 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506339', 'tblTempVendorCDR_20' ) end [2025-02-18 23:12:17] Production.INFO: ProcessCDR(1,14506339,1,1,2) [2025-02-18 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506339', 'tblTempUsageDetail_20' ) start [2025-02-18 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506339', 'tblTempUsageDetail_20' ) end [2025-02-18 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:12:20] Production.INFO: ==12137== Releasing lock... [2025-02-18 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:12:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-18 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:13:05 [end_date_ymd] => 2025-02-18 23:13:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:13:05' and `end` < '2025-02-18 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-18 23:13:17] Production.INFO: count ==754 [2025-02-18 23:13:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:13:05 - End Time 2025-02-18 23:13:05 [2025-02-18 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506344', 'tblTempUsageDetail_20' ) start [2025-02-18 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506344', 'tblTempUsageDetail_20' ) end [2025-02-18 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506344', 'tblTempVendorCDR_20' ) start [2025-02-18 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506344', 'tblTempVendorCDR_20' ) end [2025-02-18 23:13:17] Production.INFO: ProcessCDR(1,14506344,1,1,2) [2025-02-18 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506344', 'tblTempUsageDetail_20' ) start [2025-02-18 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506344', 'tblTempUsageDetail_20' ) end [2025-02-18 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:13:20] Production.INFO: ==12218== Releasing lock... [2025-02-18 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:13:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:14:06 [end_date_ymd] => 2025-02-18 23:14:06 [RateCDR] => 1 ) [2025-02-18 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:14:06' and `end` < '2025-02-18 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:14:17] Production.INFO: count ==750 [2025-02-18 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:14:06 - End Time 2025-02-18 23:14:06 [2025-02-18 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506349', 'tblTempUsageDetail_20' ) start [2025-02-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506349', 'tblTempUsageDetail_20' ) end [2025-02-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506349', 'tblTempVendorCDR_20' ) start [2025-02-18 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506349', 'tblTempVendorCDR_20' ) end [2025-02-18 23:14:18] Production.INFO: ProcessCDR(1,14506349,1,1,2) [2025-02-18 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506349', 'tblTempUsageDetail_20' ) start [2025-02-18 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506349', 'tblTempUsageDetail_20' ) end [2025-02-18 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:14:21] Production.INFO: ==12299== Releasing lock... [2025-02-18 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:14:21] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:15:05 [end_date_ymd] => 2025-02-18 23:15:05 [RateCDR] => 1 ) [2025-02-18 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:15:05' and `end` < '2025-02-18 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:15:17] Production.INFO: count ==741 [2025-02-18 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:15:05 - End Time 2025-02-18 23:15:05 [2025-02-18 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506354', 'tblTempUsageDetail_20' ) start [2025-02-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506354', 'tblTempUsageDetail_20' ) end [2025-02-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506354', 'tblTempVendorCDR_20' ) start [2025-02-18 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506354', 'tblTempVendorCDR_20' ) end [2025-02-18 23:15:17] Production.INFO: ProcessCDR(1,14506354,1,1,2) [2025-02-18 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506354', 'tblTempUsageDetail_20' ) start [2025-02-18 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506354', 'tblTempUsageDetail_20' ) end [2025-02-18 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:15:20] Production.INFO: ==12458== Releasing lock... [2025-02-18 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:15:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:16:05 [end_date_ymd] => 2025-02-18 23:16:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:16:05' and `end` < '2025-02-18 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-18 23:16:17] Production.INFO: count ==741 [2025-02-18 23:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:16:05 - End Time 2025-02-18 23:16:05 [2025-02-18 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506359', 'tblTempUsageDetail_20' ) start [2025-02-18 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506359', 'tblTempUsageDetail_20' ) end [2025-02-18 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506359', 'tblTempVendorCDR_20' ) start [2025-02-18 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506359', 'tblTempVendorCDR_20' ) end [2025-02-18 23:16:17] Production.INFO: ProcessCDR(1,14506359,1,1,2) [2025-02-18 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506359', 'tblTempUsageDetail_20' ) start [2025-02-18 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506359', 'tblTempUsageDetail_20' ) end [2025-02-18 23:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:16:20] Production.INFO: ==12534== Releasing lock... [2025-02-18 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:16:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:17:05 [end_date_ymd] => 2025-02-18 23:17:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:17:05' and `end` < '2025-02-18 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-18 23:17:16] Production.INFO: count ==742 [2025-02-18 23:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:17:05 - End Time 2025-02-18 23:17:05 [2025-02-18 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506364', 'tblTempUsageDetail_20' ) start [2025-02-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506364', 'tblTempUsageDetail_20' ) end [2025-02-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506364', 'tblTempVendorCDR_20' ) start [2025-02-18 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506364', 'tblTempVendorCDR_20' ) end [2025-02-18 23:17:17] Production.INFO: ProcessCDR(1,14506364,1,1,2) [2025-02-18 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506364', 'tblTempUsageDetail_20' ) start [2025-02-18 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506364', 'tblTempUsageDetail_20' ) end [2025-02-18 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:17:21] Production.INFO: ==12613== Releasing lock... [2025-02-18 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:18:05 [end_date_ymd] => 2025-02-18 23:18:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:18:05' and `end` < '2025-02-18 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-18 23:18:17] Production.INFO: count ==741 [2025-02-18 23:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:18:05 - End Time 2025-02-18 23:18:05 [2025-02-18 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506369', 'tblTempUsageDetail_20' ) start [2025-02-18 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506369', 'tblTempUsageDetail_20' ) end [2025-02-18 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506369', 'tblTempVendorCDR_20' ) start [2025-02-18 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506369', 'tblTempVendorCDR_20' ) end [2025-02-18 23:18:17] Production.INFO: ProcessCDR(1,14506369,1,1,2) [2025-02-18 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506369', 'tblTempUsageDetail_20' ) start [2025-02-18 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506369', 'tblTempUsageDetail_20' ) end [2025-02-18 23:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:18:20] Production.INFO: ==12691== Releasing lock... [2025-02-18 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:18:20] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:19:04 [end_date_ymd] => 2025-02-18 23:19:04 [RateCDR] => 1 ) [2025-02-18 23: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-18 20:19:04' and `end` < '2025-02-18 23: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-18 23:19:16] Production.INFO: count ==741 [2025-02-18 23:19:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:19:04 - End Time 2025-02-18 23:19:04 [2025-02-18 23:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506374', 'tblTempUsageDetail_20' ) start [2025-02-18 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506374', 'tblTempUsageDetail_20' ) end [2025-02-18 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506374', 'tblTempVendorCDR_20' ) start [2025-02-18 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506374', 'tblTempVendorCDR_20' ) end [2025-02-18 23:19:16] Production.INFO: ProcessCDR(1,14506374,1,1,2) [2025-02-18 23:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506374', 'tblTempUsageDetail_20' ) start [2025-02-18 23:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506374', 'tblTempUsageDetail_20' ) end [2025-02-18 23:19:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:19:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:19:19] Production.INFO: ==12769== Releasing lock... [2025-02-18 23:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:19:19] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:20:06 [end_date_ymd] => 2025-02-18 23:20:06 [RateCDR] => 1 ) [2025-02-18 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-18 20:20:06' and `end` < '2025-02-18 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-18 23:20:18] Production.INFO: count ==739 [2025-02-18 23:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:20:06 - End Time 2025-02-18 23:20:06 [2025-02-18 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506380', 'tblTempUsageDetail_20' ) start [2025-02-18 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506380', 'tblTempUsageDetail_20' ) end [2025-02-18 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506380', 'tblTempVendorCDR_20' ) start [2025-02-18 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506380', 'tblTempVendorCDR_20' ) end [2025-02-18 23:20:18] Production.INFO: ProcessCDR(1,14506380,1,1,2) [2025-02-18 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506380', 'tblTempUsageDetail_20' ) start [2025-02-18 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506380', 'tblTempUsageDetail_20' ) end [2025-02-18 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:20:21] Production.INFO: ==12850== Releasing lock... [2025-02-18 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:20:21] Production.INFO: 33 MB #Memory Used# [2025-02-18 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:21:06 [end_date_ymd] => 2025-02-18 23:21:06 [RateCDR] => 1 ) [2025-02-18 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-18 20:21:06' and `end` < '2025-02-18 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-18 23:21:17] Production.INFO: count ==722 [2025-02-18 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:21:06 - End Time 2025-02-18 23:21:06 [2025-02-18 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506385', 'tblTempUsageDetail_20' ) start [2025-02-18 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506385', 'tblTempUsageDetail_20' ) end [2025-02-18 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506385', 'tblTempVendorCDR_20' ) start [2025-02-18 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506385', 'tblTempVendorCDR_20' ) end [2025-02-18 23:21:18] Production.INFO: ProcessCDR(1,14506385,1,1,2) [2025-02-18 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506385', 'tblTempUsageDetail_20' ) start [2025-02-18 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506385', 'tblTempUsageDetail_20' ) end [2025-02-18 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:21:22] Production.INFO: ==12929== Releasing lock... [2025-02-18 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:22:05 [end_date_ymd] => 2025-02-18 23:22:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:22:05' and `end` < '2025-02-18 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-18 23:22:17] Production.INFO: count ==722 [2025-02-18 23:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:22:05 - End Time 2025-02-18 23:22:05 [2025-02-18 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506390', 'tblTempUsageDetail_20' ) start [2025-02-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506390', 'tblTempUsageDetail_20' ) end [2025-02-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506390', 'tblTempVendorCDR_20' ) start [2025-02-18 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506390', 'tblTempVendorCDR_20' ) end [2025-02-18 23:22:17] Production.INFO: ProcessCDR(1,14506390,1,1,2) [2025-02-18 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506390', 'tblTempUsageDetail_20' ) start [2025-02-18 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506390', 'tblTempUsageDetail_20' ) end [2025-02-18 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:22:21] Production.INFO: ==13049== Releasing lock... [2025-02-18 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:23:06 [end_date_ymd] => 2025-02-18 23:23:06 [RateCDR] => 1 ) [2025-02-18 23:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:23:06' and `end` < '2025-02-18 23:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:23:17] Production.INFO: count ==721 [2025-02-18 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:23:06 - End Time 2025-02-18 23:23:06 [2025-02-18 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506395', 'tblTempUsageDetail_20' ) start [2025-02-18 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506395', 'tblTempUsageDetail_20' ) end [2025-02-18 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506395', 'tblTempVendorCDR_20' ) start [2025-02-18 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506395', 'tblTempVendorCDR_20' ) end [2025-02-18 23:23:18] Production.INFO: ProcessCDR(1,14506395,1,1,2) [2025-02-18 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506395', 'tblTempUsageDetail_20' ) start [2025-02-18 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506395', 'tblTempUsageDetail_20' ) end [2025-02-18 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:23:21] Production.INFO: ==13130== Releasing lock... [2025-02-18 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:24:05 [end_date_ymd] => 2025-02-18 23:24:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:24:05' and `end` < '2025-02-18 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-18 23:24:17] Production.INFO: count ==721 [2025-02-18 23:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:24:05 - End Time 2025-02-18 23:24:05 [2025-02-18 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506400', 'tblTempUsageDetail_20' ) start [2025-02-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506400', 'tblTempUsageDetail_20' ) end [2025-02-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506400', 'tblTempVendorCDR_20' ) start [2025-02-18 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506400', 'tblTempVendorCDR_20' ) end [2025-02-18 23:24:17] Production.INFO: ProcessCDR(1,14506400,1,1,2) [2025-02-18 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506400', 'tblTempUsageDetail_20' ) start [2025-02-18 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506400', 'tblTempUsageDetail_20' ) end [2025-02-18 23:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:24:20] Production.INFO: ==13211== Releasing lock... [2025-02-18 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:24:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:25:05 [end_date_ymd] => 2025-02-18 23:25:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:25:05' and `end` < '2025-02-18 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-18 23:25:17] Production.INFO: count ==721 [2025-02-18 23:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:25:05 - End Time 2025-02-18 23:25:05 [2025-02-18 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506405', 'tblTempUsageDetail_20' ) start [2025-02-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506405', 'tblTempUsageDetail_20' ) end [2025-02-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506405', 'tblTempVendorCDR_20' ) start [2025-02-18 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506405', 'tblTempVendorCDR_20' ) end [2025-02-18 23:25:17] Production.INFO: ProcessCDR(1,14506405,1,1,2) [2025-02-18 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506405', 'tblTempUsageDetail_20' ) start [2025-02-18 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506405', 'tblTempUsageDetail_20' ) end [2025-02-18 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:25:21] Production.INFO: ==13288== Releasing lock... [2025-02-18 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:26:05 [end_date_ymd] => 2025-02-18 23:26:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:26:05' and `end` < '2025-02-18 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-18 23:26:17] Production.INFO: count ==721 [2025-02-18 23:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:26:05 - End Time 2025-02-18 23:26:05 [2025-02-18 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506410', 'tblTempUsageDetail_20' ) start [2025-02-18 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506410', 'tblTempUsageDetail_20' ) end [2025-02-18 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506410', 'tblTempVendorCDR_20' ) start [2025-02-18 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506410', 'tblTempVendorCDR_20' ) end [2025-02-18 23:26:17] Production.INFO: ProcessCDR(1,14506410,1,1,2) [2025-02-18 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506410', 'tblTempUsageDetail_20' ) start [2025-02-18 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506410', 'tblTempUsageDetail_20' ) end [2025-02-18 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:26:20] Production.INFO: ==13365== Releasing lock... [2025-02-18 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:26:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:27:05 [end_date_ymd] => 2025-02-18 23:27:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:27:05' and `end` < '2025-02-18 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-18 23:27:17] Production.INFO: count ==721 [2025-02-18 23:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:27:05 - End Time 2025-02-18 23:27:05 [2025-02-18 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506415', 'tblTempUsageDetail_20' ) start [2025-02-18 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506415', 'tblTempUsageDetail_20' ) end [2025-02-18 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506415', 'tblTempVendorCDR_20' ) start [2025-02-18 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506415', 'tblTempVendorCDR_20' ) end [2025-02-18 23:27:17] Production.INFO: ProcessCDR(1,14506415,1,1,2) [2025-02-18 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506415', 'tblTempUsageDetail_20' ) start [2025-02-18 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506415', 'tblTempUsageDetail_20' ) end [2025-02-18 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:27:20] Production.INFO: ==13442== Releasing lock... [2025-02-18 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:27:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:28:05 [end_date_ymd] => 2025-02-18 23:28:05 [RateCDR] => 1 ) [2025-02-18 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:28:05' and `end` < '2025-02-18 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:28:17] Production.INFO: count ==722 [2025-02-18 23:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:28:05 - End Time 2025-02-18 23:28:05 [2025-02-18 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506420', 'tblTempUsageDetail_20' ) start [2025-02-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506420', 'tblTempUsageDetail_20' ) end [2025-02-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506420', 'tblTempVendorCDR_20' ) start [2025-02-18 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506420', 'tblTempVendorCDR_20' ) end [2025-02-18 23:28:17] Production.INFO: ProcessCDR(1,14506420,1,1,2) [2025-02-18 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506420', 'tblTempUsageDetail_20' ) start [2025-02-18 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506420', 'tblTempUsageDetail_20' ) end [2025-02-18 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:28:21] Production.INFO: ==13520== Releasing lock... [2025-02-18 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:29:05 [end_date_ymd] => 2025-02-18 23:29:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:29:05' and `end` < '2025-02-18 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-18 23:29:17] Production.INFO: count ==720 [2025-02-18 23:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:29:05 - End Time 2025-02-18 23:29:05 [2025-02-18 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506425', 'tblTempUsageDetail_20' ) start [2025-02-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506425', 'tblTempUsageDetail_20' ) end [2025-02-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506425', 'tblTempVendorCDR_20' ) start [2025-02-18 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506425', 'tblTempVendorCDR_20' ) end [2025-02-18 23:29:17] Production.INFO: ProcessCDR(1,14506425,1,1,2) [2025-02-18 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506425', 'tblTempUsageDetail_20' ) start [2025-02-18 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506425', 'tblTempUsageDetail_20' ) end [2025-02-18 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:29:20] Production.INFO: ==13594== Releasing lock... [2025-02-18 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:29:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:30:06 [end_date_ymd] => 2025-02-18 23:30:06 [RateCDR] => 1 ) [2025-02-18 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-18 20:30:06' and `end` < '2025-02-18 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-18 23:30:18] Production.INFO: count ==716 [2025-02-18 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:30:06 - End Time 2025-02-18 23:30:06 [2025-02-18 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506431', 'tblTempUsageDetail_20' ) start [2025-02-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506431', 'tblTempUsageDetail_20' ) end [2025-02-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506431', 'tblTempVendorCDR_20' ) start [2025-02-18 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506431', 'tblTempVendorCDR_20' ) end [2025-02-18 23:30:18] Production.INFO: ProcessCDR(1,14506431,1,1,2) [2025-02-18 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506431', 'tblTempUsageDetail_20' ) start [2025-02-18 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506431', 'tblTempUsageDetail_20' ) end [2025-02-18 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:30:21] Production.INFO: ==13667== Releasing lock... [2025-02-18 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:30:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-18 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:31:05 [end_date_ymd] => 2025-02-18 23:31:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:31:05' and `end` < '2025-02-18 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-18 23:31:17] Production.INFO: count ==675 [2025-02-18 23:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:31:05 - End Time 2025-02-18 23:31:05 [2025-02-18 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506436', 'tblTempUsageDetail_20' ) start [2025-02-18 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506436', 'tblTempUsageDetail_20' ) end [2025-02-18 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506436', 'tblTempVendorCDR_20' ) start [2025-02-18 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506436', 'tblTempVendorCDR_20' ) end [2025-02-18 23:31:17] Production.INFO: ProcessCDR(1,14506436,1,1,2) [2025-02-18 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506436', 'tblTempUsageDetail_20' ) start [2025-02-18 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506436', 'tblTempUsageDetail_20' ) end [2025-02-18 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:31:20] Production.INFO: ==13746== Releasing lock... [2025-02-18 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:31:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:32:05 [end_date_ymd] => 2025-02-18 23:32:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:32:05' and `end` < '2025-02-18 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-18 23:32:16] Production.INFO: count ==673 [2025-02-18 23:32:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:32:05 - End Time 2025-02-18 23:32:05 [2025-02-18 23:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506441', 'tblTempUsageDetail_20' ) start [2025-02-18 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506441', 'tblTempUsageDetail_20' ) end [2025-02-18 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506441', 'tblTempVendorCDR_20' ) start [2025-02-18 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506441', 'tblTempVendorCDR_20' ) end [2025-02-18 23:32:16] Production.INFO: ProcessCDR(1,14506441,1,1,2) [2025-02-18 23:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506441', 'tblTempUsageDetail_20' ) start [2025-02-18 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506441', 'tblTempUsageDetail_20' ) end [2025-02-18 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:32:20] Production.INFO: ==13817== Releasing lock... [2025-02-18 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:32:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:33:05 [end_date_ymd] => 2025-02-18 23:33:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:33:05' and `end` < '2025-02-18 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-18 23:33:17] Production.INFO: count ==671 [2025-02-18 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:33:05 - End Time 2025-02-18 23:33:05 [2025-02-18 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506446', 'tblTempUsageDetail_20' ) start [2025-02-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506446', 'tblTempUsageDetail_20' ) end [2025-02-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506446', 'tblTempVendorCDR_20' ) start [2025-02-18 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506446', 'tblTempVendorCDR_20' ) end [2025-02-18 23:33:17] Production.INFO: ProcessCDR(1,14506446,1,1,2) [2025-02-18 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506446', 'tblTempUsageDetail_20' ) start [2025-02-18 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506446', 'tblTempUsageDetail_20' ) end [2025-02-18 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:33:22] Production.INFO: ==13887== Releasing lock... [2025-02-18 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:34:04 [end_date_ymd] => 2025-02-18 23:34:04 [RateCDR] => 1 ) [2025-02-18 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:34:04' and `end` < '2025-02-18 23:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:34:16] Production.INFO: count ==666 [2025-02-18 23:34:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:34:04 - End Time 2025-02-18 23:34:04 [2025-02-18 23:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506451', 'tblTempUsageDetail_20' ) start [2025-02-18 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506451', 'tblTempUsageDetail_20' ) end [2025-02-18 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506451', 'tblTempVendorCDR_20' ) start [2025-02-18 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506451', 'tblTempVendorCDR_20' ) end [2025-02-18 23:34:16] Production.INFO: ProcessCDR(1,14506451,1,1,2) [2025-02-18 23:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506451', 'tblTempUsageDetail_20' ) start [2025-02-18 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506451', 'tblTempUsageDetail_20' ) end [2025-02-18 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:34:20] Production.INFO: ==13958== Releasing lock... [2025-02-18 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:34:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:35:05 [end_date_ymd] => 2025-02-18 23:35:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:35:05' and `end` < '2025-02-18 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-18 23:35:17] Production.INFO: count ==671 [2025-02-18 23:35:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:35:05 - End Time 2025-02-18 23:35:05 [2025-02-18 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506456', 'tblTempUsageDetail_20' ) start [2025-02-18 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506456', 'tblTempUsageDetail_20' ) end [2025-02-18 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506456', 'tblTempVendorCDR_20' ) start [2025-02-18 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506456', 'tblTempVendorCDR_20' ) end [2025-02-18 23:35:17] Production.INFO: ProcessCDR(1,14506456,1,1,2) [2025-02-18 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506456', 'tblTempUsageDetail_20' ) start [2025-02-18 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506456', 'tblTempUsageDetail_20' ) end [2025-02-18 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:35:20] Production.INFO: ==14032== Releasing lock... [2025-02-18 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:35:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:36:05 [end_date_ymd] => 2025-02-18 23:36:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:36:05' and `end` < '2025-02-18 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-18 23:36:17] Production.INFO: count ==672 [2025-02-18 23:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:36:05 - End Time 2025-02-18 23:36:05 [2025-02-18 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506461', 'tblTempUsageDetail_20' ) start [2025-02-18 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506461', 'tblTempUsageDetail_20' ) end [2025-02-18 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506461', 'tblTempVendorCDR_20' ) start [2025-02-18 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506461', 'tblTempVendorCDR_20' ) end [2025-02-18 23:36:17] Production.INFO: ProcessCDR(1,14506461,1,1,2) [2025-02-18 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506461', 'tblTempUsageDetail_20' ) start [2025-02-18 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506461', 'tblTempUsageDetail_20' ) end [2025-02-18 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:36:20] Production.INFO: ==14102== Releasing lock... [2025-02-18 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:36:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:37:05 [end_date_ymd] => 2025-02-18 23:37:05 [RateCDR] => 1 ) [2025-02-18 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:37:05' and `end` < '2025-02-18 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:37:17] Production.INFO: count ==670 [2025-02-18 23:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:37:05 - End Time 2025-02-18 23:37:05 [2025-02-18 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506466', 'tblTempUsageDetail_20' ) start [2025-02-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506466', 'tblTempUsageDetail_20' ) end [2025-02-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506466', 'tblTempVendorCDR_20' ) start [2025-02-18 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506466', 'tblTempVendorCDR_20' ) end [2025-02-18 23:37:17] Production.INFO: ProcessCDR(1,14506466,1,1,2) [2025-02-18 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506466', 'tblTempUsageDetail_20' ) start [2025-02-18 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506466', 'tblTempUsageDetail_20' ) end [2025-02-18 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:37:20] Production.INFO: ==14211== Releasing lock... [2025-02-18 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:37:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:38:05 [end_date_ymd] => 2025-02-18 23:38:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:38:05' and `end` < '2025-02-18 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-18 23:38:17] Production.INFO: count ==668 [2025-02-18 23:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:38:05 - End Time 2025-02-18 23:38:05 [2025-02-18 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506471', 'tblTempUsageDetail_20' ) start [2025-02-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506471', 'tblTempUsageDetail_20' ) end [2025-02-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506471', 'tblTempVendorCDR_20' ) start [2025-02-18 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506471', 'tblTempVendorCDR_20' ) end [2025-02-18 23:38:17] Production.INFO: ProcessCDR(1,14506471,1,1,2) [2025-02-18 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506471', 'tblTempUsageDetail_20' ) start [2025-02-18 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506471', 'tblTempUsageDetail_20' ) end [2025-02-18 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:38:20] Production.INFO: ==14284== Releasing lock... [2025-02-18 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:39:05 [end_date_ymd] => 2025-02-18 23:39:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:39:05' and `end` < '2025-02-18 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-18 23:39:17] Production.INFO: count ==669 [2025-02-18 23:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:39:05 - End Time 2025-02-18 23:39:05 [2025-02-18 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506476', 'tblTempUsageDetail_20' ) start [2025-02-18 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506476', 'tblTempUsageDetail_20' ) end [2025-02-18 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506476', 'tblTempVendorCDR_20' ) start [2025-02-18 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506476', 'tblTempVendorCDR_20' ) end [2025-02-18 23:39:17] Production.INFO: ProcessCDR(1,14506476,1,1,2) [2025-02-18 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506476', 'tblTempUsageDetail_20' ) start [2025-02-18 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506476', 'tblTempUsageDetail_20' ) end [2025-02-18 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:39:20] Production.INFO: ==14355== Releasing lock... [2025-02-18 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:39:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:40:06 [end_date_ymd] => 2025-02-18 23:40:06 [RateCDR] => 1 ) [2025-02-18 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-18 20:40:06' and `end` < '2025-02-18 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-18 23:40:18] Production.INFO: count ==670 [2025-02-18 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:40:06 - End Time 2025-02-18 23:40:06 [2025-02-18 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506481', 'tblTempUsageDetail_20' ) start [2025-02-18 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506481', 'tblTempUsageDetail_20' ) end [2025-02-18 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506481', 'tblTempVendorCDR_20' ) start [2025-02-18 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506481', 'tblTempVendorCDR_20' ) end [2025-02-18 23:40:18] Production.INFO: ProcessCDR(1,14506481,1,1,2) [2025-02-18 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506481', 'tblTempUsageDetail_20' ) start [2025-02-18 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506481', 'tblTempUsageDetail_20' ) end [2025-02-18 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:40:22] Production.INFO: ==14427== Releasing lock... [2025-02-18 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:41:05 [end_date_ymd] => 2025-02-18 23:41:05 [RateCDR] => 1 ) [2025-02-18 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:41:05' and `end` < '2025-02-18 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:41:16] Production.INFO: count ==658 [2025-02-18 23:41:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:41:05 - End Time 2025-02-18 23:41:05 [2025-02-18 23:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506487', 'tblTempUsageDetail_20' ) start [2025-02-18 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506487', 'tblTempUsageDetail_20' ) end [2025-02-18 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506487', 'tblTempVendorCDR_20' ) start [2025-02-18 23:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506487', 'tblTempVendorCDR_20' ) end [2025-02-18 23:41:16] Production.INFO: ProcessCDR(1,14506487,1,1,2) [2025-02-18 23:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506487', 'tblTempUsageDetail_20' ) start [2025-02-18 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506487', 'tblTempUsageDetail_20' ) end [2025-02-18 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:41:20] Production.INFO: ==14500== Releasing lock... [2025-02-18 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:41:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:42:05 [end_date_ymd] => 2025-02-18 23:42:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:42:05' and `end` < '2025-02-18 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-18 23:42:17] Production.INFO: count ==659 [2025-02-18 23:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:42:05 - End Time 2025-02-18 23:42:05 [2025-02-18 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506492', 'tblTempUsageDetail_20' ) start [2025-02-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506492', 'tblTempUsageDetail_20' ) end [2025-02-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506492', 'tblTempVendorCDR_20' ) start [2025-02-18 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506492', 'tblTempVendorCDR_20' ) end [2025-02-18 23:42:17] Production.INFO: ProcessCDR(1,14506492,1,1,2) [2025-02-18 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506492', 'tblTempUsageDetail_20' ) start [2025-02-18 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506492', 'tblTempUsageDetail_20' ) end [2025-02-18 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:42:22] Production.INFO: ==14571== Releasing lock... [2025-02-18 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:43:05 [end_date_ymd] => 2025-02-18 23:43:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:43:05' and `end` < '2025-02-18 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-18 23:43:16] Production.INFO: count ==663 [2025-02-18 23:43:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:43:05 - End Time 2025-02-18 23:43:05 [2025-02-18 23:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506497', 'tblTempUsageDetail_20' ) start [2025-02-18 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506497', 'tblTempUsageDetail_20' ) end [2025-02-18 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506497', 'tblTempVendorCDR_20' ) start [2025-02-18 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506497', 'tblTempVendorCDR_20' ) end [2025-02-18 23:43:17] Production.INFO: ProcessCDR(1,14506497,1,1,2) [2025-02-18 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506497', 'tblTempUsageDetail_20' ) start [2025-02-18 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506497', 'tblTempUsageDetail_20' ) end [2025-02-18 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:43:22] Production.INFO: ==14641== Releasing lock... [2025-02-18 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:44:05 [end_date_ymd] => 2025-02-18 23:44:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:44:05' and `end` < '2025-02-18 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-18 23:44:17] Production.INFO: count ==664 [2025-02-18 23:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:44:05 - End Time 2025-02-18 23:44:05 [2025-02-18 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506502', 'tblTempUsageDetail_20' ) start [2025-02-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506502', 'tblTempUsageDetail_20' ) end [2025-02-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506502', 'tblTempVendorCDR_20' ) start [2025-02-18 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506502', 'tblTempVendorCDR_20' ) end [2025-02-18 23:44:17] Production.INFO: ProcessCDR(1,14506502,1,1,2) [2025-02-18 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506502', 'tblTempUsageDetail_20' ) start [2025-02-18 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506502', 'tblTempUsageDetail_20' ) end [2025-02-18 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:44:22] Production.INFO: ==14716== Releasing lock... [2025-02-18 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:45:05 [end_date_ymd] => 2025-02-18 23:45:05 [RateCDR] => 1 ) [2025-02-18 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:45:05' and `end` < '2025-02-18 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:45:17] Production.INFO: count ==665 [2025-02-18 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:45:05 - End Time 2025-02-18 23:45:05 [2025-02-18 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506507', 'tblTempUsageDetail_20' ) start [2025-02-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506507', 'tblTempUsageDetail_20' ) end [2025-02-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506507', 'tblTempVendorCDR_20' ) start [2025-02-18 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506507', 'tblTempVendorCDR_20' ) end [2025-02-18 23:45:17] Production.INFO: ProcessCDR(1,14506507,1,1,2) [2025-02-18 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506507', 'tblTempUsageDetail_20' ) start [2025-02-18 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506507', 'tblTempUsageDetail_20' ) end [2025-02-18 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:45:21] Production.INFO: ==14786== Releasing lock... [2025-02-18 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:46:05 [end_date_ymd] => 2025-02-18 23:46:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:46:05' and `end` < '2025-02-18 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-18 23:46:17] Production.INFO: count ==665 [2025-02-18 23:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:46:05 - End Time 2025-02-18 23:46:05 [2025-02-18 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506512', 'tblTempUsageDetail_20' ) start [2025-02-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506512', 'tblTempUsageDetail_20' ) end [2025-02-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506512', 'tblTempVendorCDR_20' ) start [2025-02-18 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506512', 'tblTempVendorCDR_20' ) end [2025-02-18 23:46:17] Production.INFO: ProcessCDR(1,14506512,1,1,2) [2025-02-18 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506512', 'tblTempUsageDetail_20' ) start [2025-02-18 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506512', 'tblTempUsageDetail_20' ) end [2025-02-18 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:46:20] Production.INFO: ==14858== Releasing lock... [2025-02-18 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:46:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:47:05 [end_date_ymd] => 2025-02-18 23:47:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:47:05' and `end` < '2025-02-18 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-18 23:47:17] Production.INFO: count ==665 [2025-02-18 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:47:05 - End Time 2025-02-18 23:47:05 [2025-02-18 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506517', 'tblTempUsageDetail_20' ) start [2025-02-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506517', 'tblTempUsageDetail_20' ) end [2025-02-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506517', 'tblTempVendorCDR_20' ) start [2025-02-18 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506517', 'tblTempVendorCDR_20' ) end [2025-02-18 23:47:17] Production.INFO: ProcessCDR(1,14506517,1,1,2) [2025-02-18 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506517', 'tblTempUsageDetail_20' ) start [2025-02-18 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506517', 'tblTempUsageDetail_20' ) end [2025-02-18 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:47:20] Production.INFO: ==14928== Releasing lock... [2025-02-18 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:47:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:48:05 [end_date_ymd] => 2025-02-18 23:48:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:48:05' and `end` < '2025-02-18 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-18 23:48:17] Production.INFO: count ==665 [2025-02-18 23:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:48:05 - End Time 2025-02-18 23:48:05 [2025-02-18 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506522', 'tblTempUsageDetail_20' ) start [2025-02-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506522', 'tblTempUsageDetail_20' ) end [2025-02-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506522', 'tblTempVendorCDR_20' ) start [2025-02-18 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506522', 'tblTempVendorCDR_20' ) end [2025-02-18 23:48:17] Production.INFO: ProcessCDR(1,14506522,1,1,2) [2025-02-18 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506522', 'tblTempUsageDetail_20' ) start [2025-02-18 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506522', 'tblTempUsageDetail_20' ) end [2025-02-18 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:48:20] Production.INFO: ==15001== Releasing lock... [2025-02-18 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:49:05 [end_date_ymd] => 2025-02-18 23:49:05 [RateCDR] => 1 ) [2025-02-18 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:49:05' and `end` < '2025-02-18 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:49:16] Production.INFO: count ==662 [2025-02-18 23:49:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:49:05 - End Time 2025-02-18 23:49:05 [2025-02-18 23:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506527', 'tblTempUsageDetail_20' ) start [2025-02-18 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506527', 'tblTempUsageDetail_20' ) end [2025-02-18 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506527', 'tblTempVendorCDR_20' ) start [2025-02-18 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506527', 'tblTempVendorCDR_20' ) end [2025-02-18 23:49:16] Production.INFO: ProcessCDR(1,14506527,1,1,2) [2025-02-18 23:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506527', 'tblTempUsageDetail_20' ) start [2025-02-18 23:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506527', 'tblTempUsageDetail_20' ) end [2025-02-18 23:49:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:49:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:49:19] Production.INFO: ==15071== Releasing lock... [2025-02-18 23:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:49:19] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:50:06 [end_date_ymd] => 2025-02-18 23:50:06 [RateCDR] => 1 ) [2025-02-18 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:50:06' and `end` < '2025-02-18 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-18 23:50:18] Production.INFO: count ==661 [2025-02-18 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:50:06 - End Time 2025-02-18 23:50:06 [2025-02-18 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506533', 'tblTempUsageDetail_20' ) start [2025-02-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506533', 'tblTempUsageDetail_20' ) end [2025-02-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506533', 'tblTempVendorCDR_20' ) start [2025-02-18 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506533', 'tblTempVendorCDR_20' ) end [2025-02-18 23:50:18] Production.INFO: ProcessCDR(1,14506533,1,1,2) [2025-02-18 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506533', 'tblTempUsageDetail_20' ) start [2025-02-18 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506533', 'tblTempUsageDetail_20' ) end [2025-02-18 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:50:23] Production.INFO: ==15148== Releasing lock... [2025-02-18 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:50:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:51:06 [end_date_ymd] => 2025-02-18 23:51:06 [RateCDR] => 1 ) [2025-02-18 23: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-18 20:51:06' and `end` < '2025-02-18 23: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-18 23:51:17] Production.INFO: count ==647 [2025-02-18 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:51:06 - End Time 2025-02-18 23:51:06 [2025-02-18 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506538', 'tblTempUsageDetail_20' ) start [2025-02-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506538', 'tblTempUsageDetail_20' ) end [2025-02-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506538', 'tblTempVendorCDR_20' ) start [2025-02-18 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506538', 'tblTempVendorCDR_20' ) end [2025-02-18 23:51:18] Production.INFO: ProcessCDR(1,14506538,1,1,2) [2025-02-18 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506538', 'tblTempUsageDetail_20' ) start [2025-02-18 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506538', 'tblTempUsageDetail_20' ) end [2025-02-18 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:51:21] Production.INFO: ==15222== Releasing lock... [2025-02-18 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:52:05 [end_date_ymd] => 2025-02-18 23:52:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:52:05' and `end` < '2025-02-18 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-18 23:52:17] Production.INFO: count ==647 [2025-02-18 23:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:52:05 - End Time 2025-02-18 23:52:05 [2025-02-18 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506543', 'tblTempUsageDetail_20' ) start [2025-02-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506543', 'tblTempUsageDetail_20' ) end [2025-02-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506543', 'tblTempVendorCDR_20' ) start [2025-02-18 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506543', 'tblTempVendorCDR_20' ) end [2025-02-18 23:52:17] Production.INFO: ProcessCDR(1,14506543,1,1,2) [2025-02-18 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506543', 'tblTempUsageDetail_20' ) start [2025-02-18 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506543', 'tblTempUsageDetail_20' ) end [2025-02-18 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:52:22] Production.INFO: ==15298== Releasing lock... [2025-02-18 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:53:05 [end_date_ymd] => 2025-02-18 23:53:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:53:05' and `end` < '2025-02-18 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-18 23:53:16] Production.INFO: count ==645 [2025-02-18 23:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:53:05 - End Time 2025-02-18 23:53:05 [2025-02-18 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506548', 'tblTempUsageDetail_20' ) start [2025-02-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506548', 'tblTempUsageDetail_20' ) end [2025-02-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506548', 'tblTempVendorCDR_20' ) start [2025-02-18 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506548', 'tblTempVendorCDR_20' ) end [2025-02-18 23:53:17] Production.INFO: ProcessCDR(1,14506548,1,1,2) [2025-02-18 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506548', 'tblTempUsageDetail_20' ) start [2025-02-18 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506548', 'tblTempUsageDetail_20' ) end [2025-02-18 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:53:20] Production.INFO: ==15411== Releasing lock... [2025-02-18 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:53:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-18 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:54:05 [end_date_ymd] => 2025-02-18 23:54:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:54:05' and `end` < '2025-02-18 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-18 23:54:17] Production.INFO: count ==643 [2025-02-18 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:54:05 - End Time 2025-02-18 23:54:05 [2025-02-18 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506553', 'tblTempUsageDetail_20' ) start [2025-02-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506553', 'tblTempUsageDetail_20' ) end [2025-02-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506553', 'tblTempVendorCDR_20' ) start [2025-02-18 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506553', 'tblTempVendorCDR_20' ) end [2025-02-18 23:54:17] Production.INFO: ProcessCDR(1,14506553,1,1,2) [2025-02-18 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506553', 'tblTempUsageDetail_20' ) start [2025-02-18 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506553', 'tblTempUsageDetail_20' ) end [2025-02-18 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:54:20] Production.INFO: ==15483== Releasing lock... [2025-02-18 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:54:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:55:06 [end_date_ymd] => 2025-02-18 23:55:06 [RateCDR] => 1 ) [2025-02-18 23:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 20:55:06' and `end` < '2025-02-18 23: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-18 23:55:18] Production.INFO: count ==642 [2025-02-18 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-18 20:55:06 - End Time 2025-02-18 23:55:06 [2025-02-18 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506558', 'tblTempUsageDetail_20' ) start [2025-02-18 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506558', 'tblTempUsageDetail_20' ) end [2025-02-18 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506558', 'tblTempVendorCDR_20' ) start [2025-02-18 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506558', 'tblTempVendorCDR_20' ) end [2025-02-18 23:55:18] Production.INFO: ProcessCDR(1,14506558,1,1,2) [2025-02-18 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506558', 'tblTempUsageDetail_20' ) start [2025-02-18 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506558', 'tblTempUsageDetail_20' ) end [2025-02-18 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:55:21] Production.INFO: ==15555== Releasing lock... [2025-02-18 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:56:05 [end_date_ymd] => 2025-02-18 23:56:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:56:05' and `end` < '2025-02-18 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-18 23:56:17] Production.INFO: count ==642 [2025-02-18 23:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:56:05 - End Time 2025-02-18 23:56:05 [2025-02-18 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506563', 'tblTempUsageDetail_20' ) start [2025-02-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506563', 'tblTempUsageDetail_20' ) end [2025-02-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506563', 'tblTempVendorCDR_20' ) start [2025-02-18 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506563', 'tblTempVendorCDR_20' ) end [2025-02-18 23:56:17] Production.INFO: ProcessCDR(1,14506563,1,1,2) [2025-02-18 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506563', 'tblTempUsageDetail_20' ) start [2025-02-18 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506563', 'tblTempUsageDetail_20' ) end [2025-02-18 23:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:56:20] Production.INFO: ==15628== Releasing lock... [2025-02-18 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:56:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:57:05 [end_date_ymd] => 2025-02-18 23:57:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:57:05' and `end` < '2025-02-18 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-18 23:57:17] Production.INFO: count ==642 [2025-02-18 23:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:57:05 - End Time 2025-02-18 23:57:05 [2025-02-18 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506568', 'tblTempUsageDetail_20' ) start [2025-02-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506568', 'tblTempUsageDetail_20' ) end [2025-02-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506568', 'tblTempVendorCDR_20' ) start [2025-02-18 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506568', 'tblTempVendorCDR_20' ) end [2025-02-18 23:57:17] Production.INFO: ProcessCDR(1,14506568,1,1,2) [2025-02-18 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506568', 'tblTempUsageDetail_20' ) start [2025-02-18 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506568', 'tblTempUsageDetail_20' ) end [2025-02-18 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:57:20] Production.INFO: ==15700== Releasing lock... [2025-02-18 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:57:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:58:05 [end_date_ymd] => 2025-02-18 23:58:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:58:05' and `end` < '2025-02-18 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-18 23:58:16] Production.INFO: count ==642 [2025-02-18 23:58:16] Production.ERROR: pbx CDR StartTime 2025-02-18 20:58:05 - End Time 2025-02-18 23:58:05 [2025-02-18 23:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506573', 'tblTempUsageDetail_20' ) start [2025-02-18 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506573', 'tblTempUsageDetail_20' ) end [2025-02-18 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506573', 'tblTempVendorCDR_20' ) start [2025-02-18 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506573', 'tblTempVendorCDR_20' ) end [2025-02-18 23:58:16] Production.INFO: ProcessCDR(1,14506573,1,1,2) [2025-02-18 23:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506573', 'tblTempUsageDetail_20' ) start [2025-02-18 23:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506573', 'tblTempUsageDetail_20' ) end [2025-02-18 23:58:19] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:58:19] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:58:19] Production.INFO: ==15772== Releasing lock... [2025-02-18 23:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:58:19] Production.INFO: 32.25 MB #Memory Used# [2025-02-18 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 20:59:05 [end_date_ymd] => 2025-02-18 23:59:05 [RateCDR] => 1 ) [2025-02-18 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-18 20:59:05' and `end` < '2025-02-18 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-18 23:59:17] Production.INFO: count ==640 [2025-02-18 23:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 20:59:05 - End Time 2025-02-18 23:59:05 [2025-02-18 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506578', 'tblTempUsageDetail_20' ) start [2025-02-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506578', 'tblTempUsageDetail_20' ) end [2025-02-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506578', 'tblTempVendorCDR_20' ) start [2025-02-18 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506578', 'tblTempVendorCDR_20' ) end [2025-02-18 23:59:17] Production.INFO: ProcessCDR(1,14506578,1,1,2) [2025-02-18 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-18 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-18 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506578', 'tblTempUsageDetail_20' ) start [2025-02-18 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506578', 'tblTempUsageDetail_20' ) end [2025-02-18 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-18 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-18 23:59:20] Production.INFO: ==15845== Releasing lock... [2025-02-18 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-18 23:59:20] Production.INFO: 32.25 MB #Memory Used#