[2025-01-03 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:00:07 [end_date_ymd] => 2025-01-03 00:00:07 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:00:07' and `end` < '2025-01-03 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-01-03 00:00:20] Production.INFO: count ==569 [2025-01-03 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-02 21:00:07 - End Time 2025-01-03 00:00:07 [2025-01-03 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161738', 'tblTempUsageDetail_20' ) start [2025-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161738', 'tblTempUsageDetail_20' ) end [2025-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161738', 'tblTempVendorCDR_20' ) start [2025-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161738', 'tblTempVendorCDR_20' ) end [2025-01-03 00:00:21] Production.INFO: ProcessCDR(1,14161738,1,1,2) [2025-01-03 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161738', 'tblTempUsageDetail_20' ) start [2025-01-03 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161738', 'tblTempUsageDetail_20' ) end [2025-01-03 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:00:27] Production.INFO: ==28069== Releasing lock... [2025-01-03 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:00:27] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:01:04 [end_date_ymd] => 2025-01-03 00:01:04 [RateCDR] => 1 ) [2025-01-03 00: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-01-02 21:01:04' and `end` < '2025-01-03 00: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-01-03 00:01:18] Production.INFO: count ==567 [2025-01-03 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:01:04 - End Time 2025-01-03 00:01:04 [2025-01-03 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161743', 'tblTempUsageDetail_20' ) start [2025-01-03 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161743', 'tblTempUsageDetail_20' ) end [2025-01-03 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161743', 'tblTempVendorCDR_20' ) start [2025-01-03 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161743', 'tblTempVendorCDR_20' ) end [2025-01-03 00:01:18] Production.INFO: ProcessCDR(1,14161743,1,1,2) [2025-01-03 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161743', 'tblTempUsageDetail_20' ) start [2025-01-03 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161743', 'tblTempUsageDetail_20' ) end [2025-01-03 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:01:21] Production.INFO: ==28156== Releasing lock... [2025-01-03 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-03 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:02:05 [end_date_ymd] => 2025-01-03 00:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:02:05' and `end` < '2025-01-03 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-01-03 00:02:26] Production.INFO: count ==143 [2025-01-03 00:02:26] Production.ERROR: pbx CDR StartTime 2025-01-02 21:02:05 - End Time 2025-01-03 00:02:05 [2025-01-03 00:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161748', 'tblTempUsageDetail_20' ) start [2025-01-03 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161748', 'tblTempUsageDetail_20' ) end [2025-01-03 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161748', 'tblTempVendorCDR_20' ) start [2025-01-03 00:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161748', 'tblTempVendorCDR_20' ) end [2025-01-03 00:02:26] Production.INFO: ProcessCDR(1,14161748,1,1,2) [2025-01-03 00:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161748', 'tblTempUsageDetail_20' ) start [2025-01-03 00:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161748', 'tblTempUsageDetail_20' ) end [2025-01-03 00:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:02:29] Production.INFO: ==28229== Releasing lock... [2025-01-03 00:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:02:29] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:03:04 [end_date_ymd] => 2025-01-03 00:03:04 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:03:04' and `end` < '2025-01-03 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-01-03 00:03:18] Production.INFO: count ==140 [2025-01-03 00:03:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:03:04 - End Time 2025-01-03 00:03:04 [2025-01-03 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161753', 'tblTempUsageDetail_20' ) start [2025-01-03 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161753', 'tblTempUsageDetail_20' ) end [2025-01-03 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161753', 'tblTempVendorCDR_20' ) start [2025-01-03 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161753', 'tblTempVendorCDR_20' ) end [2025-01-03 00:03:18] Production.INFO: ProcessCDR(1,14161753,1,1,2) [2025-01-03 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161753', 'tblTempUsageDetail_20' ) start [2025-01-03 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161753', 'tblTempUsageDetail_20' ) end [2025-01-03 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:03:21] Production.INFO: ==28307== Releasing lock... [2025-01-03 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:04:05 [end_date_ymd] => 2025-01-03 00:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:04:05' and `end` < '2025-01-03 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-01-03 00:04:18] Production.INFO: count ==137 [2025-01-03 00:04:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:04:05 - End Time 2025-01-03 00:04:05 [2025-01-03 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161758', 'tblTempUsageDetail_20' ) start [2025-01-03 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161758', 'tblTempUsageDetail_20' ) end [2025-01-03 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161758', 'tblTempVendorCDR_20' ) start [2025-01-03 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161758', 'tblTempVendorCDR_20' ) end [2025-01-03 00:04:18] Production.INFO: ProcessCDR(1,14161758,1,1,2) [2025-01-03 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161758', 'tblTempUsageDetail_20' ) start [2025-01-03 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161758', 'tblTempUsageDetail_20' ) end [2025-01-03 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:04:21] Production.INFO: ==28378== Releasing lock... [2025-01-03 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:05:06 [end_date_ymd] => 2025-01-03 00:05:06 [RateCDR] => 1 ) [2025-01-03 00:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:05:06' and `end` < '2025-01-03 00:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:05:18] Production.INFO: count ==132 [2025-01-03 00:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:05:06 - End Time 2025-01-03 00:05:06 [2025-01-03 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161763', 'tblTempUsageDetail_20' ) start [2025-01-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161763', 'tblTempUsageDetail_20' ) end [2025-01-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161763', 'tblTempVendorCDR_20' ) start [2025-01-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161763', 'tblTempVendorCDR_20' ) end [2025-01-03 00:05:18] Production.INFO: ProcessCDR(1,14161763,1,1,2) [2025-01-03 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161763', 'tblTempUsageDetail_20' ) start [2025-01-03 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161763', 'tblTempUsageDetail_20' ) end [2025-01-03 00:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:05:22] Production.INFO: ==28449== Releasing lock... [2025-01-03 00:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:06:05 [end_date_ymd] => 2025-01-03 00:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:06:05' and `end` < '2025-01-03 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-01-03 00:06:17] Production.INFO: count ==131 [2025-01-03 00:06:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:06:05 - End Time 2025-01-03 00:06:05 [2025-01-03 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161768', 'tblTempUsageDetail_20' ) start [2025-01-03 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161768', 'tblTempUsageDetail_20' ) end [2025-01-03 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161768', 'tblTempVendorCDR_20' ) start [2025-01-03 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161768', 'tblTempVendorCDR_20' ) end [2025-01-03 00:06:17] Production.INFO: ProcessCDR(1,14161768,1,1,2) [2025-01-03 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161768', 'tblTempUsageDetail_20' ) start [2025-01-03 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161768', 'tblTempUsageDetail_20' ) end [2025-01-03 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:06:21] Production.INFO: ==28519== Releasing lock... [2025-01-03 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:07:05 [end_date_ymd] => 2025-01-03 00:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:07:05' and `end` < '2025-01-03 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-01-03 00:07:18] Production.INFO: count ==130 [2025-01-03 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:07:05 - End Time 2025-01-03 00:07:05 [2025-01-03 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161773', 'tblTempUsageDetail_20' ) start [2025-01-03 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161773', 'tblTempUsageDetail_20' ) end [2025-01-03 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161773', 'tblTempVendorCDR_20' ) start [2025-01-03 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161773', 'tblTempVendorCDR_20' ) end [2025-01-03 00:07:18] Production.INFO: ProcessCDR(1,14161773,1,1,2) [2025-01-03 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161773', 'tblTempUsageDetail_20' ) start [2025-01-03 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161773', 'tblTempUsageDetail_20' ) end [2025-01-03 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:07:21] Production.INFO: ==28591== Releasing lock... [2025-01-03 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:08:04 [end_date_ymd] => 2025-01-03 00:08:04 [RateCDR] => 1 ) [2025-01-03 00: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-01-02 21:08:04' and `end` < '2025-01-03 00: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-01-03 00:08:17] Production.INFO: count ==130 [2025-01-03 00:08:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:08:04 - End Time 2025-01-03 00:08:04 [2025-01-03 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161778', 'tblTempUsageDetail_20' ) start [2025-01-03 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161778', 'tblTempUsageDetail_20' ) end [2025-01-03 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161778', 'tblTempVendorCDR_20' ) start [2025-01-03 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161778', 'tblTempVendorCDR_20' ) end [2025-01-03 00:08:17] Production.INFO: ProcessCDR(1,14161778,1,1,2) [2025-01-03 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161778', 'tblTempUsageDetail_20' ) start [2025-01-03 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161778', 'tblTempUsageDetail_20' ) end [2025-01-03 00:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:08:20] Production.INFO: ==28661== Releasing lock... [2025-01-03 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:09:05 [end_date_ymd] => 2025-01-03 00:09:05 [RateCDR] => 1 ) [2025-01-03 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:09:05' and `end` < '2025-01-03 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:09:18] Production.INFO: count ==133 [2025-01-03 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:09:05 - End Time 2025-01-03 00:09:05 [2025-01-03 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161783', 'tblTempUsageDetail_20' ) start [2025-01-03 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161783', 'tblTempUsageDetail_20' ) end [2025-01-03 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161783', 'tblTempVendorCDR_20' ) start [2025-01-03 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161783', 'tblTempVendorCDR_20' ) end [2025-01-03 00:09:18] Production.INFO: ProcessCDR(1,14161783,1,1,2) [2025-01-03 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161783', 'tblTempUsageDetail_20' ) start [2025-01-03 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161783', 'tblTempUsageDetail_20' ) end [2025-01-03 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:09:22] Production.INFO: ==28732== Releasing lock... [2025-01-03 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:10:05 [end_date_ymd] => 2025-01-03 00:10:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:10:05' and `end` < '2025-01-03 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-01-03 00:10:17] Production.INFO: count ==139 [2025-01-03 00:10:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:10:05 - End Time 2025-01-03 00:10:05 [2025-01-03 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161789', 'tblTempUsageDetail_20' ) start [2025-01-03 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161789', 'tblTempUsageDetail_20' ) end [2025-01-03 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161789', 'tblTempVendorCDR_20' ) start [2025-01-03 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161789', 'tblTempVendorCDR_20' ) end [2025-01-03 00:10:17] Production.INFO: ProcessCDR(1,14161789,1,1,2) [2025-01-03 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161789', 'tblTempUsageDetail_20' ) start [2025-01-03 00:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161789', 'tblTempUsageDetail_20' ) end [2025-01-03 00:10:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:10:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:10:20] Production.INFO: ==28843== Releasing lock... [2025-01-03 00:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:10:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:11:05 [end_date_ymd] => 2025-01-03 00:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:11:05' and `end` < '2025-01-03 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-01-03 00:11:18] Production.INFO: count ==149 [2025-01-03 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:11:05 - End Time 2025-01-03 00:11:05 [2025-01-03 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161794', 'tblTempUsageDetail_20' ) start [2025-01-03 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161794', 'tblTempUsageDetail_20' ) end [2025-01-03 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161794', 'tblTempVendorCDR_20' ) start [2025-01-03 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161794', 'tblTempVendorCDR_20' ) end [2025-01-03 00:11:18] Production.INFO: ProcessCDR(1,14161794,1,1,2) [2025-01-03 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161794', 'tblTempUsageDetail_20' ) start [2025-01-03 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161794', 'tblTempUsageDetail_20' ) end [2025-01-03 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:11:21] Production.INFO: ==28917== Releasing lock... [2025-01-03 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:12:04 [end_date_ymd] => 2025-01-03 00:12:04 [RateCDR] => 1 ) [2025-01-03 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:12:04' and `end` < '2025-01-03 00:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:12:17] Production.INFO: count ==148 [2025-01-03 00:12:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:12:04 - End Time 2025-01-03 00:12:04 [2025-01-03 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161799', 'tblTempUsageDetail_20' ) start [2025-01-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161799', 'tblTempUsageDetail_20' ) end [2025-01-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161799', 'tblTempVendorCDR_20' ) start [2025-01-03 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161799', 'tblTempVendorCDR_20' ) end [2025-01-03 00:12:17] Production.INFO: ProcessCDR(1,14161799,1,1,2) [2025-01-03 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161799', 'tblTempUsageDetail_20' ) start [2025-01-03 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161799', 'tblTempUsageDetail_20' ) end [2025-01-03 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:12:20] Production.INFO: ==28986== Releasing lock... [2025-01-03 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:12:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:13:05 [end_date_ymd] => 2025-01-03 00:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:13:05' and `end` < '2025-01-03 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-01-03 00:13:18] Production.INFO: count ==148 [2025-01-03 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:13:05 - End Time 2025-01-03 00:13:05 [2025-01-03 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161804', 'tblTempUsageDetail_20' ) start [2025-01-03 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161804', 'tblTempUsageDetail_20' ) end [2025-01-03 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161804', 'tblTempVendorCDR_20' ) start [2025-01-03 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161804', 'tblTempVendorCDR_20' ) end [2025-01-03 00:13:18] Production.INFO: ProcessCDR(1,14161804,1,1,2) [2025-01-03 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161804', 'tblTempUsageDetail_20' ) start [2025-01-03 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161804', 'tblTempUsageDetail_20' ) end [2025-01-03 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:13:21] Production.INFO: ==29058== Releasing lock... [2025-01-03 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:14:05 [end_date_ymd] => 2025-01-03 00:14:05 [RateCDR] => 1 ) [2025-01-03 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:14:05' and `end` < '2025-01-03 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:14:18] Production.INFO: count ==144 [2025-01-03 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:14:05 - End Time 2025-01-03 00:14:05 [2025-01-03 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161809', 'tblTempUsageDetail_20' ) start [2025-01-03 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161809', 'tblTempUsageDetail_20' ) end [2025-01-03 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161809', 'tblTempVendorCDR_20' ) start [2025-01-03 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161809', 'tblTempVendorCDR_20' ) end [2025-01-03 00:14:18] Production.INFO: ProcessCDR(1,14161809,1,1,2) [2025-01-03 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161809', 'tblTempUsageDetail_20' ) start [2025-01-03 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161809', 'tblTempUsageDetail_20' ) end [2025-01-03 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:14:21] Production.INFO: ==29134== Releasing lock... [2025-01-03 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:15:04 [end_date_ymd] => 2025-01-03 00:15:04 [RateCDR] => 1 ) [2025-01-03 00:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:15:04' and `end` < '2025-01-03 00:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:15:17] Production.INFO: count ==142 [2025-01-03 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:15:04 - End Time 2025-01-03 00:15:04 [2025-01-03 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161814', 'tblTempUsageDetail_20' ) start [2025-01-03 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161814', 'tblTempUsageDetail_20' ) end [2025-01-03 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161814', 'tblTempVendorCDR_20' ) start [2025-01-03 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161814', 'tblTempVendorCDR_20' ) end [2025-01-03 00:15:17] Production.INFO: ProcessCDR(1,14161814,1,1,2) [2025-01-03 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161814', 'tblTempUsageDetail_20' ) start [2025-01-03 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161814', 'tblTempUsageDetail_20' ) end [2025-01-03 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:15:20] Production.INFO: ==29208== Releasing lock... [2025-01-03 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:15:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:16:05 [end_date_ymd] => 2025-01-03 00:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:16:05' and `end` < '2025-01-03 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-01-03 00:16:17] Production.INFO: count ==142 [2025-01-03 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:16:05 - End Time 2025-01-03 00:16:05 [2025-01-03 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161819', 'tblTempUsageDetail_20' ) start [2025-01-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161819', 'tblTempUsageDetail_20' ) end [2025-01-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161819', 'tblTempVendorCDR_20' ) start [2025-01-03 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161819', 'tblTempVendorCDR_20' ) end [2025-01-03 00:16:17] Production.INFO: ProcessCDR(1,14161819,1,1,2) [2025-01-03 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161819', 'tblTempUsageDetail_20' ) start [2025-01-03 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161819', 'tblTempUsageDetail_20' ) end [2025-01-03 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:16:20] Production.INFO: ==29279== Releasing lock... [2025-01-03 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:17:04 [end_date_ymd] => 2025-01-03 00:17:04 [RateCDR] => 1 ) [2025-01-03 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:17:04' and `end` < '2025-01-03 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:17:17] Production.INFO: count ==142 [2025-01-03 00:17:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:17:04 - End Time 2025-01-03 00:17:04 [2025-01-03 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161824', 'tblTempUsageDetail_20' ) start [2025-01-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161824', 'tblTempUsageDetail_20' ) end [2025-01-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161824', 'tblTempVendorCDR_20' ) start [2025-01-03 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161824', 'tblTempVendorCDR_20' ) end [2025-01-03 00:17:17] Production.INFO: ProcessCDR(1,14161824,1,1,2) [2025-01-03 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161824', 'tblTempUsageDetail_20' ) start [2025-01-03 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161824', 'tblTempUsageDetail_20' ) end [2025-01-03 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:17:20] Production.INFO: ==29348== Releasing lock... [2025-01-03 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:17:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:18:05 [end_date_ymd] => 2025-01-03 00:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:18:05' and `end` < '2025-01-03 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-01-03 00:18:17] Production.INFO: count ==145 [2025-01-03 00:18:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:18:05 - End Time 2025-01-03 00:18:05 [2025-01-03 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161829', 'tblTempUsageDetail_20' ) start [2025-01-03 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161829', 'tblTempUsageDetail_20' ) end [2025-01-03 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161829', 'tblTempVendorCDR_20' ) start [2025-01-03 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161829', 'tblTempVendorCDR_20' ) end [2025-01-03 00:18:17] Production.INFO: ProcessCDR(1,14161829,1,1,2) [2025-01-03 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161829', 'tblTempUsageDetail_20' ) start [2025-01-03 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161829', 'tblTempUsageDetail_20' ) end [2025-01-03 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:18:20] Production.INFO: ==29433== Releasing lock... [2025-01-03 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:18:20] Production.INFO: 30 MB #Memory Used# [2025-01-03 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:19:05 [end_date_ymd] => 2025-01-03 00:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:19:05' and `end` < '2025-01-03 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-01-03 00:19:18] Production.INFO: count ==144 [2025-01-03 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:19:05 - End Time 2025-01-03 00:19:05 [2025-01-03 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161834', 'tblTempUsageDetail_20' ) start [2025-01-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161834', 'tblTempUsageDetail_20' ) end [2025-01-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161834', 'tblTempVendorCDR_20' ) start [2025-01-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161834', 'tblTempVendorCDR_20' ) end [2025-01-03 00:19:18] Production.INFO: ProcessCDR(1,14161834,1,1,2) [2025-01-03 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161834', 'tblTempUsageDetail_20' ) start [2025-01-03 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161834', 'tblTempUsageDetail_20' ) end [2025-01-03 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:19:21] Production.INFO: ==29503== Releasing lock... [2025-01-03 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:20:05 [end_date_ymd] => 2025-01-03 00:20:05 [RateCDR] => 1 ) [2025-01-03 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:20:05' and `end` < '2025-01-03 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:20:18] Production.INFO: count ==149 [2025-01-03 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:20:05 - End Time 2025-01-03 00:20:05 [2025-01-03 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161840', 'tblTempUsageDetail_20' ) start [2025-01-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161840', 'tblTempUsageDetail_20' ) end [2025-01-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161840', 'tblTempVendorCDR_20' ) start [2025-01-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161840', 'tblTempVendorCDR_20' ) end [2025-01-03 00:20:18] Production.INFO: ProcessCDR(1,14161840,1,1,2) [2025-01-03 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161840', 'tblTempUsageDetail_20' ) start [2025-01-03 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161840', 'tblTempUsageDetail_20' ) end [2025-01-03 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:20:21] Production.INFO: ==29575== Releasing lock... [2025-01-03 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:21:05 [end_date_ymd] => 2025-01-03 00:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:21:05' and `end` < '2025-01-03 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-01-03 00:21:18] Production.INFO: count ==158 [2025-01-03 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:21:05 - End Time 2025-01-03 00:21:05 [2025-01-03 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161845', 'tblTempUsageDetail_20' ) start [2025-01-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161845', 'tblTempUsageDetail_20' ) end [2025-01-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161845', 'tblTempVendorCDR_20' ) start [2025-01-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161845', 'tblTempVendorCDR_20' ) end [2025-01-03 00:21:18] Production.INFO: ProcessCDR(1,14161845,1,1,2) [2025-01-03 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161845', 'tblTempUsageDetail_20' ) start [2025-01-03 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161845', 'tblTempUsageDetail_20' ) end [2025-01-03 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:21:22] Production.INFO: ==29649== Releasing lock... [2025-01-03 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:22:05 [end_date_ymd] => 2025-01-03 00:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:22:05' and `end` < '2025-01-03 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-01-03 00:22:17] Production.INFO: count ==156 [2025-01-03 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:22:05 - End Time 2025-01-03 00:22:05 [2025-01-03 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161850', 'tblTempUsageDetail_20' ) start [2025-01-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161850', 'tblTempUsageDetail_20' ) end [2025-01-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161850', 'tblTempVendorCDR_20' ) start [2025-01-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161850', 'tblTempVendorCDR_20' ) end [2025-01-03 00:22:18] Production.INFO: ProcessCDR(1,14161850,1,1,2) [2025-01-03 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161850', 'tblTempUsageDetail_20' ) start [2025-01-03 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161850', 'tblTempUsageDetail_20' ) end [2025-01-03 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:22:21] Production.INFO: ==29719== Releasing lock... [2025-01-03 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:23:05 [end_date_ymd] => 2025-01-03 00:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:23:05' and `end` < '2025-01-03 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-01-03 00:23:18] Production.INFO: count ==154 [2025-01-03 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:23:05 - End Time 2025-01-03 00:23:05 [2025-01-03 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161855', 'tblTempUsageDetail_20' ) start [2025-01-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161855', 'tblTempUsageDetail_20' ) end [2025-01-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161855', 'tblTempVendorCDR_20' ) start [2025-01-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161855', 'tblTempVendorCDR_20' ) end [2025-01-03 00:23:18] Production.INFO: ProcessCDR(1,14161855,1,1,2) [2025-01-03 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161855', 'tblTempUsageDetail_20' ) start [2025-01-03 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161855', 'tblTempUsageDetail_20' ) end [2025-01-03 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:23:21] Production.INFO: ==29793== Releasing lock... [2025-01-03 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:24:05 [end_date_ymd] => 2025-01-03 00:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:24:05' and `end` < '2025-01-03 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-01-03 00:24:18] Production.INFO: count ==155 [2025-01-03 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:24:05 - End Time 2025-01-03 00:24:05 [2025-01-03 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161860', 'tblTempUsageDetail_20' ) start [2025-01-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161860', 'tblTempUsageDetail_20' ) end [2025-01-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161860', 'tblTempVendorCDR_20' ) start [2025-01-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161860', 'tblTempVendorCDR_20' ) end [2025-01-03 00:24:18] Production.INFO: ProcessCDR(1,14161860,1,1,2) [2025-01-03 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161860', 'tblTempUsageDetail_20' ) start [2025-01-03 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161860', 'tblTempUsageDetail_20' ) end [2025-01-03 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:24:23] Production.INFO: ==29866== Releasing lock... [2025-01-03 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:24:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:25:05 [end_date_ymd] => 2025-01-03 00:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:25:05' and `end` < '2025-01-03 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-01-03 00:25:18] Production.INFO: count ==155 [2025-01-03 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:25:05 - End Time 2025-01-03 00:25:05 [2025-01-03 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161865', 'tblTempUsageDetail_20' ) start [2025-01-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161865', 'tblTempUsageDetail_20' ) end [2025-01-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161865', 'tblTempVendorCDR_20' ) start [2025-01-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161865', 'tblTempVendorCDR_20' ) end [2025-01-03 00:25:18] Production.INFO: ProcessCDR(1,14161865,1,1,2) [2025-01-03 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161865', 'tblTempUsageDetail_20' ) start [2025-01-03 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161865', 'tblTempUsageDetail_20' ) end [2025-01-03 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:25:22] Production.INFO: ==29937== Releasing lock... [2025-01-03 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:26:05 [end_date_ymd] => 2025-01-03 00:26:05 [RateCDR] => 1 ) [2025-01-03 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:26:05' and `end` < '2025-01-03 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:26:18] Production.INFO: count ==151 [2025-01-03 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:26:05 - End Time 2025-01-03 00:26:05 [2025-01-03 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161870', 'tblTempUsageDetail_20' ) start [2025-01-03 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161870', 'tblTempUsageDetail_20' ) end [2025-01-03 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161870', 'tblTempVendorCDR_20' ) start [2025-01-03 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161870', 'tblTempVendorCDR_20' ) end [2025-01-03 00:26:18] Production.INFO: ProcessCDR(1,14161870,1,1,2) [2025-01-03 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161870', 'tblTempUsageDetail_20' ) start [2025-01-03 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161870', 'tblTempUsageDetail_20' ) end [2025-01-03 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:26:21] Production.INFO: ==30046== Releasing lock... [2025-01-03 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:27:04 [end_date_ymd] => 2025-01-03 00:27:04 [RateCDR] => 1 ) [2025-01-03 00: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-01-02 21:27:04' and `end` < '2025-01-03 00: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-01-03 00:27:18] Production.INFO: count ==151 [2025-01-03 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:27:04 - End Time 2025-01-03 00:27:04 [2025-01-03 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161875', 'tblTempUsageDetail_20' ) start [2025-01-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161875', 'tblTempUsageDetail_20' ) end [2025-01-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161875', 'tblTempVendorCDR_20' ) start [2025-01-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161875', 'tblTempVendorCDR_20' ) end [2025-01-03 00:27:18] Production.INFO: ProcessCDR(1,14161875,1,1,2) [2025-01-03 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161875', 'tblTempUsageDetail_20' ) start [2025-01-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161875', 'tblTempUsageDetail_20' ) end [2025-01-03 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:27:21] Production.INFO: ==30116== Releasing lock... [2025-01-03 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:28:05 [end_date_ymd] => 2025-01-03 00:28:05 [RateCDR] => 1 ) [2025-01-03 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:28:05' and `end` < '2025-01-03 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:28:18] Production.INFO: count ==151 [2025-01-03 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:28:05 - End Time 2025-01-03 00:28:05 [2025-01-03 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161880', 'tblTempUsageDetail_20' ) start [2025-01-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161880', 'tblTempUsageDetail_20' ) end [2025-01-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161880', 'tblTempVendorCDR_20' ) start [2025-01-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161880', 'tblTempVendorCDR_20' ) end [2025-01-03 00:28:18] Production.INFO: ProcessCDR(1,14161880,1,1,2) [2025-01-03 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161880', 'tblTempUsageDetail_20' ) start [2025-01-03 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161880', 'tblTempUsageDetail_20' ) end [2025-01-03 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:28:21] Production.INFO: ==30189== Releasing lock... [2025-01-03 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:29:04 [end_date_ymd] => 2025-01-03 00:29:04 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:29:04' and `end` < '2025-01-03 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-01-03 00:29:17] Production.INFO: count ==151 [2025-01-03 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:29:04 - End Time 2025-01-03 00:29:04 [2025-01-03 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161885', 'tblTempUsageDetail_20' ) start [2025-01-03 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161885', 'tblTempUsageDetail_20' ) end [2025-01-03 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161885', 'tblTempVendorCDR_20' ) start [2025-01-03 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161885', 'tblTempVendorCDR_20' ) end [2025-01-03 00:29:17] Production.INFO: ProcessCDR(1,14161885,1,1,2) [2025-01-03 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161885', 'tblTempUsageDetail_20' ) start [2025-01-03 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161885', 'tblTempUsageDetail_20' ) end [2025-01-03 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:29:20] Production.INFO: ==30264== Releasing lock... [2025-01-03 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:30:06 [end_date_ymd] => 2025-01-03 00:30:06 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:30:06' and `end` < '2025-01-03 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-01-03 00:30:18] Production.INFO: count ==160 [2025-01-03 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:30:06 - End Time 2025-01-03 00:30:06 [2025-01-03 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161891', 'tblTempUsageDetail_20' ) start [2025-01-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161891', 'tblTempUsageDetail_20' ) end [2025-01-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161891', 'tblTempVendorCDR_20' ) start [2025-01-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161891', 'tblTempVendorCDR_20' ) end [2025-01-03 00:30:18] Production.INFO: ProcessCDR(1,14161891,1,1,2) [2025-01-03 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161891', 'tblTempUsageDetail_20' ) start [2025-01-03 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161891', 'tblTempUsageDetail_20' ) end [2025-01-03 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:30:23] Production.INFO: ==30339== Releasing lock... [2025-01-03 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:31:05 [end_date_ymd] => 2025-01-03 00:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:31:05' and `end` < '2025-01-03 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-01-03 00:31:18] Production.INFO: count ==159 [2025-01-03 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:31:05 - End Time 2025-01-03 00:31:05 [2025-01-03 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161896', 'tblTempUsageDetail_20' ) start [2025-01-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161896', 'tblTempUsageDetail_20' ) end [2025-01-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161896', 'tblTempVendorCDR_20' ) start [2025-01-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161896', 'tblTempVendorCDR_20' ) end [2025-01-03 00:31:18] Production.INFO: ProcessCDR(1,14161896,1,1,2) [2025-01-03 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161896', 'tblTempUsageDetail_20' ) start [2025-01-03 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161896', 'tblTempUsageDetail_20' ) end [2025-01-03 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:31:21] Production.INFO: ==30414== Releasing lock... [2025-01-03 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:32:04 [end_date_ymd] => 2025-01-03 00:32:04 [RateCDR] => 1 ) [2025-01-03 00: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-01-02 21:32:04' and `end` < '2025-01-03 00: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-01-03 00:32:17] Production.INFO: count ==158 [2025-01-03 00:32:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:32:04 - End Time 2025-01-03 00:32:04 [2025-01-03 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161901', 'tblTempUsageDetail_20' ) start [2025-01-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161901', 'tblTempUsageDetail_20' ) end [2025-01-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161901', 'tblTempVendorCDR_20' ) start [2025-01-03 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161901', 'tblTempVendorCDR_20' ) end [2025-01-03 00:32:17] Production.INFO: ProcessCDR(1,14161901,1,1,2) [2025-01-03 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161901', 'tblTempUsageDetail_20' ) start [2025-01-03 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161901', 'tblTempUsageDetail_20' ) end [2025-01-03 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:32:20] Production.INFO: ==30485== Releasing lock... [2025-01-03 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:33:05 [end_date_ymd] => 2025-01-03 00:33:05 [RateCDR] => 1 ) [2025-01-03 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:33:05' and `end` < '2025-01-03 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:33:18] Production.INFO: count ==161 [2025-01-03 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:33:05 - End Time 2025-01-03 00:33:05 [2025-01-03 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161906', 'tblTempUsageDetail_20' ) start [2025-01-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161906', 'tblTempUsageDetail_20' ) end [2025-01-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161906', 'tblTempVendorCDR_20' ) start [2025-01-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161906', 'tblTempVendorCDR_20' ) end [2025-01-03 00:33:18] Production.INFO: ProcessCDR(1,14161906,1,1,2) [2025-01-03 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161906', 'tblTempUsageDetail_20' ) start [2025-01-03 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161906', 'tblTempUsageDetail_20' ) end [2025-01-03 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:33:21] Production.INFO: ==30560== Releasing lock... [2025-01-03 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:34:05 [end_date_ymd] => 2025-01-03 00:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:34:05' and `end` < '2025-01-03 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-01-03 00:34:17] Production.INFO: count ==159 [2025-01-03 00:34:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:34:05 - End Time 2025-01-03 00:34:05 [2025-01-03 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161911', 'tblTempUsageDetail_20' ) start [2025-01-03 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161911', 'tblTempUsageDetail_20' ) end [2025-01-03 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161911', 'tblTempVendorCDR_20' ) start [2025-01-03 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161911', 'tblTempVendorCDR_20' ) end [2025-01-03 00:34:18] Production.INFO: ProcessCDR(1,14161911,1,1,2) [2025-01-03 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161911', 'tblTempUsageDetail_20' ) start [2025-01-03 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161911', 'tblTempUsageDetail_20' ) end [2025-01-03 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:34:21] Production.INFO: ==30637== Releasing lock... [2025-01-03 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:35:05 [end_date_ymd] => 2025-01-03 00:35:05 [RateCDR] => 1 ) [2025-01-03 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:35:05' and `end` < '2025-01-03 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:35:18] Production.INFO: count ==158 [2025-01-03 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:35:05 - End Time 2025-01-03 00:35:05 [2025-01-03 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161916', 'tblTempUsageDetail_20' ) start [2025-01-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161916', 'tblTempUsageDetail_20' ) end [2025-01-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161916', 'tblTempVendorCDR_20' ) start [2025-01-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161916', 'tblTempVendorCDR_20' ) end [2025-01-03 00:35:18] Production.INFO: ProcessCDR(1,14161916,1,1,2) [2025-01-03 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161916', 'tblTempUsageDetail_20' ) start [2025-01-03 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161916', 'tblTempUsageDetail_20' ) end [2025-01-03 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:35:21] Production.INFO: ==30712== Releasing lock... [2025-01-03 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:36:04 [end_date_ymd] => 2025-01-03 00:36:04 [RateCDR] => 1 ) [2025-01-03 00:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:36:04' and `end` < '2025-01-03 00:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:36:17] Production.INFO: count ==156 [2025-01-03 00:36:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:36:04 - End Time 2025-01-03 00:36:04 [2025-01-03 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161921', 'tblTempUsageDetail_20' ) start [2025-01-03 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161921', 'tblTempUsageDetail_20' ) end [2025-01-03 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161921', 'tblTempVendorCDR_20' ) start [2025-01-03 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161921', 'tblTempVendorCDR_20' ) end [2025-01-03 00:36:17] Production.INFO: ProcessCDR(1,14161921,1,1,2) [2025-01-03 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161921', 'tblTempUsageDetail_20' ) start [2025-01-03 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161921', 'tblTempUsageDetail_20' ) end [2025-01-03 00:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:36:20] Production.INFO: ==30800== Releasing lock... [2025-01-03 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:37:05 [end_date_ymd] => 2025-01-03 00:37:05 [RateCDR] => 1 ) [2025-01-03 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:37:05' and `end` < '2025-01-03 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:37:18] Production.INFO: count ==155 [2025-01-03 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:37:05 - End Time 2025-01-03 00:37:05 [2025-01-03 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161926', 'tblTempUsageDetail_20' ) start [2025-01-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161926', 'tblTempUsageDetail_20' ) end [2025-01-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161926', 'tblTempVendorCDR_20' ) start [2025-01-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161926', 'tblTempVendorCDR_20' ) end [2025-01-03 00:37:18] Production.INFO: ProcessCDR(1,14161926,1,1,2) [2025-01-03 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161926', 'tblTempUsageDetail_20' ) start [2025-01-03 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161926', 'tblTempUsageDetail_20' ) end [2025-01-03 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:37:21] Production.INFO: ==30889== Releasing lock... [2025-01-03 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:38:05 [end_date_ymd] => 2025-01-03 00:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:38:05' and `end` < '2025-01-03 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-01-03 00:38:18] Production.INFO: count ==158 [2025-01-03 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:38:05 - End Time 2025-01-03 00:38:05 [2025-01-03 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161931', 'tblTempUsageDetail_20' ) start [2025-01-03 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161931', 'tblTempUsageDetail_20' ) end [2025-01-03 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161931', 'tblTempVendorCDR_20' ) start [2025-01-03 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161931', 'tblTempVendorCDR_20' ) end [2025-01-03 00:38:18] Production.INFO: ProcessCDR(1,14161931,1,1,2) [2025-01-03 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161931', 'tblTempUsageDetail_20' ) start [2025-01-03 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161931', 'tblTempUsageDetail_20' ) end [2025-01-03 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:38:21] Production.INFO: ==30974== Releasing lock... [2025-01-03 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:39:05 [end_date_ymd] => 2025-01-03 00:39:05 [RateCDR] => 1 ) [2025-01-03 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:39:05' and `end` < '2025-01-03 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:39:18] Production.INFO: count ==159 [2025-01-03 00:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 21:39:05 - End Time 2025-01-03 00:39:05 [2025-01-03 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161936', 'tblTempUsageDetail_20' ) start [2025-01-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161936', 'tblTempUsageDetail_20' ) end [2025-01-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161936', 'tblTempVendorCDR_20' ) start [2025-01-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161936', 'tblTempVendorCDR_20' ) end [2025-01-03 00:39:19] Production.INFO: ProcessCDR(1,14161936,1,1,2) [2025-01-03 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161936', 'tblTempUsageDetail_20' ) start [2025-01-03 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161936', 'tblTempUsageDetail_20' ) end [2025-01-03 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:39:24] Production.INFO: ==31057== Releasing lock... [2025-01-03 00:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:39:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:40:06 [end_date_ymd] => 2025-01-03 00:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:40:06' and `end` < '2025-01-03 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-01-03 00:40:18] Production.INFO: count ==167 [2025-01-03 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:40:06 - End Time 2025-01-03 00:40:06 [2025-01-03 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161941', 'tblTempUsageDetail_20' ) start [2025-01-03 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161941', 'tblTempUsageDetail_20' ) end [2025-01-03 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161941', 'tblTempVendorCDR_20' ) start [2025-01-03 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161941', 'tblTempVendorCDR_20' ) end [2025-01-03 00:40:18] Production.INFO: ProcessCDR(1,14161941,1,1,2) [2025-01-03 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161941', 'tblTempUsageDetail_20' ) start [2025-01-03 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161941', 'tblTempUsageDetail_20' ) end [2025-01-03 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:40:22] Production.INFO: ==31144== Releasing lock... [2025-01-03 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:41:04 [end_date_ymd] => 2025-01-03 00:41:04 [RateCDR] => 1 ) [2025-01-03 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:41:04' and `end` < '2025-01-03 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:41:18] Production.INFO: count ==182 [2025-01-03 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:41:04 - End Time 2025-01-03 00:41:04 [2025-01-03 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161947', 'tblTempUsageDetail_20' ) start [2025-01-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161947', 'tblTempUsageDetail_20' ) end [2025-01-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161947', 'tblTempVendorCDR_20' ) start [2025-01-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161947', 'tblTempVendorCDR_20' ) end [2025-01-03 00:41:18] Production.INFO: ProcessCDR(1,14161947,1,1,2) [2025-01-03 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161947', 'tblTempUsageDetail_20' ) start [2025-01-03 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161947', 'tblTempUsageDetail_20' ) end [2025-01-03 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:41:21] Production.INFO: ==31267== Releasing lock... [2025-01-03 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:42:05 [end_date_ymd] => 2025-01-03 00:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:42:05' and `end` < '2025-01-03 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-01-03 00:42:18] Production.INFO: count ==183 [2025-01-03 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:42:05 - End Time 2025-01-03 00:42:05 [2025-01-03 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161952', 'tblTempUsageDetail_20' ) start [2025-01-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161952', 'tblTempUsageDetail_20' ) end [2025-01-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161952', 'tblTempVendorCDR_20' ) start [2025-01-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161952', 'tblTempVendorCDR_20' ) end [2025-01-03 00:42:18] Production.INFO: ProcessCDR(1,14161952,1,1,2) [2025-01-03 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161952', 'tblTempUsageDetail_20' ) start [2025-01-03 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161952', 'tblTempUsageDetail_20' ) end [2025-01-03 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:42:22] Production.INFO: ==31355== Releasing lock... [2025-01-03 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:43:04 [end_date_ymd] => 2025-01-03 00:43:04 [RateCDR] => 1 ) [2025-01-03 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:43:04' and `end` < '2025-01-03 00:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:43:17] Production.INFO: count ==184 [2025-01-03 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:43:04 - End Time 2025-01-03 00:43:04 [2025-01-03 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161957', 'tblTempUsageDetail_20' ) start [2025-01-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161957', 'tblTempUsageDetail_20' ) end [2025-01-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161957', 'tblTempVendorCDR_20' ) start [2025-01-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161957', 'tblTempVendorCDR_20' ) end [2025-01-03 00:43:18] Production.INFO: ProcessCDR(1,14161957,1,1,2) [2025-01-03 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161957', 'tblTempUsageDetail_20' ) start [2025-01-03 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161957', 'tblTempUsageDetail_20' ) end [2025-01-03 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:43:21] Production.INFO: ==31439== Releasing lock... [2025-01-03 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:44:05 [end_date_ymd] => 2025-01-03 00:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:44:05' and `end` < '2025-01-03 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-01-03 00:44:18] Production.INFO: count ==181 [2025-01-03 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:44:05 - End Time 2025-01-03 00:44:05 [2025-01-03 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161962', 'tblTempUsageDetail_20' ) start [2025-01-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161962', 'tblTempUsageDetail_20' ) end [2025-01-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161962', 'tblTempVendorCDR_20' ) start [2025-01-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161962', 'tblTempVendorCDR_20' ) end [2025-01-03 00:44:18] Production.INFO: ProcessCDR(1,14161962,1,1,2) [2025-01-03 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161962', 'tblTempUsageDetail_20' ) start [2025-01-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161962', 'tblTempUsageDetail_20' ) end [2025-01-03 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:44:21] Production.INFO: ==31522== Releasing lock... [2025-01-03 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:45:05 [end_date_ymd] => 2025-01-03 00:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:45:05' and `end` < '2025-01-03 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-01-03 00:45:17] Production.INFO: count ==181 [2025-01-03 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:45:05 - End Time 2025-01-03 00:45:05 [2025-01-03 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161967', 'tblTempUsageDetail_20' ) start [2025-01-03 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161967', 'tblTempUsageDetail_20' ) end [2025-01-03 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161967', 'tblTempVendorCDR_20' ) start [2025-01-03 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161967', 'tblTempVendorCDR_20' ) end [2025-01-03 00:45:17] Production.INFO: ProcessCDR(1,14161967,1,1,2) [2025-01-03 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161967', 'tblTempUsageDetail_20' ) start [2025-01-03 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161967', 'tblTempUsageDetail_20' ) end [2025-01-03 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:45:22] Production.INFO: ==31598== Releasing lock... [2025-01-03 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:46:05 [end_date_ymd] => 2025-01-03 00:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:46:05' and `end` < '2025-01-03 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-01-03 00:46:18] Production.INFO: count ==180 [2025-01-03 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:46:05 - End Time 2025-01-03 00:46:05 [2025-01-03 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161972', 'tblTempUsageDetail_20' ) start [2025-01-03 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161972', 'tblTempUsageDetail_20' ) end [2025-01-03 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161972', 'tblTempVendorCDR_20' ) start [2025-01-03 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161972', 'tblTempVendorCDR_20' ) end [2025-01-03 00:46:18] Production.INFO: ProcessCDR(1,14161972,1,1,2) [2025-01-03 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161972', 'tblTempUsageDetail_20' ) start [2025-01-03 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161972', 'tblTempUsageDetail_20' ) end [2025-01-03 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:46:21] Production.INFO: ==31676== Releasing lock... [2025-01-03 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:47:05 [end_date_ymd] => 2025-01-03 00:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:47:05' and `end` < '2025-01-03 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-01-03 00:47:17] Production.INFO: count ==180 [2025-01-03 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:47:05 - End Time 2025-01-03 00:47:05 [2025-01-03 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161977', 'tblTempUsageDetail_20' ) start [2025-01-03 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161977', 'tblTempUsageDetail_20' ) end [2025-01-03 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161977', 'tblTempVendorCDR_20' ) start [2025-01-03 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161977', 'tblTempVendorCDR_20' ) end [2025-01-03 00:47:17] Production.INFO: ProcessCDR(1,14161977,1,1,2) [2025-01-03 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161977', 'tblTempUsageDetail_20' ) start [2025-01-03 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161977', 'tblTempUsageDetail_20' ) end [2025-01-03 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:47:22] Production.INFO: ==31752== Releasing lock... [2025-01-03 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:48:05 [end_date_ymd] => 2025-01-03 00:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:48:05' and `end` < '2025-01-03 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-01-03 00:48:18] Production.INFO: count ==178 [2025-01-03 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:48:05 - End Time 2025-01-03 00:48:05 [2025-01-03 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161981', 'tblTempUsageDetail_20' ) start [2025-01-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161981', 'tblTempUsageDetail_20' ) end [2025-01-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161981', 'tblTempVendorCDR_20' ) start [2025-01-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161981', 'tblTempVendorCDR_20' ) end [2025-01-03 00:48:18] Production.INFO: ProcessCDR(1,14161981,1,1,2) [2025-01-03 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161981', 'tblTempUsageDetail_20' ) start [2025-01-03 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161981', 'tblTempUsageDetail_20' ) end [2025-01-03 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:48:21] Production.INFO: ==31831== Releasing lock... [2025-01-03 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:49:04 [end_date_ymd] => 2025-01-03 00:49:04 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:49:04' and `end` < '2025-01-03 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-01-03 00:49:18] Production.INFO: count ==178 [2025-01-03 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:49:04 - End Time 2025-01-03 00:49:04 [2025-01-03 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161987', 'tblTempUsageDetail_20' ) start [2025-01-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161987', 'tblTempUsageDetail_20' ) end [2025-01-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161987', 'tblTempVendorCDR_20' ) start [2025-01-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161987', 'tblTempVendorCDR_20' ) end [2025-01-03 00:49:18] Production.INFO: ProcessCDR(1,14161987,1,1,2) [2025-01-03 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161987', 'tblTempUsageDetail_20' ) start [2025-01-03 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161987', 'tblTempUsageDetail_20' ) end [2025-01-03 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:49:21] Production.INFO: ==31905== Releasing lock... [2025-01-03 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:50:05 [end_date_ymd] => 2025-01-03 00:50:05 [RateCDR] => 1 ) [2025-01-03 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:50:05' and `end` < '2025-01-03 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:50:18] Production.INFO: count ==181 [2025-01-03 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:50:05 - End Time 2025-01-03 00:50:05 [2025-01-03 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161993', 'tblTempUsageDetail_20' ) start [2025-01-03 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161993', 'tblTempUsageDetail_20' ) end [2025-01-03 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161993', 'tblTempVendorCDR_20' ) start [2025-01-03 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161993', 'tblTempVendorCDR_20' ) end [2025-01-03 00:50:18] Production.INFO: ProcessCDR(1,14161993,1,1,2) [2025-01-03 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161993', 'tblTempUsageDetail_20' ) start [2025-01-03 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161993', 'tblTempUsageDetail_20' ) end [2025-01-03 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:50:21] Production.INFO: ==31982== Releasing lock... [2025-01-03 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:51:05 [end_date_ymd] => 2025-01-03 00:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:51:05' and `end` < '2025-01-03 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-01-03 00:51:18] Production.INFO: count ==186 [2025-01-03 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:51:05 - End Time 2025-01-03 00:51:05 [2025-01-03 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161998', 'tblTempUsageDetail_20' ) start [2025-01-03 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14161998', 'tblTempUsageDetail_20' ) end [2025-01-03 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161998', 'tblTempVendorCDR_20' ) start [2025-01-03 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14161998', 'tblTempVendorCDR_20' ) end [2025-01-03 00:51:18] Production.INFO: ProcessCDR(1,14161998,1,1,2) [2025-01-03 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14161998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14161998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14161998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14161998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161998', 'tblTempUsageDetail_20' ) start [2025-01-03 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14161998', 'tblTempUsageDetail_20' ) end [2025-01-03 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:51:21] Production.INFO: ==32056== Releasing lock... [2025-01-03 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:52:04 [end_date_ymd] => 2025-01-03 00:52:04 [RateCDR] => 1 ) [2025-01-03 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:52:04' and `end` < '2025-01-03 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:52:17] Production.INFO: count ==186 [2025-01-03 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:52:04 - End Time 2025-01-03 00:52:04 [2025-01-03 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162003', 'tblTempUsageDetail_20' ) start [2025-01-03 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162003', 'tblTempUsageDetail_20' ) end [2025-01-03 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162003', 'tblTempVendorCDR_20' ) start [2025-01-03 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162003', 'tblTempVendorCDR_20' ) end [2025-01-03 00:52:17] Production.INFO: ProcessCDR(1,14162003,1,1,2) [2025-01-03 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162003', 'tblTempUsageDetail_20' ) start [2025-01-03 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162003', 'tblTempUsageDetail_20' ) end [2025-01-03 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:52:21] Production.INFO: ==32131== Releasing lock... [2025-01-03 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:53:05 [end_date_ymd] => 2025-01-03 00:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:53:05' and `end` < '2025-01-03 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-01-03 00:53:18] Production.INFO: count ==186 [2025-01-03 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:53:05 - End Time 2025-01-03 00:53:05 [2025-01-03 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162008', 'tblTempUsageDetail_20' ) start [2025-01-03 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162008', 'tblTempUsageDetail_20' ) end [2025-01-03 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162008', 'tblTempVendorCDR_20' ) start [2025-01-03 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162008', 'tblTempVendorCDR_20' ) end [2025-01-03 00:53:18] Production.INFO: ProcessCDR(1,14162008,1,1,2) [2025-01-03 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162008', 'tblTempUsageDetail_20' ) start [2025-01-03 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162008', 'tblTempUsageDetail_20' ) end [2025-01-03 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:53:21] Production.INFO: ==32202== Releasing lock... [2025-01-03 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:54:04 [end_date_ymd] => 2025-01-03 00:54:04 [RateCDR] => 1 ) [2025-01-03 00:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:54:04' and `end` < '2025-01-03 00:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:54:17] Production.INFO: count ==186 [2025-01-03 00:54:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:54:04 - End Time 2025-01-03 00:54:04 [2025-01-03 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162013', 'tblTempUsageDetail_20' ) start [2025-01-03 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162013', 'tblTempUsageDetail_20' ) end [2025-01-03 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162013', 'tblTempVendorCDR_20' ) start [2025-01-03 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162013', 'tblTempVendorCDR_20' ) end [2025-01-03 00:54:17] Production.INFO: ProcessCDR(1,14162013,1,1,2) [2025-01-03 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162013', 'tblTempUsageDetail_20' ) start [2025-01-03 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162013', 'tblTempUsageDetail_20' ) end [2025-01-03 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:54:20] Production.INFO: ==32273== Releasing lock... [2025-01-03 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:55:05 [end_date_ymd] => 2025-01-03 00:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:55:05' and `end` < '2025-01-03 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-01-03 00:55:18] Production.INFO: count ==185 [2025-01-03 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:55:05 - End Time 2025-01-03 00:55:05 [2025-01-03 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162018', 'tblTempUsageDetail_20' ) start [2025-01-03 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162018', 'tblTempUsageDetail_20' ) end [2025-01-03 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162018', 'tblTempVendorCDR_20' ) start [2025-01-03 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162018', 'tblTempVendorCDR_20' ) end [2025-01-03 00:55:18] Production.INFO: ProcessCDR(1,14162018,1,1,2) [2025-01-03 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162018', 'tblTempUsageDetail_20' ) start [2025-01-03 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162018', 'tblTempUsageDetail_20' ) end [2025-01-03 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:55:21] Production.INFO: ==32350== Releasing lock... [2025-01-03 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:56:05 [end_date_ymd] => 2025-01-03 00:56:05 [RateCDR] => 1 ) [2025-01-03 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:56:05' and `end` < '2025-01-03 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:56:18] Production.INFO: count ==185 [2025-01-03 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:56:05 - End Time 2025-01-03 00:56:05 [2025-01-03 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162023', 'tblTempUsageDetail_20' ) start [2025-01-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162023', 'tblTempUsageDetail_20' ) end [2025-01-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162023', 'tblTempVendorCDR_20' ) start [2025-01-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162023', 'tblTempVendorCDR_20' ) end [2025-01-03 00:56:18] Production.INFO: ProcessCDR(1,14162023,1,1,2) [2025-01-03 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162023', 'tblTempUsageDetail_20' ) start [2025-01-03 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162023', 'tblTempUsageDetail_20' ) end [2025-01-03 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:56:21] Production.INFO: ==32425== Releasing lock... [2025-01-03 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:57:04 [end_date_ymd] => 2025-01-03 00:57:04 [RateCDR] => 1 ) [2025-01-03 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:57:04' and `end` < '2025-01-03 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:57:17] Production.INFO: count ==185 [2025-01-03 00:57:17] Production.ERROR: pbx CDR StartTime 2025-01-02 21:57:04 - End Time 2025-01-03 00:57:04 [2025-01-03 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162028', 'tblTempUsageDetail_20' ) start [2025-01-03 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162028', 'tblTempUsageDetail_20' ) end [2025-01-03 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162028', 'tblTempVendorCDR_20' ) start [2025-01-03 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162028', 'tblTempVendorCDR_20' ) end [2025-01-03 00:57:17] Production.INFO: ProcessCDR(1,14162028,1,1,2) [2025-01-03 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162028', 'tblTempUsageDetail_20' ) start [2025-01-03 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162028', 'tblTempUsageDetail_20' ) end [2025-01-03 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:57:20] Production.INFO: ==32533== Releasing lock... [2025-01-03 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:57:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:58:05 [end_date_ymd] => 2025-01-03 00:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 21:58:05' and `end` < '2025-01-03 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-01-03 00:58:18] Production.INFO: count ==185 [2025-01-03 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:58:05 - End Time 2025-01-03 00:58:05 [2025-01-03 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162033', 'tblTempUsageDetail_20' ) start [2025-01-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162033', 'tblTempUsageDetail_20' ) end [2025-01-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162033', 'tblTempVendorCDR_20' ) start [2025-01-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162033', 'tblTempVendorCDR_20' ) end [2025-01-03 00:58:18] Production.INFO: ProcessCDR(1,14162033,1,1,2) [2025-01-03 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162033', 'tblTempUsageDetail_20' ) start [2025-01-03 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162033', 'tblTempUsageDetail_20' ) end [2025-01-03 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:58:21] Production.INFO: ==32607== Releasing lock... [2025-01-03 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 21:59:05 [end_date_ymd] => 2025-01-03 00:59:05 [RateCDR] => 1 ) [2025-01-03 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 21:59:05' and `end` < '2025-01-03 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 00:59:18] Production.INFO: count ==185 [2025-01-03 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-02 21:59:05 - End Time 2025-01-03 00:59:05 [2025-01-03 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162038', 'tblTempUsageDetail_20' ) start [2025-01-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162038', 'tblTempUsageDetail_20' ) end [2025-01-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162038', 'tblTempVendorCDR_20' ) start [2025-01-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162038', 'tblTempVendorCDR_20' ) end [2025-01-03 00:59:18] Production.INFO: ProcessCDR(1,14162038,1,1,2) [2025-01-03 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162038', 'tblTempUsageDetail_20' ) start [2025-01-03 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162038', 'tblTempUsageDetail_20' ) end [2025-01-03 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 00:59:21] Production.INFO: ==32679== Releasing lock... [2025-01-03 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 00:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:00:06 [end_date_ymd] => 2025-01-03 01:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:00:06' and `end` < '2025-01-03 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-01-03 01:00:19] Production.INFO: count ==195 [2025-01-03 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:00:06 - End Time 2025-01-03 01:00:06 [2025-01-03 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162044', 'tblTempUsageDetail_20' ) start [2025-01-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162044', 'tblTempUsageDetail_20' ) end [2025-01-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162044', 'tblTempVendorCDR_20' ) start [2025-01-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162044', 'tblTempVendorCDR_20' ) end [2025-01-03 01:00:19] Production.INFO: ProcessCDR(1,14162044,1,1,2) [2025-01-03 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162044', 'tblTempUsageDetail_20' ) start [2025-01-03 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162044', 'tblTempUsageDetail_20' ) end [2025-01-03 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:00:22] Production.INFO: ==32753== Releasing lock... [2025-01-03 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:01:05 [end_date_ymd] => 2025-01-03 01:01:05 [RateCDR] => 1 ) [2025-01-03 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:01:05' and `end` < '2025-01-03 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:01:17] Production.INFO: count ==211 [2025-01-03 01:01:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:01:05 - End Time 2025-01-03 01:01:05 [2025-01-03 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162049', 'tblTempUsageDetail_20' ) start [2025-01-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162049', 'tblTempUsageDetail_20' ) end [2025-01-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162049', 'tblTempVendorCDR_20' ) start [2025-01-03 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162049', 'tblTempVendorCDR_20' ) end [2025-01-03 01:01:17] Production.INFO: ProcessCDR(1,14162049,1,1,2) [2025-01-03 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162049', 'tblTempUsageDetail_20' ) start [2025-01-03 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162049', 'tblTempUsageDetail_20' ) end [2025-01-03 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:01:21] Production.INFO: ==391== Releasing lock... [2025-01-03 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:02:05 [end_date_ymd] => 2025-01-03 01:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:02:05' and `end` < '2025-01-03 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-01-03 01:02:18] Production.INFO: count ==212 [2025-01-03 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:02:05 - End Time 2025-01-03 01:02:05 [2025-01-03 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162054', 'tblTempUsageDetail_20' ) start [2025-01-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162054', 'tblTempUsageDetail_20' ) end [2025-01-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162054', 'tblTempVendorCDR_20' ) start [2025-01-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162054', 'tblTempVendorCDR_20' ) end [2025-01-03 01:02:18] Production.INFO: ProcessCDR(1,14162054,1,1,2) [2025-01-03 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162054', 'tblTempUsageDetail_20' ) start [2025-01-03 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162054', 'tblTempUsageDetail_20' ) end [2025-01-03 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:02:21] Production.INFO: ==463== Releasing lock... [2025-01-03 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:03:05 [end_date_ymd] => 2025-01-03 01:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:03:05' and `end` < '2025-01-03 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-01-03 01:03:18] Production.INFO: count ==212 [2025-01-03 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:03:05 - End Time 2025-01-03 01:03:05 [2025-01-03 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162059', 'tblTempUsageDetail_20' ) start [2025-01-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162059', 'tblTempUsageDetail_20' ) end [2025-01-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162059', 'tblTempVendorCDR_20' ) start [2025-01-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162059', 'tblTempVendorCDR_20' ) end [2025-01-03 01:03:18] Production.INFO: ProcessCDR(1,14162059,1,1,2) [2025-01-03 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162059', 'tblTempUsageDetail_20' ) start [2025-01-03 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162059', 'tblTempUsageDetail_20' ) end [2025-01-03 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:03:21] Production.INFO: ==537== Releasing lock... [2025-01-03 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:04:05 [end_date_ymd] => 2025-01-03 01:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:04:05' and `end` < '2025-01-03 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-01-03 01:04:18] Production.INFO: count ==212 [2025-01-03 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:04:05 - End Time 2025-01-03 01:04:05 [2025-01-03 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162064', 'tblTempUsageDetail_20' ) start [2025-01-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162064', 'tblTempUsageDetail_20' ) end [2025-01-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162064', 'tblTempVendorCDR_20' ) start [2025-01-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162064', 'tblTempVendorCDR_20' ) end [2025-01-03 01:04:18] Production.INFO: ProcessCDR(1,14162064,1,1,2) [2025-01-03 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162064', 'tblTempUsageDetail_20' ) start [2025-01-03 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162064', 'tblTempUsageDetail_20' ) end [2025-01-03 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:04:21] Production.INFO: ==612== Releasing lock... [2025-01-03 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:05:05 [end_date_ymd] => 2025-01-03 01:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:05:05' and `end` < '2025-01-03 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-01-03 01:05:18] Production.INFO: count ==211 [2025-01-03 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:05:05 - End Time 2025-01-03 01:05:05 [2025-01-03 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162069', 'tblTempUsageDetail_20' ) start [2025-01-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162069', 'tblTempUsageDetail_20' ) end [2025-01-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162069', 'tblTempVendorCDR_20' ) start [2025-01-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162069', 'tblTempVendorCDR_20' ) end [2025-01-03 01:05:18] Production.INFO: ProcessCDR(1,14162069,1,1,2) [2025-01-03 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162069', 'tblTempUsageDetail_20' ) start [2025-01-03 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162069', 'tblTempUsageDetail_20' ) end [2025-01-03 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:05:21] Production.INFO: ==708== Releasing lock... [2025-01-03 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:06:05 [end_date_ymd] => 2025-01-03 01:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:06:05' and `end` < '2025-01-03 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-01-03 01:06:18] Production.INFO: count ==213 [2025-01-03 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:06:05 - End Time 2025-01-03 01:06:05 [2025-01-03 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162074', 'tblTempUsageDetail_20' ) start [2025-01-03 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162074', 'tblTempUsageDetail_20' ) end [2025-01-03 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162074', 'tblTempVendorCDR_20' ) start [2025-01-03 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162074', 'tblTempVendorCDR_20' ) end [2025-01-03 01:06:18] Production.INFO: ProcessCDR(1,14162074,1,1,2) [2025-01-03 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162074', 'tblTempUsageDetail_20' ) start [2025-01-03 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162074', 'tblTempUsageDetail_20' ) end [2025-01-03 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:06:21] Production.INFO: ==785== Releasing lock... [2025-01-03 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:07:05 [end_date_ymd] => 2025-01-03 01:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:07:05' and `end` < '2025-01-03 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-01-03 01:07:18] Production.INFO: count ==212 [2025-01-03 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:07:05 - End Time 2025-01-03 01:07:05 [2025-01-03 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162079', 'tblTempUsageDetail_20' ) start [2025-01-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162079', 'tblTempUsageDetail_20' ) end [2025-01-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162079', 'tblTempVendorCDR_20' ) start [2025-01-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162079', 'tblTempVendorCDR_20' ) end [2025-01-03 01:07:18] Production.INFO: ProcessCDR(1,14162079,1,1,2) [2025-01-03 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162079', 'tblTempUsageDetail_20' ) start [2025-01-03 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162079', 'tblTempUsageDetail_20' ) end [2025-01-03 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:07:21] Production.INFO: ==856== Releasing lock... [2025-01-03 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:08:05 [end_date_ymd] => 2025-01-03 01:08:05 [RateCDR] => 1 ) [2025-01-03 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:08:05' and `end` < '2025-01-03 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:08:18] Production.INFO: count ==212 [2025-01-03 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:08:05 - End Time 2025-01-03 01:08:05 [2025-01-03 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162084', 'tblTempUsageDetail_20' ) start [2025-01-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162084', 'tblTempUsageDetail_20' ) end [2025-01-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162084', 'tblTempVendorCDR_20' ) start [2025-01-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162084', 'tblTempVendorCDR_20' ) end [2025-01-03 01:08:18] Production.INFO: ProcessCDR(1,14162084,1,1,2) [2025-01-03 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162084', 'tblTempUsageDetail_20' ) start [2025-01-03 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162084', 'tblTempUsageDetail_20' ) end [2025-01-03 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:08:21] Production.INFO: ==927== Releasing lock... [2025-01-03 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:09:04 [end_date_ymd] => 2025-01-03 01:09:04 [RateCDR] => 1 ) [2025-01-03 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:09:04' and `end` < '2025-01-03 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:09:17] Production.INFO: count ==212 [2025-01-03 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:09:04 - End Time 2025-01-03 01:09:04 [2025-01-03 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162089', 'tblTempUsageDetail_20' ) start [2025-01-03 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162089', 'tblTempUsageDetail_20' ) end [2025-01-03 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162089', 'tblTempVendorCDR_20' ) start [2025-01-03 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162089', 'tblTempVendorCDR_20' ) end [2025-01-03 01:09:17] Production.INFO: ProcessCDR(1,14162089,1,1,2) [2025-01-03 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162089', 'tblTempUsageDetail_20' ) start [2025-01-03 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162089', 'tblTempUsageDetail_20' ) end [2025-01-03 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:09:21] Production.INFO: ==1002== Releasing lock... [2025-01-03 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:10:06 [end_date_ymd] => 2025-01-03 01:10:06 [RateCDR] => 1 ) [2025-01-03 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:10:06' and `end` < '2025-01-03 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:10:18] Production.INFO: count ==220 [2025-01-03 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:10:06 - End Time 2025-01-03 01:10:06 [2025-01-03 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162095', 'tblTempUsageDetail_20' ) start [2025-01-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162095', 'tblTempUsageDetail_20' ) end [2025-01-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162095', 'tblTempVendorCDR_20' ) start [2025-01-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162095', 'tblTempVendorCDR_20' ) end [2025-01-03 01:10:19] Production.INFO: ProcessCDR(1,14162095,1,1,2) [2025-01-03 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162095', 'tblTempUsageDetail_20' ) start [2025-01-03 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162095', 'tblTempUsageDetail_20' ) end [2025-01-03 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:10:21] Production.INFO: ==1076== Releasing lock... [2025-01-03 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:11:05 [end_date_ymd] => 2025-01-03 01:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:11:05' and `end` < '2025-01-03 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-01-03 01:11:19] Production.INFO: count ==231 [2025-01-03 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:11:05 - End Time 2025-01-03 01:11:05 [2025-01-03 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162100', 'tblTempUsageDetail_20' ) start [2025-01-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162100', 'tblTempUsageDetail_20' ) end [2025-01-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162100', 'tblTempVendorCDR_20' ) start [2025-01-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162100', 'tblTempVendorCDR_20' ) end [2025-01-03 01:11:19] Production.INFO: ProcessCDR(1,14162100,1,1,2) [2025-01-03 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162100', 'tblTempUsageDetail_20' ) start [2025-01-03 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162100', 'tblTempUsageDetail_20' ) end [2025-01-03 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:11:22] Production.INFO: ==1153== Releasing lock... [2025-01-03 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:12:05 [end_date_ymd] => 2025-01-03 01:12:05 [RateCDR] => 1 ) [2025-01-03 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:12:05' and `end` < '2025-01-03 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:12:18] Production.INFO: count ==231 [2025-01-03 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:12:05 - End Time 2025-01-03 01:12:05 [2025-01-03 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162105', 'tblTempUsageDetail_20' ) start [2025-01-03 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162105', 'tblTempUsageDetail_20' ) end [2025-01-03 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162105', 'tblTempVendorCDR_20' ) start [2025-01-03 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162105', 'tblTempVendorCDR_20' ) end [2025-01-03 01:12:18] Production.INFO: ProcessCDR(1,14162105,1,1,2) [2025-01-03 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162105', 'tblTempUsageDetail_20' ) start [2025-01-03 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162105', 'tblTempUsageDetail_20' ) end [2025-01-03 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:12:21] Production.INFO: ==1229== Releasing lock... [2025-01-03 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:13:04 [end_date_ymd] => 2025-01-03 01:13:04 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:13:04' and `end` < '2025-01-03 01: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-01-03 01:13:17] Production.INFO: count ==234 [2025-01-03 01:13:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:13:04 - End Time 2025-01-03 01:13:04 [2025-01-03 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162110', 'tblTempUsageDetail_20' ) start [2025-01-03 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162110', 'tblTempUsageDetail_20' ) end [2025-01-03 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162110', 'tblTempVendorCDR_20' ) start [2025-01-03 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162110', 'tblTempVendorCDR_20' ) end [2025-01-03 01:13:17] Production.INFO: ProcessCDR(1,14162110,1,1,2) [2025-01-03 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162110', 'tblTempUsageDetail_20' ) start [2025-01-03 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162110', 'tblTempUsageDetail_20' ) end [2025-01-03 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:13:20] Production.INFO: ==1352== Releasing lock... [2025-01-03 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:14:05 [end_date_ymd] => 2025-01-03 01:14:05 [RateCDR] => 1 ) [2025-01-03 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:14:05' and `end` < '2025-01-03 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:14:21] Production.INFO: count ==237 [2025-01-03 01:14:21] Production.ERROR: pbx CDR StartTime 2025-01-02 22:14:05 - End Time 2025-01-03 01:14:05 [2025-01-03 01:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162115', 'tblTempUsageDetail_20' ) start [2025-01-03 01:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162115', 'tblTempUsageDetail_20' ) end [2025-01-03 01:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162115', 'tblTempVendorCDR_20' ) start [2025-01-03 01:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162115', 'tblTempVendorCDR_20' ) end [2025-01-03 01:14:21] Production.INFO: ProcessCDR(1,14162115,1,1,2) [2025-01-03 01:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162115', 'tblTempUsageDetail_20' ) start [2025-01-03 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162115', 'tblTempUsageDetail_20' ) end [2025-01-03 01:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:14:24] Production.INFO: ==1424== Releasing lock... [2025-01-03 01:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:14:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:15:05 [end_date_ymd] => 2025-01-03 01:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:15:05' and `end` < '2025-01-03 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-01-03 01:15:17] Production.INFO: count ==238 [2025-01-03 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:15:05 - End Time 2025-01-03 01:15:05 [2025-01-03 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162120', 'tblTempUsageDetail_20' ) start [2025-01-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162120', 'tblTempUsageDetail_20' ) end [2025-01-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162120', 'tblTempVendorCDR_20' ) start [2025-01-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162120', 'tblTempVendorCDR_20' ) end [2025-01-03 01:15:18] Production.INFO: ProcessCDR(1,14162120,1,1,2) [2025-01-03 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162120', 'tblTempUsageDetail_20' ) start [2025-01-03 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162120', 'tblTempUsageDetail_20' ) end [2025-01-03 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:15:21] Production.INFO: ==1496== Releasing lock... [2025-01-03 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:16:05 [end_date_ymd] => 2025-01-03 01:16:05 [RateCDR] => 1 ) [2025-01-03 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:16:05' and `end` < '2025-01-03 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:16:18] Production.INFO: count ==238 [2025-01-03 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:16:05 - End Time 2025-01-03 01:16:05 [2025-01-03 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162125', 'tblTempUsageDetail_20' ) start [2025-01-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162125', 'tblTempUsageDetail_20' ) end [2025-01-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162125', 'tblTempVendorCDR_20' ) start [2025-01-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162125', 'tblTempVendorCDR_20' ) end [2025-01-03 01:16:18] Production.INFO: ProcessCDR(1,14162125,1,1,2) [2025-01-03 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162125', 'tblTempUsageDetail_20' ) start [2025-01-03 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162125', 'tblTempUsageDetail_20' ) end [2025-01-03 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:16:21] Production.INFO: ==1605== Releasing lock... [2025-01-03 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:16:21] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:17:05 [end_date_ymd] => 2025-01-03 01:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:17:05' and `end` < '2025-01-03 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-01-03 01:17:18] Production.INFO: count ==238 [2025-01-03 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:17:05 - End Time 2025-01-03 01:17:05 [2025-01-03 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162130', 'tblTempUsageDetail_20' ) start [2025-01-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162130', 'tblTempUsageDetail_20' ) end [2025-01-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162130', 'tblTempVendorCDR_20' ) start [2025-01-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162130', 'tblTempVendorCDR_20' ) end [2025-01-03 01:17:18] Production.INFO: ProcessCDR(1,14162130,1,1,2) [2025-01-03 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162130', 'tblTempUsageDetail_20' ) start [2025-01-03 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162130', 'tblTempUsageDetail_20' ) end [2025-01-03 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:17:21] Production.INFO: ==1675== Releasing lock... [2025-01-03 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:17:21] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:18:05 [end_date_ymd] => 2025-01-03 01:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:18:05' and `end` < '2025-01-03 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-01-03 01:18:18] Production.INFO: count ==237 [2025-01-03 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:18:05 - End Time 2025-01-03 01:18:05 [2025-01-03 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162135', 'tblTempUsageDetail_20' ) start [2025-01-03 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162135', 'tblTempUsageDetail_20' ) end [2025-01-03 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162135', 'tblTempVendorCDR_20' ) start [2025-01-03 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162135', 'tblTempVendorCDR_20' ) end [2025-01-03 01:18:18] Production.INFO: ProcessCDR(1,14162135,1,1,2) [2025-01-03 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162135', 'tblTempUsageDetail_20' ) start [2025-01-03 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162135', 'tblTempUsageDetail_20' ) end [2025-01-03 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:18:21] Production.INFO: ==1746== Releasing lock... [2025-01-03 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-03 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:19:05 [end_date_ymd] => 2025-01-03 01:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:19:05' and `end` < '2025-01-03 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-01-03 01:19:18] Production.INFO: count ==236 [2025-01-03 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:19:05 - End Time 2025-01-03 01:19:05 [2025-01-03 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162140', 'tblTempUsageDetail_20' ) start [2025-01-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162140', 'tblTempUsageDetail_20' ) end [2025-01-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162140', 'tblTempVendorCDR_20' ) start [2025-01-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162140', 'tblTempVendorCDR_20' ) end [2025-01-03 01:19:18] Production.INFO: ProcessCDR(1,14162140,1,1,2) [2025-01-03 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162140', 'tblTempUsageDetail_20' ) start [2025-01-03 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162140', 'tblTempUsageDetail_20' ) end [2025-01-03 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:19:21] Production.INFO: ==1817== Releasing lock... [2025-01-03 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:20:05 [end_date_ymd] => 2025-01-03 01:20:05 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:20:05' and `end` < '2025-01-03 01: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-01-03 01:20:18] Production.INFO: count ==242 [2025-01-03 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:20:05 - End Time 2025-01-03 01:20:05 [2025-01-03 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162145', 'tblTempUsageDetail_20' ) start [2025-01-03 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162145', 'tblTempUsageDetail_20' ) end [2025-01-03 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162145', 'tblTempVendorCDR_20' ) start [2025-01-03 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162145', 'tblTempVendorCDR_20' ) end [2025-01-03 01:20:18] Production.INFO: ProcessCDR(1,14162145,1,1,2) [2025-01-03 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162145', 'tblTempUsageDetail_20' ) start [2025-01-03 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162145', 'tblTempUsageDetail_20' ) end [2025-01-03 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:20:21] Production.INFO: ==1894== Releasing lock... [2025-01-03 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:20:21] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:21:05 [end_date_ymd] => 2025-01-03 01:21:05 [RateCDR] => 1 ) [2025-01-03 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:21:05' and `end` < '2025-01-03 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:21:19] Production.INFO: count ==251 [2025-01-03 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:21:05 - End Time 2025-01-03 01:21:05 [2025-01-03 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162151', 'tblTempUsageDetail_20' ) start [2025-01-03 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162151', 'tblTempUsageDetail_20' ) end [2025-01-03 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162151', 'tblTempVendorCDR_20' ) start [2025-01-03 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162151', 'tblTempVendorCDR_20' ) end [2025-01-03 01:21:19] Production.INFO: ProcessCDR(1,14162151,1,1,2) [2025-01-03 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162151', 'tblTempUsageDetail_20' ) start [2025-01-03 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162151', 'tblTempUsageDetail_20' ) end [2025-01-03 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:21:22] Production.INFO: ==1967== Releasing lock... [2025-01-03 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:21:22] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:22:05 [end_date_ymd] => 2025-01-03 01:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:22:05' and `end` < '2025-01-03 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-01-03 01:22:17] Production.INFO: count ==251 [2025-01-03 01:22:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:22:05 - End Time 2025-01-03 01:22:05 [2025-01-03 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162156', 'tblTempUsageDetail_20' ) start [2025-01-03 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162156', 'tblTempUsageDetail_20' ) end [2025-01-03 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162156', 'tblTempVendorCDR_20' ) start [2025-01-03 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162156', 'tblTempVendorCDR_20' ) end [2025-01-03 01:22:17] Production.INFO: ProcessCDR(1,14162156,1,1,2) [2025-01-03 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162156', 'tblTempUsageDetail_20' ) start [2025-01-03 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162156', 'tblTempUsageDetail_20' ) end [2025-01-03 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:22:21] Production.INFO: ==2042== Releasing lock... [2025-01-03 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:23:05 [end_date_ymd] => 2025-01-03 01:23:05 [RateCDR] => 1 ) [2025-01-03 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:23:05' and `end` < '2025-01-03 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:23:19] Production.INFO: count ==251 [2025-01-03 01:23:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:23:05 - End Time 2025-01-03 01:23:05 [2025-01-03 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162161', 'tblTempUsageDetail_20' ) start [2025-01-03 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162161', 'tblTempUsageDetail_20' ) end [2025-01-03 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162161', 'tblTempVendorCDR_20' ) start [2025-01-03 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162161', 'tblTempVendorCDR_20' ) end [2025-01-03 01:23:19] Production.INFO: ProcessCDR(1,14162161,1,1,2) [2025-01-03 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162161', 'tblTempUsageDetail_20' ) start [2025-01-03 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162161', 'tblTempUsageDetail_20' ) end [2025-01-03 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:23:22] Production.INFO: ==2113== Releasing lock... [2025-01-03 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:23:22] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:24:05 [end_date_ymd] => 2025-01-03 01:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:24:05' and `end` < '2025-01-03 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-01-03 01:24:20] Production.INFO: count ==251 [2025-01-03 01:24:20] Production.ERROR: pbx CDR StartTime 2025-01-02 22:24:05 - End Time 2025-01-03 01:24:05 [2025-01-03 01:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162166', 'tblTempUsageDetail_20' ) start [2025-01-03 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162166', 'tblTempUsageDetail_20' ) end [2025-01-03 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162166', 'tblTempVendorCDR_20' ) start [2025-01-03 01:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162166', 'tblTempVendorCDR_20' ) end [2025-01-03 01:24:20] Production.INFO: ProcessCDR(1,14162166,1,1,2) [2025-01-03 01:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162166', 'tblTempUsageDetail_20' ) start [2025-01-03 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162166', 'tblTempUsageDetail_20' ) end [2025-01-03 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:24:23] Production.INFO: ==2183== Releasing lock... [2025-01-03 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:24:23] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:25:05 [end_date_ymd] => 2025-01-03 01:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:25:05' and `end` < '2025-01-03 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-01-03 01:25:18] Production.INFO: count ==252 [2025-01-03 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:25:05 - End Time 2025-01-03 01:25:05 [2025-01-03 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162171', 'tblTempUsageDetail_20' ) start [2025-01-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162171', 'tblTempUsageDetail_20' ) end [2025-01-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162171', 'tblTempVendorCDR_20' ) start [2025-01-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162171', 'tblTempVendorCDR_20' ) end [2025-01-03 01:25:18] Production.INFO: ProcessCDR(1,14162171,1,1,2) [2025-01-03 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162171', 'tblTempUsageDetail_20' ) start [2025-01-03 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162171', 'tblTempUsageDetail_20' ) end [2025-01-03 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:25:21] Production.INFO: ==2254== Releasing lock... [2025-01-03 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:25:21] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:26:05 [end_date_ymd] => 2025-01-03 01:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:26:05' and `end` < '2025-01-03 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-01-03 01:26:19] Production.INFO: count ==252 [2025-01-03 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:26:05 - End Time 2025-01-03 01:26:05 [2025-01-03 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162176', 'tblTempUsageDetail_20' ) start [2025-01-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162176', 'tblTempUsageDetail_20' ) end [2025-01-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162176', 'tblTempVendorCDR_20' ) start [2025-01-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162176', 'tblTempVendorCDR_20' ) end [2025-01-03 01:26:19] Production.INFO: ProcessCDR(1,14162176,1,1,2) [2025-01-03 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162176', 'tblTempUsageDetail_20' ) start [2025-01-03 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162176', 'tblTempUsageDetail_20' ) end [2025-01-03 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:26:22] Production.INFO: ==2325== Releasing lock... [2025-01-03 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:26:22] Production.INFO: 30 MB #Memory Used# [2025-01-03 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:27:04 [end_date_ymd] => 2025-01-03 01:27:04 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:27:04' and `end` < '2025-01-03 01: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-01-03 01:27:18] Production.INFO: count ==249 [2025-01-03 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:27:04 - End Time 2025-01-03 01:27:04 [2025-01-03 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162181', 'tblTempUsageDetail_20' ) start [2025-01-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162181', 'tblTempUsageDetail_20' ) end [2025-01-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162181', 'tblTempVendorCDR_20' ) start [2025-01-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162181', 'tblTempVendorCDR_20' ) end [2025-01-03 01:27:18] Production.INFO: ProcessCDR(1,14162181,1,1,2) [2025-01-03 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162181', 'tblTempUsageDetail_20' ) start [2025-01-03 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162181', 'tblTempUsageDetail_20' ) end [2025-01-03 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:27:21] Production.INFO: ==2398== Releasing lock... [2025-01-03 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:28:05 [end_date_ymd] => 2025-01-03 01:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:28:05' and `end` < '2025-01-03 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-01-03 01:28:18] Production.INFO: count ==246 [2025-01-03 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:28:05 - End Time 2025-01-03 01:28:05 [2025-01-03 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162186', 'tblTempUsageDetail_20' ) start [2025-01-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162186', 'tblTempUsageDetail_20' ) end [2025-01-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162186', 'tblTempVendorCDR_20' ) start [2025-01-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162186', 'tblTempVendorCDR_20' ) end [2025-01-03 01:28:18] Production.INFO: ProcessCDR(1,14162186,1,1,2) [2025-01-03 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162186', 'tblTempUsageDetail_20' ) start [2025-01-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162186', 'tblTempUsageDetail_20' ) end [2025-01-03 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:28:21] Production.INFO: ==2507== Releasing lock... [2025-01-03 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:29:04 [end_date_ymd] => 2025-01-03 01:29:04 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:29:04' and `end` < '2025-01-03 01: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-01-03 01:29:17] Production.INFO: count ==245 [2025-01-03 01:29:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:29:04 - End Time 2025-01-03 01:29:04 [2025-01-03 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162191', 'tblTempUsageDetail_20' ) start [2025-01-03 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162191', 'tblTempUsageDetail_20' ) end [2025-01-03 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162191', 'tblTempVendorCDR_20' ) start [2025-01-03 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162191', 'tblTempVendorCDR_20' ) end [2025-01-03 01:29:17] Production.INFO: ProcessCDR(1,14162191,1,1,2) [2025-01-03 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162191', 'tblTempUsageDetail_20' ) start [2025-01-03 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162191', 'tblTempUsageDetail_20' ) end [2025-01-03 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:29:20] Production.INFO: ==2581== Releasing lock... [2025-01-03 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:29:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:30:06 [end_date_ymd] => 2025-01-03 01:30:06 [RateCDR] => 1 ) [2025-01-03 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:30:06' and `end` < '2025-01-03 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:30:19] Production.INFO: count ==249 [2025-01-03 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:30:06 - End Time 2025-01-03 01:30:06 [2025-01-03 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162197', 'tblTempUsageDetail_20' ) start [2025-01-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162197', 'tblTempUsageDetail_20' ) end [2025-01-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162197', 'tblTempVendorCDR_20' ) start [2025-01-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162197', 'tblTempVendorCDR_20' ) end [2025-01-03 01:30:19] Production.INFO: ProcessCDR(1,14162197,1,1,2) [2025-01-03 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162197', 'tblTempUsageDetail_20' ) start [2025-01-03 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162197', 'tblTempUsageDetail_20' ) end [2025-01-03 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:30:22] Production.INFO: ==2654== Releasing lock... [2025-01-03 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:31:04 [end_date_ymd] => 2025-01-03 01:31:04 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:31:04' and `end` < '2025-01-03 01: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-01-03 01:31:18] Production.INFO: count ==249 [2025-01-03 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:31:04 - End Time 2025-01-03 01:31:04 [2025-01-03 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162202', 'tblTempUsageDetail_20' ) start [2025-01-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162202', 'tblTempUsageDetail_20' ) end [2025-01-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162202', 'tblTempVendorCDR_20' ) start [2025-01-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162202', 'tblTempVendorCDR_20' ) end [2025-01-03 01:31:18] Production.INFO: ProcessCDR(1,14162202,1,1,2) [2025-01-03 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162202', 'tblTempUsageDetail_20' ) start [2025-01-03 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162202', 'tblTempUsageDetail_20' ) end [2025-01-03 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:31:21] Production.INFO: ==2731== Releasing lock... [2025-01-03 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:32:05 [end_date_ymd] => 2025-01-03 01:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:32:05' and `end` < '2025-01-03 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-01-03 01:32:19] Production.INFO: count ==249 [2025-01-03 01:32:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:32:05 - End Time 2025-01-03 01:32:05 [2025-01-03 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162207', 'tblTempUsageDetail_20' ) start [2025-01-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162207', 'tblTempUsageDetail_20' ) end [2025-01-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162207', 'tblTempVendorCDR_20' ) start [2025-01-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162207', 'tblTempVendorCDR_20' ) end [2025-01-03 01:32:19] Production.INFO: ProcessCDR(1,14162207,1,1,2) [2025-01-03 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162207', 'tblTempUsageDetail_20' ) start [2025-01-03 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162207', 'tblTempUsageDetail_20' ) end [2025-01-03 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:32:23] Production.INFO: ==2807== Releasing lock... [2025-01-03 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:32:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:33:05 [end_date_ymd] => 2025-01-03 01:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:33:05' and `end` < '2025-01-03 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-01-03 01:33:19] Production.INFO: count ==248 [2025-01-03 01:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:33:05 - End Time 2025-01-03 01:33:05 [2025-01-03 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162212', 'tblTempUsageDetail_20' ) start [2025-01-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162212', 'tblTempUsageDetail_20' ) end [2025-01-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162212', 'tblTempVendorCDR_20' ) start [2025-01-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162212', 'tblTempVendorCDR_20' ) end [2025-01-03 01:33:19] Production.INFO: ProcessCDR(1,14162212,1,1,2) [2025-01-03 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162212', 'tblTempUsageDetail_20' ) start [2025-01-03 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162212', 'tblTempUsageDetail_20' ) end [2025-01-03 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:33:22] Production.INFO: ==2886== Releasing lock... [2025-01-03 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:34:04 [end_date_ymd] => 2025-01-03 01:34:04 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:34:04' and `end` < '2025-01-03 01: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-01-03 01:34:17] Production.INFO: count ==248 [2025-01-03 01:34:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:34:04 - End Time 2025-01-03 01:34:04 [2025-01-03 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162217', 'tblTempUsageDetail_20' ) start [2025-01-03 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162217', 'tblTempUsageDetail_20' ) end [2025-01-03 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162217', 'tblTempVendorCDR_20' ) start [2025-01-03 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162217', 'tblTempVendorCDR_20' ) end [2025-01-03 01:34:17] Production.INFO: ProcessCDR(1,14162217,1,1,2) [2025-01-03 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162217', 'tblTempUsageDetail_20' ) start [2025-01-03 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162217', 'tblTempUsageDetail_20' ) end [2025-01-03 01:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:34:20] Production.INFO: ==2961== Releasing lock... [2025-01-03 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:34:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:35:05 [end_date_ymd] => 2025-01-03 01:35:05 [RateCDR] => 1 ) [2025-01-03 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:35:05' and `end` < '2025-01-03 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:35:19] Production.INFO: count ==248 [2025-01-03 01:35:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:35:05 - End Time 2025-01-03 01:35:05 [2025-01-03 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162222', 'tblTempUsageDetail_20' ) start [2025-01-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162222', 'tblTempUsageDetail_20' ) end [2025-01-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162222', 'tblTempVendorCDR_20' ) start [2025-01-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162222', 'tblTempVendorCDR_20' ) end [2025-01-03 01:35:19] Production.INFO: ProcessCDR(1,14162222,1,1,2) [2025-01-03 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162222', 'tblTempUsageDetail_20' ) start [2025-01-03 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162222', 'tblTempUsageDetail_20' ) end [2025-01-03 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:35:22] Production.INFO: ==3039== Releasing lock... [2025-01-03 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:36:05 [end_date_ymd] => 2025-01-03 01:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:36:05' and `end` < '2025-01-03 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-01-03 01:36:18] Production.INFO: count ==248 [2025-01-03 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:36:05 - End Time 2025-01-03 01:36:05 [2025-01-03 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162227', 'tblTempUsageDetail_20' ) start [2025-01-03 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162227', 'tblTempUsageDetail_20' ) end [2025-01-03 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162227', 'tblTempVendorCDR_20' ) start [2025-01-03 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162227', 'tblTempVendorCDR_20' ) end [2025-01-03 01:36:18] Production.INFO: ProcessCDR(1,14162227,1,1,2) [2025-01-03 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162227', 'tblTempUsageDetail_20' ) start [2025-01-03 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162227', 'tblTempUsageDetail_20' ) end [2025-01-03 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:36:21] Production.INFO: ==3123== Releasing lock... [2025-01-03 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:37:05 [end_date_ymd] => 2025-01-03 01:37:05 [RateCDR] => 1 ) [2025-01-03 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:37:05' and `end` < '2025-01-03 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:37:18] Production.INFO: count ==248 [2025-01-03 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:37:05 - End Time 2025-01-03 01:37:05 [2025-01-03 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162232', 'tblTempUsageDetail_20' ) start [2025-01-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162232', 'tblTempUsageDetail_20' ) end [2025-01-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162232', 'tblTempVendorCDR_20' ) start [2025-01-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162232', 'tblTempVendorCDR_20' ) end [2025-01-03 01:37:18] Production.INFO: ProcessCDR(1,14162232,1,1,2) [2025-01-03 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162232', 'tblTempUsageDetail_20' ) start [2025-01-03 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162232', 'tblTempUsageDetail_20' ) end [2025-01-03 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:37:22] Production.INFO: ==3197== Releasing lock... [2025-01-03 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:38:05 [end_date_ymd] => 2025-01-03 01:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:38:05' and `end` < '2025-01-03 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-01-03 01:38:19] Production.INFO: count ==246 [2025-01-03 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:38:05 - End Time 2025-01-03 01:38:05 [2025-01-03 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162237', 'tblTempUsageDetail_20' ) start [2025-01-03 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162237', 'tblTempUsageDetail_20' ) end [2025-01-03 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162237', 'tblTempVendorCDR_20' ) start [2025-01-03 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162237', 'tblTempVendorCDR_20' ) end [2025-01-03 01:38:19] Production.INFO: ProcessCDR(1,14162237,1,1,2) [2025-01-03 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162237', 'tblTempUsageDetail_20' ) start [2025-01-03 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162237', 'tblTempUsageDetail_20' ) end [2025-01-03 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:38:22] Production.INFO: ==3275== Releasing lock... [2025-01-03 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:39:05 [end_date_ymd] => 2025-01-03 01:39:05 [RateCDR] => 1 ) [2025-01-03 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:39:05' and `end` < '2025-01-03 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:39:19] Production.INFO: count ==246 [2025-01-03 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:39:05 - End Time 2025-01-03 01:39:05 [2025-01-03 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162242', 'tblTempUsageDetail_20' ) start [2025-01-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162242', 'tblTempUsageDetail_20' ) end [2025-01-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162242', 'tblTempVendorCDR_20' ) start [2025-01-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162242', 'tblTempVendorCDR_20' ) end [2025-01-03 01:39:19] Production.INFO: ProcessCDR(1,14162242,1,1,2) [2025-01-03 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162242', 'tblTempUsageDetail_20' ) start [2025-01-03 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162242', 'tblTempUsageDetail_20' ) end [2025-01-03 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:39:23] Production.INFO: ==3350== Releasing lock... [2025-01-03 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:39:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:40:06 [end_date_ymd] => 2025-01-03 01:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:40:06' and `end` < '2025-01-03 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-01-03 01:40:18] Production.INFO: count ==254 [2025-01-03 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:40:06 - End Time 2025-01-03 01:40:06 [2025-01-03 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162248', 'tblTempUsageDetail_20' ) start [2025-01-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162248', 'tblTempUsageDetail_20' ) end [2025-01-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162248', 'tblTempVendorCDR_20' ) start [2025-01-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162248', 'tblTempVendorCDR_20' ) end [2025-01-03 01:40:18] Production.INFO: ProcessCDR(1,14162248,1,1,2) [2025-01-03 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162248', 'tblTempUsageDetail_20' ) start [2025-01-03 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162248', 'tblTempUsageDetail_20' ) end [2025-01-03 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:40:21] Production.INFO: ==3429== Releasing lock... [2025-01-03 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:41:05 [end_date_ymd] => 2025-01-03 01:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:41:05' and `end` < '2025-01-03 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-01-03 01:41:17] Production.INFO: count ==252 [2025-01-03 01:41:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:41:05 - End Time 2025-01-03 01:41:05 [2025-01-03 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162253', 'tblTempUsageDetail_20' ) start [2025-01-03 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162253', 'tblTempUsageDetail_20' ) end [2025-01-03 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162253', 'tblTempVendorCDR_20' ) start [2025-01-03 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162253', 'tblTempVendorCDR_20' ) end [2025-01-03 01:41:17] Production.INFO: ProcessCDR(1,14162253,1,1,2) [2025-01-03 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162253', 'tblTempUsageDetail_20' ) start [2025-01-03 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162253', 'tblTempUsageDetail_20' ) end [2025-01-03 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:41:21] Production.INFO: ==3506== Releasing lock... [2025-01-03 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:42:06 [end_date_ymd] => 2025-01-03 01:42:06 [RateCDR] => 1 ) [2025-01-03 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:42:06' and `end` < '2025-01-03 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:42:21] Production.INFO: count ==248 [2025-01-03 01:42:21] Production.ERROR: pbx CDR StartTime 2025-01-02 22:42:06 - End Time 2025-01-03 01:42:06 [2025-01-03 01:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162258', 'tblTempUsageDetail_20' ) start [2025-01-03 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162258', 'tblTempUsageDetail_20' ) end [2025-01-03 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162258', 'tblTempVendorCDR_20' ) start [2025-01-03 01:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162258', 'tblTempVendorCDR_20' ) end [2025-01-03 01:42:21] Production.INFO: ProcessCDR(1,14162258,1,1,2) [2025-01-03 01:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162258', 'tblTempUsageDetail_20' ) start [2025-01-03 01:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162258', 'tblTempUsageDetail_20' ) end [2025-01-03 01:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:42:24] Production.INFO: ==3581== Releasing lock... [2025-01-03 01:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:42:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:43:05 [end_date_ymd] => 2025-01-03 01:43:05 [RateCDR] => 1 ) [2025-01-03 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:43:05' and `end` < '2025-01-03 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:43:19] Production.INFO: count ==247 [2025-01-03 01:43:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:43:05 - End Time 2025-01-03 01:43:05 [2025-01-03 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162263', 'tblTempUsageDetail_20' ) start [2025-01-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162263', 'tblTempUsageDetail_20' ) end [2025-01-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162263', 'tblTempVendorCDR_20' ) start [2025-01-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162263', 'tblTempVendorCDR_20' ) end [2025-01-03 01:43:19] Production.INFO: ProcessCDR(1,14162263,1,1,2) [2025-01-03 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162263', 'tblTempUsageDetail_20' ) start [2025-01-03 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162263', 'tblTempUsageDetail_20' ) end [2025-01-03 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:43:22] Production.INFO: ==3664== Releasing lock... [2025-01-03 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:44:06 [end_date_ymd] => 2025-01-03 01:44:06 [RateCDR] => 1 ) [2025-01-03 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:44:06' and `end` < '2025-01-03 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:44:18] Production.INFO: count ==247 [2025-01-03 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:44:06 - End Time 2025-01-03 01:44:06 [2025-01-03 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162268', 'tblTempUsageDetail_20' ) start [2025-01-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162268', 'tblTempUsageDetail_20' ) end [2025-01-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162268', 'tblTempVendorCDR_20' ) start [2025-01-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162268', 'tblTempVendorCDR_20' ) end [2025-01-03 01:44:18] Production.INFO: ProcessCDR(1,14162268,1,1,2) [2025-01-03 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162268', 'tblTempUsageDetail_20' ) start [2025-01-03 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162268', 'tblTempUsageDetail_20' ) end [2025-01-03 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:44:21] Production.INFO: ==3781== Releasing lock... [2025-01-03 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:45:05 [end_date_ymd] => 2025-01-03 01:45:05 [RateCDR] => 1 ) [2025-01-03 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:45:05' and `end` < '2025-01-03 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:45:17] Production.INFO: count ==247 [2025-01-03 01:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:45:05 - End Time 2025-01-03 01:45:05 [2025-01-03 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162273', 'tblTempUsageDetail_20' ) start [2025-01-03 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162273', 'tblTempUsageDetail_20' ) end [2025-01-03 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162273', 'tblTempVendorCDR_20' ) start [2025-01-03 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162273', 'tblTempVendorCDR_20' ) end [2025-01-03 01:45:17] Production.INFO: ProcessCDR(1,14162273,1,1,2) [2025-01-03 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162273', 'tblTempUsageDetail_20' ) start [2025-01-03 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162273', 'tblTempUsageDetail_20' ) end [2025-01-03 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:45:21] Production.INFO: ==3859== Releasing lock... [2025-01-03 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:46:05 [end_date_ymd] => 2025-01-03 01:46:05 [RateCDR] => 1 ) [2025-01-03 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:46:05' and `end` < '2025-01-03 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:46:18] Production.INFO: count ==247 [2025-01-03 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:46:05 - End Time 2025-01-03 01:46:05 [2025-01-03 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162278', 'tblTempUsageDetail_20' ) start [2025-01-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162278', 'tblTempUsageDetail_20' ) end [2025-01-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162278', 'tblTempVendorCDR_20' ) start [2025-01-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162278', 'tblTempVendorCDR_20' ) end [2025-01-03 01:46:18] Production.INFO: ProcessCDR(1,14162278,1,1,2) [2025-01-03 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162278', 'tblTempUsageDetail_20' ) start [2025-01-03 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162278', 'tblTempUsageDetail_20' ) end [2025-01-03 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:46:21] Production.INFO: ==3934== Releasing lock... [2025-01-03 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:47:05 [end_date_ymd] => 2025-01-03 01:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:47:05' and `end` < '2025-01-03 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-01-03 01:47:17] Production.INFO: count ==248 [2025-01-03 01:47:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:47:05 - End Time 2025-01-03 01:47:05 [2025-01-03 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162283', 'tblTempUsageDetail_20' ) start [2025-01-03 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162283', 'tblTempUsageDetail_20' ) end [2025-01-03 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162283', 'tblTempVendorCDR_20' ) start [2025-01-03 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162283', 'tblTempVendorCDR_20' ) end [2025-01-03 01:47:17] Production.INFO: ProcessCDR(1,14162283,1,1,2) [2025-01-03 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162283', 'tblTempUsageDetail_20' ) start [2025-01-03 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162283', 'tblTempUsageDetail_20' ) end [2025-01-03 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:47:22] Production.INFO: ==4008== Releasing lock... [2025-01-03 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:48:05 [end_date_ymd] => 2025-01-03 01:48:05 [RateCDR] => 1 ) [2025-01-03 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:48:05' and `end` < '2025-01-03 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:48:17] Production.INFO: count ==250 [2025-01-03 01:48:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:48:05 - End Time 2025-01-03 01:48:05 [2025-01-03 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162288', 'tblTempUsageDetail_20' ) start [2025-01-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162288', 'tblTempUsageDetail_20' ) end [2025-01-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162288', 'tblTempVendorCDR_20' ) start [2025-01-03 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162288', 'tblTempVendorCDR_20' ) end [2025-01-03 01:48:17] Production.INFO: ProcessCDR(1,14162288,1,1,2) [2025-01-03 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162288', 'tblTempUsageDetail_20' ) start [2025-01-03 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162288', 'tblTempUsageDetail_20' ) end [2025-01-03 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:48:22] Production.INFO: ==4085== Releasing lock... [2025-01-03 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:49:05 [end_date_ymd] => 2025-01-03 01:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:49:05' and `end` < '2025-01-03 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-01-03 01:49:17] Production.INFO: count ==250 [2025-01-03 01:49:17] Production.ERROR: pbx CDR StartTime 2025-01-02 22:49:05 - End Time 2025-01-03 01:49:05 [2025-01-03 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162293', 'tblTempUsageDetail_20' ) start [2025-01-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162293', 'tblTempUsageDetail_20' ) end [2025-01-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162293', 'tblTempVendorCDR_20' ) start [2025-01-03 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162293', 'tblTempVendorCDR_20' ) end [2025-01-03 01:49:17] Production.INFO: ProcessCDR(1,14162293,1,1,2) [2025-01-03 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162293', 'tblTempUsageDetail_20' ) start [2025-01-03 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162293', 'tblTempUsageDetail_20' ) end [2025-01-03 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:49:21] Production.INFO: ==4163== Releasing lock... [2025-01-03 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:50:06 [end_date_ymd] => 2025-01-03 01:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:50:06' and `end` < '2025-01-03 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-01-03 01:50:20] Production.INFO: count ==253 [2025-01-03 01:50:20] Production.ERROR: pbx CDR StartTime 2025-01-02 22:50:06 - End Time 2025-01-03 01:50:06 [2025-01-03 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162299', 'tblTempUsageDetail_20' ) start [2025-01-03 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162299', 'tblTempUsageDetail_20' ) end [2025-01-03 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162299', 'tblTempVendorCDR_20' ) start [2025-01-03 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162299', 'tblTempVendorCDR_20' ) end [2025-01-03 01:50:20] Production.INFO: ProcessCDR(1,14162299,1,1,2) [2025-01-03 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162299', 'tblTempUsageDetail_20' ) start [2025-01-03 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162299', 'tblTempUsageDetail_20' ) end [2025-01-03 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:50:23] Production.INFO: ==4239== Releasing lock... [2025-01-03 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:51:04 [end_date_ymd] => 2025-01-03 01:51:04 [RateCDR] => 1 ) [2025-01-03 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:51:04' and `end` < '2025-01-03 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:51:18] Production.INFO: count ==247 [2025-01-03 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:51:04 - End Time 2025-01-03 01:51:04 [2025-01-03 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162304', 'tblTempUsageDetail_20' ) start [2025-01-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162304', 'tblTempUsageDetail_20' ) end [2025-01-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162304', 'tblTempVendorCDR_20' ) start [2025-01-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162304', 'tblTempVendorCDR_20' ) end [2025-01-03 01:51:18] Production.INFO: ProcessCDR(1,14162304,1,1,2) [2025-01-03 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162304', 'tblTempUsageDetail_20' ) start [2025-01-03 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162304', 'tblTempUsageDetail_20' ) end [2025-01-03 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:51:21] Production.INFO: ==4312== Releasing lock... [2025-01-03 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:52:05 [end_date_ymd] => 2025-01-03 01:52:05 [RateCDR] => 1 ) [2025-01-03 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:52:05' and `end` < '2025-01-03 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:52:18] Production.INFO: count ==245 [2025-01-03 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:52:05 - End Time 2025-01-03 01:52:05 [2025-01-03 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162309', 'tblTempUsageDetail_20' ) start [2025-01-03 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162309', 'tblTempUsageDetail_20' ) end [2025-01-03 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162309', 'tblTempVendorCDR_20' ) start [2025-01-03 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162309', 'tblTempVendorCDR_20' ) end [2025-01-03 01:52:18] Production.INFO: ProcessCDR(1,14162309,1,1,2) [2025-01-03 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162309', 'tblTempUsageDetail_20' ) start [2025-01-03 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162309', 'tblTempUsageDetail_20' ) end [2025-01-03 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:52:21] Production.INFO: ==4389== Releasing lock... [2025-01-03 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:53:05 [end_date_ymd] => 2025-01-03 01:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:53:05' and `end` < '2025-01-03 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-01-03 01:53:18] Production.INFO: count ==244 [2025-01-03 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:53:05 - End Time 2025-01-03 01:53:05 [2025-01-03 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162314', 'tblTempUsageDetail_20' ) start [2025-01-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162314', 'tblTempUsageDetail_20' ) end [2025-01-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162314', 'tblTempVendorCDR_20' ) start [2025-01-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162314', 'tblTempVendorCDR_20' ) end [2025-01-03 01:53:18] Production.INFO: ProcessCDR(1,14162314,1,1,2) [2025-01-03 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162314', 'tblTempUsageDetail_20' ) start [2025-01-03 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162314', 'tblTempUsageDetail_20' ) end [2025-01-03 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:53:21] Production.INFO: ==4462== Releasing lock... [2025-01-03 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:54:05 [end_date_ymd] => 2025-01-03 01:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:54:05' and `end` < '2025-01-03 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-01-03 01:54:18] Production.INFO: count ==243 [2025-01-03 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:54:05 - End Time 2025-01-03 01:54:05 [2025-01-03 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162319', 'tblTempUsageDetail_20' ) start [2025-01-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162319', 'tblTempUsageDetail_20' ) end [2025-01-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162319', 'tblTempVendorCDR_20' ) start [2025-01-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162319', 'tblTempVendorCDR_20' ) end [2025-01-03 01:54:18] Production.INFO: ProcessCDR(1,14162319,1,1,2) [2025-01-03 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162319', 'tblTempUsageDetail_20' ) start [2025-01-03 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162319', 'tblTempUsageDetail_20' ) end [2025-01-03 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:54:21] Production.INFO: ==4538== Releasing lock... [2025-01-03 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:55:05 [end_date_ymd] => 2025-01-03 01:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:55:05' and `end` < '2025-01-03 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-01-03 01:55:18] Production.INFO: count ==243 [2025-01-03 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:55:05 - End Time 2025-01-03 01:55:05 [2025-01-03 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162324', 'tblTempUsageDetail_20' ) start [2025-01-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162324', 'tblTempUsageDetail_20' ) end [2025-01-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162324', 'tblTempVendorCDR_20' ) start [2025-01-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162324', 'tblTempVendorCDR_20' ) end [2025-01-03 01:55:18] Production.INFO: ProcessCDR(1,14162324,1,1,2) [2025-01-03 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162324', 'tblTempUsageDetail_20' ) start [2025-01-03 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162324', 'tblTempUsageDetail_20' ) end [2025-01-03 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:55:21] Production.INFO: ==4618== Releasing lock... [2025-01-03 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:56:05 [end_date_ymd] => 2025-01-03 01:56:05 [RateCDR] => 1 ) [2025-01-03 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:56:05' and `end` < '2025-01-03 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:56:18] Production.INFO: count ==243 [2025-01-03 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:56:05 - End Time 2025-01-03 01:56:05 [2025-01-03 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162329', 'tblTempUsageDetail_20' ) start [2025-01-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162329', 'tblTempUsageDetail_20' ) end [2025-01-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162329', 'tblTempVendorCDR_20' ) start [2025-01-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162329', 'tblTempVendorCDR_20' ) end [2025-01-03 01:56:19] Production.INFO: ProcessCDR(1,14162329,1,1,2) [2025-01-03 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162329', 'tblTempUsageDetail_20' ) start [2025-01-03 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162329', 'tblTempUsageDetail_20' ) end [2025-01-03 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:56:22] Production.INFO: ==4690== Releasing lock... [2025-01-03 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:57:05 [end_date_ymd] => 2025-01-03 01:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 22:57:05' and `end` < '2025-01-03 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-01-03 01:57:19] Production.INFO: count ==243 [2025-01-03 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-02 22:57:05 - End Time 2025-01-03 01:57:05 [2025-01-03 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162334', 'tblTempUsageDetail_20' ) start [2025-01-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162334', 'tblTempUsageDetail_20' ) end [2025-01-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162334', 'tblTempVendorCDR_20' ) start [2025-01-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162334', 'tblTempVendorCDR_20' ) end [2025-01-03 01:57:19] Production.INFO: ProcessCDR(1,14162334,1,1,2) [2025-01-03 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162334', 'tblTempUsageDetail_20' ) start [2025-01-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162334', 'tblTempUsageDetail_20' ) end [2025-01-03 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:57:22] Production.INFO: ==4761== Releasing lock... [2025-01-03 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:58:05 [end_date_ymd] => 2025-01-03 01:58:05 [RateCDR] => 1 ) [2025-01-03 01: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-01-02 22:58:05' and `end` < '2025-01-03 01: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-01-03 01:58:18] Production.INFO: count ==243 [2025-01-03 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 22:58:05 - End Time 2025-01-03 01:58:05 [2025-01-03 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162339', 'tblTempUsageDetail_20' ) start [2025-01-03 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162339', 'tblTempUsageDetail_20' ) end [2025-01-03 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162339', 'tblTempVendorCDR_20' ) start [2025-01-03 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162339', 'tblTempVendorCDR_20' ) end [2025-01-03 01:58:18] Production.INFO: ProcessCDR(1,14162339,1,1,2) [2025-01-03 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162339', 'tblTempUsageDetail_20' ) start [2025-01-03 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162339', 'tblTempUsageDetail_20' ) end [2025-01-03 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:58:21] Production.INFO: ==4832== Releasing lock... [2025-01-03 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 22:59:06 [end_date_ymd] => 2025-01-03 01:59:06 [RateCDR] => 1 ) [2025-01-03 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 22:59:06' and `end` < '2025-01-03 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 01:59:20] Production.INFO: count ==243 [2025-01-03 01:59:20] Production.ERROR: pbx CDR StartTime 2025-01-02 22:59:06 - End Time 2025-01-03 01:59:06 [2025-01-03 01:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162344', 'tblTempUsageDetail_20' ) start [2025-01-03 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162344', 'tblTempUsageDetail_20' ) end [2025-01-03 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162344', 'tblTempVendorCDR_20' ) start [2025-01-03 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162344', 'tblTempVendorCDR_20' ) end [2025-01-03 01:59:20] Production.INFO: ProcessCDR(1,14162344,1,1,2) [2025-01-03 01:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162344', 'tblTempUsageDetail_20' ) start [2025-01-03 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162344', 'tblTempUsageDetail_20' ) end [2025-01-03 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 01:59:23] Production.INFO: ==4904== Releasing lock... [2025-01-03 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 01:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:00:06 [end_date_ymd] => 2025-01-03 02:00:06 [RateCDR] => 1 ) [2025-01-03 02: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-01-02 23:00:06' and `end` < '2025-01-03 02: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-01-03 02:00:20] Production.INFO: count ==246 [2025-01-03 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-02 23:00:06 - End Time 2025-01-03 02:00:06 [2025-01-03 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162350', 'tblTempUsageDetail_20' ) start [2025-01-03 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162350', 'tblTempUsageDetail_20' ) end [2025-01-03 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162350', 'tblTempVendorCDR_20' ) start [2025-01-03 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162350', 'tblTempVendorCDR_20' ) end [2025-01-03 02:00:20] Production.INFO: ProcessCDR(1,14162350,1,1,2) [2025-01-03 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162350', 'tblTempUsageDetail_20' ) start [2025-01-03 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162350', 'tblTempUsageDetail_20' ) end [2025-01-03 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:00:23] Production.INFO: ==5018== Releasing lock... [2025-01-03 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:01:05 [end_date_ymd] => 2025-01-03 02:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:01:05' and `end` < '2025-01-03 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-01-03 02:01:18] Production.INFO: count ==245 [2025-01-03 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:01:05 - End Time 2025-01-03 02:01:05 [2025-01-03 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162355', 'tblTempUsageDetail_20' ) start [2025-01-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162355', 'tblTempUsageDetail_20' ) end [2025-01-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162355', 'tblTempVendorCDR_20' ) start [2025-01-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162355', 'tblTempVendorCDR_20' ) end [2025-01-03 02:01:18] Production.INFO: ProcessCDR(1,14162355,1,1,2) [2025-01-03 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162355', 'tblTempUsageDetail_20' ) start [2025-01-03 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162355', 'tblTempUsageDetail_20' ) end [2025-01-03 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:01:21] Production.INFO: ==5195== Releasing lock... [2025-01-03 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:02:05 [end_date_ymd] => 2025-01-03 02:02:05 [RateCDR] => 1 ) [2025-01-03 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:02:05' and `end` < '2025-01-03 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:02:18] Production.INFO: count ==245 [2025-01-03 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:02:05 - End Time 2025-01-03 02:02:05 [2025-01-03 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162360', 'tblTempUsageDetail_20' ) start [2025-01-03 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162360', 'tblTempUsageDetail_20' ) end [2025-01-03 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162360', 'tblTempVendorCDR_20' ) start [2025-01-03 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162360', 'tblTempVendorCDR_20' ) end [2025-01-03 02:02:18] Production.INFO: ProcessCDR(1,14162360,1,1,2) [2025-01-03 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162360', 'tblTempUsageDetail_20' ) start [2025-01-03 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162360', 'tblTempUsageDetail_20' ) end [2025-01-03 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:02:21] Production.INFO: ==5263== Releasing lock... [2025-01-03 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:03:04 [end_date_ymd] => 2025-01-03 02:03:04 [RateCDR] => 1 ) [2025-01-03 02: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-01-02 23:03:04' and `end` < '2025-01-03 02: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-01-03 02:03:18] Production.INFO: count ==245 [2025-01-03 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:03:04 - End Time 2025-01-03 02:03:04 [2025-01-03 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162365', 'tblTempUsageDetail_20' ) start [2025-01-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162365', 'tblTempUsageDetail_20' ) end [2025-01-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162365', 'tblTempVendorCDR_20' ) start [2025-01-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162365', 'tblTempVendorCDR_20' ) end [2025-01-03 02:03:19] Production.INFO: ProcessCDR(1,14162365,1,1,2) [2025-01-03 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162365', 'tblTempUsageDetail_20' ) start [2025-01-03 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162365', 'tblTempUsageDetail_20' ) end [2025-01-03 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:03:22] Production.INFO: ==5335== Releasing lock... [2025-01-03 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:04:05 [end_date_ymd] => 2025-01-03 02:04:05 [RateCDR] => 1 ) [2025-01-03 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:04:05' and `end` < '2025-01-03 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:04:19] Production.INFO: count ==244 [2025-01-03 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:04:05 - End Time 2025-01-03 02:04:05 [2025-01-03 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162370', 'tblTempUsageDetail_20' ) start [2025-01-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162370', 'tblTempUsageDetail_20' ) end [2025-01-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162370', 'tblTempVendorCDR_20' ) start [2025-01-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162370', 'tblTempVendorCDR_20' ) end [2025-01-03 02:04:19] Production.INFO: ProcessCDR(1,14162370,1,1,2) [2025-01-03 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162370', 'tblTempUsageDetail_20' ) start [2025-01-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162370', 'tblTempUsageDetail_20' ) end [2025-01-03 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:04:22] Production.INFO: ==5410== Releasing lock... [2025-01-03 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:05:05 [end_date_ymd] => 2025-01-03 02:05:05 [RateCDR] => 1 ) [2025-01-03 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:05:05' and `end` < '2025-01-03 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:05:17] Production.INFO: count ==244 [2025-01-03 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:05:05 - End Time 2025-01-03 02:05:05 [2025-01-03 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162375', 'tblTempUsageDetail_20' ) start [2025-01-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162375', 'tblTempUsageDetail_20' ) end [2025-01-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162375', 'tblTempVendorCDR_20' ) start [2025-01-03 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162375', 'tblTempVendorCDR_20' ) end [2025-01-03 02:05:18] Production.INFO: ProcessCDR(1,14162375,1,1,2) [2025-01-03 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162375', 'tblTempUsageDetail_20' ) start [2025-01-03 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162375', 'tblTempUsageDetail_20' ) end [2025-01-03 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:05:21] Production.INFO: ==5480== Releasing lock... [2025-01-03 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:06:05 [end_date_ymd] => 2025-01-03 02:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:06:05' and `end` < '2025-01-03 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-01-03 02:06:19] Production.INFO: count ==240 [2025-01-03 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:06:05 - End Time 2025-01-03 02:06:05 [2025-01-03 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162380', 'tblTempUsageDetail_20' ) start [2025-01-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162380', 'tblTempUsageDetail_20' ) end [2025-01-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162380', 'tblTempVendorCDR_20' ) start [2025-01-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162380', 'tblTempVendorCDR_20' ) end [2025-01-03 02:06:19] Production.INFO: ProcessCDR(1,14162380,1,1,2) [2025-01-03 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162380', 'tblTempUsageDetail_20' ) start [2025-01-03 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162380', 'tblTempUsageDetail_20' ) end [2025-01-03 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:06:22] Production.INFO: ==5549== Releasing lock... [2025-01-03 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:07:04 [end_date_ymd] => 2025-01-03 02:07:04 [RateCDR] => 1 ) [2025-01-03 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:07:04' and `end` < '2025-01-03 02: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-01-03 02:07:17] Production.INFO: count ==240 [2025-01-03 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:07:04 - End Time 2025-01-03 02:07:04 [2025-01-03 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162385', 'tblTempUsageDetail_20' ) start [2025-01-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162385', 'tblTempUsageDetail_20' ) end [2025-01-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162385', 'tblTempVendorCDR_20' ) start [2025-01-03 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162385', 'tblTempVendorCDR_20' ) end [2025-01-03 02:07:17] Production.INFO: ProcessCDR(1,14162385,1,1,2) [2025-01-03 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162385', 'tblTempUsageDetail_20' ) start [2025-01-03 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162385', 'tblTempUsageDetail_20' ) end [2025-01-03 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:07:20] Production.INFO: ==5618== Releasing lock... [2025-01-03 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:07:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:08:05 [end_date_ymd] => 2025-01-03 02:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:08:05' and `end` < '2025-01-03 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-01-03 02:08:18] Production.INFO: count ==240 [2025-01-03 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:08:05 - End Time 2025-01-03 02:08:05 [2025-01-03 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162390', 'tblTempUsageDetail_20' ) start [2025-01-03 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162390', 'tblTempUsageDetail_20' ) end [2025-01-03 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162390', 'tblTempVendorCDR_20' ) start [2025-01-03 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162390', 'tblTempVendorCDR_20' ) end [2025-01-03 02:08:18] Production.INFO: ProcessCDR(1,14162390,1,1,2) [2025-01-03 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162390', 'tblTempUsageDetail_20' ) start [2025-01-03 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162390', 'tblTempUsageDetail_20' ) end [2025-01-03 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:08:21] Production.INFO: ==5688== Releasing lock... [2025-01-03 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:09:04 [end_date_ymd] => 2025-01-03 02:09:04 [RateCDR] => 1 ) [2025-01-03 02:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:09:04' and `end` < '2025-01-03 02:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:09:19] Production.INFO: count ==240 [2025-01-03 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:09:04 - End Time 2025-01-03 02:09:04 [2025-01-03 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162395', 'tblTempUsageDetail_20' ) start [2025-01-03 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162395', 'tblTempUsageDetail_20' ) end [2025-01-03 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162395', 'tblTempVendorCDR_20' ) start [2025-01-03 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162395', 'tblTempVendorCDR_20' ) end [2025-01-03 02:09:19] Production.INFO: ProcessCDR(1,14162395,1,1,2) [2025-01-03 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162395', 'tblTempUsageDetail_20' ) start [2025-01-03 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162395', 'tblTempUsageDetail_20' ) end [2025-01-03 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:09:22] Production.INFO: ==5757== Releasing lock... [2025-01-03 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:10:05 [end_date_ymd] => 2025-01-03 02:10:05 [RateCDR] => 1 ) [2025-01-03 02: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-01-02 23:10:05' and `end` < '2025-01-03 02: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-01-03 02:10:18] Production.INFO: count ==246 [2025-01-03 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:10:05 - End Time 2025-01-03 02:10:05 [2025-01-03 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162400', 'tblTempUsageDetail_20' ) start [2025-01-03 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162400', 'tblTempUsageDetail_20' ) end [2025-01-03 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162400', 'tblTempVendorCDR_20' ) start [2025-01-03 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162400', 'tblTempVendorCDR_20' ) end [2025-01-03 02:10:18] Production.INFO: ProcessCDR(1,14162400,1,1,2) [2025-01-03 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162400', 'tblTempUsageDetail_20' ) start [2025-01-03 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162400', 'tblTempUsageDetail_20' ) end [2025-01-03 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:10:21] Production.INFO: ==5829== Releasing lock... [2025-01-03 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:11:04 [end_date_ymd] => 2025-01-03 02:11:04 [RateCDR] => 1 ) [2025-01-03 02:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:11:04' and `end` < '2025-01-03 02:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:11:18] Production.INFO: count ==246 [2025-01-03 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:11:04 - End Time 2025-01-03 02:11:04 [2025-01-03 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162406', 'tblTempUsageDetail_20' ) start [2025-01-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162406', 'tblTempUsageDetail_20' ) end [2025-01-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162406', 'tblTempVendorCDR_20' ) start [2025-01-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162406', 'tblTempVendorCDR_20' ) end [2025-01-03 02:11:18] Production.INFO: ProcessCDR(1,14162406,1,1,2) [2025-01-03 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162406', 'tblTempUsageDetail_20' ) start [2025-01-03 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162406', 'tblTempUsageDetail_20' ) end [2025-01-03 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:11:21] Production.INFO: ==5900== Releasing lock... [2025-01-03 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:12:05 [end_date_ymd] => 2025-01-03 02:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:12:05' and `end` < '2025-01-03 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-01-03 02:12:19] Production.INFO: count ==246 [2025-01-03 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:12:05 - End Time 2025-01-03 02:12:05 [2025-01-03 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162411', 'tblTempUsageDetail_20' ) start [2025-01-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162411', 'tblTempUsageDetail_20' ) end [2025-01-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162411', 'tblTempVendorCDR_20' ) start [2025-01-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162411', 'tblTempVendorCDR_20' ) end [2025-01-03 02:12:19] Production.INFO: ProcessCDR(1,14162411,1,1,2) [2025-01-03 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162411', 'tblTempUsageDetail_20' ) start [2025-01-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162411', 'tblTempUsageDetail_20' ) end [2025-01-03 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:12:22] Production.INFO: ==5970== Releasing lock... [2025-01-03 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:13:05 [end_date_ymd] => 2025-01-03 02:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:13:05' and `end` < '2025-01-03 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-01-03 02:13:18] Production.INFO: count ==245 [2025-01-03 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:13:05 - End Time 2025-01-03 02:13:05 [2025-01-03 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162416', 'tblTempUsageDetail_20' ) start [2025-01-03 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162416', 'tblTempUsageDetail_20' ) end [2025-01-03 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162416', 'tblTempVendorCDR_20' ) start [2025-01-03 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162416', 'tblTempVendorCDR_20' ) end [2025-01-03 02:13:18] Production.INFO: ProcessCDR(1,14162416,1,1,2) [2025-01-03 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162416', 'tblTempUsageDetail_20' ) start [2025-01-03 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162416', 'tblTempUsageDetail_20' ) end [2025-01-03 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:13:21] Production.INFO: ==6038== Releasing lock... [2025-01-03 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:14:05 [end_date_ymd] => 2025-01-03 02:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:14:05' and `end` < '2025-01-03 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-01-03 02:14:18] Production.INFO: count ==244 [2025-01-03 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:14:05 - End Time 2025-01-03 02:14:05 [2025-01-03 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162421', 'tblTempUsageDetail_20' ) start [2025-01-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162421', 'tblTempUsageDetail_20' ) end [2025-01-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162421', 'tblTempVendorCDR_20' ) start [2025-01-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162421', 'tblTempVendorCDR_20' ) end [2025-01-03 02:14:18] Production.INFO: ProcessCDR(1,14162421,1,1,2) [2025-01-03 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162421', 'tblTempUsageDetail_20' ) start [2025-01-03 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162421', 'tblTempUsageDetail_20' ) end [2025-01-03 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:14:21] Production.INFO: ==6107== Releasing lock... [2025-01-03 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:15:05 [end_date_ymd] => 2025-01-03 02:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:15:05' and `end` < '2025-01-03 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-01-03 02:15:17] Production.INFO: count ==244 [2025-01-03 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:15:05 - End Time 2025-01-03 02:15:05 [2025-01-03 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162426', 'tblTempUsageDetail_20' ) start [2025-01-03 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162426', 'tblTempUsageDetail_20' ) end [2025-01-03 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162426', 'tblTempVendorCDR_20' ) start [2025-01-03 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162426', 'tblTempVendorCDR_20' ) end [2025-01-03 02:15:17] Production.INFO: ProcessCDR(1,14162426,1,1,2) [2025-01-03 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162426', 'tblTempUsageDetail_20' ) start [2025-01-03 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162426', 'tblTempUsageDetail_20' ) end [2025-01-03 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:15:21] Production.INFO: ==6217== Releasing lock... [2025-01-03 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:16:04 [end_date_ymd] => 2025-01-03 02:16:04 [RateCDR] => 1 ) [2025-01-03 02: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-01-02 23:16:04' and `end` < '2025-01-03 02: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-01-03 02:16:17] Production.INFO: count ==244 [2025-01-03 02:16:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:16:04 - End Time 2025-01-03 02:16:04 [2025-01-03 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162431', 'tblTempUsageDetail_20' ) start [2025-01-03 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162431', 'tblTempUsageDetail_20' ) end [2025-01-03 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162431', 'tblTempVendorCDR_20' ) start [2025-01-03 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162431', 'tblTempVendorCDR_20' ) end [2025-01-03 02:16:17] Production.INFO: ProcessCDR(1,14162431,1,1,2) [2025-01-03 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162431', 'tblTempUsageDetail_20' ) start [2025-01-03 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162431', 'tblTempUsageDetail_20' ) end [2025-01-03 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:16:20] Production.INFO: ==6286== Releasing lock... [2025-01-03 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:16:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:17:05 [end_date_ymd] => 2025-01-03 02:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:17:05' and `end` < '2025-01-03 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-01-03 02:17:19] Production.INFO: count ==244 [2025-01-03 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:17:05 - End Time 2025-01-03 02:17:05 [2025-01-03 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162436', 'tblTempUsageDetail_20' ) start [2025-01-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162436', 'tblTempUsageDetail_20' ) end [2025-01-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162436', 'tblTempVendorCDR_20' ) start [2025-01-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162436', 'tblTempVendorCDR_20' ) end [2025-01-03 02:17:19] Production.INFO: ProcessCDR(1,14162436,1,1,2) [2025-01-03 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162436', 'tblTempUsageDetail_20' ) start [2025-01-03 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162436', 'tblTempUsageDetail_20' ) end [2025-01-03 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:17:22] Production.INFO: ==6359== Releasing lock... [2025-01-03 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:18:04 [end_date_ymd] => 2025-01-03 02:18:04 [RateCDR] => 1 ) [2025-01-03 02:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:18:04' and `end` < '2025-01-03 02:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:18:17] Production.INFO: count ==238 [2025-01-03 02:18:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:18:04 - End Time 2025-01-03 02:18:04 [2025-01-03 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162441', 'tblTempUsageDetail_20' ) start [2025-01-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162441', 'tblTempUsageDetail_20' ) end [2025-01-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162441', 'tblTempVendorCDR_20' ) start [2025-01-03 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162441', 'tblTempVendorCDR_20' ) end [2025-01-03 02:18:17] Production.INFO: ProcessCDR(1,14162441,1,1,2) [2025-01-03 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162441', 'tblTempUsageDetail_20' ) start [2025-01-03 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162441', 'tblTempUsageDetail_20' ) end [2025-01-03 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:18:20] Production.INFO: ==6429== Releasing lock... [2025-01-03 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:19:05 [end_date_ymd] => 2025-01-03 02:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:19:05' and `end` < '2025-01-03 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-01-03 02:19:19] Production.INFO: count ==237 [2025-01-03 02:19:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:19:05 - End Time 2025-01-03 02:19:05 [2025-01-03 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162446', 'tblTempUsageDetail_20' ) start [2025-01-03 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162446', 'tblTempUsageDetail_20' ) end [2025-01-03 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162446', 'tblTempVendorCDR_20' ) start [2025-01-03 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162446', 'tblTempVendorCDR_20' ) end [2025-01-03 02:19:19] Production.INFO: ProcessCDR(1,14162446,1,1,2) [2025-01-03 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162446', 'tblTempUsageDetail_20' ) start [2025-01-03 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162446', 'tblTempUsageDetail_20' ) end [2025-01-03 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:19:23] Production.INFO: ==6502== Releasing lock... [2025-01-03 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:19:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:20:05 [end_date_ymd] => 2025-01-03 02:20:05 [RateCDR] => 1 ) [2025-01-03 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:20:05' and `end` < '2025-01-03 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:20:19] Production.INFO: count ==238 [2025-01-03 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:20:05 - End Time 2025-01-03 02:20:05 [2025-01-03 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162452', 'tblTempUsageDetail_20' ) start [2025-01-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162452', 'tblTempUsageDetail_20' ) end [2025-01-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162452', 'tblTempVendorCDR_20' ) start [2025-01-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162452', 'tblTempVendorCDR_20' ) end [2025-01-03 02:20:19] Production.INFO: ProcessCDR(1,14162452,1,1,2) [2025-01-03 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162452', 'tblTempUsageDetail_20' ) start [2025-01-03 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162452', 'tblTempUsageDetail_20' ) end [2025-01-03 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:20:22] Production.INFO: ==6575== Releasing lock... [2025-01-03 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:21:05 [end_date_ymd] => 2025-01-03 02:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:21:05' and `end` < '2025-01-03 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-01-03 02:21:19] Production.INFO: count ==238 [2025-01-03 02:21:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:21:05 - End Time 2025-01-03 02:21:05 [2025-01-03 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162457', 'tblTempUsageDetail_20' ) start [2025-01-03 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162457', 'tblTempUsageDetail_20' ) end [2025-01-03 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162457', 'tblTempVendorCDR_20' ) start [2025-01-03 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162457', 'tblTempVendorCDR_20' ) end [2025-01-03 02:21:19] Production.INFO: ProcessCDR(1,14162457,1,1,2) [2025-01-03 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162457', 'tblTempUsageDetail_20' ) start [2025-01-03 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162457', 'tblTempUsageDetail_20' ) end [2025-01-03 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:21:22] Production.INFO: ==6648== Releasing lock... [2025-01-03 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:22:05 [end_date_ymd] => 2025-01-03 02:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:22:05' and `end` < '2025-01-03 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-01-03 02:22:17] Production.INFO: count ==237 [2025-01-03 02:22:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:22:05 - End Time 2025-01-03 02:22:05 [2025-01-03 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162462', 'tblTempUsageDetail_20' ) start [2025-01-03 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162462', 'tblTempUsageDetail_20' ) end [2025-01-03 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162462', 'tblTempVendorCDR_20' ) start [2025-01-03 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162462', 'tblTempVendorCDR_20' ) end [2025-01-03 02:22:17] Production.INFO: ProcessCDR(1,14162462,1,1,2) [2025-01-03 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162462', 'tblTempUsageDetail_20' ) start [2025-01-03 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162462', 'tblTempUsageDetail_20' ) end [2025-01-03 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:22:21] Production.INFO: ==6716== Releasing lock... [2025-01-03 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:23:05 [end_date_ymd] => 2025-01-03 02:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:23:05' and `end` < '2025-01-03 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-01-03 02:23:20] Production.INFO: count ==237 [2025-01-03 02:23:20] Production.ERROR: pbx CDR StartTime 2025-01-02 23:23:05 - End Time 2025-01-03 02:23:05 [2025-01-03 02:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162467', 'tblTempUsageDetail_20' ) start [2025-01-03 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162467', 'tblTempUsageDetail_20' ) end [2025-01-03 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162467', 'tblTempVendorCDR_20' ) start [2025-01-03 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162467', 'tblTempVendorCDR_20' ) end [2025-01-03 02:23:20] Production.INFO: ProcessCDR(1,14162467,1,1,2) [2025-01-03 02:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162467', 'tblTempUsageDetail_20' ) start [2025-01-03 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162467', 'tblTempUsageDetail_20' ) end [2025-01-03 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:23:23] Production.INFO: ==6786== Releasing lock... [2025-01-03 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:24:04 [end_date_ymd] => 2025-01-03 02:24:04 [RateCDR] => 1 ) [2025-01-03 02:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:24:04' and `end` < '2025-01-03 02:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:24:18] Production.INFO: count ==237 [2025-01-03 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:24:04 - End Time 2025-01-03 02:24:04 [2025-01-03 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162472', 'tblTempUsageDetail_20' ) start [2025-01-03 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162472', 'tblTempUsageDetail_20' ) end [2025-01-03 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162472', 'tblTempVendorCDR_20' ) start [2025-01-03 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162472', 'tblTempVendorCDR_20' ) end [2025-01-03 02:24:18] Production.INFO: ProcessCDR(1,14162472,1,1,2) [2025-01-03 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162472', 'tblTempUsageDetail_20' ) start [2025-01-03 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162472', 'tblTempUsageDetail_20' ) end [2025-01-03 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:24:21] Production.INFO: ==6857== Releasing lock... [2025-01-03 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:25:05 [end_date_ymd] => 2025-01-03 02:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:25:05' and `end` < '2025-01-03 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-01-03 02:25:17] Production.INFO: count ==235 [2025-01-03 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:25:05 - End Time 2025-01-03 02:25:05 [2025-01-03 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162477', 'tblTempUsageDetail_20' ) start [2025-01-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162477', 'tblTempUsageDetail_20' ) end [2025-01-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162477', 'tblTempVendorCDR_20' ) start [2025-01-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162477', 'tblTempVendorCDR_20' ) end [2025-01-03 02:25:17] Production.INFO: ProcessCDR(1,14162477,1,1,2) [2025-01-03 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162477', 'tblTempUsageDetail_20' ) start [2025-01-03 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162477', 'tblTempUsageDetail_20' ) end [2025-01-03 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:25:20] Production.INFO: ==6928== Releasing lock... [2025-01-03 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:26:05 [end_date_ymd] => 2025-01-03 02:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:26:05' and `end` < '2025-01-03 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-01-03 02:26:18] Production.INFO: count ==235 [2025-01-03 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:26:05 - End Time 2025-01-03 02:26:05 [2025-01-03 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162482', 'tblTempUsageDetail_20' ) start [2025-01-03 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162482', 'tblTempUsageDetail_20' ) end [2025-01-03 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162482', 'tblTempVendorCDR_20' ) start [2025-01-03 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162482', 'tblTempVendorCDR_20' ) end [2025-01-03 02:26:18] Production.INFO: ProcessCDR(1,14162482,1,1,2) [2025-01-03 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162482', 'tblTempUsageDetail_20' ) start [2025-01-03 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162482', 'tblTempUsageDetail_20' ) end [2025-01-03 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:26:21] Production.INFO: ==6997== Releasing lock... [2025-01-03 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:27:05 [end_date_ymd] => 2025-01-03 02:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:27:05' and `end` < '2025-01-03 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-01-03 02:27:18] Production.INFO: count ==235 [2025-01-03 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:27:05 - End Time 2025-01-03 02:27:05 [2025-01-03 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162487', 'tblTempUsageDetail_20' ) start [2025-01-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162487', 'tblTempUsageDetail_20' ) end [2025-01-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162487', 'tblTempVendorCDR_20' ) start [2025-01-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162487', 'tblTempVendorCDR_20' ) end [2025-01-03 02:27:18] Production.INFO: ProcessCDR(1,14162487,1,1,2) [2025-01-03 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162487', 'tblTempUsageDetail_20' ) start [2025-01-03 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162487', 'tblTempUsageDetail_20' ) end [2025-01-03 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:27:21] Production.INFO: ==7065== Releasing lock... [2025-01-03 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:28:05 [end_date_ymd] => 2025-01-03 02:28:05 [RateCDR] => 1 ) [2025-01-03 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:28:05' and `end` < '2025-01-03 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:28:17] Production.INFO: count ==235 [2025-01-03 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:28:05 - End Time 2025-01-03 02:28:05 [2025-01-03 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162492', 'tblTempUsageDetail_20' ) start [2025-01-03 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162492', 'tblTempUsageDetail_20' ) end [2025-01-03 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162492', 'tblTempVendorCDR_20' ) start [2025-01-03 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162492', 'tblTempVendorCDR_20' ) end [2025-01-03 02:28:17] Production.INFO: ProcessCDR(1,14162492,1,1,2) [2025-01-03 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162492', 'tblTempUsageDetail_20' ) start [2025-01-03 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162492', 'tblTempUsageDetail_20' ) end [2025-01-03 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:28:21] Production.INFO: ==7135== Releasing lock... [2025-01-03 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:29:05 [end_date_ymd] => 2025-01-03 02:29:05 [RateCDR] => 1 ) [2025-01-03 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:29:05' and `end` < '2025-01-03 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:29:19] Production.INFO: count ==235 [2025-01-03 02:29:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:29:05 - End Time 2025-01-03 02:29:05 [2025-01-03 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162497', 'tblTempUsageDetail_20' ) start [2025-01-03 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162497', 'tblTempUsageDetail_20' ) end [2025-01-03 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162497', 'tblTempVendorCDR_20' ) start [2025-01-03 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162497', 'tblTempVendorCDR_20' ) end [2025-01-03 02:29:19] Production.INFO: ProcessCDR(1,14162497,1,1,2) [2025-01-03 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162497', 'tblTempUsageDetail_20' ) start [2025-01-03 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162497', 'tblTempUsageDetail_20' ) end [2025-01-03 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:29:22] Production.INFO: ==7204== Releasing lock... [2025-01-03 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:30:06 [end_date_ymd] => 2025-01-03 02:30:06 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:30:06' and `end` < '2025-01-03 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-01-03 02:30:18] Production.INFO: count ==246 [2025-01-03 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:30:06 - End Time 2025-01-03 02:30:06 [2025-01-03 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162503', 'tblTempUsageDetail_20' ) start [2025-01-03 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162503', 'tblTempUsageDetail_20' ) end [2025-01-03 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162503', 'tblTempVendorCDR_20' ) start [2025-01-03 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162503', 'tblTempVendorCDR_20' ) end [2025-01-03 02:30:18] Production.INFO: ProcessCDR(1,14162503,1,1,2) [2025-01-03 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162503', 'tblTempUsageDetail_20' ) start [2025-01-03 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162503', 'tblTempUsageDetail_20' ) end [2025-01-03 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:30:23] Production.INFO: ==7276== Releasing lock... [2025-01-03 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:31:04 [end_date_ymd] => 2025-01-03 02:31:04 [RateCDR] => 1 ) [2025-01-03 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:31:04' and `end` < '2025-01-03 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:31:18] Production.INFO: count ==256 [2025-01-03 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:31:04 - End Time 2025-01-03 02:31:04 [2025-01-03 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162508', 'tblTempUsageDetail_20' ) start [2025-01-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162508', 'tblTempUsageDetail_20' ) end [2025-01-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162508', 'tblTempVendorCDR_20' ) start [2025-01-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162508', 'tblTempVendorCDR_20' ) end [2025-01-03 02:31:18] Production.INFO: ProcessCDR(1,14162508,1,1,2) [2025-01-03 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162508', 'tblTempUsageDetail_20' ) start [2025-01-03 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162508', 'tblTempUsageDetail_20' ) end [2025-01-03 02:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:31:23] Production.INFO: ==7388== Releasing lock... [2025-01-03 02:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:31:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:32:05 [end_date_ymd] => 2025-01-03 02:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:32:05' and `end` < '2025-01-03 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-01-03 02:32:18] Production.INFO: count ==255 [2025-01-03 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:32:05 - End Time 2025-01-03 02:32:05 [2025-01-03 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162513', 'tblTempUsageDetail_20' ) start [2025-01-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162513', 'tblTempUsageDetail_20' ) end [2025-01-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162513', 'tblTempVendorCDR_20' ) start [2025-01-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162513', 'tblTempVendorCDR_20' ) end [2025-01-03 02:32:18] Production.INFO: ProcessCDR(1,14162513,1,1,2) [2025-01-03 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162513', 'tblTempUsageDetail_20' ) start [2025-01-03 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162513', 'tblTempUsageDetail_20' ) end [2025-01-03 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:32:21] Production.INFO: ==7459== Releasing lock... [2025-01-03 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:33:06 [end_date_ymd] => 2025-01-03 02:33:06 [RateCDR] => 1 ) [2025-01-03 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:33:06' and `end` < '2025-01-03 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:33:19] Production.INFO: count ==255 [2025-01-03 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:33:06 - End Time 2025-01-03 02:33:06 [2025-01-03 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162518', 'tblTempUsageDetail_20' ) start [2025-01-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162518', 'tblTempUsageDetail_20' ) end [2025-01-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162518', 'tblTempVendorCDR_20' ) start [2025-01-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162518', 'tblTempVendorCDR_20' ) end [2025-01-03 02:33:19] Production.INFO: ProcessCDR(1,14162518,1,1,2) [2025-01-03 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162518', 'tblTempUsageDetail_20' ) start [2025-01-03 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162518', 'tblTempUsageDetail_20' ) end [2025-01-03 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:33:22] Production.INFO: ==7528== Releasing lock... [2025-01-03 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:34:05 [end_date_ymd] => 2025-01-03 02:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:34:05' and `end` < '2025-01-03 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:34:18] Production.INFO: count ==255 [2025-01-03 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:34:05 - End Time 2025-01-03 02:34:05 [2025-01-03 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162523', 'tblTempUsageDetail_20' ) start [2025-01-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162523', 'tblTempUsageDetail_20' ) end [2025-01-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162523', 'tblTempVendorCDR_20' ) start [2025-01-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162523', 'tblTempVendorCDR_20' ) end [2025-01-03 02:34:18] Production.INFO: ProcessCDR(1,14162523,1,1,2) [2025-01-03 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162523', 'tblTempUsageDetail_20' ) start [2025-01-03 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162523', 'tblTempUsageDetail_20' ) end [2025-01-03 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:34:21] Production.INFO: ==7600== Releasing lock... [2025-01-03 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:35:05 [end_date_ymd] => 2025-01-03 02:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:35:05' and `end` < '2025-01-03 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-01-03 02:35:19] Production.INFO: count ==255 [2025-01-03 02:35:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:35:05 - End Time 2025-01-03 02:35:05 [2025-01-03 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162528', 'tblTempUsageDetail_20' ) start [2025-01-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162528', 'tblTempUsageDetail_20' ) end [2025-01-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162528', 'tblTempVendorCDR_20' ) start [2025-01-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162528', 'tblTempVendorCDR_20' ) end [2025-01-03 02:35:19] Production.INFO: ProcessCDR(1,14162528,1,1,2) [2025-01-03 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162528', 'tblTempUsageDetail_20' ) start [2025-01-03 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162528', 'tblTempUsageDetail_20' ) end [2025-01-03 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:35:22] Production.INFO: ==7669== Releasing lock... [2025-01-03 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:36:05 [end_date_ymd] => 2025-01-03 02:36:05 [RateCDR] => 1 ) [2025-01-03 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:36:05' and `end` < '2025-01-03 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:36:19] Production.INFO: count ==255 [2025-01-03 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:36:05 - End Time 2025-01-03 02:36:05 [2025-01-03 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162533', 'tblTempUsageDetail_20' ) start [2025-01-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162533', 'tblTempUsageDetail_20' ) end [2025-01-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162533', 'tblTempVendorCDR_20' ) start [2025-01-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162533', 'tblTempVendorCDR_20' ) end [2025-01-03 02:36:19] Production.INFO: ProcessCDR(1,14162533,1,1,2) [2025-01-03 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162533', 'tblTempUsageDetail_20' ) start [2025-01-03 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162533', 'tblTempUsageDetail_20' ) end [2025-01-03 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:36:22] Production.INFO: ==7738== Releasing lock... [2025-01-03 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:37:05 [end_date_ymd] => 2025-01-03 02:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:37:05' and `end` < '2025-01-03 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-01-03 02:37:18] Production.INFO: count ==255 [2025-01-03 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:37:05 - End Time 2025-01-03 02:37:05 [2025-01-03 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162538', 'tblTempUsageDetail_20' ) start [2025-01-03 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162538', 'tblTempUsageDetail_20' ) end [2025-01-03 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162538', 'tblTempVendorCDR_20' ) start [2025-01-03 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162538', 'tblTempVendorCDR_20' ) end [2025-01-03 02:37:18] Production.INFO: ProcessCDR(1,14162538,1,1,2) [2025-01-03 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162538', 'tblTempUsageDetail_20' ) start [2025-01-03 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162538', 'tblTempUsageDetail_20' ) end [2025-01-03 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:37:21] Production.INFO: ==7806== Releasing lock... [2025-01-03 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:38:05 [end_date_ymd] => 2025-01-03 02:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:38:05' and `end` < '2025-01-03 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-01-03 02:38:18] Production.INFO: count ==254 [2025-01-03 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:38:05 - End Time 2025-01-03 02:38:05 [2025-01-03 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162543', 'tblTempUsageDetail_20' ) start [2025-01-03 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162543', 'tblTempUsageDetail_20' ) end [2025-01-03 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162543', 'tblTempVendorCDR_20' ) start [2025-01-03 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162543', 'tblTempVendorCDR_20' ) end [2025-01-03 02:38:18] Production.INFO: ProcessCDR(1,14162543,1,1,2) [2025-01-03 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162543', 'tblTempUsageDetail_20' ) start [2025-01-03 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162543', 'tblTempUsageDetail_20' ) end [2025-01-03 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:38:21] Production.INFO: ==7876== Releasing lock... [2025-01-03 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:39:05 [end_date_ymd] => 2025-01-03 02:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:39:05' and `end` < '2025-01-03 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-01-03 02:39:19] Production.INFO: count ==250 [2025-01-03 02:39:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:39:05 - End Time 2025-01-03 02:39:05 [2025-01-03 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162548', 'tblTempUsageDetail_20' ) start [2025-01-03 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162548', 'tblTempUsageDetail_20' ) end [2025-01-03 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162548', 'tblTempVendorCDR_20' ) start [2025-01-03 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162548', 'tblTempVendorCDR_20' ) end [2025-01-03 02:39:19] Production.INFO: ProcessCDR(1,14162548,1,1,2) [2025-01-03 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162548', 'tblTempUsageDetail_20' ) start [2025-01-03 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162548', 'tblTempUsageDetail_20' ) end [2025-01-03 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:39:22] Production.INFO: ==7945== Releasing lock... [2025-01-03 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:40:05 [end_date_ymd] => 2025-01-03 02:40:05 [RateCDR] => 1 ) [2025-01-03 02: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-01-02 23:40:05' and `end` < '2025-01-03 02: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-01-03 02:40:18] Production.INFO: count ==253 [2025-01-03 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:40:05 - End Time 2025-01-03 02:40:05 [2025-01-03 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162554', 'tblTempUsageDetail_20' ) start [2025-01-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162554', 'tblTempUsageDetail_20' ) end [2025-01-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162554', 'tblTempVendorCDR_20' ) start [2025-01-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162554', 'tblTempVendorCDR_20' ) end [2025-01-03 02:40:18] Production.INFO: ProcessCDR(1,14162554,1,1,2) [2025-01-03 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162554', 'tblTempUsageDetail_20' ) start [2025-01-03 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162554', 'tblTempUsageDetail_20' ) end [2025-01-03 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:40:21] Production.INFO: ==8015== Releasing lock... [2025-01-03 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:41:05 [end_date_ymd] => 2025-01-03 02:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:41:05' and `end` < '2025-01-03 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-01-03 02:41:20] Production.INFO: count ==258 [2025-01-03 02:41:21] Production.ERROR: pbx CDR StartTime 2025-01-02 23:41:05 - End Time 2025-01-03 02:41:05 [2025-01-03 02:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162559', 'tblTempUsageDetail_20' ) start [2025-01-03 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162559', 'tblTempUsageDetail_20' ) end [2025-01-03 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162559', 'tblTempVendorCDR_20' ) start [2025-01-03 02:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162559', 'tblTempVendorCDR_20' ) end [2025-01-03 02:41:21] Production.INFO: ProcessCDR(1,14162559,1,1,2) [2025-01-03 02:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162559', 'tblTempUsageDetail_20' ) start [2025-01-03 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162559', 'tblTempUsageDetail_20' ) end [2025-01-03 02:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:41:24] Production.INFO: ==8087== Releasing lock... [2025-01-03 02:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:41:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:42:05 [end_date_ymd] => 2025-01-03 02:42:05 [RateCDR] => 1 ) [2025-01-03 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:42:05' and `end` < '2025-01-03 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:42:18] Production.INFO: count ==258 [2025-01-03 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:42:05 - End Time 2025-01-03 02:42:05 [2025-01-03 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162564', 'tblTempUsageDetail_20' ) start [2025-01-03 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162564', 'tblTempUsageDetail_20' ) end [2025-01-03 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162564', 'tblTempVendorCDR_20' ) start [2025-01-03 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162564', 'tblTempVendorCDR_20' ) end [2025-01-03 02:42:18] Production.INFO: ProcessCDR(1,14162564,1,1,2) [2025-01-03 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162564', 'tblTempUsageDetail_20' ) start [2025-01-03 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162564', 'tblTempUsageDetail_20' ) end [2025-01-03 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:42:21] Production.INFO: ==8156== Releasing lock... [2025-01-03 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:43:04 [end_date_ymd] => 2025-01-03 02:43:04 [RateCDR] => 1 ) [2025-01-03 02:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:43:04' and `end` < '2025-01-03 02:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:43:18] Production.INFO: count ==257 [2025-01-03 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:43:04 - End Time 2025-01-03 02:43:04 [2025-01-03 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162569', 'tblTempUsageDetail_20' ) start [2025-01-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162569', 'tblTempUsageDetail_20' ) end [2025-01-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162569', 'tblTempVendorCDR_20' ) start [2025-01-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162569', 'tblTempVendorCDR_20' ) end [2025-01-03 02:43:18] Production.INFO: ProcessCDR(1,14162569,1,1,2) [2025-01-03 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162569', 'tblTempUsageDetail_20' ) start [2025-01-03 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162569', 'tblTempUsageDetail_20' ) end [2025-01-03 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:43:21] Production.INFO: ==8224== Releasing lock... [2025-01-03 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:44:05 [end_date_ymd] => 2025-01-03 02:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:44:05' and `end` < '2025-01-03 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-01-03 02:44:21] Production.INFO: count ==257 [2025-01-03 02:44:21] Production.ERROR: pbx CDR StartTime 2025-01-02 23:44:05 - End Time 2025-01-03 02:44:05 [2025-01-03 02:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162574', 'tblTempUsageDetail_20' ) start [2025-01-03 02:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162574', 'tblTempUsageDetail_20' ) end [2025-01-03 02:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162574', 'tblTempVendorCDR_20' ) start [2025-01-03 02:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162574', 'tblTempVendorCDR_20' ) end [2025-01-03 02:44:21] Production.INFO: ProcessCDR(1,14162574,1,1,2) [2025-01-03 02:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162574', 'tblTempUsageDetail_20' ) start [2025-01-03 02:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162574', 'tblTempUsageDetail_20' ) end [2025-01-03 02:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:44:24] Production.INFO: ==8301== Releasing lock... [2025-01-03 02:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:44:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:45:05 [end_date_ymd] => 2025-01-03 02:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:45:05' and `end` < '2025-01-03 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-01-03 02:45:17] Production.INFO: count ==256 [2025-01-03 02:45:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:45:05 - End Time 2025-01-03 02:45:05 [2025-01-03 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162579', 'tblTempUsageDetail_20' ) start [2025-01-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162579', 'tblTempUsageDetail_20' ) end [2025-01-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162579', 'tblTempVendorCDR_20' ) start [2025-01-03 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162579', 'tblTempVendorCDR_20' ) end [2025-01-03 02:45:17] Production.INFO: ProcessCDR(1,14162579,1,1,2) [2025-01-03 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162579', 'tblTempUsageDetail_20' ) start [2025-01-03 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162579', 'tblTempUsageDetail_20' ) end [2025-01-03 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:45:20] Production.INFO: ==8375== Releasing lock... [2025-01-03 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:46:05 [end_date_ymd] => 2025-01-03 02:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:46:05' and `end` < '2025-01-03 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-01-03 02:46:18] Production.INFO: count ==256 [2025-01-03 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:46:05 - End Time 2025-01-03 02:46:05 [2025-01-03 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162584', 'tblTempUsageDetail_20' ) start [2025-01-03 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162584', 'tblTempUsageDetail_20' ) end [2025-01-03 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162584', 'tblTempVendorCDR_20' ) start [2025-01-03 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162584', 'tblTempVendorCDR_20' ) end [2025-01-03 02:46:18] Production.INFO: ProcessCDR(1,14162584,1,1,2) [2025-01-03 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162584', 'tblTempUsageDetail_20' ) start [2025-01-03 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162584', 'tblTempUsageDetail_20' ) end [2025-01-03 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:46:21] Production.INFO: ==8484== Releasing lock... [2025-01-03 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:47:05 [end_date_ymd] => 2025-01-03 02:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:47:05' and `end` < '2025-01-03 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-01-03 02:47:17] Production.INFO: count ==256 [2025-01-03 02:47:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:47:05 - End Time 2025-01-03 02:47:05 [2025-01-03 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162589', 'tblTempUsageDetail_20' ) start [2025-01-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162589', 'tblTempUsageDetail_20' ) end [2025-01-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162589', 'tblTempVendorCDR_20' ) start [2025-01-03 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162589', 'tblTempVendorCDR_20' ) end [2025-01-03 02:47:17] Production.INFO: ProcessCDR(1,14162589,1,1,2) [2025-01-03 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162589', 'tblTempUsageDetail_20' ) start [2025-01-03 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162589', 'tblTempUsageDetail_20' ) end [2025-01-03 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:47:21] Production.INFO: ==8553== Releasing lock... [2025-01-03 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:48:05 [end_date_ymd] => 2025-01-03 02:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:48:05' and `end` < '2025-01-03 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-01-03 02:48:19] Production.INFO: count ==256 [2025-01-03 02:48:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:48:05 - End Time 2025-01-03 02:48:05 [2025-01-03 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162594', 'tblTempUsageDetail_20' ) start [2025-01-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162594', 'tblTempUsageDetail_20' ) end [2025-01-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162594', 'tblTempVendorCDR_20' ) start [2025-01-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162594', 'tblTempVendorCDR_20' ) end [2025-01-03 02:48:19] Production.INFO: ProcessCDR(1,14162594,1,1,2) [2025-01-03 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162594', 'tblTempUsageDetail_20' ) start [2025-01-03 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162594', 'tblTempUsageDetail_20' ) end [2025-01-03 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:48:22] Production.INFO: ==8626== Releasing lock... [2025-01-03 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:49:05 [end_date_ymd] => 2025-01-03 02:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:49:05' and `end` < '2025-01-03 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-01-03 02:49:18] Production.INFO: count ==256 [2025-01-03 02:49:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:49:05 - End Time 2025-01-03 02:49:05 [2025-01-03 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162599', 'tblTempUsageDetail_20' ) start [2025-01-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162599', 'tblTempUsageDetail_20' ) end [2025-01-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162599', 'tblTempVendorCDR_20' ) start [2025-01-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162599', 'tblTempVendorCDR_20' ) end [2025-01-03 02:49:19] Production.INFO: ProcessCDR(1,14162599,1,1,2) [2025-01-03 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162599', 'tblTempUsageDetail_20' ) start [2025-01-03 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162599', 'tblTempUsageDetail_20' ) end [2025-01-03 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:49:22] Production.INFO: ==8697== Releasing lock... [2025-01-03 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:50:06 [end_date_ymd] => 2025-01-03 02:50:06 [RateCDR] => 1 ) [2025-01-03 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:50:06' and `end` < '2025-01-03 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:50:19] Production.INFO: count ==256 [2025-01-03 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:50:06 - End Time 2025-01-03 02:50:06 [2025-01-03 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162605', 'tblTempUsageDetail_20' ) start [2025-01-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162605', 'tblTempUsageDetail_20' ) end [2025-01-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162605', 'tblTempVendorCDR_20' ) start [2025-01-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162605', 'tblTempVendorCDR_20' ) end [2025-01-03 02:50:19] Production.INFO: ProcessCDR(1,14162605,1,1,2) [2025-01-03 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162605', 'tblTempUsageDetail_20' ) start [2025-01-03 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162605', 'tblTempUsageDetail_20' ) end [2025-01-03 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:50:22] Production.INFO: ==8767== Releasing lock... [2025-01-03 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:51:04 [end_date_ymd] => 2025-01-03 02:51:04 [RateCDR] => 1 ) [2025-01-03 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:51:04' and `end` < '2025-01-03 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:51:18] Production.INFO: count ==256 [2025-01-03 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:51:04 - End Time 2025-01-03 02:51:04 [2025-01-03 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162610', 'tblTempUsageDetail_20' ) start [2025-01-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162610', 'tblTempUsageDetail_20' ) end [2025-01-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162610', 'tblTempVendorCDR_20' ) start [2025-01-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162610', 'tblTempVendorCDR_20' ) end [2025-01-03 02:51:18] Production.INFO: ProcessCDR(1,14162610,1,1,2) [2025-01-03 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162610', 'tblTempUsageDetail_20' ) start [2025-01-03 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162610', 'tblTempUsageDetail_20' ) end [2025-01-03 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:51:21] Production.INFO: ==8841== Releasing lock... [2025-01-03 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:52:05 [end_date_ymd] => 2025-01-03 02:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:52:05' and `end` < '2025-01-03 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-01-03 02:52:19] Production.INFO: count ==256 [2025-01-03 02:52:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:52:05 - End Time 2025-01-03 02:52:05 [2025-01-03 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162615', 'tblTempUsageDetail_20' ) start [2025-01-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162615', 'tblTempUsageDetail_20' ) end [2025-01-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162615', 'tblTempVendorCDR_20' ) start [2025-01-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162615', 'tblTempVendorCDR_20' ) end [2025-01-03 02:52:19] Production.INFO: ProcessCDR(1,14162615,1,1,2) [2025-01-03 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162615', 'tblTempUsageDetail_20' ) start [2025-01-03 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162615', 'tblTempUsageDetail_20' ) end [2025-01-03 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:52:22] Production.INFO: ==8910== Releasing lock... [2025-01-03 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:53:04 [end_date_ymd] => 2025-01-03 02:53:04 [RateCDR] => 1 ) [2025-01-03 02: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-01-02 23:53:04' and `end` < '2025-01-03 02: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-01-03 02:53:18] Production.INFO: count ==256 [2025-01-03 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:53:04 - End Time 2025-01-03 02:53:04 [2025-01-03 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162620', 'tblTempUsageDetail_20' ) start [2025-01-03 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162620', 'tblTempUsageDetail_20' ) end [2025-01-03 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162620', 'tblTempVendorCDR_20' ) start [2025-01-03 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162620', 'tblTempVendorCDR_20' ) end [2025-01-03 02:53:18] Production.INFO: ProcessCDR(1,14162620,1,1,2) [2025-01-03 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162620', 'tblTempUsageDetail_20' ) start [2025-01-03 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162620', 'tblTempUsageDetail_20' ) end [2025-01-03 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:53:21] Production.INFO: ==8981== Releasing lock... [2025-01-03 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:54:05 [end_date_ymd] => 2025-01-03 02:54:05 [RateCDR] => 1 ) [2025-01-03 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:54:05' and `end` < '2025-01-03 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:54:18] Production.INFO: count ==256 [2025-01-03 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:54:05 - End Time 2025-01-03 02:54:05 [2025-01-03 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162625', 'tblTempUsageDetail_20' ) start [2025-01-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162625', 'tblTempUsageDetail_20' ) end [2025-01-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162625', 'tblTempVendorCDR_20' ) start [2025-01-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162625', 'tblTempVendorCDR_20' ) end [2025-01-03 02:54:18] Production.INFO: ProcessCDR(1,14162625,1,1,2) [2025-01-03 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162625', 'tblTempUsageDetail_20' ) start [2025-01-03 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162625', 'tblTempUsageDetail_20' ) end [2025-01-03 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:54:21] Production.INFO: ==9050== Releasing lock... [2025-01-03 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:55:05 [end_date_ymd] => 2025-01-03 02:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:55:05' and `end` < '2025-01-03 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-01-03 02:55:17] Production.INFO: count ==255 [2025-01-03 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-02 23:55:05 - End Time 2025-01-03 02:55:05 [2025-01-03 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162630', 'tblTempUsageDetail_20' ) start [2025-01-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162630', 'tblTempUsageDetail_20' ) end [2025-01-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162630', 'tblTempVendorCDR_20' ) start [2025-01-03 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162630', 'tblTempVendorCDR_20' ) end [2025-01-03 02:55:17] Production.INFO: ProcessCDR(1,14162630,1,1,2) [2025-01-03 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162630', 'tblTempUsageDetail_20' ) start [2025-01-03 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162630', 'tblTempUsageDetail_20' ) end [2025-01-03 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:55:22] Production.INFO: ==9119== Releasing lock... [2025-01-03 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:56:05 [end_date_ymd] => 2025-01-03 02:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:56:05' and `end` < '2025-01-03 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-01-03 02:56:18] Production.INFO: count ==255 [2025-01-03 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:56:05 - End Time 2025-01-03 02:56:05 [2025-01-03 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162635', 'tblTempUsageDetail_20' ) start [2025-01-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162635', 'tblTempUsageDetail_20' ) end [2025-01-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162635', 'tblTempVendorCDR_20' ) start [2025-01-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162635', 'tblTempVendorCDR_20' ) end [2025-01-03 02:56:18] Production.INFO: ProcessCDR(1,14162635,1,1,2) [2025-01-03 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162635', 'tblTempUsageDetail_20' ) start [2025-01-03 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162635', 'tblTempUsageDetail_20' ) end [2025-01-03 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:56:21] Production.INFO: ==9188== Releasing lock... [2025-01-03 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:57:06 [end_date_ymd] => 2025-01-03 02:57:06 [RateCDR] => 1 ) [2025-01-03 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-02 23:57:06' and `end` < '2025-01-03 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 02:57:19] Production.INFO: count ==253 [2025-01-03 02:57:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:57:06 - End Time 2025-01-03 02:57:06 [2025-01-03 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162640', 'tblTempUsageDetail_20' ) start [2025-01-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162640', 'tblTempUsageDetail_20' ) end [2025-01-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162640', 'tblTempVendorCDR_20' ) start [2025-01-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162640', 'tblTempVendorCDR_20' ) end [2025-01-03 02:57:19] Production.INFO: ProcessCDR(1,14162640,1,1,2) [2025-01-03 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162640', 'tblTempUsageDetail_20' ) start [2025-01-03 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162640', 'tblTempUsageDetail_20' ) end [2025-01-03 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:57:22] Production.INFO: ==9266== Releasing lock... [2025-01-03 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:58:05 [end_date_ymd] => 2025-01-03 02:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:58:05' and `end` < '2025-01-03 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-01-03 02:58:18] Production.INFO: count ==252 [2025-01-03 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-02 23:58:05 - End Time 2025-01-03 02:58:05 [2025-01-03 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162645', 'tblTempUsageDetail_20' ) start [2025-01-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162645', 'tblTempUsageDetail_20' ) end [2025-01-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162645', 'tblTempVendorCDR_20' ) start [2025-01-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162645', 'tblTempVendorCDR_20' ) end [2025-01-03 02:58:18] Production.INFO: ProcessCDR(1,14162645,1,1,2) [2025-01-03 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162645', 'tblTempUsageDetail_20' ) start [2025-01-03 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162645', 'tblTempUsageDetail_20' ) end [2025-01-03 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:58:21] Production.INFO: ==9341== Releasing lock... [2025-01-03 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-02 23:59:05 [end_date_ymd] => 2025-01-03 02:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-02 23:59:05' and `end` < '2025-01-03 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-01-03 02:59:19] Production.INFO: count ==250 [2025-01-03 02:59:19] Production.ERROR: pbx CDR StartTime 2025-01-02 23:59:05 - End Time 2025-01-03 02:59:05 [2025-01-03 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162650', 'tblTempUsageDetail_20' ) start [2025-01-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162650', 'tblTempUsageDetail_20' ) end [2025-01-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162650', 'tblTempVendorCDR_20' ) start [2025-01-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162650', 'tblTempVendorCDR_20' ) end [2025-01-03 02:59:19] Production.INFO: ProcessCDR(1,14162650,1,1,2) [2025-01-03 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162650', 'tblTempUsageDetail_20' ) start [2025-01-03 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162650', 'tblTempUsageDetail_20' ) end [2025-01-03 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 02:59:22] Production.INFO: ==9410== Releasing lock... [2025-01-03 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 02:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:00:05 [end_date_ymd] => 2025-01-03 03:00:05 [RateCDR] => 1 ) [2025-01-03 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:00:05' and `end` < '2025-01-03 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:00:18] Production.INFO: count ==248 [2025-01-03 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:00:05 - End Time 2025-01-03 03:00:05 [2025-01-03 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162656', 'tblTempUsageDetail_20' ) start [2025-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162656', 'tblTempUsageDetail_20' ) end [2025-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162656', 'tblTempVendorCDR_20' ) start [2025-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162656', 'tblTempVendorCDR_20' ) end [2025-01-03 03:00:18] Production.INFO: ProcessCDR(1,14162656,1,1,2) [2025-01-03 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162656', 'tblTempUsageDetail_20' ) start [2025-01-03 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162656', 'tblTempUsageDetail_20' ) end [2025-01-03 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:00:21] Production.INFO: ==9483== Releasing lock... [2025-01-03 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:01:05 [end_date_ymd] => 2025-01-03 03:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:01:05' and `end` < '2025-01-03 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-01-03 03:01:18] Production.INFO: count ==248 [2025-01-03 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:01:05 - End Time 2025-01-03 03:01:05 [2025-01-03 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162661', 'tblTempUsageDetail_20' ) start [2025-01-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162661', 'tblTempUsageDetail_20' ) end [2025-01-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162661', 'tblTempVendorCDR_20' ) start [2025-01-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162661', 'tblTempVendorCDR_20' ) end [2025-01-03 03:01:18] Production.INFO: ProcessCDR(1,14162661,1,1,2) [2025-01-03 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162661', 'tblTempUsageDetail_20' ) start [2025-01-03 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162661', 'tblTempUsageDetail_20' ) end [2025-01-03 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:01:21] Production.INFO: ==9567== Releasing lock... [2025-01-03 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:02:04 [end_date_ymd] => 2025-01-03 03:02:04 [RateCDR] => 1 ) [2025-01-03 03:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:02:04' and `end` < '2025-01-03 03:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:02:17] Production.INFO: count ==248 [2025-01-03 03:02:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:02:04 - End Time 2025-01-03 03:02:04 [2025-01-03 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162666', 'tblTempUsageDetail_20' ) start [2025-01-03 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162666', 'tblTempUsageDetail_20' ) end [2025-01-03 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162666', 'tblTempVendorCDR_20' ) start [2025-01-03 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162666', 'tblTempVendorCDR_20' ) end [2025-01-03 03:02:17] Production.INFO: ProcessCDR(1,14162666,1,1,2) [2025-01-03 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162666', 'tblTempUsageDetail_20' ) start [2025-01-03 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162666', 'tblTempUsageDetail_20' ) end [2025-01-03 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:02:20] Production.INFO: ==9755== Releasing lock... [2025-01-03 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:02:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:03:04 [end_date_ymd] => 2025-01-03 03:03:04 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:03:04' and `end` < '2025-01-03 03: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-01-03 03:03:17] Production.INFO: count ==248 [2025-01-03 03:03:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:03:04 - End Time 2025-01-03 03:03:04 [2025-01-03 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162671', 'tblTempUsageDetail_20' ) start [2025-01-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162671', 'tblTempUsageDetail_20' ) end [2025-01-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162671', 'tblTempVendorCDR_20' ) start [2025-01-03 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162671', 'tblTempVendorCDR_20' ) end [2025-01-03 03:03:17] Production.INFO: ProcessCDR(1,14162671,1,1,2) [2025-01-03 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162671', 'tblTempUsageDetail_20' ) start [2025-01-03 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162671', 'tblTempUsageDetail_20' ) end [2025-01-03 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:03:20] Production.INFO: ==9832== Releasing lock... [2025-01-03 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:03:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:04:06 [end_date_ymd] => 2025-01-03 03:04:06 [RateCDR] => 1 ) [2025-01-03 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:04:06' and `end` < '2025-01-03 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:04:18] Production.INFO: count ==248 [2025-01-03 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:04:06 - End Time 2025-01-03 03:04:06 [2025-01-03 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162676', 'tblTempUsageDetail_20' ) start [2025-01-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162676', 'tblTempUsageDetail_20' ) end [2025-01-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162676', 'tblTempVendorCDR_20' ) start [2025-01-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162676', 'tblTempVendorCDR_20' ) end [2025-01-03 03:04:18] Production.INFO: ProcessCDR(1,14162676,1,1,2) [2025-01-03 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162676', 'tblTempUsageDetail_20' ) start [2025-01-03 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162676', 'tblTempUsageDetail_20' ) end [2025-01-03 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:04:22] Production.INFO: ==9903== Releasing lock... [2025-01-03 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:05:04 [end_date_ymd] => 2025-01-03 03:05:04 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:05:04' and `end` < '2025-01-03 03: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-01-03 03:05:17] Production.INFO: count ==248 [2025-01-03 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:05:04 - End Time 2025-01-03 03:05:04 [2025-01-03 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162681', 'tblTempUsageDetail_20' ) start [2025-01-03 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162681', 'tblTempUsageDetail_20' ) end [2025-01-03 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162681', 'tblTempVendorCDR_20' ) start [2025-01-03 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162681', 'tblTempVendorCDR_20' ) end [2025-01-03 03:05:17] Production.INFO: ProcessCDR(1,14162681,1,1,2) [2025-01-03 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162681', 'tblTempUsageDetail_20' ) start [2025-01-03 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162681', 'tblTempUsageDetail_20' ) end [2025-01-03 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:05:21] Production.INFO: ==9973== Releasing lock... [2025-01-03 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:06:05 [end_date_ymd] => 2025-01-03 03:06:05 [RateCDR] => 1 ) [2025-01-03 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:06:05' and `end` < '2025-01-03 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:06:19] Production.INFO: count ==248 [2025-01-03 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:06:05 - End Time 2025-01-03 03:06:05 [2025-01-03 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162686', 'tblTempUsageDetail_20' ) start [2025-01-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162686', 'tblTempUsageDetail_20' ) end [2025-01-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162686', 'tblTempVendorCDR_20' ) start [2025-01-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162686', 'tblTempVendorCDR_20' ) end [2025-01-03 03:06:19] Production.INFO: ProcessCDR(1,14162686,1,1,2) [2025-01-03 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162686', 'tblTempUsageDetail_20' ) start [2025-01-03 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162686', 'tblTempUsageDetail_20' ) end [2025-01-03 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:06:22] Production.INFO: ==10128== Releasing lock... [2025-01-03 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:07:05 [end_date_ymd] => 2025-01-03 03:07:05 [RateCDR] => 1 ) [2025-01-03 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:07:05' and `end` < '2025-01-03 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:07:18] Production.INFO: count ==246 [2025-01-03 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:07:05 - End Time 2025-01-03 03:07:05 [2025-01-03 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162691', 'tblTempUsageDetail_20' ) start [2025-01-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162691', 'tblTempUsageDetail_20' ) end [2025-01-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162691', 'tblTempVendorCDR_20' ) start [2025-01-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162691', 'tblTempVendorCDR_20' ) end [2025-01-03 03:07:18] Production.INFO: ProcessCDR(1,14162691,1,1,2) [2025-01-03 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162691', 'tblTempUsageDetail_20' ) start [2025-01-03 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162691', 'tblTempUsageDetail_20' ) end [2025-01-03 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:07:21] Production.INFO: ==10209== Releasing lock... [2025-01-03 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:08:04 [end_date_ymd] => 2025-01-03 03:08:04 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:08:04' and `end` < '2025-01-03 03: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-01-03 03:08:18] Production.INFO: count ==246 [2025-01-03 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:08:04 - End Time 2025-01-03 03:08:04 [2025-01-03 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162696', 'tblTempUsageDetail_20' ) start [2025-01-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162696', 'tblTempUsageDetail_20' ) end [2025-01-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162696', 'tblTempVendorCDR_20' ) start [2025-01-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162696', 'tblTempVendorCDR_20' ) end [2025-01-03 03:08:18] Production.INFO: ProcessCDR(1,14162696,1,1,2) [2025-01-03 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162696', 'tblTempUsageDetail_20' ) start [2025-01-03 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162696', 'tblTempUsageDetail_20' ) end [2025-01-03 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:08:21] Production.INFO: ==10280== Releasing lock... [2025-01-03 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:09:05 [end_date_ymd] => 2025-01-03 03:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:09:05' and `end` < '2025-01-03 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-01-03 03:09:20] Production.INFO: count ==245 [2025-01-03 03:09:20] Production.ERROR: pbx CDR StartTime 2025-01-03 00:09:05 - End Time 2025-01-03 03:09:05 [2025-01-03 03:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162701', 'tblTempUsageDetail_20' ) start [2025-01-03 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162701', 'tblTempUsageDetail_20' ) end [2025-01-03 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162701', 'tblTempVendorCDR_20' ) start [2025-01-03 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162701', 'tblTempVendorCDR_20' ) end [2025-01-03 03:09:20] Production.INFO: ProcessCDR(1,14162701,1,1,2) [2025-01-03 03:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162701', 'tblTempUsageDetail_20' ) start [2025-01-03 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162701', 'tblTempUsageDetail_20' ) end [2025-01-03 03:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:09:23] Production.INFO: ==10436== Releasing lock... [2025-01-03 03:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:09:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:10:05 [end_date_ymd] => 2025-01-03 03:10:05 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:10:05' and `end` < '2025-01-03 03: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-01-03 03:10:18] Production.INFO: count ==245 [2025-01-03 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:10:05 - End Time 2025-01-03 03:10:05 [2025-01-03 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162707', 'tblTempUsageDetail_20' ) start [2025-01-03 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162707', 'tblTempUsageDetail_20' ) end [2025-01-03 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162707', 'tblTempVendorCDR_20' ) start [2025-01-03 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162707', 'tblTempVendorCDR_20' ) end [2025-01-03 03:10:18] Production.INFO: ProcessCDR(1,14162707,1,1,2) [2025-01-03 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162707', 'tblTempUsageDetail_20' ) start [2025-01-03 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162707', 'tblTempUsageDetail_20' ) end [2025-01-03 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:10:21] Production.INFO: ==10518== Releasing lock... [2025-01-03 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:11:05 [end_date_ymd] => 2025-01-03 03:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:11:05' and `end` < '2025-01-03 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-01-03 03:11:19] Production.INFO: count ==235 [2025-01-03 03:11:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:11:05 - End Time 2025-01-03 03:11:05 [2025-01-03 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162712', 'tblTempUsageDetail_20' ) start [2025-01-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162712', 'tblTempUsageDetail_20' ) end [2025-01-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162712', 'tblTempVendorCDR_20' ) start [2025-01-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162712', 'tblTempVendorCDR_20' ) end [2025-01-03 03:11:19] Production.INFO: ProcessCDR(1,14162712,1,1,2) [2025-01-03 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162712', 'tblTempUsageDetail_20' ) start [2025-01-03 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162712', 'tblTempUsageDetail_20' ) end [2025-01-03 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:11:22] Production.INFO: ==10596== Releasing lock... [2025-01-03 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:12:05 [end_date_ymd] => 2025-01-03 03:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:12:05' and `end` < '2025-01-03 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-01-03 03:12:18] Production.INFO: count ==235 [2025-01-03 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:12:05 - End Time 2025-01-03 03:12:05 [2025-01-03 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162717', 'tblTempUsageDetail_20' ) start [2025-01-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162717', 'tblTempUsageDetail_20' ) end [2025-01-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162717', 'tblTempVendorCDR_20' ) start [2025-01-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162717', 'tblTempVendorCDR_20' ) end [2025-01-03 03:12:18] Production.INFO: ProcessCDR(1,14162717,1,1,2) [2025-01-03 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162717', 'tblTempUsageDetail_20' ) start [2025-01-03 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162717', 'tblTempUsageDetail_20' ) end [2025-01-03 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:12:22] Production.INFO: ==10675== Releasing lock... [2025-01-03 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:13:05 [end_date_ymd] => 2025-01-03 03:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:13:05' and `end` < '2025-01-03 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-01-03 03:13:18] Production.INFO: count ==232 [2025-01-03 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:13:05 - End Time 2025-01-03 03:13:05 [2025-01-03 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162722', 'tblTempUsageDetail_20' ) start [2025-01-03 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162722', 'tblTempUsageDetail_20' ) end [2025-01-03 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162722', 'tblTempVendorCDR_20' ) start [2025-01-03 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162722', 'tblTempVendorCDR_20' ) end [2025-01-03 03:13:18] Production.INFO: ProcessCDR(1,14162722,1,1,2) [2025-01-03 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162722', 'tblTempUsageDetail_20' ) start [2025-01-03 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162722', 'tblTempUsageDetail_20' ) end [2025-01-03 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:13:21] Production.INFO: ==10826== Releasing lock... [2025-01-03 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:14:04 [end_date_ymd] => 2025-01-03 03:14:04 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:14:04' and `end` < '2025-01-03 03: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-01-03 03:14:19] Production.INFO: count ==233 [2025-01-03 03:14:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:14:04 - End Time 2025-01-03 03:14:04 [2025-01-03 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162727', 'tblTempUsageDetail_20' ) start [2025-01-03 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162727', 'tblTempUsageDetail_20' ) end [2025-01-03 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162727', 'tblTempVendorCDR_20' ) start [2025-01-03 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162727', 'tblTempVendorCDR_20' ) end [2025-01-03 03:14:19] Production.INFO: ProcessCDR(1,14162727,1,1,2) [2025-01-03 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162727', 'tblTempUsageDetail_20' ) start [2025-01-03 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162727', 'tblTempUsageDetail_20' ) end [2025-01-03 03:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:14:23] Production.INFO: ==10899== Releasing lock... [2025-01-03 03:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:14:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:15:05 [end_date_ymd] => 2025-01-03 03:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:15:05' and `end` < '2025-01-03 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-01-03 03:15:19] Production.INFO: count ==233 [2025-01-03 03:15:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:15:05 - End Time 2025-01-03 03:15:05 [2025-01-03 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162732', 'tblTempUsageDetail_20' ) start [2025-01-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162732', 'tblTempUsageDetail_20' ) end [2025-01-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162732', 'tblTempVendorCDR_20' ) start [2025-01-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162732', 'tblTempVendorCDR_20' ) end [2025-01-03 03:15:19] Production.INFO: ProcessCDR(1,14162732,1,1,2) [2025-01-03 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162732', 'tblTempUsageDetail_20' ) start [2025-01-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162732', 'tblTempUsageDetail_20' ) end [2025-01-03 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:15:22] Production.INFO: ==10976== Releasing lock... [2025-01-03 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:16:06 [end_date_ymd] => 2025-01-03 03:16:06 [RateCDR] => 1 ) [2025-01-03 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:16:06' and `end` < '2025-01-03 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:16:19] Production.INFO: count ==233 [2025-01-03 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:16:06 - End Time 2025-01-03 03:16:06 [2025-01-03 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162737', 'tblTempUsageDetail_20' ) start [2025-01-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162737', 'tblTempUsageDetail_20' ) end [2025-01-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162737', 'tblTempVendorCDR_20' ) start [2025-01-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162737', 'tblTempVendorCDR_20' ) end [2025-01-03 03:16:19] Production.INFO: ProcessCDR(1,14162737,1,1,2) [2025-01-03 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162737', 'tblTempUsageDetail_20' ) start [2025-01-03 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162737', 'tblTempUsageDetail_20' ) end [2025-01-03 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:16:22] Production.INFO: ==11057== Releasing lock... [2025-01-03 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:17:05 [end_date_ymd] => 2025-01-03 03:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:17:05' and `end` < '2025-01-03 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-01-03 03:17:19] Production.INFO: count ==233 [2025-01-03 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:17:05 - End Time 2025-01-03 03:17:05 [2025-01-03 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162742', 'tblTempUsageDetail_20' ) start [2025-01-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162742', 'tblTempUsageDetail_20' ) end [2025-01-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162742', 'tblTempVendorCDR_20' ) start [2025-01-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162742', 'tblTempVendorCDR_20' ) end [2025-01-03 03:17:19] Production.INFO: ProcessCDR(1,14162742,1,1,2) [2025-01-03 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162742', 'tblTempUsageDetail_20' ) start [2025-01-03 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162742', 'tblTempUsageDetail_20' ) end [2025-01-03 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:17:22] Production.INFO: ==11207== Releasing lock... [2025-01-03 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:18:05 [end_date_ymd] => 2025-01-03 03:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:18:05' and `end` < '2025-01-03 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-01-03 03:18:19] Production.INFO: count ==230 [2025-01-03 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:18:05 - End Time 2025-01-03 03:18:05 [2025-01-03 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162747', 'tblTempUsageDetail_20' ) start [2025-01-03 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162747', 'tblTempUsageDetail_20' ) end [2025-01-03 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162747', 'tblTempVendorCDR_20' ) start [2025-01-03 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162747', 'tblTempVendorCDR_20' ) end [2025-01-03 03:18:19] Production.INFO: ProcessCDR(1,14162747,1,1,2) [2025-01-03 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162747', 'tblTempUsageDetail_20' ) start [2025-01-03 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162747', 'tblTempUsageDetail_20' ) end [2025-01-03 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:18:22] Production.INFO: ==11284== Releasing lock... [2025-01-03 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:18:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:19:05 [end_date_ymd] => 2025-01-03 03:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:19:05' and `end` < '2025-01-03 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-01-03 03:19:17] Production.INFO: count ==230 [2025-01-03 03:19:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:19:05 - End Time 2025-01-03 03:19:05 [2025-01-03 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162752', 'tblTempUsageDetail_20' ) start [2025-01-03 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162752', 'tblTempUsageDetail_20' ) end [2025-01-03 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162752', 'tblTempVendorCDR_20' ) start [2025-01-03 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162752', 'tblTempVendorCDR_20' ) end [2025-01-03 03:19:17] Production.INFO: ProcessCDR(1,14162752,1,1,2) [2025-01-03 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162752', 'tblTempUsageDetail_20' ) start [2025-01-03 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162752', 'tblTempUsageDetail_20' ) end [2025-01-03 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:19:20] Production.INFO: ==11393== Releasing lock... [2025-01-03 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:19:20] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:20:05 [end_date_ymd] => 2025-01-03 03:20:05 [RateCDR] => 1 ) [2025-01-03 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:20:05' and `end` < '2025-01-03 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:20:18] Production.INFO: count ==224 [2025-01-03 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:20:05 - End Time 2025-01-03 03:20:05 [2025-01-03 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162758', 'tblTempUsageDetail_20' ) start [2025-01-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162758', 'tblTempUsageDetail_20' ) end [2025-01-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162758', 'tblTempVendorCDR_20' ) start [2025-01-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162758', 'tblTempVendorCDR_20' ) end [2025-01-03 03:20:18] Production.INFO: ProcessCDR(1,14162758,1,1,2) [2025-01-03 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162758', 'tblTempUsageDetail_20' ) start [2025-01-03 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162758', 'tblTempUsageDetail_20' ) end [2025-01-03 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:20:21] Production.INFO: ==11470== Releasing lock... [2025-01-03 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:21:05 [end_date_ymd] => 2025-01-03 03:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:21:05' and `end` < '2025-01-03 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-01-03 03:21:17] Production.INFO: count ==214 [2025-01-03 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:21:05 - End Time 2025-01-03 03:21:05 [2025-01-03 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162763', 'tblTempUsageDetail_20' ) start [2025-01-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162763', 'tblTempUsageDetail_20' ) end [2025-01-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162763', 'tblTempVendorCDR_20' ) start [2025-01-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162763', 'tblTempVendorCDR_20' ) end [2025-01-03 03:21:17] Production.INFO: ProcessCDR(1,14162763,1,1,2) [2025-01-03 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162763', 'tblTempUsageDetail_20' ) start [2025-01-03 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162763', 'tblTempUsageDetail_20' ) end [2025-01-03 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:21:20] Production.INFO: ==11547== Releasing lock... [2025-01-03 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:21:20] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:22:05 [end_date_ymd] => 2025-01-03 03:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:22:05' and `end` < '2025-01-03 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-01-03 03:22:18] Production.INFO: count ==214 [2025-01-03 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:22:05 - End Time 2025-01-03 03:22:05 [2025-01-03 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162768', 'tblTempUsageDetail_20' ) start [2025-01-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162768', 'tblTempUsageDetail_20' ) end [2025-01-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162768', 'tblTempVendorCDR_20' ) start [2025-01-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162768', 'tblTempVendorCDR_20' ) end [2025-01-03 03:22:18] Production.INFO: ProcessCDR(1,14162768,1,1,2) [2025-01-03 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162768', 'tblTempUsageDetail_20' ) start [2025-01-03 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162768', 'tblTempUsageDetail_20' ) end [2025-01-03 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:22:21] Production.INFO: ==11629== Releasing lock... [2025-01-03 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:23:04 [end_date_ymd] => 2025-01-03 03:23:04 [RateCDR] => 1 ) [2025-01-03 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:23:04' and `end` < '2025-01-03 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:23:17] Production.INFO: count ==214 [2025-01-03 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:23:04 - End Time 2025-01-03 03:23:04 [2025-01-03 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162773', 'tblTempUsageDetail_20' ) start [2025-01-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162773', 'tblTempUsageDetail_20' ) end [2025-01-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162773', 'tblTempVendorCDR_20' ) start [2025-01-03 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162773', 'tblTempVendorCDR_20' ) end [2025-01-03 03:23:17] Production.INFO: ProcessCDR(1,14162773,1,1,2) [2025-01-03 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162773', 'tblTempUsageDetail_20' ) start [2025-01-03 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162773', 'tblTempUsageDetail_20' ) end [2025-01-03 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:23:20] Production.INFO: ==11703== Releasing lock... [2025-01-03 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:23:20] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:24:05 [end_date_ymd] => 2025-01-03 03:24:05 [RateCDR] => 1 ) [2025-01-03 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:24:05' and `end` < '2025-01-03 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:24:19] Production.INFO: count ==214 [2025-01-03 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:24:05 - End Time 2025-01-03 03:24:05 [2025-01-03 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162778', 'tblTempUsageDetail_20' ) start [2025-01-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162778', 'tblTempUsageDetail_20' ) end [2025-01-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162778', 'tblTempVendorCDR_20' ) start [2025-01-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162778', 'tblTempVendorCDR_20' ) end [2025-01-03 03:24:19] Production.INFO: ProcessCDR(1,14162778,1,1,2) [2025-01-03 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162778', 'tblTempUsageDetail_20' ) start [2025-01-03 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162778', 'tblTempUsageDetail_20' ) end [2025-01-03 03:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:24:23] Production.INFO: ==11782== Releasing lock... [2025-01-03 03:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:24:23] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:25:05 [end_date_ymd] => 2025-01-03 03:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:25:05' and `end` < '2025-01-03 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-01-03 03:25:18] Production.INFO: count ==213 [2025-01-03 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:25:05 - End Time 2025-01-03 03:25:05 [2025-01-03 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162783', 'tblTempUsageDetail_20' ) start [2025-01-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162783', 'tblTempUsageDetail_20' ) end [2025-01-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162783', 'tblTempVendorCDR_20' ) start [2025-01-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162783', 'tblTempVendorCDR_20' ) end [2025-01-03 03:25:18] Production.INFO: ProcessCDR(1,14162783,1,1,2) [2025-01-03 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162783', 'tblTempUsageDetail_20' ) start [2025-01-03 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162783', 'tblTempUsageDetail_20' ) end [2025-01-03 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:25:21] Production.INFO: ==11852== Releasing lock... [2025-01-03 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:26:05 [end_date_ymd] => 2025-01-03 03:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:26:05' and `end` < '2025-01-03 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-01-03 03:26:19] Production.INFO: count ==213 [2025-01-03 03:26:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:26:05 - End Time 2025-01-03 03:26:05 [2025-01-03 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162788', 'tblTempUsageDetail_20' ) start [2025-01-03 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162788', 'tblTempUsageDetail_20' ) end [2025-01-03 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162788', 'tblTempVendorCDR_20' ) start [2025-01-03 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162788', 'tblTempVendorCDR_20' ) end [2025-01-03 03:26:19] Production.INFO: ProcessCDR(1,14162788,1,1,2) [2025-01-03 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162788', 'tblTempUsageDetail_20' ) start [2025-01-03 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162788', 'tblTempUsageDetail_20' ) end [2025-01-03 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:26:22] Production.INFO: ==11925== Releasing lock... [2025-01-03 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:26:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:27:05 [end_date_ymd] => 2025-01-03 03:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:27:05' and `end` < '2025-01-03 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-01-03 03:27:17] Production.INFO: count ==213 [2025-01-03 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:27:05 - End Time 2025-01-03 03:27:05 [2025-01-03 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162793', 'tblTempUsageDetail_20' ) start [2025-01-03 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162793', 'tblTempUsageDetail_20' ) end [2025-01-03 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162793', 'tblTempVendorCDR_20' ) start [2025-01-03 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162793', 'tblTempVendorCDR_20' ) end [2025-01-03 03:27:17] Production.INFO: ProcessCDR(1,14162793,1,1,2) [2025-01-03 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162793', 'tblTempUsageDetail_20' ) start [2025-01-03 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162793', 'tblTempUsageDetail_20' ) end [2025-01-03 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:27:20] Production.INFO: ==12002== Releasing lock... [2025-01-03 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:28:04 [end_date_ymd] => 2025-01-03 03:28:04 [RateCDR] => 1 ) [2025-01-03 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:28:04' and `end` < '2025-01-03 03:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:28:17] Production.INFO: count ==213 [2025-01-03 03:28:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:28:04 - End Time 2025-01-03 03:28:04 [2025-01-03 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162798', 'tblTempUsageDetail_20' ) start [2025-01-03 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162798', 'tblTempUsageDetail_20' ) end [2025-01-03 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162798', 'tblTempVendorCDR_20' ) start [2025-01-03 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162798', 'tblTempVendorCDR_20' ) end [2025-01-03 03:28:17] Production.INFO: ProcessCDR(1,14162798,1,1,2) [2025-01-03 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162798', 'tblTempUsageDetail_20' ) start [2025-01-03 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162798', 'tblTempUsageDetail_20' ) end [2025-01-03 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:28:21] Production.INFO: ==12075== Releasing lock... [2025-01-03 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:29:05 [end_date_ymd] => 2025-01-03 03:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:29:05' and `end` < '2025-01-03 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-01-03 03:29:18] Production.INFO: count ==213 [2025-01-03 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:29:05 - End Time 2025-01-03 03:29:05 [2025-01-03 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162803', 'tblTempUsageDetail_20' ) start [2025-01-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162803', 'tblTempUsageDetail_20' ) end [2025-01-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162803', 'tblTempVendorCDR_20' ) start [2025-01-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162803', 'tblTempVendorCDR_20' ) end [2025-01-03 03:29:18] Production.INFO: ProcessCDR(1,14162803,1,1,2) [2025-01-03 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162803', 'tblTempUsageDetail_20' ) start [2025-01-03 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162803', 'tblTempUsageDetail_20' ) end [2025-01-03 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:29:21] Production.INFO: ==12152== Releasing lock... [2025-01-03 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:30:06 [end_date_ymd] => 2025-01-03 03:30:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:30:06' and `end` < '2025-01-03 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-01-03 03:30:18] Production.INFO: count ==212 [2025-01-03 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:30:06 - End Time 2025-01-03 03:30:06 [2025-01-03 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162809', 'tblTempUsageDetail_20' ) start [2025-01-03 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162809', 'tblTempUsageDetail_20' ) end [2025-01-03 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162809', 'tblTempVendorCDR_20' ) start [2025-01-03 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162809', 'tblTempVendorCDR_20' ) end [2025-01-03 03:30:18] Production.INFO: ProcessCDR(1,14162809,1,1,2) [2025-01-03 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162809', 'tblTempUsageDetail_20' ) start [2025-01-03 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162809', 'tblTempUsageDetail_20' ) end [2025-01-03 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:30:21] Production.INFO: ==12229== Releasing lock... [2025-01-03 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:31:05 [end_date_ymd] => 2025-01-03 03:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:31:05' and `end` < '2025-01-03 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-01-03 03:31:18] Production.INFO: count ==212 [2025-01-03 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:31:05 - End Time 2025-01-03 03:31:05 [2025-01-03 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162814', 'tblTempUsageDetail_20' ) start [2025-01-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162814', 'tblTempUsageDetail_20' ) end [2025-01-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162814', 'tblTempVendorCDR_20' ) start [2025-01-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162814', 'tblTempVendorCDR_20' ) end [2025-01-03 03:31:18] Production.INFO: ProcessCDR(1,14162814,1,1,2) [2025-01-03 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162814', 'tblTempUsageDetail_20' ) start [2025-01-03 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162814', 'tblTempUsageDetail_20' ) end [2025-01-03 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:31:21] Production.INFO: ==12306== Releasing lock... [2025-01-03 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:32:05 [end_date_ymd] => 2025-01-03 03:32:05 [RateCDR] => 1 ) [2025-01-03 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:32:05' and `end` < '2025-01-03 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:32:19] Production.INFO: count ==212 [2025-01-03 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:32:05 - End Time 2025-01-03 03:32:05 [2025-01-03 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162819', 'tblTempUsageDetail_20' ) start [2025-01-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162819', 'tblTempUsageDetail_20' ) end [2025-01-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162819', 'tblTempVendorCDR_20' ) start [2025-01-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162819', 'tblTempVendorCDR_20' ) end [2025-01-03 03:32:19] Production.INFO: ProcessCDR(1,14162819,1,1,2) [2025-01-03 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162819', 'tblTempUsageDetail_20' ) start [2025-01-03 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162819', 'tblTempUsageDetail_20' ) end [2025-01-03 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:32:22] Production.INFO: ==12381== Releasing lock... [2025-01-03 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:32:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:33:05 [end_date_ymd] => 2025-01-03 03:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:33:05' and `end` < '2025-01-03 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-01-03 03:33:19] Production.INFO: count ==209 [2025-01-03 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:33:05 - End Time 2025-01-03 03:33:05 [2025-01-03 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162824', 'tblTempUsageDetail_20' ) start [2025-01-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162824', 'tblTempUsageDetail_20' ) end [2025-01-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162824', 'tblTempVendorCDR_20' ) start [2025-01-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162824', 'tblTempVendorCDR_20' ) end [2025-01-03 03:33:19] Production.INFO: ProcessCDR(1,14162824,1,1,2) [2025-01-03 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162824', 'tblTempUsageDetail_20' ) start [2025-01-03 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162824', 'tblTempUsageDetail_20' ) end [2025-01-03 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:33:22] Production.INFO: ==12456== Releasing lock... [2025-01-03 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:33:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:34:05 [end_date_ymd] => 2025-01-03 03:34:05 [RateCDR] => 1 ) [2025-01-03 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:34:05' and `end` < '2025-01-03 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:34:19] Production.INFO: count ==209 [2025-01-03 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:34:05 - End Time 2025-01-03 03:34:05 [2025-01-03 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162829', 'tblTempUsageDetail_20' ) start [2025-01-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162829', 'tblTempUsageDetail_20' ) end [2025-01-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162829', 'tblTempVendorCDR_20' ) start [2025-01-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162829', 'tblTempVendorCDR_20' ) end [2025-01-03 03:34:19] Production.INFO: ProcessCDR(1,14162829,1,1,2) [2025-01-03 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162829', 'tblTempUsageDetail_20' ) start [2025-01-03 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162829', 'tblTempUsageDetail_20' ) end [2025-01-03 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:34:22] Production.INFO: ==12531== Releasing lock... [2025-01-03 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:34:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:35:05 [end_date_ymd] => 2025-01-03 03:35:05 [RateCDR] => 1 ) [2025-01-03 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:35:05' and `end` < '2025-01-03 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:35:19] Production.INFO: count ==209 [2025-01-03 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:35:05 - End Time 2025-01-03 03:35:05 [2025-01-03 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162834', 'tblTempUsageDetail_20' ) start [2025-01-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162834', 'tblTempUsageDetail_20' ) end [2025-01-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162834', 'tblTempVendorCDR_20' ) start [2025-01-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162834', 'tblTempVendorCDR_20' ) end [2025-01-03 03:35:19] Production.INFO: ProcessCDR(1,14162834,1,1,2) [2025-01-03 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162834', 'tblTempUsageDetail_20' ) start [2025-01-03 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162834', 'tblTempUsageDetail_20' ) end [2025-01-03 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:35:22] Production.INFO: ==12650== Releasing lock... [2025-01-03 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:35:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:36:04 [end_date_ymd] => 2025-01-03 03:36:04 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:36:04' and `end` < '2025-01-03 03: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-01-03 03:36:18] Production.INFO: count ==209 [2025-01-03 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:36:04 - End Time 2025-01-03 03:36:04 [2025-01-03 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162839', 'tblTempUsageDetail_20' ) start [2025-01-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162839', 'tblTempUsageDetail_20' ) end [2025-01-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162839', 'tblTempVendorCDR_20' ) start [2025-01-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162839', 'tblTempVendorCDR_20' ) end [2025-01-03 03:36:18] Production.INFO: ProcessCDR(1,14162839,1,1,2) [2025-01-03 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162839', 'tblTempUsageDetail_20' ) start [2025-01-03 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162839', 'tblTempUsageDetail_20' ) end [2025-01-03 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:36:21] Production.INFO: ==12726== Releasing lock... [2025-01-03 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:37:05 [end_date_ymd] => 2025-01-03 03:37:05 [RateCDR] => 1 ) [2025-01-03 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:37:05' and `end` < '2025-01-03 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:37:18] Production.INFO: count ==207 [2025-01-03 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:37:05 - End Time 2025-01-03 03:37:05 [2025-01-03 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162844', 'tblTempUsageDetail_20' ) start [2025-01-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162844', 'tblTempUsageDetail_20' ) end [2025-01-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162844', 'tblTempVendorCDR_20' ) start [2025-01-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162844', 'tblTempVendorCDR_20' ) end [2025-01-03 03:37:18] Production.INFO: ProcessCDR(1,14162844,1,1,2) [2025-01-03 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162844', 'tblTempUsageDetail_20' ) start [2025-01-03 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162844', 'tblTempUsageDetail_20' ) end [2025-01-03 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:37:21] Production.INFO: ==12800== Releasing lock... [2025-01-03 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:38:05 [end_date_ymd] => 2025-01-03 03:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:38:05' and `end` < '2025-01-03 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-01-03 03:38:19] Production.INFO: count ==204 [2025-01-03 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:38:05 - End Time 2025-01-03 03:38:05 [2025-01-03 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162849', 'tblTempUsageDetail_20' ) start [2025-01-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162849', 'tblTempUsageDetail_20' ) end [2025-01-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162849', 'tblTempVendorCDR_20' ) start [2025-01-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162849', 'tblTempVendorCDR_20' ) end [2025-01-03 03:38:19] Production.INFO: ProcessCDR(1,14162849,1,1,2) [2025-01-03 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162849', 'tblTempUsageDetail_20' ) start [2025-01-03 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162849', 'tblTempUsageDetail_20' ) end [2025-01-03 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:38:22] Production.INFO: ==12871== Releasing lock... [2025-01-03 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:39:05 [end_date_ymd] => 2025-01-03 03:39:05 [RateCDR] => 1 ) [2025-01-03 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:39:05' and `end` < '2025-01-03 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:39:18] Production.INFO: count ==203 [2025-01-03 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:39:05 - End Time 2025-01-03 03:39:05 [2025-01-03 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162854', 'tblTempUsageDetail_20' ) start [2025-01-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162854', 'tblTempUsageDetail_20' ) end [2025-01-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162854', 'tblTempVendorCDR_20' ) start [2025-01-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162854', 'tblTempVendorCDR_20' ) end [2025-01-03 03:39:18] Production.INFO: ProcessCDR(1,14162854,1,1,2) [2025-01-03 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162854', 'tblTempUsageDetail_20' ) start [2025-01-03 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162854', 'tblTempUsageDetail_20' ) end [2025-01-03 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:39:21] Production.INFO: ==12948== Releasing lock... [2025-01-03 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:40:05 [end_date_ymd] => 2025-01-03 03:40:05 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:40:05' and `end` < '2025-01-03 03: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-01-03 03:40:17] Production.INFO: count ==202 [2025-01-03 03:40:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:40:05 - End Time 2025-01-03 03:40:05 [2025-01-03 03:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162858', 'tblTempUsageDetail_20' ) start [2025-01-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162858', 'tblTempUsageDetail_20' ) end [2025-01-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162858', 'tblTempVendorCDR_20' ) start [2025-01-03 03:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162858', 'tblTempVendorCDR_20' ) end [2025-01-03 03:40:17] Production.INFO: ProcessCDR(1,14162858,1,1,2) [2025-01-03 03:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162858', 'tblTempUsageDetail_20' ) start [2025-01-03 03:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162858', 'tblTempUsageDetail_20' ) end [2025-01-03 03:40:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:40:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:40:20] Production.INFO: ==13027== Releasing lock... [2025-01-03 03:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:40:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:41:05 [end_date_ymd] => 2025-01-03 03:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:41:05' and `end` < '2025-01-03 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-01-03 03:41:18] Production.INFO: count ==191 [2025-01-03 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:41:05 - End Time 2025-01-03 03:41:05 [2025-01-03 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162865', 'tblTempUsageDetail_20' ) start [2025-01-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162865', 'tblTempUsageDetail_20' ) end [2025-01-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162865', 'tblTempVendorCDR_20' ) start [2025-01-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162865', 'tblTempVendorCDR_20' ) end [2025-01-03 03:41:18] Production.INFO: ProcessCDR(1,14162865,1,1,2) [2025-01-03 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162865', 'tblTempUsageDetail_20' ) start [2025-01-03 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162865', 'tblTempUsageDetail_20' ) end [2025-01-03 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:41:21] Production.INFO: ==13102== Releasing lock... [2025-01-03 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:42:05 [end_date_ymd] => 2025-01-03 03:42:05 [RateCDR] => 1 ) [2025-01-03 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:42:05' and `end` < '2025-01-03 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:42:19] Production.INFO: count ==190 [2025-01-03 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:42:05 - End Time 2025-01-03 03:42:05 [2025-01-03 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162870', 'tblTempUsageDetail_20' ) start [2025-01-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162870', 'tblTempUsageDetail_20' ) end [2025-01-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162870', 'tblTempVendorCDR_20' ) start [2025-01-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162870', 'tblTempVendorCDR_20' ) end [2025-01-03 03:42:19] Production.INFO: ProcessCDR(1,14162870,1,1,2) [2025-01-03 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162870', 'tblTempUsageDetail_20' ) start [2025-01-03 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162870', 'tblTempUsageDetail_20' ) end [2025-01-03 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:42:22] Production.INFO: ==13177== Releasing lock... [2025-01-03 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:43:05 [end_date_ymd] => 2025-01-03 03:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:43:05' and `end` < '2025-01-03 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-01-03 03:43:20] Production.INFO: count ==190 [2025-01-03 03:43:20] Production.ERROR: pbx CDR StartTime 2025-01-03 00:43:05 - End Time 2025-01-03 03:43:05 [2025-01-03 03:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162875', 'tblTempUsageDetail_20' ) start [2025-01-03 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162875', 'tblTempUsageDetail_20' ) end [2025-01-03 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162875', 'tblTempVendorCDR_20' ) start [2025-01-03 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162875', 'tblTempVendorCDR_20' ) end [2025-01-03 03:43:20] Production.INFO: ProcessCDR(1,14162875,1,1,2) [2025-01-03 03:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162875', 'tblTempUsageDetail_20' ) start [2025-01-03 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162875', 'tblTempUsageDetail_20' ) end [2025-01-03 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:43:23] Production.INFO: ==13273== Releasing lock... [2025-01-03 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:43:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:44:05 [end_date_ymd] => 2025-01-03 03:44:05 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:44:05' and `end` < '2025-01-03 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-01-03 03:44:18] Production.INFO: count ==190 [2025-01-03 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:44:05 - End Time 2025-01-03 03:44:05 [2025-01-03 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162880', 'tblTempUsageDetail_20' ) start [2025-01-03 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162880', 'tblTempUsageDetail_20' ) end [2025-01-03 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162880', 'tblTempVendorCDR_20' ) start [2025-01-03 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162880', 'tblTempVendorCDR_20' ) end [2025-01-03 03:44:18] Production.INFO: ProcessCDR(1,14162880,1,1,2) [2025-01-03 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162880', 'tblTempUsageDetail_20' ) start [2025-01-03 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162880', 'tblTempUsageDetail_20' ) end [2025-01-03 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:44:21] Production.INFO: ==13368== Releasing lock... [2025-01-03 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:45:04 [end_date_ymd] => 2025-01-03 03:45:04 [RateCDR] => 1 ) [2025-01-03 03:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:45:04' and `end` < '2025-01-03 03:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:45:17] Production.INFO: count ==189 [2025-01-03 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:45:04 - End Time 2025-01-03 03:45:04 [2025-01-03 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162885', 'tblTempUsageDetail_20' ) start [2025-01-03 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162885', 'tblTempUsageDetail_20' ) end [2025-01-03 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162885', 'tblTempVendorCDR_20' ) start [2025-01-03 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162885', 'tblTempVendorCDR_20' ) end [2025-01-03 03:45:17] Production.INFO: ProcessCDR(1,14162885,1,1,2) [2025-01-03 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162885', 'tblTempUsageDetail_20' ) start [2025-01-03 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162885', 'tblTempUsageDetail_20' ) end [2025-01-03 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:45:20] Production.INFO: ==13470== Releasing lock... [2025-01-03 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:46:05 [end_date_ymd] => 2025-01-03 03:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:46:05' and `end` < '2025-01-03 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-01-03 03:46:18] Production.INFO: count ==189 [2025-01-03 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:46:05 - End Time 2025-01-03 03:46:05 [2025-01-03 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162890', 'tblTempUsageDetail_20' ) start [2025-01-03 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162890', 'tblTempUsageDetail_20' ) end [2025-01-03 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162890', 'tblTempVendorCDR_20' ) start [2025-01-03 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162890', 'tblTempVendorCDR_20' ) end [2025-01-03 03:46:18] Production.INFO: ProcessCDR(1,14162890,1,1,2) [2025-01-03 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162890', 'tblTempUsageDetail_20' ) start [2025-01-03 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162890', 'tblTempUsageDetail_20' ) end [2025-01-03 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:46:21] Production.INFO: ==13541== Releasing lock... [2025-01-03 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:47:04 [end_date_ymd] => 2025-01-03 03:47:04 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:47:04' and `end` < '2025-01-03 03: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-01-03 03:47:18] Production.INFO: count ==188 [2025-01-03 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:47:04 - End Time 2025-01-03 03:47:04 [2025-01-03 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162895', 'tblTempUsageDetail_20' ) start [2025-01-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162895', 'tblTempUsageDetail_20' ) end [2025-01-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162895', 'tblTempVendorCDR_20' ) start [2025-01-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162895', 'tblTempVendorCDR_20' ) end [2025-01-03 03:47:18] Production.INFO: ProcessCDR(1,14162895,1,1,2) [2025-01-03 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162895', 'tblTempUsageDetail_20' ) start [2025-01-03 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162895', 'tblTempUsageDetail_20' ) end [2025-01-03 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:47:21] Production.INFO: ==13609== Releasing lock... [2025-01-03 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:48:05 [end_date_ymd] => 2025-01-03 03:48:05 [RateCDR] => 1 ) [2025-01-03 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:48:05' and `end` < '2025-01-03 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:48:19] Production.INFO: count ==188 [2025-01-03 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:48:05 - End Time 2025-01-03 03:48:05 [2025-01-03 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162900', 'tblTempUsageDetail_20' ) start [2025-01-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162900', 'tblTempUsageDetail_20' ) end [2025-01-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162900', 'tblTempVendorCDR_20' ) start [2025-01-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162900', 'tblTempVendorCDR_20' ) end [2025-01-03 03:48:19] Production.INFO: ProcessCDR(1,14162900,1,1,2) [2025-01-03 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162900', 'tblTempUsageDetail_20' ) start [2025-01-03 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162900', 'tblTempUsageDetail_20' ) end [2025-01-03 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:48:22] Production.INFO: ==13680== Releasing lock... [2025-01-03 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:49:06 [end_date_ymd] => 2025-01-03 03:49:06 [RateCDR] => 1 ) [2025-01-03 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:49:06' and `end` < '2025-01-03 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:49:19] Production.INFO: count ==188 [2025-01-03 03:49:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:49:06 - End Time 2025-01-03 03:49:06 [2025-01-03 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162905', 'tblTempUsageDetail_20' ) start [2025-01-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162905', 'tblTempUsageDetail_20' ) end [2025-01-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162905', 'tblTempVendorCDR_20' ) start [2025-01-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162905', 'tblTempVendorCDR_20' ) end [2025-01-03 03:49:19] Production.INFO: ProcessCDR(1,14162905,1,1,2) [2025-01-03 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162905', 'tblTempUsageDetail_20' ) start [2025-01-03 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162905', 'tblTempUsageDetail_20' ) end [2025-01-03 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:49:22] Production.INFO: ==13757== Releasing lock... [2025-01-03 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:50:05 [end_date_ymd] => 2025-01-03 03:50:05 [RateCDR] => 1 ) [2025-01-03 03: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-01-03 00:50:05' and `end` < '2025-01-03 03: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-01-03 03:50:18] Production.INFO: count ==184 [2025-01-03 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:50:05 - End Time 2025-01-03 03:50:05 [2025-01-03 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162911', 'tblTempUsageDetail_20' ) start [2025-01-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162911', 'tblTempUsageDetail_20' ) end [2025-01-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162911', 'tblTempVendorCDR_20' ) start [2025-01-03 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162911', 'tblTempVendorCDR_20' ) end [2025-01-03 03:50:18] Production.INFO: ProcessCDR(1,14162911,1,1,2) [2025-01-03 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162911', 'tblTempUsageDetail_20' ) start [2025-01-03 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162911', 'tblTempUsageDetail_20' ) end [2025-01-03 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:50:21] Production.INFO: ==13867== Releasing lock... [2025-01-03 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:51:04 [end_date_ymd] => 2025-01-03 03:51:04 [RateCDR] => 1 ) [2025-01-03 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:51:04' and `end` < '2025-01-03 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:51:17] Production.INFO: count ==176 [2025-01-03 03:51:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:51:04 - End Time 2025-01-03 03:51:04 [2025-01-03 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162916', 'tblTempUsageDetail_20' ) start [2025-01-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162916', 'tblTempUsageDetail_20' ) end [2025-01-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162916', 'tblTempVendorCDR_20' ) start [2025-01-03 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162916', 'tblTempVendorCDR_20' ) end [2025-01-03 03:51:17] Production.INFO: ProcessCDR(1,14162916,1,1,2) [2025-01-03 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162916', 'tblTempUsageDetail_20' ) start [2025-01-03 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162916', 'tblTempUsageDetail_20' ) end [2025-01-03 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:51:20] Production.INFO: ==13940== Releasing lock... [2025-01-03 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:52:05 [end_date_ymd] => 2025-01-03 03:52:05 [RateCDR] => 1 ) [2025-01-03 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:52:05' and `end` < '2025-01-03 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:52:18] Production.INFO: count ==175 [2025-01-03 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:52:05 - End Time 2025-01-03 03:52:05 [2025-01-03 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162921', 'tblTempUsageDetail_20' ) start [2025-01-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162921', 'tblTempUsageDetail_20' ) end [2025-01-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162921', 'tblTempVendorCDR_20' ) start [2025-01-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162921', 'tblTempVendorCDR_20' ) end [2025-01-03 03:52:18] Production.INFO: ProcessCDR(1,14162921,1,1,2) [2025-01-03 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162921', 'tblTempUsageDetail_20' ) start [2025-01-03 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162921', 'tblTempUsageDetail_20' ) end [2025-01-03 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:52:21] Production.INFO: ==14012== Releasing lock... [2025-01-03 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:53:05 [end_date_ymd] => 2025-01-03 03:53:05 [RateCDR] => 1 ) [2025-01-03 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:53:05' and `end` < '2025-01-03 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:53:17] Production.INFO: count ==175 [2025-01-03 03:53:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:53:05 - End Time 2025-01-03 03:53:05 [2025-01-03 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162926', 'tblTempUsageDetail_20' ) start [2025-01-03 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162926', 'tblTempUsageDetail_20' ) end [2025-01-03 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162926', 'tblTempVendorCDR_20' ) start [2025-01-03 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162926', 'tblTempVendorCDR_20' ) end [2025-01-03 03:53:17] Production.INFO: ProcessCDR(1,14162926,1,1,2) [2025-01-03 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162926', 'tblTempUsageDetail_20' ) start [2025-01-03 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162926', 'tblTempUsageDetail_20' ) end [2025-01-03 03:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:53:20] Production.INFO: ==14082== Releasing lock... [2025-01-03 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:54:04 [end_date_ymd] => 2025-01-03 03:54:04 [RateCDR] => 1 ) [2025-01-03 03:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:54:04' and `end` < '2025-01-03 03:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:54:18] Production.INFO: count ==175 [2025-01-03 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:54:04 - End Time 2025-01-03 03:54:04 [2025-01-03 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162931', 'tblTempUsageDetail_20' ) start [2025-01-03 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162931', 'tblTempUsageDetail_20' ) end [2025-01-03 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162931', 'tblTempVendorCDR_20' ) start [2025-01-03 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162931', 'tblTempVendorCDR_20' ) end [2025-01-03 03:54:18] Production.INFO: ProcessCDR(1,14162931,1,1,2) [2025-01-03 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162931', 'tblTempUsageDetail_20' ) start [2025-01-03 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162931', 'tblTempUsageDetail_20' ) end [2025-01-03 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:54:21] Production.INFO: ==14154== Releasing lock... [2025-01-03 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:55:05 [end_date_ymd] => 2025-01-03 03:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:55:05' and `end` < '2025-01-03 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-01-03 03:55:17] Production.INFO: count ==175 [2025-01-03 03:55:17] Production.ERROR: pbx CDR StartTime 2025-01-03 00:55:05 - End Time 2025-01-03 03:55:05 [2025-01-03 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162936', 'tblTempUsageDetail_20' ) start [2025-01-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162936', 'tblTempUsageDetail_20' ) end [2025-01-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162936', 'tblTempVendorCDR_20' ) start [2025-01-03 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162936', 'tblTempVendorCDR_20' ) end [2025-01-03 03:55:17] Production.INFO: ProcessCDR(1,14162936,1,1,2) [2025-01-03 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162936', 'tblTempUsageDetail_20' ) start [2025-01-03 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162936', 'tblTempUsageDetail_20' ) end [2025-01-03 03:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:55:20] Production.INFO: ==14225== Releasing lock... [2025-01-03 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:56:06 [end_date_ymd] => 2025-01-03 03:56:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 00:56:06' and `end` < '2025-01-03 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-01-03 03:56:18] Production.INFO: count ==175 [2025-01-03 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:56:06 - End Time 2025-01-03 03:56:06 [2025-01-03 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162941', 'tblTempUsageDetail_20' ) start [2025-01-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162941', 'tblTempUsageDetail_20' ) end [2025-01-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162941', 'tblTempVendorCDR_20' ) start [2025-01-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162941', 'tblTempVendorCDR_20' ) end [2025-01-03 03:56:18] Production.INFO: ProcessCDR(1,14162941,1,1,2) [2025-01-03 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162941', 'tblTempUsageDetail_20' ) start [2025-01-03 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162941', 'tblTempUsageDetail_20' ) end [2025-01-03 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:56:21] Production.INFO: ==14295== Releasing lock... [2025-01-03 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:57:04 [end_date_ymd] => 2025-01-03 03:57:04 [RateCDR] => 1 ) [2025-01-03 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:57:04' and `end` < '2025-01-03 03:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:57:18] Production.INFO: count ==175 [2025-01-03 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:57:04 - End Time 2025-01-03 03:57:04 [2025-01-03 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162946', 'tblTempUsageDetail_20' ) start [2025-01-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162946', 'tblTempUsageDetail_20' ) end [2025-01-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162946', 'tblTempVendorCDR_20' ) start [2025-01-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162946', 'tblTempVendorCDR_20' ) end [2025-01-03 03:57:18] Production.INFO: ProcessCDR(1,14162946,1,1,2) [2025-01-03 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162946', 'tblTempUsageDetail_20' ) start [2025-01-03 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162946', 'tblTempUsageDetail_20' ) end [2025-01-03 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:57:21] Production.INFO: ==14366== Releasing lock... [2025-01-03 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:58:05 [end_date_ymd] => 2025-01-03 03:58:05 [RateCDR] => 1 ) [2025-01-03 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:58:05' and `end` < '2025-01-03 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:58:18] Production.INFO: count ==175 [2025-01-03 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 00:58:05 - End Time 2025-01-03 03:58:05 [2025-01-03 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162951', 'tblTempUsageDetail_20' ) start [2025-01-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162951', 'tblTempUsageDetail_20' ) end [2025-01-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162951', 'tblTempVendorCDR_20' ) start [2025-01-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162951', 'tblTempVendorCDR_20' ) end [2025-01-03 03:58:18] Production.INFO: ProcessCDR(1,14162951,1,1,2) [2025-01-03 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162951', 'tblTempUsageDetail_20' ) start [2025-01-03 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162951', 'tblTempUsageDetail_20' ) end [2025-01-03 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:58:21] Production.INFO: ==14437== Releasing lock... [2025-01-03 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 00:59:06 [end_date_ymd] => 2025-01-03 03:59:06 [RateCDR] => 1 ) [2025-01-03 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 00:59:06' and `end` < '2025-01-03 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 03:59:19] Production.INFO: count ==175 [2025-01-03 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-03 00:59:06 - End Time 2025-01-03 03:59:06 [2025-01-03 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162956', 'tblTempUsageDetail_20' ) start [2025-01-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162956', 'tblTempUsageDetail_20' ) end [2025-01-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162956', 'tblTempVendorCDR_20' ) start [2025-01-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162956', 'tblTempVendorCDR_20' ) end [2025-01-03 03:59:19] Production.INFO: ProcessCDR(1,14162956,1,1,2) [2025-01-03 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162956', 'tblTempUsageDetail_20' ) start [2025-01-03 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162956', 'tblTempUsageDetail_20' ) end [2025-01-03 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 03:59:22] Production.INFO: ==14512== Releasing lock... [2025-01-03 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 03:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:00:06 [end_date_ymd] => 2025-01-03 04:00:06 [RateCDR] => 1 ) [2025-01-03 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:00:06' and `end` < '2025-01-03 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:00:18] Production.INFO: count ==165 [2025-01-03 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:00:06 - End Time 2025-01-03 04:00:06 [2025-01-03 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162963', 'tblTempUsageDetail_20' ) start [2025-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162963', 'tblTempUsageDetail_20' ) end [2025-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162963', 'tblTempVendorCDR_20' ) start [2025-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162963', 'tblTempVendorCDR_20' ) end [2025-01-03 04:00:18] Production.INFO: ProcessCDR(1,14162963,1,1,2) [2025-01-03 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162963', 'tblTempUsageDetail_20' ) start [2025-01-03 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162963', 'tblTempUsageDetail_20' ) end [2025-01-03 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:00:22] Production.INFO: ==14587== Releasing lock... [2025-01-03 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:01:05 [end_date_ymd] => 2025-01-03 04:01:05 [RateCDR] => 1 ) [2025-01-03 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:01:05' and `end` < '2025-01-03 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:01:18] Production.INFO: count ==147 [2025-01-03 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:01:05 - End Time 2025-01-03 04:01:05 [2025-01-03 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162968', 'tblTempUsageDetail_20' ) start [2025-01-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162968', 'tblTempUsageDetail_20' ) end [2025-01-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162968', 'tblTempVendorCDR_20' ) start [2025-01-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162968', 'tblTempVendorCDR_20' ) end [2025-01-03 04:01:18] Production.INFO: ProcessCDR(1,14162968,1,1,2) [2025-01-03 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162968', 'tblTempUsageDetail_20' ) start [2025-01-03 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162968', 'tblTempUsageDetail_20' ) end [2025-01-03 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:01:21] Production.INFO: ==14674== Releasing lock... [2025-01-03 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:02:05 [end_date_ymd] => 2025-01-03 04:02:05 [RateCDR] => 1 ) [2025-01-03 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:02:05' and `end` < '2025-01-03 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:02:18] Production.INFO: count ==148 [2025-01-03 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:02:05 - End Time 2025-01-03 04:02:05 [2025-01-03 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162973', 'tblTempUsageDetail_20' ) start [2025-01-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162973', 'tblTempUsageDetail_20' ) end [2025-01-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162973', 'tblTempVendorCDR_20' ) start [2025-01-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162973', 'tblTempVendorCDR_20' ) end [2025-01-03 04:02:18] Production.INFO: ProcessCDR(1,14162973,1,1,2) [2025-01-03 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162973', 'tblTempUsageDetail_20' ) start [2025-01-03 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162973', 'tblTempUsageDetail_20' ) end [2025-01-03 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:02:22] Production.INFO: ==14743== Releasing lock... [2025-01-03 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:03:04 [end_date_ymd] => 2025-01-03 04:03:04 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:03:04' and `end` < '2025-01-03 04: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-01-03 04:03:18] Production.INFO: count ==149 [2025-01-03 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:03:04 - End Time 2025-01-03 04:03:04 [2025-01-03 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162978', 'tblTempUsageDetail_20' ) start [2025-01-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162978', 'tblTempUsageDetail_20' ) end [2025-01-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162978', 'tblTempVendorCDR_20' ) start [2025-01-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162978', 'tblTempVendorCDR_20' ) end [2025-01-03 04:03:18] Production.INFO: ProcessCDR(1,14162978,1,1,2) [2025-01-03 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162978', 'tblTempUsageDetail_20' ) start [2025-01-03 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162978', 'tblTempUsageDetail_20' ) end [2025-01-03 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:03:23] Production.INFO: ==14816== Releasing lock... [2025-01-03 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:03:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:04:06 [end_date_ymd] => 2025-01-03 04:04:06 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:04:06' and `end` < '2025-01-03 04: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-01-03 04:04:18] Production.INFO: count ==148 [2025-01-03 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:04:06 - End Time 2025-01-03 04:04:06 [2025-01-03 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162983', 'tblTempUsageDetail_20' ) start [2025-01-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162983', 'tblTempUsageDetail_20' ) end [2025-01-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162983', 'tblTempVendorCDR_20' ) start [2025-01-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162983', 'tblTempVendorCDR_20' ) end [2025-01-03 04:04:18] Production.INFO: ProcessCDR(1,14162983,1,1,2) [2025-01-03 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162983', 'tblTempUsageDetail_20' ) start [2025-01-03 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162983', 'tblTempUsageDetail_20' ) end [2025-01-03 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:04:22] Production.INFO: ==14889== Releasing lock... [2025-01-03 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:05:05 [end_date_ymd] => 2025-01-03 04:05:05 [RateCDR] => 1 ) [2025-01-03 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:05:05' and `end` < '2025-01-03 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:05:18] Production.INFO: count ==148 [2025-01-03 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:05:05 - End Time 2025-01-03 04:05:05 [2025-01-03 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162988', 'tblTempUsageDetail_20' ) start [2025-01-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162988', 'tblTempUsageDetail_20' ) end [2025-01-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162988', 'tblTempVendorCDR_20' ) start [2025-01-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162988', 'tblTempVendorCDR_20' ) end [2025-01-03 04:05:18] Production.INFO: ProcessCDR(1,14162988,1,1,2) [2025-01-03 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162988', 'tblTempUsageDetail_20' ) start [2025-01-03 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162988', 'tblTempUsageDetail_20' ) end [2025-01-03 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:05:22] Production.INFO: ==14963== Releasing lock... [2025-01-03 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:06:05 [end_date_ymd] => 2025-01-03 04:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:06:05' and `end` < '2025-01-03 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-01-03 04:06:19] Production.INFO: count ==146 [2025-01-03 04:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:06:05 - End Time 2025-01-03 04:06:05 [2025-01-03 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162993', 'tblTempUsageDetail_20' ) start [2025-01-03 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162993', 'tblTempUsageDetail_20' ) end [2025-01-03 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162993', 'tblTempVendorCDR_20' ) start [2025-01-03 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162993', 'tblTempVendorCDR_20' ) end [2025-01-03 04:06:19] Production.INFO: ProcessCDR(1,14162993,1,1,2) [2025-01-03 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162993', 'tblTempUsageDetail_20' ) start [2025-01-03 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162993', 'tblTempUsageDetail_20' ) end [2025-01-03 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:06:23] Production.INFO: ==15074== Releasing lock... [2025-01-03 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:06:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:07:05 [end_date_ymd] => 2025-01-03 04:07:05 [RateCDR] => 1 ) [2025-01-03 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:07:05' and `end` < '2025-01-03 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:07:19] Production.INFO: count ==146 [2025-01-03 04:07:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:07:05 - End Time 2025-01-03 04:07:05 [2025-01-03 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162998', 'tblTempUsageDetail_20' ) start [2025-01-03 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14162998', 'tblTempUsageDetail_20' ) end [2025-01-03 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162998', 'tblTempVendorCDR_20' ) start [2025-01-03 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14162998', 'tblTempVendorCDR_20' ) end [2025-01-03 04:07:19] Production.INFO: ProcessCDR(1,14162998,1,1,2) [2025-01-03 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14162998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14162998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14162998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14162998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162998', 'tblTempUsageDetail_20' ) start [2025-01-03 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14162998', 'tblTempUsageDetail_20' ) end [2025-01-03 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:07:22] Production.INFO: ==15149== Releasing lock... [2025-01-03 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:08:05 [end_date_ymd] => 2025-01-03 04:08:05 [RateCDR] => 1 ) [2025-01-03 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:08:05' and `end` < '2025-01-03 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:08:17] Production.INFO: count ==144 [2025-01-03 04:08:17] Production.ERROR: pbx CDR StartTime 2025-01-03 01:08:05 - End Time 2025-01-03 04:08:05 [2025-01-03 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163003', 'tblTempUsageDetail_20' ) start [2025-01-03 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163003', 'tblTempUsageDetail_20' ) end [2025-01-03 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163003', 'tblTempVendorCDR_20' ) start [2025-01-03 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163003', 'tblTempVendorCDR_20' ) end [2025-01-03 04:08:17] Production.INFO: ProcessCDR(1,14163003,1,1,2) [2025-01-03 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163003', 'tblTempUsageDetail_20' ) start [2025-01-03 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163003', 'tblTempUsageDetail_20' ) end [2025-01-03 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:08:21] Production.INFO: ==15219== Releasing lock... [2025-01-03 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:09:05 [end_date_ymd] => 2025-01-03 04:09:05 [RateCDR] => 1 ) [2025-01-03 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:09:05' and `end` < '2025-01-03 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:09:18] Production.INFO: count ==144 [2025-01-03 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:09:05 - End Time 2025-01-03 04:09:05 [2025-01-03 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163008', 'tblTempUsageDetail_20' ) start [2025-01-03 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163008', 'tblTempUsageDetail_20' ) end [2025-01-03 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163008', 'tblTempVendorCDR_20' ) start [2025-01-03 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163008', 'tblTempVendorCDR_20' ) end [2025-01-03 04:09:18] Production.INFO: ProcessCDR(1,14163008,1,1,2) [2025-01-03 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163008', 'tblTempUsageDetail_20' ) start [2025-01-03 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163008', 'tblTempUsageDetail_20' ) end [2025-01-03 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:09:21] Production.INFO: ==15290== Releasing lock... [2025-01-03 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:10:05 [end_date_ymd] => 2025-01-03 04:10:05 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:10:05' and `end` < '2025-01-03 04: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-01-03 04:10:18] Production.INFO: count ==138 [2025-01-03 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:10:05 - End Time 2025-01-03 04:10:05 [2025-01-03 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163014', 'tblTempUsageDetail_20' ) start [2025-01-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163014', 'tblTempUsageDetail_20' ) end [2025-01-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163014', 'tblTempVendorCDR_20' ) start [2025-01-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163014', 'tblTempVendorCDR_20' ) end [2025-01-03 04:10:18] Production.INFO: ProcessCDR(1,14163014,1,1,2) [2025-01-03 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163014', 'tblTempUsageDetail_20' ) start [2025-01-03 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163014', 'tblTempUsageDetail_20' ) end [2025-01-03 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:10:21] Production.INFO: ==15361== Releasing lock... [2025-01-03 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:11:05 [end_date_ymd] => 2025-01-03 04:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:11:05' and `end` < '2025-01-03 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-01-03 04:11:18] Production.INFO: count ==124 [2025-01-03 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:11:05 - End Time 2025-01-03 04:11:05 [2025-01-03 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163019', 'tblTempUsageDetail_20' ) start [2025-01-03 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163019', 'tblTempUsageDetail_20' ) end [2025-01-03 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163019', 'tblTempVendorCDR_20' ) start [2025-01-03 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163019', 'tblTempVendorCDR_20' ) end [2025-01-03 04:11:18] Production.INFO: ProcessCDR(1,14163019,1,1,2) [2025-01-03 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163019', 'tblTempUsageDetail_20' ) start [2025-01-03 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163019', 'tblTempUsageDetail_20' ) end [2025-01-03 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:11:21] Production.INFO: ==15436== Releasing lock... [2025-01-03 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:12:05 [end_date_ymd] => 2025-01-03 04:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:12:05' and `end` < '2025-01-03 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-01-03 04:12:18] Production.INFO: count ==124 [2025-01-03 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:12:05 - End Time 2025-01-03 04:12:05 [2025-01-03 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163024', 'tblTempUsageDetail_20' ) start [2025-01-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163024', 'tblTempUsageDetail_20' ) end [2025-01-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163024', 'tblTempVendorCDR_20' ) start [2025-01-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163024', 'tblTempVendorCDR_20' ) end [2025-01-03 04:12:18] Production.INFO: ProcessCDR(1,14163024,1,1,2) [2025-01-03 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163024', 'tblTempUsageDetail_20' ) start [2025-01-03 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163024', 'tblTempUsageDetail_20' ) end [2025-01-03 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:12:21] Production.INFO: ==15505== Releasing lock... [2025-01-03 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:13:05 [end_date_ymd] => 2025-01-03 04:13:05 [RateCDR] => 1 ) [2025-01-03 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:13:05' and `end` < '2025-01-03 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:13:18] Production.INFO: count ==123 [2025-01-03 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:13:05 - End Time 2025-01-03 04:13:05 [2025-01-03 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163029', 'tblTempUsageDetail_20' ) start [2025-01-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163029', 'tblTempUsageDetail_20' ) end [2025-01-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163029', 'tblTempVendorCDR_20' ) start [2025-01-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163029', 'tblTempVendorCDR_20' ) end [2025-01-03 04:13:18] Production.INFO: ProcessCDR(1,14163029,1,1,2) [2025-01-03 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163029', 'tblTempUsageDetail_20' ) start [2025-01-03 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163029', 'tblTempUsageDetail_20' ) end [2025-01-03 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:13:21] Production.INFO: ==15577== Releasing lock... [2025-01-03 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:14:05 [end_date_ymd] => 2025-01-03 04:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:14:05' and `end` < '2025-01-03 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-01-03 04:14:18] Production.INFO: count ==122 [2025-01-03 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:14:05 - End Time 2025-01-03 04:14:05 [2025-01-03 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163034', 'tblTempUsageDetail_20' ) start [2025-01-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163034', 'tblTempUsageDetail_20' ) end [2025-01-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163034', 'tblTempVendorCDR_20' ) start [2025-01-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163034', 'tblTempVendorCDR_20' ) end [2025-01-03 04:14:18] Production.INFO: ProcessCDR(1,14163034,1,1,2) [2025-01-03 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163034', 'tblTempUsageDetail_20' ) start [2025-01-03 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163034', 'tblTempUsageDetail_20' ) end [2025-01-03 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:14:21] Production.INFO: ==15647== Releasing lock... [2025-01-03 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:15:05 [end_date_ymd] => 2025-01-03 04:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:15:05' and `end` < '2025-01-03 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-01-03 04:15:18] Production.INFO: count ==121 [2025-01-03 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:15:05 - End Time 2025-01-03 04:15:05 [2025-01-03 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163039', 'tblTempUsageDetail_20' ) start [2025-01-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163039', 'tblTempUsageDetail_20' ) end [2025-01-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163039', 'tblTempVendorCDR_20' ) start [2025-01-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163039', 'tblTempVendorCDR_20' ) end [2025-01-03 04:15:18] Production.INFO: ProcessCDR(1,14163039,1,1,2) [2025-01-03 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163039', 'tblTempUsageDetail_20' ) start [2025-01-03 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163039', 'tblTempUsageDetail_20' ) end [2025-01-03 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:15:21] Production.INFO: ==15721== Releasing lock... [2025-01-03 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:16:05 [end_date_ymd] => 2025-01-03 04:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:16:05' and `end` < '2025-01-03 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-01-03 04:16:17] Production.INFO: count ==121 [2025-01-03 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-03 01:16:05 - End Time 2025-01-03 04:16:05 [2025-01-03 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163044', 'tblTempUsageDetail_20' ) start [2025-01-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163044', 'tblTempUsageDetail_20' ) end [2025-01-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163044', 'tblTempVendorCDR_20' ) start [2025-01-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163044', 'tblTempVendorCDR_20' ) end [2025-01-03 04:16:17] Production.INFO: ProcessCDR(1,14163044,1,1,2) [2025-01-03 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163044', 'tblTempUsageDetail_20' ) start [2025-01-03 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163044', 'tblTempUsageDetail_20' ) end [2025-01-03 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:16:21] Production.INFO: ==15795== Releasing lock... [2025-01-03 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:17:05 [end_date_ymd] => 2025-01-03 04:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:17:05' and `end` < '2025-01-03 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-01-03 04:17:19] Production.INFO: count ==121 [2025-01-03 04:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:17:05 - End Time 2025-01-03 04:17:05 [2025-01-03 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163049', 'tblTempUsageDetail_20' ) start [2025-01-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163049', 'tblTempUsageDetail_20' ) end [2025-01-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163049', 'tblTempVendorCDR_20' ) start [2025-01-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163049', 'tblTempVendorCDR_20' ) end [2025-01-03 04:17:19] Production.INFO: ProcessCDR(1,14163049,1,1,2) [2025-01-03 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163049', 'tblTempUsageDetail_20' ) start [2025-01-03 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163049', 'tblTempUsageDetail_20' ) end [2025-01-03 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:17:22] Production.INFO: ==15876== Releasing lock... [2025-01-03 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:18:05 [end_date_ymd] => 2025-01-03 04:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:18:05' and `end` < '2025-01-03 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-01-03 04:18:18] Production.INFO: count ==121 [2025-01-03 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:18:05 - End Time 2025-01-03 04:18:05 [2025-01-03 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163054', 'tblTempUsageDetail_20' ) start [2025-01-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163054', 'tblTempUsageDetail_20' ) end [2025-01-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163054', 'tblTempVendorCDR_20' ) start [2025-01-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163054', 'tblTempVendorCDR_20' ) end [2025-01-03 04:18:18] Production.INFO: ProcessCDR(1,14163054,1,1,2) [2025-01-03 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163054', 'tblTempUsageDetail_20' ) start [2025-01-03 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163054', 'tblTempUsageDetail_20' ) end [2025-01-03 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:18:21] Production.INFO: ==15950== Releasing lock... [2025-01-03 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:19:05 [end_date_ymd] => 2025-01-03 04:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:19:05' and `end` < '2025-01-03 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-01-03 04:19:17] Production.INFO: count ==121 [2025-01-03 04:19:17] Production.ERROR: pbx CDR StartTime 2025-01-03 01:19:05 - End Time 2025-01-03 04:19:05 [2025-01-03 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163059', 'tblTempUsageDetail_20' ) start [2025-01-03 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163059', 'tblTempUsageDetail_20' ) end [2025-01-03 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163059', 'tblTempVendorCDR_20' ) start [2025-01-03 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163059', 'tblTempVendorCDR_20' ) end [2025-01-03 04:19:17] Production.INFO: ProcessCDR(1,14163059,1,1,2) [2025-01-03 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163059', 'tblTempUsageDetail_20' ) start [2025-01-03 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163059', 'tblTempUsageDetail_20' ) end [2025-01-03 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:19:20] Production.INFO: ==16030== Releasing lock... [2025-01-03 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:20:06 [end_date_ymd] => 2025-01-03 04:20:06 [RateCDR] => 1 ) [2025-01-03 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:20:06' and `end` < '2025-01-03 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:20:19] Production.INFO: count ==113 [2025-01-03 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:20:06 - End Time 2025-01-03 04:20:06 [2025-01-03 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163065', 'tblTempUsageDetail_20' ) start [2025-01-03 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163065', 'tblTempUsageDetail_20' ) end [2025-01-03 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163065', 'tblTempVendorCDR_20' ) start [2025-01-03 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163065', 'tblTempVendorCDR_20' ) end [2025-01-03 04:20:19] Production.INFO: ProcessCDR(1,14163065,1,1,2) [2025-01-03 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163065', 'tblTempUsageDetail_20' ) start [2025-01-03 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163065', 'tblTempUsageDetail_20' ) end [2025-01-03 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:20:22] Production.INFO: ==16110== Releasing lock... [2025-01-03 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:21:05 [end_date_ymd] => 2025-01-03 04:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:21:05' and `end` < '2025-01-03 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-01-03 04:21:18] Production.INFO: count ==105 [2025-01-03 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:21:05 - End Time 2025-01-03 04:21:05 [2025-01-03 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163070', 'tblTempUsageDetail_20' ) start [2025-01-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163070', 'tblTempUsageDetail_20' ) end [2025-01-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163070', 'tblTempVendorCDR_20' ) start [2025-01-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163070', 'tblTempVendorCDR_20' ) end [2025-01-03 04:21:18] Production.INFO: ProcessCDR(1,14163070,1,1,2) [2025-01-03 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163070', 'tblTempUsageDetail_20' ) start [2025-01-03 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163070', 'tblTempUsageDetail_20' ) end [2025-01-03 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:21:21] Production.INFO: ==16192== Releasing lock... [2025-01-03 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:22:05 [end_date_ymd] => 2025-01-03 04:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:22:05' and `end` < '2025-01-03 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-01-03 04:22:18] Production.INFO: count ==105 [2025-01-03 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:22:05 - End Time 2025-01-03 04:22:05 [2025-01-03 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163075', 'tblTempUsageDetail_20' ) start [2025-01-03 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163075', 'tblTempUsageDetail_20' ) end [2025-01-03 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163075', 'tblTempVendorCDR_20' ) start [2025-01-03 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163075', 'tblTempVendorCDR_20' ) end [2025-01-03 04:22:18] Production.INFO: ProcessCDR(1,14163075,1,1,2) [2025-01-03 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163075', 'tblTempUsageDetail_20' ) start [2025-01-03 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163075', 'tblTempUsageDetail_20' ) end [2025-01-03 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:22:21] Production.INFO: ==16312== Releasing lock... [2025-01-03 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:23:05 [end_date_ymd] => 2025-01-03 04:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:23:05' and `end` < '2025-01-03 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-01-03 04:23:18] Production.INFO: count ==104 [2025-01-03 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:23:05 - End Time 2025-01-03 04:23:05 [2025-01-03 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163080', 'tblTempUsageDetail_20' ) start [2025-01-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163080', 'tblTempUsageDetail_20' ) end [2025-01-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163080', 'tblTempVendorCDR_20' ) start [2025-01-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163080', 'tblTempVendorCDR_20' ) end [2025-01-03 04:23:18] Production.INFO: ProcessCDR(1,14163080,1,1,2) [2025-01-03 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163080', 'tblTempUsageDetail_20' ) start [2025-01-03 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163080', 'tblTempUsageDetail_20' ) end [2025-01-03 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:23:22] Production.INFO: ==16388== Releasing lock... [2025-01-03 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:24:05 [end_date_ymd] => 2025-01-03 04:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:24:05' and `end` < '2025-01-03 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-01-03 04:24:19] Production.INFO: count ==104 [2025-01-03 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:24:05 - End Time 2025-01-03 04:24:05 [2025-01-03 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163085', 'tblTempUsageDetail_20' ) start [2025-01-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163085', 'tblTempUsageDetail_20' ) end [2025-01-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163085', 'tblTempVendorCDR_20' ) start [2025-01-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163085', 'tblTempVendorCDR_20' ) end [2025-01-03 04:24:19] Production.INFO: ProcessCDR(1,14163085,1,1,2) [2025-01-03 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163085', 'tblTempUsageDetail_20' ) start [2025-01-03 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163085', 'tblTempUsageDetail_20' ) end [2025-01-03 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:24:22] Production.INFO: ==16465== Releasing lock... [2025-01-03 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:25:05 [end_date_ymd] => 2025-01-03 04:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:25:05' and `end` < '2025-01-03 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-01-03 04:25:18] Production.INFO: count ==104 [2025-01-03 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:25:05 - End Time 2025-01-03 04:25:05 [2025-01-03 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163090', 'tblTempUsageDetail_20' ) start [2025-01-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163090', 'tblTempUsageDetail_20' ) end [2025-01-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163090', 'tblTempVendorCDR_20' ) start [2025-01-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163090', 'tblTempVendorCDR_20' ) end [2025-01-03 04:25:18] Production.INFO: ProcessCDR(1,14163090,1,1,2) [2025-01-03 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163090', 'tblTempUsageDetail_20' ) start [2025-01-03 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163090', 'tblTempUsageDetail_20' ) end [2025-01-03 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:25:21] Production.INFO: ==16545== Releasing lock... [2025-01-03 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:26:05 [end_date_ymd] => 2025-01-03 04:26:05 [RateCDR] => 1 ) [2025-01-03 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:26:05' and `end` < '2025-01-03 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:26:19] Production.INFO: count ==104 [2025-01-03 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:26:05 - End Time 2025-01-03 04:26:05 [2025-01-03 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163095', 'tblTempUsageDetail_20' ) start [2025-01-03 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163095', 'tblTempUsageDetail_20' ) end [2025-01-03 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163095', 'tblTempVendorCDR_20' ) start [2025-01-03 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163095', 'tblTempVendorCDR_20' ) end [2025-01-03 04:26:19] Production.INFO: ProcessCDR(1,14163095,1,1,2) [2025-01-03 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163095', 'tblTempUsageDetail_20' ) start [2025-01-03 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163095', 'tblTempUsageDetail_20' ) end [2025-01-03 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:26:22] Production.INFO: ==16627== Releasing lock... [2025-01-03 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:27:04 [end_date_ymd] => 2025-01-03 04:27:04 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:27:04' and `end` < '2025-01-03 04: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-01-03 04:27:18] Production.INFO: count ==104 [2025-01-03 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:27:04 - End Time 2025-01-03 04:27:04 [2025-01-03 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163100', 'tblTempUsageDetail_20' ) start [2025-01-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163100', 'tblTempUsageDetail_20' ) end [2025-01-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163100', 'tblTempVendorCDR_20' ) start [2025-01-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163100', 'tblTempVendorCDR_20' ) end [2025-01-03 04:27:18] Production.INFO: ProcessCDR(1,14163100,1,1,2) [2025-01-03 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163100', 'tblTempUsageDetail_20' ) start [2025-01-03 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163100', 'tblTempUsageDetail_20' ) end [2025-01-03 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:27:21] Production.INFO: ==16705== Releasing lock... [2025-01-03 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:28:05 [end_date_ymd] => 2025-01-03 04:28:05 [RateCDR] => 1 ) [2025-01-03 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:28:05' and `end` < '2025-01-03 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:28:18] Production.INFO: count ==104 [2025-01-03 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:28:05 - End Time 2025-01-03 04:28:05 [2025-01-03 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163105', 'tblTempUsageDetail_20' ) start [2025-01-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163105', 'tblTempUsageDetail_20' ) end [2025-01-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163105', 'tblTempVendorCDR_20' ) start [2025-01-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163105', 'tblTempVendorCDR_20' ) end [2025-01-03 04:28:18] Production.INFO: ProcessCDR(1,14163105,1,1,2) [2025-01-03 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163105', 'tblTempUsageDetail_20' ) start [2025-01-03 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163105', 'tblTempUsageDetail_20' ) end [2025-01-03 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:28:21] Production.INFO: ==16789== Releasing lock... [2025-01-03 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:29:06 [end_date_ymd] => 2025-01-03 04:29:06 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:29:06' and `end` < '2025-01-03 04: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-01-03 04:29:19] Production.INFO: count ==104 [2025-01-03 04:29:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:29:06 - End Time 2025-01-03 04:29:06 [2025-01-03 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163110', 'tblTempUsageDetail_20' ) start [2025-01-03 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163110', 'tblTempUsageDetail_20' ) end [2025-01-03 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163110', 'tblTempVendorCDR_20' ) start [2025-01-03 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163110', 'tblTempVendorCDR_20' ) end [2025-01-03 04:29:19] Production.INFO: ProcessCDR(1,14163110,1,1,2) [2025-01-03 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163110', 'tblTempUsageDetail_20' ) start [2025-01-03 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163110', 'tblTempUsageDetail_20' ) end [2025-01-03 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:29:22] Production.INFO: ==16869== Releasing lock... [2025-01-03 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:30:05 [end_date_ymd] => 2025-01-03 04:30:05 [RateCDR] => 1 ) [2025-01-03 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:30:05' and `end` < '2025-01-03 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:30:18] Production.INFO: count ==102 [2025-01-03 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:30:05 - End Time 2025-01-03 04:30:05 [2025-01-03 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163117', 'tblTempUsageDetail_20' ) start [2025-01-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163117', 'tblTempUsageDetail_20' ) end [2025-01-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163117', 'tblTempVendorCDR_20' ) start [2025-01-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163117', 'tblTempVendorCDR_20' ) end [2025-01-03 04:30:18] Production.INFO: ProcessCDR(1,14163117,1,1,2) [2025-01-03 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163117', 'tblTempUsageDetail_20' ) start [2025-01-03 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163117', 'tblTempUsageDetail_20' ) end [2025-01-03 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:30:21] Production.INFO: ==16953== Releasing lock... [2025-01-03 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:31:05 [end_date_ymd] => 2025-01-03 04:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:31:05' and `end` < '2025-01-03 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-01-03 04:31:19] Production.INFO: count ==104 [2025-01-03 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:31:05 - End Time 2025-01-03 04:31:05 [2025-01-03 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163122', 'tblTempUsageDetail_20' ) start [2025-01-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163122', 'tblTempUsageDetail_20' ) end [2025-01-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163122', 'tblTempVendorCDR_20' ) start [2025-01-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163122', 'tblTempVendorCDR_20' ) end [2025-01-03 04:31:19] Production.INFO: ProcessCDR(1,14163122,1,1,2) [2025-01-03 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163122', 'tblTempUsageDetail_20' ) start [2025-01-03 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163122', 'tblTempUsageDetail_20' ) end [2025-01-03 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:31:22] Production.INFO: ==17066== Releasing lock... [2025-01-03 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:32:05 [end_date_ymd] => 2025-01-03 04:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:32:05' and `end` < '2025-01-03 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-01-03 04:32:17] Production.INFO: count ==104 [2025-01-03 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:32:05 - End Time 2025-01-03 04:32:05 [2025-01-03 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163127', 'tblTempUsageDetail_20' ) start [2025-01-03 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163127', 'tblTempUsageDetail_20' ) end [2025-01-03 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163127', 'tblTempVendorCDR_20' ) start [2025-01-03 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163127', 'tblTempVendorCDR_20' ) end [2025-01-03 04:32:18] Production.INFO: ProcessCDR(1,14163127,1,1,2) [2025-01-03 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163127', 'tblTempUsageDetail_20' ) start [2025-01-03 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163127', 'tblTempUsageDetail_20' ) end [2025-01-03 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:32:21] Production.INFO: ==17151== Releasing lock... [2025-01-03 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:33:06 [end_date_ymd] => 2025-01-03 04:33:06 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:33:06' and `end` < '2025-01-03 04: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-01-03 04:33:19] Production.INFO: count ==104 [2025-01-03 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:33:06 - End Time 2025-01-03 04:33:06 [2025-01-03 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163132', 'tblTempUsageDetail_20' ) start [2025-01-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163132', 'tblTempUsageDetail_20' ) end [2025-01-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163132', 'tblTempVendorCDR_20' ) start [2025-01-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163132', 'tblTempVendorCDR_20' ) end [2025-01-03 04:33:19] Production.INFO: ProcessCDR(1,14163132,1,1,2) [2025-01-03 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163132', 'tblTempUsageDetail_20' ) start [2025-01-03 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163132', 'tblTempUsageDetail_20' ) end [2025-01-03 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:33:22] Production.INFO: ==17228== Releasing lock... [2025-01-03 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:34:04 [end_date_ymd] => 2025-01-03 04:34:04 [RateCDR] => 1 ) [2025-01-03 04:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:34:04' and `end` < '2025-01-03 04:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:34:18] Production.INFO: count ==104 [2025-01-03 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:34:04 - End Time 2025-01-03 04:34:04 [2025-01-03 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163137', 'tblTempUsageDetail_20' ) start [2025-01-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163137', 'tblTempUsageDetail_20' ) end [2025-01-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163137', 'tblTempVendorCDR_20' ) start [2025-01-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163137', 'tblTempVendorCDR_20' ) end [2025-01-03 04:34:18] Production.INFO: ProcessCDR(1,14163137,1,1,2) [2025-01-03 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163137', 'tblTempUsageDetail_20' ) start [2025-01-03 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163137', 'tblTempUsageDetail_20' ) end [2025-01-03 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:34:21] Production.INFO: ==17307== Releasing lock... [2025-01-03 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:35:05 [end_date_ymd] => 2025-01-03 04:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:35:05' and `end` < '2025-01-03 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-01-03 04:35:18] Production.INFO: count ==104 [2025-01-03 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:35:05 - End Time 2025-01-03 04:35:05 [2025-01-03 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163142', 'tblTempUsageDetail_20' ) start [2025-01-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163142', 'tblTempUsageDetail_20' ) end [2025-01-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163142', 'tblTempVendorCDR_20' ) start [2025-01-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163142', 'tblTempVendorCDR_20' ) end [2025-01-03 04:35:18] Production.INFO: ProcessCDR(1,14163142,1,1,2) [2025-01-03 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163142', 'tblTempUsageDetail_20' ) start [2025-01-03 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163142', 'tblTempUsageDetail_20' ) end [2025-01-03 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:35:21] Production.INFO: ==17388== Releasing lock... [2025-01-03 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:36:05 [end_date_ymd] => 2025-01-03 04:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:36:05' and `end` < '2025-01-03 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-01-03 04:36:19] Production.INFO: count ==104 [2025-01-03 04:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:36:05 - End Time 2025-01-03 04:36:05 [2025-01-03 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163147', 'tblTempUsageDetail_20' ) start [2025-01-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163147', 'tblTempUsageDetail_20' ) end [2025-01-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163147', 'tblTempVendorCDR_20' ) start [2025-01-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163147', 'tblTempVendorCDR_20' ) end [2025-01-03 04:36:19] Production.INFO: ProcessCDR(1,14163147,1,1,2) [2025-01-03 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163147', 'tblTempUsageDetail_20' ) start [2025-01-03 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163147', 'tblTempUsageDetail_20' ) end [2025-01-03 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:36:23] Production.INFO: ==17467== Releasing lock... [2025-01-03 04:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:36:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:37:04 [end_date_ymd] => 2025-01-03 04:37:04 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:37:04' and `end` < '2025-01-03 04: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-01-03 04:37:17] Production.INFO: count ==104 [2025-01-03 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-03 01:37:04 - End Time 2025-01-03 04:37:04 [2025-01-03 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163152', 'tblTempUsageDetail_20' ) start [2025-01-03 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163152', 'tblTempUsageDetail_20' ) end [2025-01-03 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163152', 'tblTempVendorCDR_20' ) start [2025-01-03 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163152', 'tblTempVendorCDR_20' ) end [2025-01-03 04:37:17] Production.INFO: ProcessCDR(1,14163152,1,1,2) [2025-01-03 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163152', 'tblTempUsageDetail_20' ) start [2025-01-03 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163152', 'tblTempUsageDetail_20' ) end [2025-01-03 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:37:21] Production.INFO: ==17585== Releasing lock... [2025-01-03 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:38:05 [end_date_ymd] => 2025-01-03 04:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:38:05' and `end` < '2025-01-03 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-01-03 04:38:18] Production.INFO: count ==104 [2025-01-03 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:38:05 - End Time 2025-01-03 04:38:05 [2025-01-03 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163157', 'tblTempUsageDetail_20' ) start [2025-01-03 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163157', 'tblTempUsageDetail_20' ) end [2025-01-03 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163157', 'tblTempVendorCDR_20' ) start [2025-01-03 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163157', 'tblTempVendorCDR_20' ) end [2025-01-03 04:38:18] Production.INFO: ProcessCDR(1,14163157,1,1,2) [2025-01-03 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163157', 'tblTempUsageDetail_20' ) start [2025-01-03 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163157', 'tblTempUsageDetail_20' ) end [2025-01-03 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:38:21] Production.INFO: ==17661== Releasing lock... [2025-01-03 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:39:05 [end_date_ymd] => 2025-01-03 04:39:05 [RateCDR] => 1 ) [2025-01-03 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:39:05' and `end` < '2025-01-03 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:39:18] Production.INFO: count ==103 [2025-01-03 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:39:05 - End Time 2025-01-03 04:39:05 [2025-01-03 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163162', 'tblTempUsageDetail_20' ) start [2025-01-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163162', 'tblTempUsageDetail_20' ) end [2025-01-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163162', 'tblTempVendorCDR_20' ) start [2025-01-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163162', 'tblTempVendorCDR_20' ) end [2025-01-03 04:39:18] Production.INFO: ProcessCDR(1,14163162,1,1,2) [2025-01-03 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163162', 'tblTempUsageDetail_20' ) start [2025-01-03 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163162', 'tblTempUsageDetail_20' ) end [2025-01-03 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:39:21] Production.INFO: ==17744== Releasing lock... [2025-01-03 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:40:06 [end_date_ymd] => 2025-01-03 04:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:40:06' and `end` < '2025-01-03 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-01-03 04:40:19] Production.INFO: count ==95 [2025-01-03 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:40:06 - End Time 2025-01-03 04:40:06 [2025-01-03 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163168', 'tblTempUsageDetail_20' ) start [2025-01-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163168', 'tblTempUsageDetail_20' ) end [2025-01-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163168', 'tblTempVendorCDR_20' ) start [2025-01-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163168', 'tblTempVendorCDR_20' ) end [2025-01-03 04:40:19] Production.INFO: ProcessCDR(1,14163168,1,1,2) [2025-01-03 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163168', 'tblTempUsageDetail_20' ) start [2025-01-03 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163168', 'tblTempUsageDetail_20' ) end [2025-01-03 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:40:22] Production.INFO: ==17827== Releasing lock... [2025-01-03 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:41:04 [end_date_ymd] => 2025-01-03 04:41:04 [RateCDR] => 1 ) [2025-01-03 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:41:04' and `end` < '2025-01-03 04:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:41:17] Production.INFO: count ==93 [2025-01-03 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-03 01:41:04 - End Time 2025-01-03 04:41:04 [2025-01-03 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163173', 'tblTempUsageDetail_20' ) start [2025-01-03 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163173', 'tblTempUsageDetail_20' ) end [2025-01-03 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163173', 'tblTempVendorCDR_20' ) start [2025-01-03 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163173', 'tblTempVendorCDR_20' ) end [2025-01-03 04:41:17] Production.INFO: ProcessCDR(1,14163173,1,1,2) [2025-01-03 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163173', 'tblTempUsageDetail_20' ) start [2025-01-03 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163173', 'tblTempUsageDetail_20' ) end [2025-01-03 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:41:20] Production.INFO: ==17910== Releasing lock... [2025-01-03 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:42:05 [end_date_ymd] => 2025-01-03 04:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:42:05' and `end` < '2025-01-03 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-01-03 04:42:18] Production.INFO: count ==93 [2025-01-03 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:42:05 - End Time 2025-01-03 04:42:05 [2025-01-03 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163178', 'tblTempUsageDetail_20' ) start [2025-01-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163178', 'tblTempUsageDetail_20' ) end [2025-01-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163178', 'tblTempVendorCDR_20' ) start [2025-01-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163178', 'tblTempVendorCDR_20' ) end [2025-01-03 04:42:18] Production.INFO: ProcessCDR(1,14163178,1,1,2) [2025-01-03 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163178', 'tblTempUsageDetail_20' ) start [2025-01-03 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163178', 'tblTempUsageDetail_20' ) end [2025-01-03 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:42:22] Production.INFO: ==17988== Releasing lock... [2025-01-03 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:43:04 [end_date_ymd] => 2025-01-03 04:43:04 [RateCDR] => 1 ) [2025-01-03 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:43:04' and `end` < '2025-01-03 04:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:43:18] Production.INFO: count ==93 [2025-01-03 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:43:04 - End Time 2025-01-03 04:43:04 [2025-01-03 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163183', 'tblTempUsageDetail_20' ) start [2025-01-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163183', 'tblTempUsageDetail_20' ) end [2025-01-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163183', 'tblTempVendorCDR_20' ) start [2025-01-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163183', 'tblTempVendorCDR_20' ) end [2025-01-03 04:43:18] Production.INFO: ProcessCDR(1,14163183,1,1,2) [2025-01-03 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163183', 'tblTempUsageDetail_20' ) start [2025-01-03 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163183', 'tblTempUsageDetail_20' ) end [2025-01-03 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:43:21] Production.INFO: ==18069== Releasing lock... [2025-01-03 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:44:05 [end_date_ymd] => 2025-01-03 04:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:44:05' and `end` < '2025-01-03 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-01-03 04:44:17] Production.INFO: count ==93 [2025-01-03 04:44:17] Production.ERROR: pbx CDR StartTime 2025-01-03 01:44:05 - End Time 2025-01-03 04:44:05 [2025-01-03 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163188', 'tblTempUsageDetail_20' ) start [2025-01-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163188', 'tblTempUsageDetail_20' ) end [2025-01-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163188', 'tblTempVendorCDR_20' ) start [2025-01-03 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163188', 'tblTempVendorCDR_20' ) end [2025-01-03 04:44:17] Production.INFO: ProcessCDR(1,14163188,1,1,2) [2025-01-03 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163188', 'tblTempUsageDetail_20' ) start [2025-01-03 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163188', 'tblTempUsageDetail_20' ) end [2025-01-03 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:44:20] Production.INFO: ==18148== Releasing lock... [2025-01-03 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:45:05 [end_date_ymd] => 2025-01-03 04:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:45:05' and `end` < '2025-01-03 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-01-03 04:45:18] Production.INFO: count ==93 [2025-01-03 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-03 01:45:05 - End Time 2025-01-03 04:45:05 [2025-01-03 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163193', 'tblTempUsageDetail_20' ) start [2025-01-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163193', 'tblTempUsageDetail_20' ) end [2025-01-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163193', 'tblTempVendorCDR_20' ) start [2025-01-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163193', 'tblTempVendorCDR_20' ) end [2025-01-03 04:45:18] Production.INFO: ProcessCDR(1,14163193,1,1,2) [2025-01-03 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163193', 'tblTempUsageDetail_20' ) start [2025-01-03 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163193', 'tblTempUsageDetail_20' ) end [2025-01-03 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:45:21] Production.INFO: ==18230== Releasing lock... [2025-01-03 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:46:04 [end_date_ymd] => 2025-01-03 04:46:04 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:46:04' and `end` < '2025-01-03 04: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-01-03 04:46:21] Production.INFO: count ==93 [2025-01-03 04:46:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:46:04 - End Time 2025-01-03 04:46:04 [2025-01-03 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163198', 'tblTempUsageDetail_20' ) start [2025-01-03 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163198', 'tblTempUsageDetail_20' ) end [2025-01-03 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163198', 'tblTempVendorCDR_20' ) start [2025-01-03 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163198', 'tblTempVendorCDR_20' ) end [2025-01-03 04:46:21] Production.INFO: ProcessCDR(1,14163198,1,1,2) [2025-01-03 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163198', 'tblTempUsageDetail_20' ) start [2025-01-03 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163198', 'tblTempUsageDetail_20' ) end [2025-01-03 04:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:46:24] Production.INFO: ==18313== Releasing lock... [2025-01-03 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:46:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:47:05 [end_date_ymd] => 2025-01-03 04:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:47:05' and `end` < '2025-01-03 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-01-03 04:47:20] Production.INFO: count ==90 [2025-01-03 04:47:20] Production.ERROR: pbx CDR StartTime 2025-01-03 01:47:05 - End Time 2025-01-03 04:47:05 [2025-01-03 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163203', 'tblTempUsageDetail_20' ) start [2025-01-03 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163203', 'tblTempUsageDetail_20' ) end [2025-01-03 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163203', 'tblTempVendorCDR_20' ) start [2025-01-03 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163203', 'tblTempVendorCDR_20' ) end [2025-01-03 04:47:20] Production.INFO: ProcessCDR(1,14163203,1,1,2) [2025-01-03 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163203', 'tblTempUsageDetail_20' ) start [2025-01-03 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163203', 'tblTempUsageDetail_20' ) end [2025-01-03 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:47:24] Production.INFO: ==18393== Releasing lock... [2025-01-03 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:47:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:48:05 [end_date_ymd] => 2025-01-03 04:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:48:05' and `end` < '2025-01-03 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-01-03 04:48:21] Production.INFO: count ==88 [2025-01-03 04:48:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:48:05 - End Time 2025-01-03 04:48:05 [2025-01-03 04:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163208', 'tblTempUsageDetail_20' ) start [2025-01-03 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163208', 'tblTempUsageDetail_20' ) end [2025-01-03 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163208', 'tblTempVendorCDR_20' ) start [2025-01-03 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163208', 'tblTempVendorCDR_20' ) end [2025-01-03 04:48:21] Production.INFO: ProcessCDR(1,14163208,1,1,2) [2025-01-03 04:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163208', 'tblTempUsageDetail_20' ) start [2025-01-03 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163208', 'tblTempUsageDetail_20' ) end [2025-01-03 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:48:24] Production.INFO: ==18474== Releasing lock... [2025-01-03 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:48:24] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:49:05 [end_date_ymd] => 2025-01-03 04:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:49:05' and `end` < '2025-01-03 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-01-03 04:49:21] Production.INFO: count ==88 [2025-01-03 04:49:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:49:05 - End Time 2025-01-03 04:49:05 [2025-01-03 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163213', 'tblTempUsageDetail_20' ) start [2025-01-03 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163213', 'tblTempUsageDetail_20' ) end [2025-01-03 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163213', 'tblTempVendorCDR_20' ) start [2025-01-03 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163213', 'tblTempVendorCDR_20' ) end [2025-01-03 04:49:21] Production.INFO: ProcessCDR(1,14163213,1,1,2) [2025-01-03 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163213', 'tblTempUsageDetail_20' ) start [2025-01-03 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163213', 'tblTempUsageDetail_20' ) end [2025-01-03 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:49:24] Production.INFO: ==18552== Releasing lock... [2025-01-03 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:49:24] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:50:05 [end_date_ymd] => 2025-01-03 04:50:05 [RateCDR] => 1 ) [2025-01-03 04: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-01-03 01:50:05' and `end` < '2025-01-03 04: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-01-03 04:50:20] Production.INFO: count ==84 [2025-01-03 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-03 01:50:05 - End Time 2025-01-03 04:50:05 [2025-01-03 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163219', 'tblTempUsageDetail_20' ) start [2025-01-03 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163219', 'tblTempUsageDetail_20' ) end [2025-01-03 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163219', 'tblTempVendorCDR_20' ) start [2025-01-03 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163219', 'tblTempVendorCDR_20' ) end [2025-01-03 04:50:20] Production.INFO: ProcessCDR(1,14163219,1,1,2) [2025-01-03 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163219', 'tblTempUsageDetail_20' ) start [2025-01-03 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163219', 'tblTempUsageDetail_20' ) end [2025-01-03 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:50:23] Production.INFO: ==18633== Releasing lock... [2025-01-03 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:50:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:51:05 [end_date_ymd] => 2025-01-03 04:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:51:05' and `end` < '2025-01-03 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-01-03 04:51:20] Production.INFO: count ==84 [2025-01-03 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-03 01:51:05 - End Time 2025-01-03 04:51:05 [2025-01-03 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163224', 'tblTempUsageDetail_20' ) start [2025-01-03 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163224', 'tblTempUsageDetail_20' ) end [2025-01-03 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163224', 'tblTempVendorCDR_20' ) start [2025-01-03 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163224', 'tblTempVendorCDR_20' ) end [2025-01-03 04:51:20] Production.INFO: ProcessCDR(1,14163224,1,1,2) [2025-01-03 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163224', 'tblTempUsageDetail_20' ) start [2025-01-03 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163224', 'tblTempUsageDetail_20' ) end [2025-01-03 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:51:23] Production.INFO: ==18717== Releasing lock... [2025-01-03 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:51:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:52:05 [end_date_ymd] => 2025-01-03 04:52:05 [RateCDR] => 1 ) [2025-01-03 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:52:05' and `end` < '2025-01-03 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:52:19] Production.INFO: count ==84 [2025-01-03 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 01:52:05 - End Time 2025-01-03 04:52:05 [2025-01-03 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163229', 'tblTempUsageDetail_20' ) start [2025-01-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163229', 'tblTempUsageDetail_20' ) end [2025-01-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163229', 'tblTempVendorCDR_20' ) start [2025-01-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163229', 'tblTempVendorCDR_20' ) end [2025-01-03 04:52:19] Production.INFO: ProcessCDR(1,14163229,1,1,2) [2025-01-03 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163229', 'tblTempUsageDetail_20' ) start [2025-01-03 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163229', 'tblTempUsageDetail_20' ) end [2025-01-03 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:52:22] Production.INFO: ==18791== Releasing lock... [2025-01-03 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:53:05 [end_date_ymd] => 2025-01-03 04:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:53:05' and `end` < '2025-01-03 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-01-03 04:53:21] Production.INFO: count ==84 [2025-01-03 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:53:05 - End Time 2025-01-03 04:53:05 [2025-01-03 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163234', 'tblTempUsageDetail_20' ) start [2025-01-03 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163234', 'tblTempUsageDetail_20' ) end [2025-01-03 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163234', 'tblTempVendorCDR_20' ) start [2025-01-03 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163234', 'tblTempVendorCDR_20' ) end [2025-01-03 04:53:21] Production.INFO: ProcessCDR(1,14163234,1,1,2) [2025-01-03 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163234', 'tblTempUsageDetail_20' ) start [2025-01-03 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163234', 'tblTempUsageDetail_20' ) end [2025-01-03 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:53:24] Production.INFO: ==18905== Releasing lock... [2025-01-03 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:53:24] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:54:05 [end_date_ymd] => 2025-01-03 04:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:54:05' and `end` < '2025-01-03 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-01-03 04:54:21] Production.INFO: count ==84 [2025-01-03 04:54:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:54:05 - End Time 2025-01-03 04:54:05 [2025-01-03 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163239', 'tblTempUsageDetail_20' ) start [2025-01-03 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163239', 'tblTempUsageDetail_20' ) end [2025-01-03 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163239', 'tblTempVendorCDR_20' ) start [2025-01-03 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163239', 'tblTempVendorCDR_20' ) end [2025-01-03 04:54:21] Production.INFO: ProcessCDR(1,14163239,1,1,2) [2025-01-03 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163239', 'tblTempUsageDetail_20' ) start [2025-01-03 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163239', 'tblTempUsageDetail_20' ) end [2025-01-03 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:54:24] Production.INFO: ==18976== Releasing lock... [2025-01-03 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:54:24] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:55:04 [end_date_ymd] => 2025-01-03 04:55:04 [RateCDR] => 1 ) [2025-01-03 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:55:04' and `end` < '2025-01-03 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:55:21] Production.INFO: count ==84 [2025-01-03 04:55:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:55:04 - End Time 2025-01-03 04:55:04 [2025-01-03 04:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163244', 'tblTempUsageDetail_20' ) start [2025-01-03 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163244', 'tblTempUsageDetail_20' ) end [2025-01-03 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163244', 'tblTempVendorCDR_20' ) start [2025-01-03 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163244', 'tblTempVendorCDR_20' ) end [2025-01-03 04:55:21] Production.INFO: ProcessCDR(1,14163244,1,1,2) [2025-01-03 04:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163244', 'tblTempUsageDetail_20' ) start [2025-01-03 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163244', 'tblTempUsageDetail_20' ) end [2025-01-03 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:55:24] Production.INFO: ==19056== Releasing lock... [2025-01-03 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:55:24] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:56:05 [end_date_ymd] => 2025-01-03 04:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:56:05' and `end` < '2025-01-03 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-01-03 04:56:21] Production.INFO: count ==85 [2025-01-03 04:56:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:56:05 - End Time 2025-01-03 04:56:05 [2025-01-03 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163249', 'tblTempUsageDetail_20' ) start [2025-01-03 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163249', 'tblTempUsageDetail_20' ) end [2025-01-03 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163249', 'tblTempVendorCDR_20' ) start [2025-01-03 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163249', 'tblTempVendorCDR_20' ) end [2025-01-03 04:56:21] Production.INFO: ProcessCDR(1,14163249,1,1,2) [2025-01-03 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163249', 'tblTempUsageDetail_20' ) start [2025-01-03 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163249', 'tblTempUsageDetail_20' ) end [2025-01-03 04:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:56:25] Production.INFO: ==19138== Releasing lock... [2025-01-03 04:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:56:25] Production.INFO: 28 MB #Memory Used# [2025-01-03 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:57:04 [end_date_ymd] => 2025-01-03 04:57:04 [RateCDR] => 1 ) [2025-01-03 04:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 01:57:04' and `end` < '2025-01-03 04:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 04:57:21] Production.INFO: count ==89 [2025-01-03 04:57:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:57:04 - End Time 2025-01-03 04:57:04 [2025-01-03 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163254', 'tblTempUsageDetail_20' ) start [2025-01-03 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163254', 'tblTempUsageDetail_20' ) end [2025-01-03 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163254', 'tblTempVendorCDR_20' ) start [2025-01-03 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163254', 'tblTempVendorCDR_20' ) end [2025-01-03 04:57:21] Production.INFO: ProcessCDR(1,14163254,1,1,2) [2025-01-03 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163254', 'tblTempUsageDetail_20' ) start [2025-01-03 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163254', 'tblTempUsageDetail_20' ) end [2025-01-03 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:57:24] Production.INFO: ==19209== Releasing lock... [2025-01-03 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:57:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:58:05 [end_date_ymd] => 2025-01-03 04:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:58:05' and `end` < '2025-01-03 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-01-03 04:58:20] Production.INFO: count ==90 [2025-01-03 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-03 01:58:05 - End Time 2025-01-03 04:58:05 [2025-01-03 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163259', 'tblTempUsageDetail_20' ) start [2025-01-03 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163259', 'tblTempUsageDetail_20' ) end [2025-01-03 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163259', 'tblTempVendorCDR_20' ) start [2025-01-03 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163259', 'tblTempVendorCDR_20' ) end [2025-01-03 04:58:20] Production.INFO: ProcessCDR(1,14163259,1,1,2) [2025-01-03 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163259', 'tblTempUsageDetail_20' ) start [2025-01-03 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163259', 'tblTempUsageDetail_20' ) end [2025-01-03 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:58:23] Production.INFO: ==19286== Releasing lock... [2025-01-03 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:58:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 01:59:05 [end_date_ymd] => 2025-01-03 04:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 01:59:05' and `end` < '2025-01-03 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-01-03 04:59:21] Production.INFO: count ==100 [2025-01-03 04:59:21] Production.ERROR: pbx CDR StartTime 2025-01-03 01:59:05 - End Time 2025-01-03 04:59:05 [2025-01-03 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163264', 'tblTempUsageDetail_20' ) start [2025-01-03 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163264', 'tblTempUsageDetail_20' ) end [2025-01-03 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163264', 'tblTempVendorCDR_20' ) start [2025-01-03 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163264', 'tblTempVendorCDR_20' ) end [2025-01-03 04:59:21] Production.INFO: ProcessCDR(1,14163264,1,1,2) [2025-01-03 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163264', 'tblTempUsageDetail_20' ) start [2025-01-03 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163264', 'tblTempUsageDetail_20' ) end [2025-01-03 04:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 04:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 04:59:24] Production.INFO: ==19360== Releasing lock... [2025-01-03 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 04:59:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:00:05 [end_date_ymd] => 2025-01-03 05:00:05 [RateCDR] => 1 ) [2025-01-03 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:00:05' and `end` < '2025-01-03 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:00:21] Production.INFO: count ==100 [2025-01-03 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-03 02:00:05 - End Time 2025-01-03 05:00:05 [2025-01-03 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163269', 'tblTempUsageDetail_20' ) start [2025-01-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163269', 'tblTempUsageDetail_20' ) end [2025-01-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163269', 'tblTempVendorCDR_20' ) start [2025-01-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163269', 'tblTempVendorCDR_20' ) end [2025-01-03 05:00:21] Production.INFO: ProcessCDR(1,14163269,1,1,2) [2025-01-03 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163269', 'tblTempUsageDetail_20' ) start [2025-01-03 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163269', 'tblTempUsageDetail_20' ) end [2025-01-03 05:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:00:25] Production.INFO: ==19436== Releasing lock... [2025-01-03 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:00:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:01:05 [end_date_ymd] => 2025-01-03 05:01:05 [RateCDR] => 1 ) [2025-01-03 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:01:05' and `end` < '2025-01-03 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:01:20] Production.INFO: count ==100 [2025-01-03 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-03 02:01:05 - End Time 2025-01-03 05:01:05 [2025-01-03 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163275', 'tblTempUsageDetail_20' ) start [2025-01-03 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163275', 'tblTempUsageDetail_20' ) end [2025-01-03 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163275', 'tblTempVendorCDR_20' ) start [2025-01-03 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163275', 'tblTempVendorCDR_20' ) end [2025-01-03 05:01:20] Production.INFO: ProcessCDR(1,14163275,1,1,2) [2025-01-03 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163275', 'tblTempUsageDetail_20' ) start [2025-01-03 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163275', 'tblTempUsageDetail_20' ) end [2025-01-03 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:01:23] Production.INFO: ==19529== Releasing lock... [2025-01-03 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:02:05 [end_date_ymd] => 2025-01-03 05:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:02:05' and `end` < '2025-01-03 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-01-03 05:02:20] Production.INFO: count ==100 [2025-01-03 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-03 02:02:05 - End Time 2025-01-03 05:02:05 [2025-01-03 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163280', 'tblTempUsageDetail_20' ) start [2025-01-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163280', 'tblTempUsageDetail_20' ) end [2025-01-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163280', 'tblTempVendorCDR_20' ) start [2025-01-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163280', 'tblTempVendorCDR_20' ) end [2025-01-03 05:02:20] Production.INFO: ProcessCDR(1,14163280,1,1,2) [2025-01-03 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163280', 'tblTempUsageDetail_20' ) start [2025-01-03 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163280', 'tblTempUsageDetail_20' ) end [2025-01-03 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:02:23] Production.INFO: ==19603== Releasing lock... [2025-01-03 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:03:05 [end_date_ymd] => 2025-01-03 05:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:03:05' and `end` < '2025-01-03 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-01-03 05:03:19] Production.INFO: count ==100 [2025-01-03 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:03:05 - End Time 2025-01-03 05:03:05 [2025-01-03 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163285', 'tblTempUsageDetail_20' ) start [2025-01-03 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163285', 'tblTempUsageDetail_20' ) end [2025-01-03 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163285', 'tblTempVendorCDR_20' ) start [2025-01-03 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163285', 'tblTempVendorCDR_20' ) end [2025-01-03 05:03:19] Production.INFO: ProcessCDR(1,14163285,1,1,2) [2025-01-03 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163285', 'tblTempUsageDetail_20' ) start [2025-01-03 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163285', 'tblTempUsageDetail_20' ) end [2025-01-03 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:03:22] Production.INFO: ==19676== Releasing lock... [2025-01-03 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:04:04 [end_date_ymd] => 2025-01-03 05:04:04 [RateCDR] => 1 ) [2025-01-03 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:04:04' and `end` < '2025-01-03 05:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:04:18] Production.INFO: count ==100 [2025-01-03 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:04:04 - End Time 2025-01-03 05:04:04 [2025-01-03 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163290', 'tblTempUsageDetail_20' ) start [2025-01-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163290', 'tblTempUsageDetail_20' ) end [2025-01-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163290', 'tblTempVendorCDR_20' ) start [2025-01-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163290', 'tblTempVendorCDR_20' ) end [2025-01-03 05:04:18] Production.INFO: ProcessCDR(1,14163290,1,1,2) [2025-01-03 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163290', 'tblTempUsageDetail_20' ) start [2025-01-03 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163290', 'tblTempUsageDetail_20' ) end [2025-01-03 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:04:21] Production.INFO: ==19754== Releasing lock... [2025-01-03 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:05:05 [end_date_ymd] => 2025-01-03 05:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:05:05' and `end` < '2025-01-03 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-01-03 05:05:17] Production.INFO: count ==100 [2025-01-03 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:05:05 - End Time 2025-01-03 05:05:05 [2025-01-03 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163295', 'tblTempUsageDetail_20' ) start [2025-01-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163295', 'tblTempUsageDetail_20' ) end [2025-01-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163295', 'tblTempVendorCDR_20' ) start [2025-01-03 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163295', 'tblTempVendorCDR_20' ) end [2025-01-03 05:05:17] Production.INFO: ProcessCDR(1,14163295,1,1,2) [2025-01-03 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163295', 'tblTempUsageDetail_20' ) start [2025-01-03 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163295', 'tblTempUsageDetail_20' ) end [2025-01-03 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:05:20] Production.INFO: ==19827== Releasing lock... [2025-01-03 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:06:05 [end_date_ymd] => 2025-01-03 05:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:06:05' and `end` < '2025-01-03 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-01-03 05:06:20] Production.INFO: count ==100 [2025-01-03 05:06:20] Production.ERROR: pbx CDR StartTime 2025-01-03 02:06:05 - End Time 2025-01-03 05:06:05 [2025-01-03 05:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163300', 'tblTempUsageDetail_20' ) start [2025-01-03 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163300', 'tblTempUsageDetail_20' ) end [2025-01-03 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163300', 'tblTempVendorCDR_20' ) start [2025-01-03 05:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163300', 'tblTempVendorCDR_20' ) end [2025-01-03 05:06:20] Production.INFO: ProcessCDR(1,14163300,1,1,2) [2025-01-03 05:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163300', 'tblTempUsageDetail_20' ) start [2025-01-03 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163300', 'tblTempUsageDetail_20' ) end [2025-01-03 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:06:23] Production.INFO: ==19903== Releasing lock... [2025-01-03 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:06:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:07:04 [end_date_ymd] => 2025-01-03 05:07:04 [RateCDR] => 1 ) [2025-01-03 05: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-01-03 02:07:04' and `end` < '2025-01-03 05: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-01-03 05:07:20] Production.INFO: count ==100 [2025-01-03 05:07:20] Production.ERROR: pbx CDR StartTime 2025-01-03 02:07:04 - End Time 2025-01-03 05:07:04 [2025-01-03 05:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163305', 'tblTempUsageDetail_20' ) start [2025-01-03 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163305', 'tblTempUsageDetail_20' ) end [2025-01-03 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163305', 'tblTempVendorCDR_20' ) start [2025-01-03 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163305', 'tblTempVendorCDR_20' ) end [2025-01-03 05:07:20] Production.INFO: ProcessCDR(1,14163305,1,1,2) [2025-01-03 05:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163305', 'tblTempUsageDetail_20' ) start [2025-01-03 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163305', 'tblTempUsageDetail_20' ) end [2025-01-03 05:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:07:23] Production.INFO: ==20006== Releasing lock... [2025-01-03 05:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:07:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:08:05 [end_date_ymd] => 2025-01-03 05:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:08:05' and `end` < '2025-01-03 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-01-03 05:08:18] Production.INFO: count ==100 [2025-01-03 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:08:05 - End Time 2025-01-03 05:08:05 [2025-01-03 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163310', 'tblTempUsageDetail_20' ) start [2025-01-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163310', 'tblTempUsageDetail_20' ) end [2025-01-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163310', 'tblTempVendorCDR_20' ) start [2025-01-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163310', 'tblTempVendorCDR_20' ) end [2025-01-03 05:08:18] Production.INFO: ProcessCDR(1,14163310,1,1,2) [2025-01-03 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163310', 'tblTempUsageDetail_20' ) start [2025-01-03 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163310', 'tblTempUsageDetail_20' ) end [2025-01-03 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:08:21] Production.INFO: ==20106== Releasing lock... [2025-01-03 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:09:04 [end_date_ymd] => 2025-01-03 05:09:04 [RateCDR] => 1 ) [2025-01-03 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:09:04' and `end` < '2025-01-03 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:09:17] Production.INFO: count ==100 [2025-01-03 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:09:04 - End Time 2025-01-03 05:09:04 [2025-01-03 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163315', 'tblTempUsageDetail_20' ) start [2025-01-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163315', 'tblTempUsageDetail_20' ) end [2025-01-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163315', 'tblTempVendorCDR_20' ) start [2025-01-03 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163315', 'tblTempVendorCDR_20' ) end [2025-01-03 05:09:17] Production.INFO: ProcessCDR(1,14163315,1,1,2) [2025-01-03 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163315', 'tblTempUsageDetail_20' ) start [2025-01-03 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163315', 'tblTempUsageDetail_20' ) end [2025-01-03 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:09:21] Production.INFO: ==20253== Releasing lock... [2025-01-03 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:10:05 [end_date_ymd] => 2025-01-03 05:10:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:10:05' and `end` < '2025-01-03 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-01-03 05:10:18] Production.INFO: count ==94 [2025-01-03 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:10:05 - End Time 2025-01-03 05:10:05 [2025-01-03 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163321', 'tblTempUsageDetail_20' ) start [2025-01-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163321', 'tblTempUsageDetail_20' ) end [2025-01-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163321', 'tblTempVendorCDR_20' ) start [2025-01-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163321', 'tblTempVendorCDR_20' ) end [2025-01-03 05:10:18] Production.INFO: ProcessCDR(1,14163321,1,1,2) [2025-01-03 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163321', 'tblTempUsageDetail_20' ) start [2025-01-03 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163321', 'tblTempUsageDetail_20' ) end [2025-01-03 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:10:21] Production.INFO: ==20365== Releasing lock... [2025-01-03 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:11:05 [end_date_ymd] => 2025-01-03 05:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:11:05' and `end` < '2025-01-03 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-01-03 05:11:18] Production.INFO: count ==94 [2025-01-03 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:11:05 - End Time 2025-01-03 05:11:05 [2025-01-03 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163326', 'tblTempUsageDetail_20' ) start [2025-01-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163326', 'tblTempUsageDetail_20' ) end [2025-01-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163326', 'tblTempVendorCDR_20' ) start [2025-01-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163326', 'tblTempVendorCDR_20' ) end [2025-01-03 05:11:18] Production.INFO: ProcessCDR(1,14163326,1,1,2) [2025-01-03 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163326', 'tblTempUsageDetail_20' ) start [2025-01-03 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163326', 'tblTempUsageDetail_20' ) end [2025-01-03 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:11:21] Production.INFO: ==20473== Releasing lock... [2025-01-03 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:12:05 [end_date_ymd] => 2025-01-03 05:12:05 [RateCDR] => 1 ) [2025-01-03 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:12:05' and `end` < '2025-01-03 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:12:17] Production.INFO: count ==94 [2025-01-03 05:12:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:12:05 - End Time 2025-01-03 05:12:05 [2025-01-03 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163331', 'tblTempUsageDetail_20' ) start [2025-01-03 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163331', 'tblTempUsageDetail_20' ) end [2025-01-03 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163331', 'tblTempVendorCDR_20' ) start [2025-01-03 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163331', 'tblTempVendorCDR_20' ) end [2025-01-03 05:12:17] Production.INFO: ProcessCDR(1,14163331,1,1,2) [2025-01-03 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163331', 'tblTempUsageDetail_20' ) start [2025-01-03 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163331', 'tblTempUsageDetail_20' ) end [2025-01-03 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:12:20] Production.INFO: ==20582== Releasing lock... [2025-01-03 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:13:05 [end_date_ymd] => 2025-01-03 05:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:13:05' and `end` < '2025-01-03 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-01-03 05:13:19] Production.INFO: count ==94 [2025-01-03 05:13:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:13:05 - End Time 2025-01-03 05:13:05 [2025-01-03 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163336', 'tblTempUsageDetail_20' ) start [2025-01-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163336', 'tblTempUsageDetail_20' ) end [2025-01-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163336', 'tblTempVendorCDR_20' ) start [2025-01-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163336', 'tblTempVendorCDR_20' ) end [2025-01-03 05:13:19] Production.INFO: ProcessCDR(1,14163336,1,1,2) [2025-01-03 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163336', 'tblTempUsageDetail_20' ) start [2025-01-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163336', 'tblTempUsageDetail_20' ) end [2025-01-03 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:13:22] Production.INFO: ==20684== Releasing lock... [2025-01-03 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:14:05 [end_date_ymd] => 2025-01-03 05:14:05 [RateCDR] => 1 ) [2025-01-03 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:14:05' and `end` < '2025-01-03 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:14:18] Production.INFO: count ==94 [2025-01-03 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:14:05 - End Time 2025-01-03 05:14:05 [2025-01-03 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163341', 'tblTempUsageDetail_20' ) start [2025-01-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163341', 'tblTempUsageDetail_20' ) end [2025-01-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163341', 'tblTempVendorCDR_20' ) start [2025-01-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163341', 'tblTempVendorCDR_20' ) end [2025-01-03 05:14:18] Production.INFO: ProcessCDR(1,14163341,1,1,2) [2025-01-03 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163341', 'tblTempUsageDetail_20' ) start [2025-01-03 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163341', 'tblTempUsageDetail_20' ) end [2025-01-03 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:14:21] Production.INFO: ==20788== Releasing lock... [2025-01-03 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:15:05 [end_date_ymd] => 2025-01-03 05:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:15:05' and `end` < '2025-01-03 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-01-03 05:15:18] Production.INFO: count ==94 [2025-01-03 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:15:05 - End Time 2025-01-03 05:15:05 [2025-01-03 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163346', 'tblTempUsageDetail_20' ) start [2025-01-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163346', 'tblTempUsageDetail_20' ) end [2025-01-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163346', 'tblTempVendorCDR_20' ) start [2025-01-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163346', 'tblTempVendorCDR_20' ) end [2025-01-03 05:15:18] Production.INFO: ProcessCDR(1,14163346,1,1,2) [2025-01-03 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163346', 'tblTempUsageDetail_20' ) start [2025-01-03 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163346', 'tblTempUsageDetail_20' ) end [2025-01-03 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:15:21] Production.INFO: ==20889== Releasing lock... [2025-01-03 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:16:04 [end_date_ymd] => 2025-01-03 05:16:04 [RateCDR] => 1 ) [2025-01-03 05: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-01-03 02:16:04' and `end` < '2025-01-03 05: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-01-03 05:16:18] Production.INFO: count ==94 [2025-01-03 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:16:04 - End Time 2025-01-03 05:16:04 [2025-01-03 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163351', 'tblTempUsageDetail_20' ) start [2025-01-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163351', 'tblTempUsageDetail_20' ) end [2025-01-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163351', 'tblTempVendorCDR_20' ) start [2025-01-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163351', 'tblTempVendorCDR_20' ) end [2025-01-03 05:16:18] Production.INFO: ProcessCDR(1,14163351,1,1,2) [2025-01-03 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163351', 'tblTempUsageDetail_20' ) start [2025-01-03 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163351', 'tblTempUsageDetail_20' ) end [2025-01-03 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:16:21] Production.INFO: ==20988== Releasing lock... [2025-01-03 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:17:04 [end_date_ymd] => 2025-01-03 05:17:04 [RateCDR] => 1 ) [2025-01-03 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:17:04' and `end` < '2025-01-03 05:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:17:17] Production.INFO: count ==94 [2025-01-03 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:17:04 - End Time 2025-01-03 05:17:04 [2025-01-03 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163356', 'tblTempUsageDetail_20' ) start [2025-01-03 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163356', 'tblTempUsageDetail_20' ) end [2025-01-03 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163356', 'tblTempVendorCDR_20' ) start [2025-01-03 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163356', 'tblTempVendorCDR_20' ) end [2025-01-03 05:17:17] Production.INFO: ProcessCDR(1,14163356,1,1,2) [2025-01-03 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163356', 'tblTempUsageDetail_20' ) start [2025-01-03 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163356', 'tblTempUsageDetail_20' ) end [2025-01-03 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:17:20] Production.INFO: ==21093== Releasing lock... [2025-01-03 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:18:05 [end_date_ymd] => 2025-01-03 05:18:05 [RateCDR] => 1 ) [2025-01-03 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:18:05' and `end` < '2025-01-03 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:18:19] Production.INFO: count ==94 [2025-01-03 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:18:05 - End Time 2025-01-03 05:18:05 [2025-01-03 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163361', 'tblTempUsageDetail_20' ) start [2025-01-03 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163361', 'tblTempUsageDetail_20' ) end [2025-01-03 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163361', 'tblTempVendorCDR_20' ) start [2025-01-03 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163361', 'tblTempVendorCDR_20' ) end [2025-01-03 05:18:19] Production.INFO: ProcessCDR(1,14163361,1,1,2) [2025-01-03 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163361', 'tblTempUsageDetail_20' ) start [2025-01-03 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163361', 'tblTempUsageDetail_20' ) end [2025-01-03 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:18:22] Production.INFO: ==21195== Releasing lock... [2025-01-03 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:19:04 [end_date_ymd] => 2025-01-03 05:19:04 [RateCDR] => 1 ) [2025-01-03 05: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-01-03 02:19:04' and `end` < '2025-01-03 05: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-01-03 05:19:18] Production.INFO: count ==94 [2025-01-03 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:19:04 - End Time 2025-01-03 05:19:04 [2025-01-03 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163366', 'tblTempUsageDetail_20' ) start [2025-01-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163366', 'tblTempUsageDetail_20' ) end [2025-01-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163366', 'tblTempVendorCDR_20' ) start [2025-01-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163366', 'tblTempVendorCDR_20' ) end [2025-01-03 05:19:18] Production.INFO: ProcessCDR(1,14163366,1,1,2) [2025-01-03 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163366', 'tblTempUsageDetail_20' ) start [2025-01-03 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163366', 'tblTempUsageDetail_20' ) end [2025-01-03 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:19:21] Production.INFO: ==21294== Releasing lock... [2025-01-03 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:20:06 [end_date_ymd] => 2025-01-03 05:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:20:06' and `end` < '2025-01-03 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-01-03 05:20:18] Production.INFO: count ==92 [2025-01-03 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:20:06 - End Time 2025-01-03 05:20:06 [2025-01-03 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163372', 'tblTempUsageDetail_20' ) start [2025-01-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163372', 'tblTempUsageDetail_20' ) end [2025-01-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163372', 'tblTempVendorCDR_20' ) start [2025-01-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163372', 'tblTempVendorCDR_20' ) end [2025-01-03 05:20:18] Production.INFO: ProcessCDR(1,14163372,1,1,2) [2025-01-03 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163372', 'tblTempUsageDetail_20' ) start [2025-01-03 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163372', 'tblTempUsageDetail_20' ) end [2025-01-03 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:20:21] Production.INFO: ==21396== Releasing lock... [2025-01-03 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:21:05 [end_date_ymd] => 2025-01-03 05:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:21:05' and `end` < '2025-01-03 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-01-03 05:21:19] Production.INFO: count ==92 [2025-01-03 05:21:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:21:05 - End Time 2025-01-03 05:21:05 [2025-01-03 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163377', 'tblTempUsageDetail_20' ) start [2025-01-03 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163377', 'tblTempUsageDetail_20' ) end [2025-01-03 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163377', 'tblTempVendorCDR_20' ) start [2025-01-03 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163377', 'tblTempVendorCDR_20' ) end [2025-01-03 05:21:19] Production.INFO: ProcessCDR(1,14163377,1,1,2) [2025-01-03 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163377', 'tblTempUsageDetail_20' ) start [2025-01-03 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163377', 'tblTempUsageDetail_20' ) end [2025-01-03 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:21:22] Production.INFO: ==21501== Releasing lock... [2025-01-03 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:22:05 [end_date_ymd] => 2025-01-03 05:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:22:05' and `end` < '2025-01-03 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-01-03 05:22:18] Production.INFO: count ==92 [2025-01-03 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:22:05 - End Time 2025-01-03 05:22:05 [2025-01-03 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163382', 'tblTempUsageDetail_20' ) start [2025-01-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163382', 'tblTempUsageDetail_20' ) end [2025-01-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163382', 'tblTempVendorCDR_20' ) start [2025-01-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163382', 'tblTempVendorCDR_20' ) end [2025-01-03 05:22:18] Production.INFO: ProcessCDR(1,14163382,1,1,2) [2025-01-03 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163382', 'tblTempUsageDetail_20' ) start [2025-01-03 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163382', 'tblTempUsageDetail_20' ) end [2025-01-03 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:22:21] Production.INFO: ==21602== Releasing lock... [2025-01-03 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:23:05 [end_date_ymd] => 2025-01-03 05:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:23:05' and `end` < '2025-01-03 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-01-03 05:23:19] Production.INFO: count ==92 [2025-01-03 05:23:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:23:05 - End Time 2025-01-03 05:23:05 [2025-01-03 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163387', 'tblTempUsageDetail_20' ) start [2025-01-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163387', 'tblTempUsageDetail_20' ) end [2025-01-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163387', 'tblTempVendorCDR_20' ) start [2025-01-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163387', 'tblTempVendorCDR_20' ) end [2025-01-03 05:23:19] Production.INFO: ProcessCDR(1,14163387,1,1,2) [2025-01-03 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163387', 'tblTempUsageDetail_20' ) start [2025-01-03 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163387', 'tblTempUsageDetail_20' ) end [2025-01-03 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:23:22] Production.INFO: ==21702== Releasing lock... [2025-01-03 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:24:05 [end_date_ymd] => 2025-01-03 05:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:24:05' and `end` < '2025-01-03 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-01-03 05:24:18] Production.INFO: count ==92 [2025-01-03 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:24:05 - End Time 2025-01-03 05:24:05 [2025-01-03 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163392', 'tblTempUsageDetail_20' ) start [2025-01-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163392', 'tblTempUsageDetail_20' ) end [2025-01-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163392', 'tblTempVendorCDR_20' ) start [2025-01-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163392', 'tblTempVendorCDR_20' ) end [2025-01-03 05:24:18] Production.INFO: ProcessCDR(1,14163392,1,1,2) [2025-01-03 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163392', 'tblTempUsageDetail_20' ) start [2025-01-03 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163392', 'tblTempUsageDetail_20' ) end [2025-01-03 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:24:21] Production.INFO: ==21842== Releasing lock... [2025-01-03 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:25:05 [end_date_ymd] => 2025-01-03 05:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:25:05' and `end` < '2025-01-03 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-01-03 05:25:18] Production.INFO: count ==92 [2025-01-03 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:25:05 - End Time 2025-01-03 05:25:05 [2025-01-03 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163397', 'tblTempUsageDetail_20' ) start [2025-01-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163397', 'tblTempUsageDetail_20' ) end [2025-01-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163397', 'tblTempVendorCDR_20' ) start [2025-01-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163397', 'tblTempVendorCDR_20' ) end [2025-01-03 05:25:18] Production.INFO: ProcessCDR(1,14163397,1,1,2) [2025-01-03 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163397', 'tblTempUsageDetail_20' ) start [2025-01-03 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163397', 'tblTempUsageDetail_20' ) end [2025-01-03 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:25:21] Production.INFO: ==21941== Releasing lock... [2025-01-03 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:26:04 [end_date_ymd] => 2025-01-03 05:26:04 [RateCDR] => 1 ) [2025-01-03 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:26:04' and `end` < '2025-01-03 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:26:18] Production.INFO: count ==92 [2025-01-03 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:26:04 - End Time 2025-01-03 05:26:04 [2025-01-03 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163402', 'tblTempUsageDetail_20' ) start [2025-01-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163402', 'tblTempUsageDetail_20' ) end [2025-01-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163402', 'tblTempVendorCDR_20' ) start [2025-01-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163402', 'tblTempVendorCDR_20' ) end [2025-01-03 05:26:18] Production.INFO: ProcessCDR(1,14163402,1,1,2) [2025-01-03 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163402', 'tblTempUsageDetail_20' ) start [2025-01-03 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163402', 'tblTempUsageDetail_20' ) end [2025-01-03 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:26:21] Production.INFO: ==22041== Releasing lock... [2025-01-03 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:27:05 [end_date_ymd] => 2025-01-03 05:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:27:05' and `end` < '2025-01-03 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-01-03 05:27:19] Production.INFO: count ==92 [2025-01-03 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:27:05 - End Time 2025-01-03 05:27:05 [2025-01-03 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163407', 'tblTempUsageDetail_20' ) start [2025-01-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163407', 'tblTempUsageDetail_20' ) end [2025-01-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163407', 'tblTempVendorCDR_20' ) start [2025-01-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163407', 'tblTempVendorCDR_20' ) end [2025-01-03 05:27:19] Production.INFO: ProcessCDR(1,14163407,1,1,2) [2025-01-03 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163407', 'tblTempUsageDetail_20' ) start [2025-01-03 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163407', 'tblTempUsageDetail_20' ) end [2025-01-03 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:27:22] Production.INFO: ==22146== Releasing lock... [2025-01-03 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:28:05 [end_date_ymd] => 2025-01-03 05:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:28:05' and `end` < '2025-01-03 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-01-03 05:28:19] Production.INFO: count ==92 [2025-01-03 05:28:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:28:05 - End Time 2025-01-03 05:28:05 [2025-01-03 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163412', 'tblTempUsageDetail_20' ) start [2025-01-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163412', 'tblTempUsageDetail_20' ) end [2025-01-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163412', 'tblTempVendorCDR_20' ) start [2025-01-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163412', 'tblTempVendorCDR_20' ) end [2025-01-03 05:28:19] Production.INFO: ProcessCDR(1,14163412,1,1,2) [2025-01-03 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163412', 'tblTempUsageDetail_20' ) start [2025-01-03 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163412', 'tblTempUsageDetail_20' ) end [2025-01-03 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:28:22] Production.INFO: ==22250== Releasing lock... [2025-01-03 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:29:05 [end_date_ymd] => 2025-01-03 05:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:29:05' and `end` < '2025-01-03 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-01-03 05:29:17] Production.INFO: count ==92 [2025-01-03 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:29:05 - End Time 2025-01-03 05:29:05 [2025-01-03 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163417', 'tblTempUsageDetail_20' ) start [2025-01-03 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163417', 'tblTempUsageDetail_20' ) end [2025-01-03 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163417', 'tblTempVendorCDR_20' ) start [2025-01-03 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163417', 'tblTempVendorCDR_20' ) end [2025-01-03 05:29:17] Production.INFO: ProcessCDR(1,14163417,1,1,2) [2025-01-03 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163417', 'tblTempUsageDetail_20' ) start [2025-01-03 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163417', 'tblTempUsageDetail_20' ) end [2025-01-03 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:29:20] Production.INFO: ==22347== Releasing lock... [2025-01-03 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:30:05 [end_date_ymd] => 2025-01-03 05:30:05 [RateCDR] => 1 ) [2025-01-03 05: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-01-03 02:30:05' and `end` < '2025-01-03 05: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-01-03 05:30:18] Production.INFO: count ==83 [2025-01-03 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:30:05 - End Time 2025-01-03 05:30:05 [2025-01-03 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163422', 'tblTempUsageDetail_20' ) start [2025-01-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163422', 'tblTempUsageDetail_20' ) end [2025-01-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163422', 'tblTempVendorCDR_20' ) start [2025-01-03 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163422', 'tblTempVendorCDR_20' ) end [2025-01-03 05:30:18] Production.INFO: ProcessCDR(1,14163422,1,1,2) [2025-01-03 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163422', 'tblTempUsageDetail_20' ) start [2025-01-03 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163422', 'tblTempUsageDetail_20' ) end [2025-01-03 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:30:21] Production.INFO: ==22454== Releasing lock... [2025-01-03 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:31:05 [end_date_ymd] => 2025-01-03 05:31:05 [RateCDR] => 1 ) [2025-01-03 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:31:05' and `end` < '2025-01-03 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:31:18] Production.INFO: count ==70 [2025-01-03 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:31:05 - End Time 2025-01-03 05:31:05 [2025-01-03 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163428', 'tblTempUsageDetail_20' ) start [2025-01-03 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163428', 'tblTempUsageDetail_20' ) end [2025-01-03 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163428', 'tblTempVendorCDR_20' ) start [2025-01-03 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163428', 'tblTempVendorCDR_20' ) end [2025-01-03 05:31:18] Production.INFO: ProcessCDR(1,14163428,1,1,2) [2025-01-03 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163428', 'tblTempUsageDetail_20' ) start [2025-01-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163428', 'tblTempUsageDetail_20' ) end [2025-01-03 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:31:21] Production.INFO: ==22554== Releasing lock... [2025-01-03 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:32:05 [end_date_ymd] => 2025-01-03 05:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:32:05' and `end` < '2025-01-03 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-01-03 05:32:17] Production.INFO: count ==70 [2025-01-03 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:32:05 - End Time 2025-01-03 05:32:05 [2025-01-03 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163433', 'tblTempUsageDetail_20' ) start [2025-01-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163433', 'tblTempUsageDetail_20' ) end [2025-01-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163433', 'tblTempVendorCDR_20' ) start [2025-01-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163433', 'tblTempVendorCDR_20' ) end [2025-01-03 05:32:18] Production.INFO: ProcessCDR(1,14163433,1,1,2) [2025-01-03 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163433', 'tblTempUsageDetail_20' ) start [2025-01-03 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163433', 'tblTempUsageDetail_20' ) end [2025-01-03 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:32:20] Production.INFO: ==22654== Releasing lock... [2025-01-03 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:33:05 [end_date_ymd] => 2025-01-03 05:33:05 [RateCDR] => 1 ) [2025-01-03 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:33:05' and `end` < '2025-01-03 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:33:18] Production.INFO: count ==70 [2025-01-03 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:33:05 - End Time 2025-01-03 05:33:05 [2025-01-03 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163438', 'tblTempUsageDetail_20' ) start [2025-01-03 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163438', 'tblTempUsageDetail_20' ) end [2025-01-03 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163438', 'tblTempVendorCDR_20' ) start [2025-01-03 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163438', 'tblTempVendorCDR_20' ) end [2025-01-03 05:33:18] Production.INFO: ProcessCDR(1,14163438,1,1,2) [2025-01-03 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163438', 'tblTempUsageDetail_20' ) start [2025-01-03 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163438', 'tblTempUsageDetail_20' ) end [2025-01-03 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:33:21] Production.INFO: ==22752== Releasing lock... [2025-01-03 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:34:05 [end_date_ymd] => 2025-01-03 05:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:34:05' and `end` < '2025-01-03 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-01-03 05:34:18] Production.INFO: count ==70 [2025-01-03 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:34:05 - End Time 2025-01-03 05:34:05 [2025-01-03 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163443', 'tblTempUsageDetail_20' ) start [2025-01-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163443', 'tblTempUsageDetail_20' ) end [2025-01-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163443', 'tblTempVendorCDR_20' ) start [2025-01-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163443', 'tblTempVendorCDR_20' ) end [2025-01-03 05:34:18] Production.INFO: ProcessCDR(1,14163443,1,1,2) [2025-01-03 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163443', 'tblTempUsageDetail_20' ) start [2025-01-03 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163443', 'tblTempUsageDetail_20' ) end [2025-01-03 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:34:21] Production.INFO: ==22852== Releasing lock... [2025-01-03 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:35:05 [end_date_ymd] => 2025-01-03 05:35:05 [RateCDR] => 1 ) [2025-01-03 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:35:05' and `end` < '2025-01-03 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:35:18] Production.INFO: count ==70 [2025-01-03 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:35:05 - End Time 2025-01-03 05:35:05 [2025-01-03 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163448', 'tblTempUsageDetail_20' ) start [2025-01-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163448', 'tblTempUsageDetail_20' ) end [2025-01-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163448', 'tblTempVendorCDR_20' ) start [2025-01-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163448', 'tblTempVendorCDR_20' ) end [2025-01-03 05:35:18] Production.INFO: ProcessCDR(1,14163448,1,1,2) [2025-01-03 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163448', 'tblTempUsageDetail_20' ) start [2025-01-03 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163448', 'tblTempUsageDetail_20' ) end [2025-01-03 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:35:21] Production.INFO: ==22950== Releasing lock... [2025-01-03 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:36:05 [end_date_ymd] => 2025-01-03 05:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:36:05' and `end` < '2025-01-03 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-01-03 05:36:18] Production.INFO: count ==70 [2025-01-03 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:36:05 - End Time 2025-01-03 05:36:05 [2025-01-03 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163453', 'tblTempUsageDetail_20' ) start [2025-01-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163453', 'tblTempUsageDetail_20' ) end [2025-01-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163453', 'tblTempVendorCDR_20' ) start [2025-01-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163453', 'tblTempVendorCDR_20' ) end [2025-01-03 05:36:18] Production.INFO: ProcessCDR(1,14163453,1,1,2) [2025-01-03 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163453', 'tblTempUsageDetail_20' ) start [2025-01-03 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163453', 'tblTempUsageDetail_20' ) end [2025-01-03 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:36:21] Production.INFO: ==23049== Releasing lock... [2025-01-03 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:37:05 [end_date_ymd] => 2025-01-03 05:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:37:05' and `end` < '2025-01-03 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-01-03 05:37:19] Production.INFO: count ==70 [2025-01-03 05:37:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:37:05 - End Time 2025-01-03 05:37:05 [2025-01-03 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163458', 'tblTempUsageDetail_20' ) start [2025-01-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163458', 'tblTempUsageDetail_20' ) end [2025-01-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163458', 'tblTempVendorCDR_20' ) start [2025-01-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163458', 'tblTempVendorCDR_20' ) end [2025-01-03 05:37:19] Production.INFO: ProcessCDR(1,14163458,1,1,2) [2025-01-03 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163458', 'tblTempUsageDetail_20' ) start [2025-01-03 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163458', 'tblTempUsageDetail_20' ) end [2025-01-03 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:37:22] Production.INFO: ==23147== Releasing lock... [2025-01-03 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:38:05 [end_date_ymd] => 2025-01-03 05:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:38:05' and `end` < '2025-01-03 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-01-03 05:38:19] Production.INFO: count ==70 [2025-01-03 05:38:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:38:05 - End Time 2025-01-03 05:38:05 [2025-01-03 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163463', 'tblTempUsageDetail_20' ) start [2025-01-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163463', 'tblTempUsageDetail_20' ) end [2025-01-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163463', 'tblTempVendorCDR_20' ) start [2025-01-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163463', 'tblTempVendorCDR_20' ) end [2025-01-03 05:38:19] Production.INFO: ProcessCDR(1,14163463,1,1,2) [2025-01-03 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163463', 'tblTempUsageDetail_20' ) start [2025-01-03 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163463', 'tblTempUsageDetail_20' ) end [2025-01-03 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:38:22] Production.INFO: ==23245== Releasing lock... [2025-01-03 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:39:05 [end_date_ymd] => 2025-01-03 05:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:39:05' and `end` < '2025-01-03 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-01-03 05:39:18] Production.INFO: count ==70 [2025-01-03 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:39:05 - End Time 2025-01-03 05:39:05 [2025-01-03 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163468', 'tblTempUsageDetail_20' ) start [2025-01-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163468', 'tblTempUsageDetail_20' ) end [2025-01-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163468', 'tblTempVendorCDR_20' ) start [2025-01-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163468', 'tblTempVendorCDR_20' ) end [2025-01-03 05:39:18] Production.INFO: ProcessCDR(1,14163468,1,1,2) [2025-01-03 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163468', 'tblTempUsageDetail_20' ) start [2025-01-03 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163468', 'tblTempUsageDetail_20' ) end [2025-01-03 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:39:21] Production.INFO: ==23344== Releasing lock... [2025-01-03 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:40:06 [end_date_ymd] => 2025-01-03 05:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:40:06' and `end` < '2025-01-03 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-01-03 05:40:18] Production.INFO: count ==62 [2025-01-03 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:40:06 - End Time 2025-01-03 05:40:06 [2025-01-03 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163474', 'tblTempUsageDetail_20' ) start [2025-01-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163474', 'tblTempUsageDetail_20' ) end [2025-01-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163474', 'tblTempVendorCDR_20' ) start [2025-01-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163474', 'tblTempVendorCDR_20' ) end [2025-01-03 05:40:18] Production.INFO: ProcessCDR(1,14163474,1,1,2) [2025-01-03 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163474', 'tblTempUsageDetail_20' ) start [2025-01-03 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163474', 'tblTempUsageDetail_20' ) end [2025-01-03 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:40:21] Production.INFO: ==23481== Releasing lock... [2025-01-03 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:41:05 [end_date_ymd] => 2025-01-03 05:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:41:05' and `end` < '2025-01-03 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-01-03 05:41:18] Production.INFO: count ==57 [2025-01-03 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:41:05 - End Time 2025-01-03 05:41:05 [2025-01-03 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163479', 'tblTempUsageDetail_20' ) start [2025-01-03 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163479', 'tblTempUsageDetail_20' ) end [2025-01-03 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163479', 'tblTempVendorCDR_20' ) start [2025-01-03 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163479', 'tblTempVendorCDR_20' ) end [2025-01-03 05:41:18] Production.INFO: ProcessCDR(1,14163479,1,1,2) [2025-01-03 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163479', 'tblTempUsageDetail_20' ) start [2025-01-03 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163479', 'tblTempUsageDetail_20' ) end [2025-01-03 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:41:22] Production.INFO: ==23579== Releasing lock... [2025-01-03 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:42:05 [end_date_ymd] => 2025-01-03 05:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:42:05' and `end` < '2025-01-03 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-01-03 05:42:19] Production.INFO: count ==57 [2025-01-03 05:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:42:05 - End Time 2025-01-03 05:42:05 [2025-01-03 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163484', 'tblTempUsageDetail_20' ) start [2025-01-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163484', 'tblTempUsageDetail_20' ) end [2025-01-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163484', 'tblTempVendorCDR_20' ) start [2025-01-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163484', 'tblTempVendorCDR_20' ) end [2025-01-03 05:42:19] Production.INFO: ProcessCDR(1,14163484,1,1,2) [2025-01-03 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163484', 'tblTempUsageDetail_20' ) start [2025-01-03 05:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163484', 'tblTempUsageDetail_20' ) end [2025-01-03 05:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:42:23] Production.INFO: ==23683== Releasing lock... [2025-01-03 05:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:42:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:43:04 [end_date_ymd] => 2025-01-03 05:43:04 [RateCDR] => 1 ) [2025-01-03 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:43:04' and `end` < '2025-01-03 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:43:18] Production.INFO: count ==57 [2025-01-03 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:43:04 - End Time 2025-01-03 05:43:04 [2025-01-03 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163489', 'tblTempUsageDetail_20' ) start [2025-01-03 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163489', 'tblTempUsageDetail_20' ) end [2025-01-03 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163489', 'tblTempVendorCDR_20' ) start [2025-01-03 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163489', 'tblTempVendorCDR_20' ) end [2025-01-03 05:43:18] Production.INFO: ProcessCDR(1,14163489,1,1,2) [2025-01-03 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163489', 'tblTempUsageDetail_20' ) start [2025-01-03 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163489', 'tblTempUsageDetail_20' ) end [2025-01-03 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:43:21] Production.INFO: ==23778== Releasing lock... [2025-01-03 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:44:05 [end_date_ymd] => 2025-01-03 05:44:05 [RateCDR] => 1 ) [2025-01-03 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:44:05' and `end` < '2025-01-03 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:44:18] Production.INFO: count ==57 [2025-01-03 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:44:05 - End Time 2025-01-03 05:44:05 [2025-01-03 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163494', 'tblTempUsageDetail_20' ) start [2025-01-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163494', 'tblTempUsageDetail_20' ) end [2025-01-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163494', 'tblTempVendorCDR_20' ) start [2025-01-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163494', 'tblTempVendorCDR_20' ) end [2025-01-03 05:44:18] Production.INFO: ProcessCDR(1,14163494,1,1,2) [2025-01-03 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163494', 'tblTempUsageDetail_20' ) start [2025-01-03 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163494', 'tblTempUsageDetail_20' ) end [2025-01-03 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:44:21] Production.INFO: ==23877== Releasing lock... [2025-01-03 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:45:04 [end_date_ymd] => 2025-01-03 05:45:04 [RateCDR] => 1 ) [2025-01-03 05:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:45:04' and `end` < '2025-01-03 05:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:45:17] Production.INFO: count ==57 [2025-01-03 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:45:04 - End Time 2025-01-03 05:45:04 [2025-01-03 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163499', 'tblTempUsageDetail_20' ) start [2025-01-03 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163499', 'tblTempUsageDetail_20' ) end [2025-01-03 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163499', 'tblTempVendorCDR_20' ) start [2025-01-03 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163499', 'tblTempVendorCDR_20' ) end [2025-01-03 05:45:17] Production.INFO: ProcessCDR(1,14163499,1,1,2) [2025-01-03 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163499', 'tblTempUsageDetail_20' ) start [2025-01-03 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163499', 'tblTempUsageDetail_20' ) end [2025-01-03 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:45:20] Production.INFO: ==23974== Releasing lock... [2025-01-03 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:46:04 [end_date_ymd] => 2025-01-03 05:46:04 [RateCDR] => 1 ) [2025-01-03 05:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:46:04' and `end` < '2025-01-03 05:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:46:17] Production.INFO: count ==57 [2025-01-03 05:46:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:46:04 - End Time 2025-01-03 05:46:04 [2025-01-03 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163504', 'tblTempUsageDetail_20' ) start [2025-01-03 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163504', 'tblTempUsageDetail_20' ) end [2025-01-03 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163504', 'tblTempVendorCDR_20' ) start [2025-01-03 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163504', 'tblTempVendorCDR_20' ) end [2025-01-03 05:46:17] Production.INFO: ProcessCDR(1,14163504,1,1,2) [2025-01-03 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163504', 'tblTempUsageDetail_20' ) start [2025-01-03 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163504', 'tblTempUsageDetail_20' ) end [2025-01-03 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:46:20] Production.INFO: ==24072== Releasing lock... [2025-01-03 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:46:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:47:04 [end_date_ymd] => 2025-01-03 05:47:04 [RateCDR] => 1 ) [2025-01-03 05: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-01-03 02:47:04' and `end` < '2025-01-03 05: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-01-03 05:47:17] Production.INFO: count ==57 [2025-01-03 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:47:04 - End Time 2025-01-03 05:47:04 [2025-01-03 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163509', 'tblTempUsageDetail_20' ) start [2025-01-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163509', 'tblTempUsageDetail_20' ) end [2025-01-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163509', 'tblTempVendorCDR_20' ) start [2025-01-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163509', 'tblTempVendorCDR_20' ) end [2025-01-03 05:47:17] Production.INFO: ProcessCDR(1,14163509,1,1,2) [2025-01-03 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163509', 'tblTempUsageDetail_20' ) start [2025-01-03 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163509', 'tblTempUsageDetail_20' ) end [2025-01-03 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:47:20] Production.INFO: ==24169== Releasing lock... [2025-01-03 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:48:05 [end_date_ymd] => 2025-01-03 05:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:48:05' and `end` < '2025-01-03 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-01-03 05:48:18] Production.INFO: count ==57 [2025-01-03 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:48:05 - End Time 2025-01-03 05:48:05 [2025-01-03 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163514', 'tblTempUsageDetail_20' ) start [2025-01-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163514', 'tblTempUsageDetail_20' ) end [2025-01-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163514', 'tblTempVendorCDR_20' ) start [2025-01-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163514', 'tblTempVendorCDR_20' ) end [2025-01-03 05:48:18] Production.INFO: ProcessCDR(1,14163514,1,1,2) [2025-01-03 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163514', 'tblTempUsageDetail_20' ) start [2025-01-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163514', 'tblTempUsageDetail_20' ) end [2025-01-03 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:48:21] Production.INFO: ==24270== Releasing lock... [2025-01-03 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:49:05 [end_date_ymd] => 2025-01-03 05:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:49:05' and `end` < '2025-01-03 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-01-03 05:49:18] Production.INFO: count ==57 [2025-01-03 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:49:05 - End Time 2025-01-03 05:49:05 [2025-01-03 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163519', 'tblTempUsageDetail_20' ) start [2025-01-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163519', 'tblTempUsageDetail_20' ) end [2025-01-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163519', 'tblTempVendorCDR_20' ) start [2025-01-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163519', 'tblTempVendorCDR_20' ) end [2025-01-03 05:49:18] Production.INFO: ProcessCDR(1,14163519,1,1,2) [2025-01-03 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163519', 'tblTempUsageDetail_20' ) start [2025-01-03 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163519', 'tblTempUsageDetail_20' ) end [2025-01-03 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:49:21] Production.INFO: ==24372== Releasing lock... [2025-01-03 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:50:05 [end_date_ymd] => 2025-01-03 05:50:05 [RateCDR] => 1 ) [2025-01-03 05: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-01-03 02:50:05' and `end` < '2025-01-03 05: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-01-03 05:50:18] Production.INFO: count ==57 [2025-01-03 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:50:05 - End Time 2025-01-03 05:50:05 [2025-01-03 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163525', 'tblTempUsageDetail_20' ) start [2025-01-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163525', 'tblTempUsageDetail_20' ) end [2025-01-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163525', 'tblTempVendorCDR_20' ) start [2025-01-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163525', 'tblTempVendorCDR_20' ) end [2025-01-03 05:50:18] Production.INFO: ProcessCDR(1,14163525,1,1,2) [2025-01-03 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163525', 'tblTempUsageDetail_20' ) start [2025-01-03 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163525', 'tblTempUsageDetail_20' ) end [2025-01-03 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:50:21] Production.INFO: ==24459== Releasing lock... [2025-01-03 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:51:05 [end_date_ymd] => 2025-01-03 05:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:51:05' and `end` < '2025-01-03 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-01-03 05:51:19] Production.INFO: count ==57 [2025-01-03 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:51:05 - End Time 2025-01-03 05:51:05 [2025-01-03 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163530', 'tblTempUsageDetail_20' ) start [2025-01-03 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163530', 'tblTempUsageDetail_20' ) end [2025-01-03 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163530', 'tblTempVendorCDR_20' ) start [2025-01-03 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163530', 'tblTempVendorCDR_20' ) end [2025-01-03 05:51:19] Production.INFO: ProcessCDR(1,14163530,1,1,2) [2025-01-03 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163530', 'tblTempUsageDetail_20' ) start [2025-01-03 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163530', 'tblTempUsageDetail_20' ) end [2025-01-03 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:51:22] Production.INFO: ==24535== Releasing lock... [2025-01-03 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:52:05 [end_date_ymd] => 2025-01-03 05:52:05 [RateCDR] => 1 ) [2025-01-03 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:52:05' and `end` < '2025-01-03 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:52:18] Production.INFO: count ==57 [2025-01-03 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:52:05 - End Time 2025-01-03 05:52:05 [2025-01-03 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163535', 'tblTempUsageDetail_20' ) start [2025-01-03 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163535', 'tblTempUsageDetail_20' ) end [2025-01-03 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163535', 'tblTempVendorCDR_20' ) start [2025-01-03 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163535', 'tblTempVendorCDR_20' ) end [2025-01-03 05:52:18] Production.INFO: ProcessCDR(1,14163535,1,1,2) [2025-01-03 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163535', 'tblTempUsageDetail_20' ) start [2025-01-03 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163535', 'tblTempUsageDetail_20' ) end [2025-01-03 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:52:21] Production.INFO: ==24613== Releasing lock... [2025-01-03 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:53:05 [end_date_ymd] => 2025-01-03 05:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:53:05' and `end` < '2025-01-03 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-01-03 05:53:17] Production.INFO: count ==57 [2025-01-03 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:53:05 - End Time 2025-01-03 05:53:05 [2025-01-03 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163540', 'tblTempUsageDetail_20' ) start [2025-01-03 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163540', 'tblTempUsageDetail_20' ) end [2025-01-03 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163540', 'tblTempVendorCDR_20' ) start [2025-01-03 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163540', 'tblTempVendorCDR_20' ) end [2025-01-03 05:53:17] Production.INFO: ProcessCDR(1,14163540,1,1,2) [2025-01-03 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163540', 'tblTempUsageDetail_20' ) start [2025-01-03 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163540', 'tblTempUsageDetail_20' ) end [2025-01-03 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:53:20] Production.INFO: ==24690== Releasing lock... [2025-01-03 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:53:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:54:05 [end_date_ymd] => 2025-01-03 05:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:54:05' and `end` < '2025-01-03 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-01-03 05:54:19] Production.INFO: count ==57 [2025-01-03 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-03 02:54:05 - End Time 2025-01-03 05:54:05 [2025-01-03 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163545', 'tblTempUsageDetail_20' ) start [2025-01-03 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163545', 'tblTempUsageDetail_20' ) end [2025-01-03 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163545', 'tblTempVendorCDR_20' ) start [2025-01-03 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163545', 'tblTempVendorCDR_20' ) end [2025-01-03 05:54:19] Production.INFO: ProcessCDR(1,14163545,1,1,2) [2025-01-03 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163545', 'tblTempUsageDetail_20' ) start [2025-01-03 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163545', 'tblTempUsageDetail_20' ) end [2025-01-03 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:54:22] Production.INFO: ==24760== Releasing lock... [2025-01-03 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:54:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:55:04 [end_date_ymd] => 2025-01-03 05:55:04 [RateCDR] => 1 ) [2025-01-03 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:55:04' and `end` < '2025-01-03 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:55:17] Production.INFO: count ==56 [2025-01-03 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:55:04 - End Time 2025-01-03 05:55:04 [2025-01-03 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163550', 'tblTempUsageDetail_20' ) start [2025-01-03 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163550', 'tblTempUsageDetail_20' ) end [2025-01-03 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163550', 'tblTempVendorCDR_20' ) start [2025-01-03 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163550', 'tblTempVendorCDR_20' ) end [2025-01-03 05:55:17] Production.INFO: ProcessCDR(1,14163550,1,1,2) [2025-01-03 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163550', 'tblTempUsageDetail_20' ) start [2025-01-03 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163550', 'tblTempUsageDetail_20' ) end [2025-01-03 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:55:20] Production.INFO: ==24873== Releasing lock... [2025-01-03 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:56:06 [end_date_ymd] => 2025-01-03 05:56:06 [RateCDR] => 1 ) [2025-01-03 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:56:06' and `end` < '2025-01-03 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:56:18] Production.INFO: count ==56 [2025-01-03 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:56:06 - End Time 2025-01-03 05:56:06 [2025-01-03 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163555', 'tblTempUsageDetail_20' ) start [2025-01-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163555', 'tblTempUsageDetail_20' ) end [2025-01-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163555', 'tblTempVendorCDR_20' ) start [2025-01-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163555', 'tblTempVendorCDR_20' ) end [2025-01-03 05:56:18] Production.INFO: ProcessCDR(1,14163555,1,1,2) [2025-01-03 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163555', 'tblTempUsageDetail_20' ) start [2025-01-03 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163555', 'tblTempUsageDetail_20' ) end [2025-01-03 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:56:21] Production.INFO: ==24946== Releasing lock... [2025-01-03 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:57:04 [end_date_ymd] => 2025-01-03 05:57:04 [RateCDR] => 1 ) [2025-01-03 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 02:57:04' and `end` < '2025-01-03 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 05:57:17] Production.INFO: count ==56 [2025-01-03 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-03 02:57:04 - End Time 2025-01-03 05:57:04 [2025-01-03 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163560', 'tblTempUsageDetail_20' ) start [2025-01-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163560', 'tblTempUsageDetail_20' ) end [2025-01-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163560', 'tblTempVendorCDR_20' ) start [2025-01-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163560', 'tblTempVendorCDR_20' ) end [2025-01-03 05:57:18] Production.INFO: ProcessCDR(1,14163560,1,1,2) [2025-01-03 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163560', 'tblTempUsageDetail_20' ) start [2025-01-03 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163560', 'tblTempUsageDetail_20' ) end [2025-01-03 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:57:21] Production.INFO: ==25017== Releasing lock... [2025-01-03 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:58:05 [end_date_ymd] => 2025-01-03 05:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:58:05' and `end` < '2025-01-03 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-01-03 05:58:18] Production.INFO: count ==56 [2025-01-03 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:58:05 - End Time 2025-01-03 05:58:05 [2025-01-03 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163565', 'tblTempUsageDetail_20' ) start [2025-01-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163565', 'tblTempUsageDetail_20' ) end [2025-01-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163565', 'tblTempVendorCDR_20' ) start [2025-01-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163565', 'tblTempVendorCDR_20' ) end [2025-01-03 05:58:18] Production.INFO: ProcessCDR(1,14163565,1,1,2) [2025-01-03 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163565', 'tblTempUsageDetail_20' ) start [2025-01-03 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163565', 'tblTempUsageDetail_20' ) end [2025-01-03 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:58:21] Production.INFO: ==25090== Releasing lock... [2025-01-03 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 02:59:05 [end_date_ymd] => 2025-01-03 05:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 02:59:05' and `end` < '2025-01-03 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-01-03 05:59:18] Production.INFO: count ==56 [2025-01-03 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 02:59:05 - End Time 2025-01-03 05:59:05 [2025-01-03 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163570', 'tblTempUsageDetail_20' ) start [2025-01-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163570', 'tblTempUsageDetail_20' ) end [2025-01-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163570', 'tblTempVendorCDR_20' ) start [2025-01-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163570', 'tblTempVendorCDR_20' ) end [2025-01-03 05:59:18] Production.INFO: ProcessCDR(1,14163570,1,1,2) [2025-01-03 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163570', 'tblTempUsageDetail_20' ) start [2025-01-03 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163570', 'tblTempUsageDetail_20' ) end [2025-01-03 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 05:59:21] Production.INFO: ==25163== Releasing lock... [2025-01-03 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:00:06 [end_date_ymd] => 2025-01-03 06:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:00:06' and `end` < '2025-01-03 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-01-03 06:00:20] Production.INFO: count ==56 [2025-01-03 06:00:20] Production.ERROR: pbx CDR StartTime 2025-01-03 03:00:06 - End Time 2025-01-03 06:00:06 [2025-01-03 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163576', 'tblTempUsageDetail_20' ) start [2025-01-03 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163576', 'tblTempUsageDetail_20' ) end [2025-01-03 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163576', 'tblTempVendorCDR_20' ) start [2025-01-03 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163576', 'tblTempVendorCDR_20' ) end [2025-01-03 06:00:20] Production.INFO: ProcessCDR(1,14163576,1,1,2) [2025-01-03 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163576', 'tblTempUsageDetail_20' ) start [2025-01-03 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163576', 'tblTempUsageDetail_20' ) end [2025-01-03 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:00:23] Production.INFO: ==25237== Releasing lock... [2025-01-03 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:00:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:01:05 [end_date_ymd] => 2025-01-03 06:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:01:05' and `end` < '2025-01-03 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-01-03 06:01:18] Production.INFO: count ==56 [2025-01-03 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:01:05 - End Time 2025-01-03 06:01:05 [2025-01-03 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163581', 'tblTempUsageDetail_20' ) start [2025-01-03 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163581', 'tblTempUsageDetail_20' ) end [2025-01-03 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163581', 'tblTempVendorCDR_20' ) start [2025-01-03 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163581', 'tblTempVendorCDR_20' ) end [2025-01-03 06:01:18] Production.INFO: ProcessCDR(1,14163581,1,1,2) [2025-01-03 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163581', 'tblTempUsageDetail_20' ) start [2025-01-03 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163581', 'tblTempUsageDetail_20' ) end [2025-01-03 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:01:21] Production.INFO: ==25323== Releasing lock... [2025-01-03 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:02:05 [end_date_ymd] => 2025-01-03 06:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:02:05' and `end` < '2025-01-03 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-01-03 06:02:19] Production.INFO: count ==56 [2025-01-03 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:02:05 - End Time 2025-01-03 06:02:05 [2025-01-03 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163586', 'tblTempUsageDetail_20' ) start [2025-01-03 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163586', 'tblTempUsageDetail_20' ) end [2025-01-03 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163586', 'tblTempVendorCDR_20' ) start [2025-01-03 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163586', 'tblTempVendorCDR_20' ) end [2025-01-03 06:02:19] Production.INFO: ProcessCDR(1,14163586,1,1,2) [2025-01-03 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163586', 'tblTempUsageDetail_20' ) start [2025-01-03 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163586', 'tblTempUsageDetail_20' ) end [2025-01-03 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:02:22] Production.INFO: ==25398== Releasing lock... [2025-01-03 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:03:05 [end_date_ymd] => 2025-01-03 06:03:05 [RateCDR] => 1 ) [2025-01-03 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:03:05' and `end` < '2025-01-03 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:03:19] Production.INFO: count ==56 [2025-01-03 06:03:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:03:05 - End Time 2025-01-03 06:03:05 [2025-01-03 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163591', 'tblTempUsageDetail_20' ) start [2025-01-03 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163591', 'tblTempUsageDetail_20' ) end [2025-01-03 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163591', 'tblTempVendorCDR_20' ) start [2025-01-03 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163591', 'tblTempVendorCDR_20' ) end [2025-01-03 06:03:19] Production.INFO: ProcessCDR(1,14163591,1,1,2) [2025-01-03 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163591', 'tblTempUsageDetail_20' ) start [2025-01-03 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163591', 'tblTempUsageDetail_20' ) end [2025-01-03 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:03:22] Production.INFO: ==25470== Releasing lock... [2025-01-03 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:04:06 [end_date_ymd] => 2025-01-03 06:04:06 [RateCDR] => 1 ) [2025-01-03 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:04:06' and `end` < '2025-01-03 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:04:18] Production.INFO: count ==56 [2025-01-03 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:04:06 - End Time 2025-01-03 06:04:06 [2025-01-03 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163596', 'tblTempUsageDetail_20' ) start [2025-01-03 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163596', 'tblTempUsageDetail_20' ) end [2025-01-03 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163596', 'tblTempVendorCDR_20' ) start [2025-01-03 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163596', 'tblTempVendorCDR_20' ) end [2025-01-03 06:04:18] Production.INFO: ProcessCDR(1,14163596,1,1,2) [2025-01-03 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163596', 'tblTempUsageDetail_20' ) start [2025-01-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163596', 'tblTempUsageDetail_20' ) end [2025-01-03 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:04:22] Production.INFO: ==25544== Releasing lock... [2025-01-03 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:05:05 [end_date_ymd] => 2025-01-03 06:05:05 [RateCDR] => 1 ) [2025-01-03 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:05:05' and `end` < '2025-01-03 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:05:17] Production.INFO: count ==56 [2025-01-03 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:05:05 - End Time 2025-01-03 06:05:05 [2025-01-03 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163601', 'tblTempUsageDetail_20' ) start [2025-01-03 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163601', 'tblTempUsageDetail_20' ) end [2025-01-03 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163601', 'tblTempVendorCDR_20' ) start [2025-01-03 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163601', 'tblTempVendorCDR_20' ) end [2025-01-03 06:05:17] Production.INFO: ProcessCDR(1,14163601,1,1,2) [2025-01-03 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163601', 'tblTempUsageDetail_20' ) start [2025-01-03 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163601', 'tblTempUsageDetail_20' ) end [2025-01-03 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:05:21] Production.INFO: ==25615== Releasing lock... [2025-01-03 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:06:05 [end_date_ymd] => 2025-01-03 06:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:06:05' and `end` < '2025-01-03 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-01-03 06:06:18] Production.INFO: count ==56 [2025-01-03 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:06:05 - End Time 2025-01-03 06:06:05 [2025-01-03 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163606', 'tblTempUsageDetail_20' ) start [2025-01-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163606', 'tblTempUsageDetail_20' ) end [2025-01-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163606', 'tblTempVendorCDR_20' ) start [2025-01-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163606', 'tblTempVendorCDR_20' ) end [2025-01-03 06:06:18] Production.INFO: ProcessCDR(1,14163606,1,1,2) [2025-01-03 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163606', 'tblTempUsageDetail_20' ) start [2025-01-03 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163606', 'tblTempUsageDetail_20' ) end [2025-01-03 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:06:22] Production.INFO: ==25689== Releasing lock... [2025-01-03 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:07:05 [end_date_ymd] => 2025-01-03 06:07:05 [RateCDR] => 1 ) [2025-01-03 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:07:05' and `end` < '2025-01-03 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:07:18] Production.INFO: count ==56 [2025-01-03 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:07:05 - End Time 2025-01-03 06:07:05 [2025-01-03 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163611', 'tblTempUsageDetail_20' ) start [2025-01-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163611', 'tblTempUsageDetail_20' ) end [2025-01-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163611', 'tblTempVendorCDR_20' ) start [2025-01-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163611', 'tblTempVendorCDR_20' ) end [2025-01-03 06:07:18] Production.INFO: ProcessCDR(1,14163611,1,1,2) [2025-01-03 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163611', 'tblTempUsageDetail_20' ) start [2025-01-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163611', 'tblTempUsageDetail_20' ) end [2025-01-03 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:07:21] Production.INFO: ==25767== Releasing lock... [2025-01-03 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:08:06 [end_date_ymd] => 2025-01-03 06:08:06 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:08:06' and `end` < '2025-01-03 06: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-01-03 06:08:18] Production.INFO: count ==56 [2025-01-03 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:08:06 - End Time 2025-01-03 06:08:06 [2025-01-03 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163616', 'tblTempUsageDetail_20' ) start [2025-01-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163616', 'tblTempUsageDetail_20' ) end [2025-01-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163616', 'tblTempVendorCDR_20' ) start [2025-01-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163616', 'tblTempVendorCDR_20' ) end [2025-01-03 06:08:18] Production.INFO: ProcessCDR(1,14163616,1,1,2) [2025-01-03 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163616', 'tblTempUsageDetail_20' ) start [2025-01-03 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163616', 'tblTempUsageDetail_20' ) end [2025-01-03 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:08:21] Production.INFO: ==25875== Releasing lock... [2025-01-03 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:09:05 [end_date_ymd] => 2025-01-03 06:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:09:05' and `end` < '2025-01-03 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-01-03 06:09:18] Production.INFO: count ==56 [2025-01-03 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:09:05 - End Time 2025-01-03 06:09:05 [2025-01-03 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163621', 'tblTempUsageDetail_20' ) start [2025-01-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163621', 'tblTempUsageDetail_20' ) end [2025-01-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163621', 'tblTempVendorCDR_20' ) start [2025-01-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163621', 'tblTempVendorCDR_20' ) end [2025-01-03 06:09:18] Production.INFO: ProcessCDR(1,14163621,1,1,2) [2025-01-03 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163621', 'tblTempUsageDetail_20' ) start [2025-01-03 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163621', 'tblTempUsageDetail_20' ) end [2025-01-03 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:09:22] Production.INFO: ==25987== Releasing lock... [2025-01-03 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:10:06 [end_date_ymd] => 2025-01-03 06:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:10:06' and `end` < '2025-01-03 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-01-03 06:10:19] Production.INFO: count ==48 [2025-01-03 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:10:06 - End Time 2025-01-03 06:10:06 [2025-01-03 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163627', 'tblTempUsageDetail_20' ) start [2025-01-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163627', 'tblTempUsageDetail_20' ) end [2025-01-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163627', 'tblTempVendorCDR_20' ) start [2025-01-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163627', 'tblTempVendorCDR_20' ) end [2025-01-03 06:10:19] Production.INFO: ProcessCDR(1,14163627,1,1,2) [2025-01-03 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163627', 'tblTempUsageDetail_20' ) start [2025-01-03 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163627', 'tblTempUsageDetail_20' ) end [2025-01-03 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:10:22] Production.INFO: ==26106== Releasing lock... [2025-01-03 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:11:05 [end_date_ymd] => 2025-01-03 06:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:11:05' and `end` < '2025-01-03 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-01-03 06:11:18] Production.INFO: count ==48 [2025-01-03 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:11:05 - End Time 2025-01-03 06:11:05 [2025-01-03 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163632', 'tblTempUsageDetail_20' ) start [2025-01-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163632', 'tblTempUsageDetail_20' ) end [2025-01-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163632', 'tblTempVendorCDR_20' ) start [2025-01-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163632', 'tblTempVendorCDR_20' ) end [2025-01-03 06:11:18] Production.INFO: ProcessCDR(1,14163632,1,1,2) [2025-01-03 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163632', 'tblTempUsageDetail_20' ) start [2025-01-03 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163632', 'tblTempUsageDetail_20' ) end [2025-01-03 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:11:21] Production.INFO: ==26258== Releasing lock... [2025-01-03 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:12:06 [end_date_ymd] => 2025-01-03 06:12:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:12:06' and `end` < '2025-01-03 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-01-03 06:12:18] Production.INFO: count ==48 [2025-01-03 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:12:06 - End Time 2025-01-03 06:12:06 [2025-01-03 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163637', 'tblTempUsageDetail_20' ) start [2025-01-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163637', 'tblTempUsageDetail_20' ) end [2025-01-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163637', 'tblTempVendorCDR_20' ) start [2025-01-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163637', 'tblTempVendorCDR_20' ) end [2025-01-03 06:12:18] Production.INFO: ProcessCDR(1,14163637,1,1,2) [2025-01-03 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163637', 'tblTempUsageDetail_20' ) start [2025-01-03 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163637', 'tblTempUsageDetail_20' ) end [2025-01-03 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:12:22] Production.INFO: ==26368== Releasing lock... [2025-01-03 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:13:05 [end_date_ymd] => 2025-01-03 06:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:13:05' and `end` < '2025-01-03 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-01-03 06:13:18] Production.INFO: count ==48 [2025-01-03 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:13:05 - End Time 2025-01-03 06:13:05 [2025-01-03 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163642', 'tblTempUsageDetail_20' ) start [2025-01-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163642', 'tblTempUsageDetail_20' ) end [2025-01-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163642', 'tblTempVendorCDR_20' ) start [2025-01-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163642', 'tblTempVendorCDR_20' ) end [2025-01-03 06:13:18] Production.INFO: ProcessCDR(1,14163642,1,1,2) [2025-01-03 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163642', 'tblTempUsageDetail_20' ) start [2025-01-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163642', 'tblTempUsageDetail_20' ) end [2025-01-03 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:13:21] Production.INFO: ==26481== Releasing lock... [2025-01-03 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:14:06 [end_date_ymd] => 2025-01-03 06:14:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:14:06' and `end` < '2025-01-03 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-01-03 06:14:20] Production.INFO: count ==47 [2025-01-03 06:14:20] Production.ERROR: pbx CDR StartTime 2025-01-03 03:14:06 - End Time 2025-01-03 06:14:06 [2025-01-03 06:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163647', 'tblTempUsageDetail_20' ) start [2025-01-03 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163647', 'tblTempUsageDetail_20' ) end [2025-01-03 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163647', 'tblTempVendorCDR_20' ) start [2025-01-03 06:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163647', 'tblTempVendorCDR_20' ) end [2025-01-03 06:14:20] Production.INFO: ProcessCDR(1,14163647,1,1,2) [2025-01-03 06:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163647', 'tblTempUsageDetail_20' ) start [2025-01-03 06:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163647', 'tblTempUsageDetail_20' ) end [2025-01-03 06:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:14:23] Production.INFO: ==26599== Releasing lock... [2025-01-03 06:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:15:05 [end_date_ymd] => 2025-01-03 06:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:15:05' and `end` < '2025-01-03 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-01-03 06:15:17] Production.INFO: count ==47 [2025-01-03 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:15:05 - End Time 2025-01-03 06:15:05 [2025-01-03 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163652', 'tblTempUsageDetail_20' ) start [2025-01-03 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163652', 'tblTempUsageDetail_20' ) end [2025-01-03 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163652', 'tblTempVendorCDR_20' ) start [2025-01-03 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163652', 'tblTempVendorCDR_20' ) end [2025-01-03 06:15:17] Production.INFO: ProcessCDR(1,14163652,1,1,2) [2025-01-03 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163652', 'tblTempUsageDetail_20' ) start [2025-01-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163652', 'tblTempUsageDetail_20' ) end [2025-01-03 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:15:21] Production.INFO: ==26716== Releasing lock... [2025-01-03 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:16:05 [end_date_ymd] => 2025-01-03 06:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:16:05' and `end` < '2025-01-03 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-01-03 06:16:18] Production.INFO: count ==47 [2025-01-03 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:16:05 - End Time 2025-01-03 06:16:05 [2025-01-03 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163657', 'tblTempUsageDetail_20' ) start [2025-01-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163657', 'tblTempUsageDetail_20' ) end [2025-01-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163657', 'tblTempVendorCDR_20' ) start [2025-01-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163657', 'tblTempVendorCDR_20' ) end [2025-01-03 06:16:18] Production.INFO: ProcessCDR(1,14163657,1,1,2) [2025-01-03 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163657', 'tblTempUsageDetail_20' ) start [2025-01-03 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163657', 'tblTempUsageDetail_20' ) end [2025-01-03 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:16:21] Production.INFO: ==26835== Releasing lock... [2025-01-03 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:17:05 [end_date_ymd] => 2025-01-03 06:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:17:05' and `end` < '2025-01-03 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-01-03 06:17:19] Production.INFO: count ==47 [2025-01-03 06:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:17:05 - End Time 2025-01-03 06:17:05 [2025-01-03 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163662', 'tblTempUsageDetail_20' ) start [2025-01-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163662', 'tblTempUsageDetail_20' ) end [2025-01-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163662', 'tblTempVendorCDR_20' ) start [2025-01-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163662', 'tblTempVendorCDR_20' ) end [2025-01-03 06:17:19] Production.INFO: ProcessCDR(1,14163662,1,1,2) [2025-01-03 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163662', 'tblTempUsageDetail_20' ) start [2025-01-03 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163662', 'tblTempUsageDetail_20' ) end [2025-01-03 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:17:22] Production.INFO: ==26951== Releasing lock... [2025-01-03 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:17:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:18:05 [end_date_ymd] => 2025-01-03 06:18:05 [RateCDR] => 1 ) [2025-01-03 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:18:05' and `end` < '2025-01-03 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:18:19] Production.INFO: count ==47 [2025-01-03 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:18:05 - End Time 2025-01-03 06:18:05 [2025-01-03 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163667', 'tblTempUsageDetail_20' ) start [2025-01-03 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163667', 'tblTempUsageDetail_20' ) end [2025-01-03 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163667', 'tblTempVendorCDR_20' ) start [2025-01-03 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163667', 'tblTempVendorCDR_20' ) end [2025-01-03 06:18:19] Production.INFO: ProcessCDR(1,14163667,1,1,2) [2025-01-03 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163667', 'tblTempUsageDetail_20' ) start [2025-01-03 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163667', 'tblTempUsageDetail_20' ) end [2025-01-03 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:18:22] Production.INFO: ==27061== Releasing lock... [2025-01-03 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:19:05 [end_date_ymd] => 2025-01-03 06:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:19:05' and `end` < '2025-01-03 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-01-03 06:19:18] Production.INFO: count ==47 [2025-01-03 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:19:05 - End Time 2025-01-03 06:19:05 [2025-01-03 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163672', 'tblTempUsageDetail_20' ) start [2025-01-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163672', 'tblTempUsageDetail_20' ) end [2025-01-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163672', 'tblTempVendorCDR_20' ) start [2025-01-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163672', 'tblTempVendorCDR_20' ) end [2025-01-03 06:19:18] Production.INFO: ProcessCDR(1,14163672,1,1,2) [2025-01-03 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163672', 'tblTempUsageDetail_20' ) start [2025-01-03 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163672', 'tblTempUsageDetail_20' ) end [2025-01-03 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:19:21] Production.INFO: ==27177== Releasing lock... [2025-01-03 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:20:06 [end_date_ymd] => 2025-01-03 06:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:20:06' and `end` < '2025-01-03 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-01-03 06:20:19] Production.INFO: count ==47 [2025-01-03 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:20:06 - End Time 2025-01-03 06:20:06 [2025-01-03 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163678', 'tblTempUsageDetail_20' ) start [2025-01-03 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163678', 'tblTempUsageDetail_20' ) end [2025-01-03 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163678', 'tblTempVendorCDR_20' ) start [2025-01-03 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163678', 'tblTempVendorCDR_20' ) end [2025-01-03 06:20:19] Production.INFO: ProcessCDR(1,14163678,1,1,2) [2025-01-03 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163678', 'tblTempUsageDetail_20' ) start [2025-01-03 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163678', 'tblTempUsageDetail_20' ) end [2025-01-03 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:20:22] Production.INFO: ==27299== Releasing lock... [2025-01-03 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:21:04 [end_date_ymd] => 2025-01-03 06:21:04 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:21:04' and `end` < '2025-01-03 06: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-01-03 06:21:17] Production.INFO: count ==47 [2025-01-03 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:21:04 - End Time 2025-01-03 06:21:04 [2025-01-03 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163683', 'tblTempUsageDetail_20' ) start [2025-01-03 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163683', 'tblTempUsageDetail_20' ) end [2025-01-03 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163683', 'tblTempVendorCDR_20' ) start [2025-01-03 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163683', 'tblTempVendorCDR_20' ) end [2025-01-03 06:21:17] Production.INFO: ProcessCDR(1,14163683,1,1,2) [2025-01-03 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163683', 'tblTempUsageDetail_20' ) start [2025-01-03 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163683', 'tblTempUsageDetail_20' ) end [2025-01-03 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:21:20] Production.INFO: ==27415== Releasing lock... [2025-01-03 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:21:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:22:05 [end_date_ymd] => 2025-01-03 06:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:22:05' and `end` < '2025-01-03 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-01-03 06:22:18] Production.INFO: count ==47 [2025-01-03 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:22:05 - End Time 2025-01-03 06:22:05 [2025-01-03 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163688', 'tblTempUsageDetail_20' ) start [2025-01-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163688', 'tblTempUsageDetail_20' ) end [2025-01-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163688', 'tblTempVendorCDR_20' ) start [2025-01-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163688', 'tblTempVendorCDR_20' ) end [2025-01-03 06:22:18] Production.INFO: ProcessCDR(1,14163688,1,1,2) [2025-01-03 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163688', 'tblTempUsageDetail_20' ) start [2025-01-03 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163688', 'tblTempUsageDetail_20' ) end [2025-01-03 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:22:21] Production.INFO: ==27535== Releasing lock... [2025-01-03 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:23:04 [end_date_ymd] => 2025-01-03 06:23:04 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:23:04' and `end` < '2025-01-03 06: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-01-03 06:23:18] Production.INFO: count ==47 [2025-01-03 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:23:04 - End Time 2025-01-03 06:23:04 [2025-01-03 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163693', 'tblTempUsageDetail_20' ) start [2025-01-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163693', 'tblTempUsageDetail_20' ) end [2025-01-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163693', 'tblTempVendorCDR_20' ) start [2025-01-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163693', 'tblTempVendorCDR_20' ) end [2025-01-03 06:23:18] Production.INFO: ProcessCDR(1,14163693,1,1,2) [2025-01-03 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163693', 'tblTempUsageDetail_20' ) start [2025-01-03 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163693', 'tblTempUsageDetail_20' ) end [2025-01-03 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:23:21] Production.INFO: ==27646== Releasing lock... [2025-01-03 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:24:05 [end_date_ymd] => 2025-01-03 06:24:05 [RateCDR] => 1 ) [2025-01-03 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:24:05' and `end` < '2025-01-03 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:24:18] Production.INFO: count ==46 [2025-01-03 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:24:05 - End Time 2025-01-03 06:24:05 [2025-01-03 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163698', 'tblTempUsageDetail_20' ) start [2025-01-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163698', 'tblTempUsageDetail_20' ) end [2025-01-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163698', 'tblTempVendorCDR_20' ) start [2025-01-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163698', 'tblTempVendorCDR_20' ) end [2025-01-03 06:24:18] Production.INFO: ProcessCDR(1,14163698,1,1,2) [2025-01-03 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163698', 'tblTempUsageDetail_20' ) start [2025-01-03 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163698', 'tblTempUsageDetail_20' ) end [2025-01-03 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:24:21] Production.INFO: ==27760== Releasing lock... [2025-01-03 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:25:04 [end_date_ymd] => 2025-01-03 06:25:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:25:04' and `end` < '2025-01-03 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-01-03 06:25:17] Production.INFO: count ==46 [2025-01-03 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:25:04 - End Time 2025-01-03 06:25:04 [2025-01-03 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163703', 'tblTempUsageDetail_20' ) start [2025-01-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163703', 'tblTempUsageDetail_20' ) end [2025-01-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163703', 'tblTempVendorCDR_20' ) start [2025-01-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163703', 'tblTempVendorCDR_20' ) end [2025-01-03 06:25:17] Production.INFO: ProcessCDR(1,14163703,1,1,2) [2025-01-03 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163703', 'tblTempUsageDetail_20' ) start [2025-01-03 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163703', 'tblTempUsageDetail_20' ) end [2025-01-03 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:25:20] Production.INFO: ==27875== Releasing lock... [2025-01-03 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:26:04 [end_date_ymd] => 2025-01-03 06:26:04 [RateCDR] => 1 ) [2025-01-03 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:26:04' and `end` < '2025-01-03 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:26:17] Production.INFO: count ==46 [2025-01-03 06:26:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:26:04 - End Time 2025-01-03 06:26:04 [2025-01-03 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163708', 'tblTempUsageDetail_20' ) start [2025-01-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163708', 'tblTempUsageDetail_20' ) end [2025-01-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163708', 'tblTempVendorCDR_20' ) start [2025-01-03 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163708', 'tblTempVendorCDR_20' ) end [2025-01-03 06:26:17] Production.INFO: ProcessCDR(1,14163708,1,1,2) [2025-01-03 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163708', 'tblTempUsageDetail_20' ) start [2025-01-03 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163708', 'tblTempUsageDetail_20' ) end [2025-01-03 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:26:20] Production.INFO: ==27992== Releasing lock... [2025-01-03 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:26:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:27:05 [end_date_ymd] => 2025-01-03 06:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:27:05' and `end` < '2025-01-03 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-01-03 06:27:18] Production.INFO: count ==46 [2025-01-03 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:27:05 - End Time 2025-01-03 06:27:05 [2025-01-03 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163713', 'tblTempUsageDetail_20' ) start [2025-01-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163713', 'tblTempUsageDetail_20' ) end [2025-01-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163713', 'tblTempVendorCDR_20' ) start [2025-01-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163713', 'tblTempVendorCDR_20' ) end [2025-01-03 06:27:18] Production.INFO: ProcessCDR(1,14163713,1,1,2) [2025-01-03 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163713', 'tblTempUsageDetail_20' ) start [2025-01-03 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163713', 'tblTempUsageDetail_20' ) end [2025-01-03 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:27:21] Production.INFO: ==28150== Releasing lock... [2025-01-03 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:28:05 [end_date_ymd] => 2025-01-03 06:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:28:05' and `end` < '2025-01-03 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-01-03 06:28:18] Production.INFO: count ==46 [2025-01-03 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:28:05 - End Time 2025-01-03 06:28:05 [2025-01-03 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163718', 'tblTempUsageDetail_20' ) start [2025-01-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163718', 'tblTempUsageDetail_20' ) end [2025-01-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163718', 'tblTempVendorCDR_20' ) start [2025-01-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163718', 'tblTempVendorCDR_20' ) end [2025-01-03 06:28:18] Production.INFO: ProcessCDR(1,14163718,1,1,2) [2025-01-03 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163718', 'tblTempUsageDetail_20' ) start [2025-01-03 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163718', 'tblTempUsageDetail_20' ) end [2025-01-03 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:28:22] Production.INFO: ==28239== Releasing lock... [2025-01-03 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:29:05 [end_date_ymd] => 2025-01-03 06:29:05 [RateCDR] => 1 ) [2025-01-03 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:29:05' and `end` < '2025-01-03 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:29:17] Production.INFO: count ==46 [2025-01-03 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:29:05 - End Time 2025-01-03 06:29:05 [2025-01-03 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163723', 'tblTempUsageDetail_20' ) start [2025-01-03 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163723', 'tblTempUsageDetail_20' ) end [2025-01-03 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163723', 'tblTempVendorCDR_20' ) start [2025-01-03 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163723', 'tblTempVendorCDR_20' ) end [2025-01-03 06:29:17] Production.INFO: ProcessCDR(1,14163723,1,1,2) [2025-01-03 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163723', 'tblTempUsageDetail_20' ) start [2025-01-03 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163723', 'tblTempUsageDetail_20' ) end [2025-01-03 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:29:21] Production.INFO: ==28311== Releasing lock... [2025-01-03 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:30:05 [end_date_ymd] => 2025-01-03 06:30:05 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:30:05' and `end` < '2025-01-03 06: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-01-03 06:30:19] Production.INFO: count ==42 [2025-01-03 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:30:05 - End Time 2025-01-03 06:30:05 [2025-01-03 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163729', 'tblTempUsageDetail_20' ) start [2025-01-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163729', 'tblTempUsageDetail_20' ) end [2025-01-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163729', 'tblTempVendorCDR_20' ) start [2025-01-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163729', 'tblTempVendorCDR_20' ) end [2025-01-03 06:30:19] Production.INFO: ProcessCDR(1,14163729,1,1,2) [2025-01-03 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163729', 'tblTempUsageDetail_20' ) start [2025-01-03 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163729', 'tblTempUsageDetail_20' ) end [2025-01-03 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:30:22] Production.INFO: ==28387== Releasing lock... [2025-01-03 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:31:05 [end_date_ymd] => 2025-01-03 06:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:31:05' and `end` < '2025-01-03 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-01-03 06:31:18] Production.INFO: count ==40 [2025-01-03 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:31:05 - End Time 2025-01-03 06:31:05 [2025-01-03 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163734', 'tblTempUsageDetail_20' ) start [2025-01-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163734', 'tblTempUsageDetail_20' ) end [2025-01-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163734', 'tblTempVendorCDR_20' ) start [2025-01-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163734', 'tblTempVendorCDR_20' ) end [2025-01-03 06:31:18] Production.INFO: ProcessCDR(1,14163734,1,1,2) [2025-01-03 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163734', 'tblTempUsageDetail_20' ) start [2025-01-03 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163734', 'tblTempUsageDetail_20' ) end [2025-01-03 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:31:21] Production.INFO: ==28459== Releasing lock... [2025-01-03 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:32:05 [end_date_ymd] => 2025-01-03 06:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:32:05' and `end` < '2025-01-03 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-01-03 06:32:19] Production.INFO: count ==40 [2025-01-03 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:32:05 - End Time 2025-01-03 06:32:05 [2025-01-03 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163739', 'tblTempUsageDetail_20' ) start [2025-01-03 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163739', 'tblTempUsageDetail_20' ) end [2025-01-03 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163739', 'tblTempVendorCDR_20' ) start [2025-01-03 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163739', 'tblTempVendorCDR_20' ) end [2025-01-03 06:32:19] Production.INFO: ProcessCDR(1,14163739,1,1,2) [2025-01-03 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163739', 'tblTempUsageDetail_20' ) start [2025-01-03 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163739', 'tblTempUsageDetail_20' ) end [2025-01-03 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:32:22] Production.INFO: ==28529== Releasing lock... [2025-01-03 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:33:05 [end_date_ymd] => 2025-01-03 06:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:33:05' and `end` < '2025-01-03 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-01-03 06:33:18] Production.INFO: count ==40 [2025-01-03 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:33:05 - End Time 2025-01-03 06:33:05 [2025-01-03 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163744', 'tblTempUsageDetail_20' ) start [2025-01-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163744', 'tblTempUsageDetail_20' ) end [2025-01-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163744', 'tblTempVendorCDR_20' ) start [2025-01-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163744', 'tblTempVendorCDR_20' ) end [2025-01-03 06:33:18] Production.INFO: ProcessCDR(1,14163744,1,1,2) [2025-01-03 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163744', 'tblTempUsageDetail_20' ) start [2025-01-03 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163744', 'tblTempUsageDetail_20' ) end [2025-01-03 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:33:21] Production.INFO: ==28602== Releasing lock... [2025-01-03 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:34:05 [end_date_ymd] => 2025-01-03 06:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:34:05' and `end` < '2025-01-03 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-01-03 06:34:19] Production.INFO: count ==40 [2025-01-03 06:34:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:34:05 - End Time 2025-01-03 06:34:05 [2025-01-03 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163749', 'tblTempUsageDetail_20' ) start [2025-01-03 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163749', 'tblTempUsageDetail_20' ) end [2025-01-03 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163749', 'tblTempVendorCDR_20' ) start [2025-01-03 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163749', 'tblTempVendorCDR_20' ) end [2025-01-03 06:34:19] Production.INFO: ProcessCDR(1,14163749,1,1,2) [2025-01-03 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163749', 'tblTempUsageDetail_20' ) start [2025-01-03 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163749', 'tblTempUsageDetail_20' ) end [2025-01-03 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:34:22] Production.INFO: ==28679== Releasing lock... [2025-01-03 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:35:05 [end_date_ymd] => 2025-01-03 06:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:35:05' and `end` < '2025-01-03 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-01-03 06:35:17] Production.INFO: count ==40 [2025-01-03 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:35:05 - End Time 2025-01-03 06:35:05 [2025-01-03 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163754', 'tblTempUsageDetail_20' ) start [2025-01-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163754', 'tblTempUsageDetail_20' ) end [2025-01-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163754', 'tblTempVendorCDR_20' ) start [2025-01-03 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163754', 'tblTempVendorCDR_20' ) end [2025-01-03 06:35:17] Production.INFO: ProcessCDR(1,14163754,1,1,2) [2025-01-03 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163754', 'tblTempUsageDetail_20' ) start [2025-01-03 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163754', 'tblTempUsageDetail_20' ) end [2025-01-03 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:35:20] Production.INFO: ==28751== Releasing lock... [2025-01-03 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:36:05 [end_date_ymd] => 2025-01-03 06:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:36:05' and `end` < '2025-01-03 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-01-03 06:36:18] Production.INFO: count ==40 [2025-01-03 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:36:05 - End Time 2025-01-03 06:36:05 [2025-01-03 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163759', 'tblTempUsageDetail_20' ) start [2025-01-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163759', 'tblTempUsageDetail_20' ) end [2025-01-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163759', 'tblTempVendorCDR_20' ) start [2025-01-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163759', 'tblTempVendorCDR_20' ) end [2025-01-03 06:36:18] Production.INFO: ProcessCDR(1,14163759,1,1,2) [2025-01-03 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163759', 'tblTempUsageDetail_20' ) start [2025-01-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163759', 'tblTempUsageDetail_20' ) end [2025-01-03 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:36:21] Production.INFO: ==28821== Releasing lock... [2025-01-03 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:37:04 [end_date_ymd] => 2025-01-03 06:37:04 [RateCDR] => 1 ) [2025-01-03 06:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:37:04' and `end` < '2025-01-03 06:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:37:18] Production.INFO: count ==40 [2025-01-03 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:37:04 - End Time 2025-01-03 06:37:04 [2025-01-03 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163764', 'tblTempUsageDetail_20' ) start [2025-01-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163764', 'tblTempUsageDetail_20' ) end [2025-01-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163764', 'tblTempVendorCDR_20' ) start [2025-01-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163764', 'tblTempVendorCDR_20' ) end [2025-01-03 06:37:18] Production.INFO: ProcessCDR(1,14163764,1,1,2) [2025-01-03 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163764', 'tblTempUsageDetail_20' ) start [2025-01-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163764', 'tblTempUsageDetail_20' ) end [2025-01-03 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:37:21] Production.INFO: ==28891== Releasing lock... [2025-01-03 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:38:05 [end_date_ymd] => 2025-01-03 06:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:38:05' and `end` < '2025-01-03 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-01-03 06:38:18] Production.INFO: count ==40 [2025-01-03 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:38:05 - End Time 2025-01-03 06:38:05 [2025-01-03 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163769', 'tblTempUsageDetail_20' ) start [2025-01-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163769', 'tblTempUsageDetail_20' ) end [2025-01-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163769', 'tblTempVendorCDR_20' ) start [2025-01-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163769', 'tblTempVendorCDR_20' ) end [2025-01-03 06:38:18] Production.INFO: ProcessCDR(1,14163769,1,1,2) [2025-01-03 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163769', 'tblTempUsageDetail_20' ) start [2025-01-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163769', 'tblTempUsageDetail_20' ) end [2025-01-03 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:38:21] Production.INFO: ==28962== Releasing lock... [2025-01-03 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:39:04 [end_date_ymd] => 2025-01-03 06:39:04 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:39:04' and `end` < '2025-01-03 06: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-01-03 06:39:17] Production.INFO: count ==40 [2025-01-03 06:39:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:39:04 - End Time 2025-01-03 06:39:04 [2025-01-03 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163774', 'tblTempUsageDetail_20' ) start [2025-01-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163774', 'tblTempUsageDetail_20' ) end [2025-01-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163774', 'tblTempVendorCDR_20' ) start [2025-01-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163774', 'tblTempVendorCDR_20' ) end [2025-01-03 06:39:17] Production.INFO: ProcessCDR(1,14163774,1,1,2) [2025-01-03 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163774', 'tblTempUsageDetail_20' ) start [2025-01-03 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163774', 'tblTempUsageDetail_20' ) end [2025-01-03 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:39:20] Production.INFO: ==29032== Releasing lock... [2025-01-03 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:39:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:40:06 [end_date_ymd] => 2025-01-03 06:40:06 [RateCDR] => 1 ) [2025-01-03 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:40:06' and `end` < '2025-01-03 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:40:19] Production.INFO: count ==40 [2025-01-03 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:40:06 - End Time 2025-01-03 06:40:06 [2025-01-03 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163780', 'tblTempUsageDetail_20' ) start [2025-01-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163780', 'tblTempUsageDetail_20' ) end [2025-01-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163780', 'tblTempVendorCDR_20' ) start [2025-01-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163780', 'tblTempVendorCDR_20' ) end [2025-01-03 06:40:19] Production.INFO: ProcessCDR(1,14163780,1,1,2) [2025-01-03 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163780', 'tblTempUsageDetail_20' ) start [2025-01-03 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163780', 'tblTempUsageDetail_20' ) end [2025-01-03 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:40:22] Production.INFO: ==29104== Releasing lock... [2025-01-03 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:41:05 [end_date_ymd] => 2025-01-03 06:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:41:05' and `end` < '2025-01-03 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-01-03 06:41:17] Production.INFO: count ==44 [2025-01-03 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:41:05 - End Time 2025-01-03 06:41:05 [2025-01-03 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163785', 'tblTempUsageDetail_20' ) start [2025-01-03 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163785', 'tblTempUsageDetail_20' ) end [2025-01-03 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163785', 'tblTempVendorCDR_20' ) start [2025-01-03 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163785', 'tblTempVendorCDR_20' ) end [2025-01-03 06:41:17] Production.INFO: ProcessCDR(1,14163785,1,1,2) [2025-01-03 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163785', 'tblTempUsageDetail_20' ) start [2025-01-03 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163785', 'tblTempUsageDetail_20' ) end [2025-01-03 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:41:20] Production.INFO: ==29177== Releasing lock... [2025-01-03 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:42:06 [end_date_ymd] => 2025-01-03 06:42:06 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:42:06' and `end` < '2025-01-03 06: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-01-03 06:42:18] Production.INFO: count ==44 [2025-01-03 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:42:06 - End Time 2025-01-03 06:42:06 [2025-01-03 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163790', 'tblTempUsageDetail_20' ) start [2025-01-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163790', 'tblTempUsageDetail_20' ) end [2025-01-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163790', 'tblTempVendorCDR_20' ) start [2025-01-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163790', 'tblTempVendorCDR_20' ) end [2025-01-03 06:42:18] Production.INFO: ProcessCDR(1,14163790,1,1,2) [2025-01-03 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163790', 'tblTempUsageDetail_20' ) start [2025-01-03 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163790', 'tblTempUsageDetail_20' ) end [2025-01-03 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:42:22] Production.INFO: ==29288== Releasing lock... [2025-01-03 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:43:04 [end_date_ymd] => 2025-01-03 06:43:04 [RateCDR] => 1 ) [2025-01-03 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:43:04' and `end` < '2025-01-03 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:43:17] Production.INFO: count ==44 [2025-01-03 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:43:04 - End Time 2025-01-03 06:43:04 [2025-01-03 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163795', 'tblTempUsageDetail_20' ) start [2025-01-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163795', 'tblTempUsageDetail_20' ) end [2025-01-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163795', 'tblTempVendorCDR_20' ) start [2025-01-03 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163795', 'tblTempVendorCDR_20' ) end [2025-01-03 06:43:17] Production.INFO: ProcessCDR(1,14163795,1,1,2) [2025-01-03 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163795', 'tblTempUsageDetail_20' ) start [2025-01-03 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163795', 'tblTempUsageDetail_20' ) end [2025-01-03 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:43:20] Production.INFO: ==29363== Releasing lock... [2025-01-03 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:44:05 [end_date_ymd] => 2025-01-03 06:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:44:05' and `end` < '2025-01-03 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-01-03 06:44:19] Production.INFO: count ==44 [2025-01-03 06:44:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:44:05 - End Time 2025-01-03 06:44:05 [2025-01-03 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163800', 'tblTempUsageDetail_20' ) start [2025-01-03 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163800', 'tblTempUsageDetail_20' ) end [2025-01-03 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163800', 'tblTempVendorCDR_20' ) start [2025-01-03 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163800', 'tblTempVendorCDR_20' ) end [2025-01-03 06:44:19] Production.INFO: ProcessCDR(1,14163800,1,1,2) [2025-01-03 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163800', 'tblTempUsageDetail_20' ) start [2025-01-03 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163800', 'tblTempUsageDetail_20' ) end [2025-01-03 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:44:22] Production.INFO: ==29434== Releasing lock... [2025-01-03 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:45:05 [end_date_ymd] => 2025-01-03 06:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:45:05' and `end` < '2025-01-03 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-01-03 06:45:19] Production.INFO: count ==44 [2025-01-03 06:45:19] Production.ERROR: pbx CDR StartTime 2025-01-03 03:45:05 - End Time 2025-01-03 06:45:05 [2025-01-03 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163804', 'tblTempUsageDetail_20' ) start [2025-01-03 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163804', 'tblTempUsageDetail_20' ) end [2025-01-03 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163804', 'tblTempVendorCDR_20' ) start [2025-01-03 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163804', 'tblTempVendorCDR_20' ) end [2025-01-03 06:45:19] Production.INFO: ProcessCDR(1,14163804,1,1,2) [2025-01-03 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163804', 'tblTempUsageDetail_20' ) start [2025-01-03 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163804', 'tblTempUsageDetail_20' ) end [2025-01-03 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:45:22] Production.INFO: ==29506== Releasing lock... [2025-01-03 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:46:05 [end_date_ymd] => 2025-01-03 06:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:46:05' and `end` < '2025-01-03 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-01-03 06:46:18] Production.INFO: count ==44 [2025-01-03 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:46:05 - End Time 2025-01-03 06:46:05 [2025-01-03 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163810', 'tblTempUsageDetail_20' ) start [2025-01-03 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163810', 'tblTempUsageDetail_20' ) end [2025-01-03 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163810', 'tblTempVendorCDR_20' ) start [2025-01-03 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163810', 'tblTempVendorCDR_20' ) end [2025-01-03 06:46:18] Production.INFO: ProcessCDR(1,14163810,1,1,2) [2025-01-03 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163810', 'tblTempUsageDetail_20' ) start [2025-01-03 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163810', 'tblTempUsageDetail_20' ) end [2025-01-03 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:46:21] Production.INFO: ==29576== Releasing lock... [2025-01-03 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:47:05 [end_date_ymd] => 2025-01-03 06:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:47:05' and `end` < '2025-01-03 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-01-03 06:47:17] Production.INFO: count ==44 [2025-01-03 06:47:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:47:05 - End Time 2025-01-03 06:47:05 [2025-01-03 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163815', 'tblTempUsageDetail_20' ) start [2025-01-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163815', 'tblTempUsageDetail_20' ) end [2025-01-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163815', 'tblTempVendorCDR_20' ) start [2025-01-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163815', 'tblTempVendorCDR_20' ) end [2025-01-03 06:47:17] Production.INFO: ProcessCDR(1,14163815,1,1,2) [2025-01-03 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163815', 'tblTempUsageDetail_20' ) start [2025-01-03 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163815', 'tblTempUsageDetail_20' ) end [2025-01-03 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:47:20] Production.INFO: ==29649== Releasing lock... [2025-01-03 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:48:04 [end_date_ymd] => 2025-01-03 06:48:04 [RateCDR] => 1 ) [2025-01-03 06: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-01-03 03:48:04' and `end` < '2025-01-03 06: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-01-03 06:48:18] Production.INFO: count ==44 [2025-01-03 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:48:04 - End Time 2025-01-03 06:48:04 [2025-01-03 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163820', 'tblTempUsageDetail_20' ) start [2025-01-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163820', 'tblTempUsageDetail_20' ) end [2025-01-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163820', 'tblTempVendorCDR_20' ) start [2025-01-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163820', 'tblTempVendorCDR_20' ) end [2025-01-03 06:48:18] Production.INFO: ProcessCDR(1,14163820,1,1,2) [2025-01-03 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163820', 'tblTempUsageDetail_20' ) start [2025-01-03 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163820', 'tblTempUsageDetail_20' ) end [2025-01-03 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:48:21] Production.INFO: ==29724== Releasing lock... [2025-01-03 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:49:05 [end_date_ymd] => 2025-01-03 06:49:05 [RateCDR] => 1 ) [2025-01-03 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:49:05' and `end` < '2025-01-03 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:49:18] Production.INFO: count ==44 [2025-01-03 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:49:05 - End Time 2025-01-03 06:49:05 [2025-01-03 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163825', 'tblTempUsageDetail_20' ) start [2025-01-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163825', 'tblTempUsageDetail_20' ) end [2025-01-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163825', 'tblTempVendorCDR_20' ) start [2025-01-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163825', 'tblTempVendorCDR_20' ) end [2025-01-03 06:49:18] Production.INFO: ProcessCDR(1,14163825,1,1,2) [2025-01-03 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163825', 'tblTempUsageDetail_20' ) start [2025-01-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163825', 'tblTempUsageDetail_20' ) end [2025-01-03 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:49:21] Production.INFO: ==29793== Releasing lock... [2025-01-03 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:50:05 [end_date_ymd] => 2025-01-03 06:50:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:50:05' and `end` < '2025-01-03 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-01-03 06:50:17] Production.INFO: count ==42 [2025-01-03 06:50:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:50:05 - End Time 2025-01-03 06:50:05 [2025-01-03 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163831', 'tblTempUsageDetail_20' ) start [2025-01-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163831', 'tblTempUsageDetail_20' ) end [2025-01-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163831', 'tblTempVendorCDR_20' ) start [2025-01-03 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163831', 'tblTempVendorCDR_20' ) end [2025-01-03 06:50:17] Production.INFO: ProcessCDR(1,14163831,1,1,2) [2025-01-03 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163831', 'tblTempUsageDetail_20' ) start [2025-01-03 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163831', 'tblTempUsageDetail_20' ) end [2025-01-03 06:50:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:50:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:50:20] Production.INFO: ==29866== Releasing lock... [2025-01-03 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:50:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:51:05 [end_date_ymd] => 2025-01-03 06:51:05 [RateCDR] => 1 ) [2025-01-03 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:51:05' and `end` < '2025-01-03 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:51:18] Production.INFO: count ==42 [2025-01-03 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:51:05 - End Time 2025-01-03 06:51:05 [2025-01-03 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163836', 'tblTempUsageDetail_20' ) start [2025-01-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163836', 'tblTempUsageDetail_20' ) end [2025-01-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163836', 'tblTempVendorCDR_20' ) start [2025-01-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163836', 'tblTempVendorCDR_20' ) end [2025-01-03 06:51:18] Production.INFO: ProcessCDR(1,14163836,1,1,2) [2025-01-03 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163836', 'tblTempUsageDetail_20' ) start [2025-01-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163836', 'tblTempUsageDetail_20' ) end [2025-01-03 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:51:21] Production.INFO: ==29939== Releasing lock... [2025-01-03 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:52:05 [end_date_ymd] => 2025-01-03 06:52:05 [RateCDR] => 1 ) [2025-01-03 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:52:05' and `end` < '2025-01-03 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:52:18] Production.INFO: count ==42 [2025-01-03 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:52:05 - End Time 2025-01-03 06:52:05 [2025-01-03 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163841', 'tblTempUsageDetail_20' ) start [2025-01-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163841', 'tblTempUsageDetail_20' ) end [2025-01-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163841', 'tblTempVendorCDR_20' ) start [2025-01-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163841', 'tblTempVendorCDR_20' ) end [2025-01-03 06:52:18] Production.INFO: ProcessCDR(1,14163841,1,1,2) [2025-01-03 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163841', 'tblTempUsageDetail_20' ) start [2025-01-03 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163841', 'tblTempUsageDetail_20' ) end [2025-01-03 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:52:21] Production.INFO: ==30009== Releasing lock... [2025-01-03 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:53:04 [end_date_ymd] => 2025-01-03 06:53:04 [RateCDR] => 1 ) [2025-01-03 06:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:53:04' and `end` < '2025-01-03 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:53:17] Production.INFO: count ==42 [2025-01-03 06:53:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:53:04 - End Time 2025-01-03 06:53:04 [2025-01-03 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163846', 'tblTempUsageDetail_20' ) start [2025-01-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163846', 'tblTempUsageDetail_20' ) end [2025-01-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163846', 'tblTempVendorCDR_20' ) start [2025-01-03 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163846', 'tblTempVendorCDR_20' ) end [2025-01-03 06:53:17] Production.INFO: ProcessCDR(1,14163846,1,1,2) [2025-01-03 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163846', 'tblTempUsageDetail_20' ) start [2025-01-03 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163846', 'tblTempUsageDetail_20' ) end [2025-01-03 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:53:20] Production.INFO: ==30080== Releasing lock... [2025-01-03 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:53:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:54:05 [end_date_ymd] => 2025-01-03 06:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:54:05' and `end` < '2025-01-03 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-01-03 06:54:18] Production.INFO: count ==42 [2025-01-03 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:54:05 - End Time 2025-01-03 06:54:05 [2025-01-03 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163851', 'tblTempUsageDetail_20' ) start [2025-01-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163851', 'tblTempUsageDetail_20' ) end [2025-01-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163851', 'tblTempVendorCDR_20' ) start [2025-01-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163851', 'tblTempVendorCDR_20' ) end [2025-01-03 06:54:18] Production.INFO: ProcessCDR(1,14163851,1,1,2) [2025-01-03 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163851', 'tblTempUsageDetail_20' ) start [2025-01-03 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163851', 'tblTempUsageDetail_20' ) end [2025-01-03 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:54:21] Production.INFO: ==30152== Releasing lock... [2025-01-03 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:55:05 [end_date_ymd] => 2025-01-03 06:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:55:05' and `end` < '2025-01-03 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-01-03 06:55:17] Production.INFO: count ==42 [2025-01-03 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:55:05 - End Time 2025-01-03 06:55:05 [2025-01-03 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163856', 'tblTempUsageDetail_20' ) start [2025-01-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163856', 'tblTempUsageDetail_20' ) end [2025-01-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163856', 'tblTempVendorCDR_20' ) start [2025-01-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163856', 'tblTempVendorCDR_20' ) end [2025-01-03 06:55:17] Production.INFO: ProcessCDR(1,14163856,1,1,2) [2025-01-03 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163856', 'tblTempUsageDetail_20' ) start [2025-01-03 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163856', 'tblTempUsageDetail_20' ) end [2025-01-03 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:55:20] Production.INFO: ==30224== Releasing lock... [2025-01-03 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:56:05 [end_date_ymd] => 2025-01-03 06:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:56:05' and `end` < '2025-01-03 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-01-03 06:56:18] Production.INFO: count ==42 [2025-01-03 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:56:05 - End Time 2025-01-03 06:56:05 [2025-01-03 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163861', 'tblTempUsageDetail_20' ) start [2025-01-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163861', 'tblTempUsageDetail_20' ) end [2025-01-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163861', 'tblTempVendorCDR_20' ) start [2025-01-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163861', 'tblTempVendorCDR_20' ) end [2025-01-03 06:56:18] Production.INFO: ProcessCDR(1,14163861,1,1,2) [2025-01-03 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163861', 'tblTempUsageDetail_20' ) start [2025-01-03 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163861', 'tblTempUsageDetail_20' ) end [2025-01-03 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:56:21] Production.INFO: ==30295== Releasing lock... [2025-01-03 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:57:04 [end_date_ymd] => 2025-01-03 06:57:04 [RateCDR] => 1 ) [2025-01-03 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 03:57:04' and `end` < '2025-01-03 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 06:57:17] Production.INFO: count ==42 [2025-01-03 06:57:17] Production.ERROR: pbx CDR StartTime 2025-01-03 03:57:04 - End Time 2025-01-03 06:57:04 [2025-01-03 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163866', 'tblTempUsageDetail_20' ) start [2025-01-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163866', 'tblTempUsageDetail_20' ) end [2025-01-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163866', 'tblTempVendorCDR_20' ) start [2025-01-03 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163866', 'tblTempVendorCDR_20' ) end [2025-01-03 06:57:17] Production.INFO: ProcessCDR(1,14163866,1,1,2) [2025-01-03 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163866', 'tblTempUsageDetail_20' ) start [2025-01-03 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163866', 'tblTempUsageDetail_20' ) end [2025-01-03 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:57:20] Production.INFO: ==30368== Releasing lock... [2025-01-03 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:58:05 [end_date_ymd] => 2025-01-03 06:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:58:05' and `end` < '2025-01-03 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-01-03 06:58:18] Production.INFO: count ==42 [2025-01-03 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:58:05 - End Time 2025-01-03 06:58:05 [2025-01-03 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163871', 'tblTempUsageDetail_20' ) start [2025-01-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163871', 'tblTempUsageDetail_20' ) end [2025-01-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163871', 'tblTempVendorCDR_20' ) start [2025-01-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163871', 'tblTempVendorCDR_20' ) end [2025-01-03 06:58:18] Production.INFO: ProcessCDR(1,14163871,1,1,2) [2025-01-03 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163871', 'tblTempUsageDetail_20' ) start [2025-01-03 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163871', 'tblTempUsageDetail_20' ) end [2025-01-03 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:58:21] Production.INFO: ==30478== Releasing lock... [2025-01-03 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 03:59:05 [end_date_ymd] => 2025-01-03 06:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 03:59:05' and `end` < '2025-01-03 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-01-03 06:59:18] Production.INFO: count ==42 [2025-01-03 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 03:59:05 - End Time 2025-01-03 06:59:05 [2025-01-03 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163876', 'tblTempUsageDetail_20' ) start [2025-01-03 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163876', 'tblTempUsageDetail_20' ) end [2025-01-03 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163876', 'tblTempVendorCDR_20' ) start [2025-01-03 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163876', 'tblTempVendorCDR_20' ) end [2025-01-03 06:59:18] Production.INFO: ProcessCDR(1,14163876,1,1,2) [2025-01-03 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163876', 'tblTempUsageDetail_20' ) start [2025-01-03 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163876', 'tblTempUsageDetail_20' ) end [2025-01-03 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 06:59:21] Production.INFO: ==30549== Releasing lock... [2025-01-03 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:00:05 [end_date_ymd] => 2025-01-03 07:00:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:00:05' and `end` < '2025-01-03 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-01-03 07:00:18] Production.INFO: count ==42 [2025-01-03 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:00:05 - End Time 2025-01-03 07:00:05 [2025-01-03 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163882', 'tblTempUsageDetail_20' ) start [2025-01-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163882', 'tblTempUsageDetail_20' ) end [2025-01-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163882', 'tblTempVendorCDR_20' ) start [2025-01-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163882', 'tblTempVendorCDR_20' ) end [2025-01-03 07:00:18] Production.INFO: ProcessCDR(1,14163882,1,1,2) [2025-01-03 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163882', 'tblTempUsageDetail_20' ) start [2025-01-03 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163882', 'tblTempUsageDetail_20' ) end [2025-01-03 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:00:21] Production.INFO: ==30623== Releasing lock... [2025-01-03 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:01:05 [end_date_ymd] => 2025-01-03 07:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:01:05' and `end` < '2025-01-03 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-01-03 07:01:25] Production.INFO: count ==42 [2025-01-03 07:01:25] Production.ERROR: pbx CDR StartTime 2025-01-03 04:01:05 - End Time 2025-01-03 07:01:05 [2025-01-03 07:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163887', 'tblTempUsageDetail_20' ) start [2025-01-03 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163887', 'tblTempUsageDetail_20' ) end [2025-01-03 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163887', 'tblTempVendorCDR_20' ) start [2025-01-03 07:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163887', 'tblTempVendorCDR_20' ) end [2025-01-03 07:01:25] Production.INFO: ProcessCDR(1,14163887,1,1,2) [2025-01-03 07:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163887', 'tblTempUsageDetail_20' ) start [2025-01-03 07:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163887', 'tblTempUsageDetail_20' ) end [2025-01-03 07:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:01:28] Production.INFO: ==30753== Releasing lock... [2025-01-03 07:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:01:28] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:02:05 [end_date_ymd] => 2025-01-03 07:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:02:05' and `end` < '2025-01-03 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-01-03 07:02:19] Production.INFO: count ==41 [2025-01-03 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:02:05 - End Time 2025-01-03 07:02:05 [2025-01-03 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163892', 'tblTempUsageDetail_20' ) start [2025-01-03 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163892', 'tblTempUsageDetail_20' ) end [2025-01-03 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163892', 'tblTempVendorCDR_20' ) start [2025-01-03 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163892', 'tblTempVendorCDR_20' ) end [2025-01-03 07:02:19] Production.INFO: ProcessCDR(1,14163892,1,1,2) [2025-01-03 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163892', 'tblTempUsageDetail_20' ) start [2025-01-03 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163892', 'tblTempUsageDetail_20' ) end [2025-01-03 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:02:22] Production.INFO: ==30861== Releasing lock... [2025-01-03 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:03:05 [end_date_ymd] => 2025-01-03 07:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:03:05' and `end` < '2025-01-03 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-01-03 07:03:22] Production.INFO: count ==40 [2025-01-03 07:03:22] Production.ERROR: pbx CDR StartTime 2025-01-03 04:03:05 - End Time 2025-01-03 07:03:05 [2025-01-03 07:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163897', 'tblTempUsageDetail_20' ) start [2025-01-03 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163897', 'tblTempUsageDetail_20' ) end [2025-01-03 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163897', 'tblTempVendorCDR_20' ) start [2025-01-03 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163897', 'tblTempVendorCDR_20' ) end [2025-01-03 07:03:22] Production.INFO: ProcessCDR(1,14163897,1,1,2) [2025-01-03 07:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163897', 'tblTempUsageDetail_20' ) start [2025-01-03 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163897', 'tblTempUsageDetail_20' ) end [2025-01-03 07:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:03:25] Production.INFO: ==30932== Releasing lock... [2025-01-03 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:03:25] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:04:05 [end_date_ymd] => 2025-01-03 07:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:04:05' and `end` < '2025-01-03 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-01-03 07:04:20] Production.INFO: count ==40 [2025-01-03 07:04:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:04:05 - End Time 2025-01-03 07:04:05 [2025-01-03 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163902', 'tblTempUsageDetail_20' ) start [2025-01-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163902', 'tblTempUsageDetail_20' ) end [2025-01-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163902', 'tblTempVendorCDR_20' ) start [2025-01-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163902', 'tblTempVendorCDR_20' ) end [2025-01-03 07:04:20] Production.INFO: ProcessCDR(1,14163902,1,1,2) [2025-01-03 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163902', 'tblTempUsageDetail_20' ) start [2025-01-03 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163902', 'tblTempUsageDetail_20' ) end [2025-01-03 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:04:23] Production.INFO: ==31004== Releasing lock... [2025-01-03 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:04:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:05:05 [end_date_ymd] => 2025-01-03 07:05:05 [RateCDR] => 1 ) [2025-01-03 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:05:05' and `end` < '2025-01-03 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:05:19] Production.INFO: count ==40 [2025-01-03 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:05:05 - End Time 2025-01-03 07:05:05 [2025-01-03 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163907', 'tblTempUsageDetail_20' ) start [2025-01-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163907', 'tblTempUsageDetail_20' ) end [2025-01-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163907', 'tblTempVendorCDR_20' ) start [2025-01-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163907', 'tblTempVendorCDR_20' ) end [2025-01-03 07:05:19] Production.INFO: ProcessCDR(1,14163907,1,1,2) [2025-01-03 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163907', 'tblTempUsageDetail_20' ) start [2025-01-03 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163907', 'tblTempUsageDetail_20' ) end [2025-01-03 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:05:22] Production.INFO: ==31152== Releasing lock... [2025-01-03 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:05:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:06:04 [end_date_ymd] => 2025-01-03 07:06:04 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:06:04' and `end` < '2025-01-03 07: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-01-03 07:06:19] Production.INFO: count ==40 [2025-01-03 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:06:04 - End Time 2025-01-03 07:06:04 [2025-01-03 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163912', 'tblTempUsageDetail_20' ) start [2025-01-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163912', 'tblTempUsageDetail_20' ) end [2025-01-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163912', 'tblTempVendorCDR_20' ) start [2025-01-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163912', 'tblTempVendorCDR_20' ) end [2025-01-03 07:06:19] Production.INFO: ProcessCDR(1,14163912,1,1,2) [2025-01-03 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163912', 'tblTempUsageDetail_20' ) start [2025-01-03 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163912', 'tblTempUsageDetail_20' ) end [2025-01-03 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:06:23] Production.INFO: ==31228== Releasing lock... [2025-01-03 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:06:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:07:05 [end_date_ymd] => 2025-01-03 07:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:07:05' and `end` < '2025-01-03 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-01-03 07:07:19] Production.INFO: count ==40 [2025-01-03 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:07:05 - End Time 2025-01-03 07:07:05 [2025-01-03 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163917', 'tblTempUsageDetail_20' ) start [2025-01-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163917', 'tblTempUsageDetail_20' ) end [2025-01-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163917', 'tblTempVendorCDR_20' ) start [2025-01-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163917', 'tblTempVendorCDR_20' ) end [2025-01-03 07:07:19] Production.INFO: ProcessCDR(1,14163917,1,1,2) [2025-01-03 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163917', 'tblTempUsageDetail_20' ) start [2025-01-03 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163917', 'tblTempUsageDetail_20' ) end [2025-01-03 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:07:23] Production.INFO: ==31299== Releasing lock... [2025-01-03 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:07:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:08:05 [end_date_ymd] => 2025-01-03 07:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:08:05' and `end` < '2025-01-03 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-01-03 07:08:20] Production.INFO: count ==40 [2025-01-03 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:08:05 - End Time 2025-01-03 07:08:05 [2025-01-03 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163922', 'tblTempUsageDetail_20' ) start [2025-01-03 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163922', 'tblTempUsageDetail_20' ) end [2025-01-03 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163922', 'tblTempVendorCDR_20' ) start [2025-01-03 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163922', 'tblTempVendorCDR_20' ) end [2025-01-03 07:08:20] Production.INFO: ProcessCDR(1,14163922,1,1,2) [2025-01-03 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163922', 'tblTempUsageDetail_20' ) start [2025-01-03 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163922', 'tblTempUsageDetail_20' ) end [2025-01-03 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:08:23] Production.INFO: ==31448== Releasing lock... [2025-01-03 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:09:05 [end_date_ymd] => 2025-01-03 07:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:09:05' and `end` < '2025-01-03 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-01-03 07:09:20] Production.INFO: count ==40 [2025-01-03 07:09:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:09:05 - End Time 2025-01-03 07:09:05 [2025-01-03 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163927', 'tblTempUsageDetail_20' ) start [2025-01-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163927', 'tblTempUsageDetail_20' ) end [2025-01-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163927', 'tblTempVendorCDR_20' ) start [2025-01-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163927', 'tblTempVendorCDR_20' ) end [2025-01-03 07:09:20] Production.INFO: ProcessCDR(1,14163927,1,1,2) [2025-01-03 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163927', 'tblTempUsageDetail_20' ) start [2025-01-03 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163927', 'tblTempUsageDetail_20' ) end [2025-01-03 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:09:23] Production.INFO: ==31518== Releasing lock... [2025-01-03 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:10:06 [end_date_ymd] => 2025-01-03 07:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:10:06' and `end` < '2025-01-03 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-01-03 07:10:22] Production.INFO: count ==48 [2025-01-03 07:10:22] Production.ERROR: pbx CDR StartTime 2025-01-03 04:10:06 - End Time 2025-01-03 07:10:06 [2025-01-03 07:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163933', 'tblTempUsageDetail_20' ) start [2025-01-03 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163933', 'tblTempUsageDetail_20' ) end [2025-01-03 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163933', 'tblTempVendorCDR_20' ) start [2025-01-03 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163933', 'tblTempVendorCDR_20' ) end [2025-01-03 07:10:22] Production.INFO: ProcessCDR(1,14163933,1,1,2) [2025-01-03 07:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163933', 'tblTempUsageDetail_20' ) start [2025-01-03 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163933', 'tblTempUsageDetail_20' ) end [2025-01-03 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:10:25] Production.INFO: ==31597== Releasing lock... [2025-01-03 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:10:25] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:11:04 [end_date_ymd] => 2025-01-03 07:11:04 [RateCDR] => 1 ) [2025-01-03 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:11:04' and `end` < '2025-01-03 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:11:21] Production.INFO: count ==49 [2025-01-03 07:11:21] Production.ERROR: pbx CDR StartTime 2025-01-03 04:11:04 - End Time 2025-01-03 07:11:04 [2025-01-03 07:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163938', 'tblTempUsageDetail_20' ) start [2025-01-03 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163938', 'tblTempUsageDetail_20' ) end [2025-01-03 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163938', 'tblTempVendorCDR_20' ) start [2025-01-03 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163938', 'tblTempVendorCDR_20' ) end [2025-01-03 07:11:21] Production.INFO: ProcessCDR(1,14163938,1,1,2) [2025-01-03 07:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163938', 'tblTempUsageDetail_20' ) start [2025-01-03 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163938', 'tblTempUsageDetail_20' ) end [2025-01-03 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:11:24] Production.INFO: ==31673== Releasing lock... [2025-01-03 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:11:24] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:12:05 [end_date_ymd] => 2025-01-03 07:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:12:05' and `end` < '2025-01-03 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-01-03 07:12:20] Production.INFO: count ==49 [2025-01-03 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:12:05 - End Time 2025-01-03 07:12:05 [2025-01-03 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163943', 'tblTempUsageDetail_20' ) start [2025-01-03 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163943', 'tblTempUsageDetail_20' ) end [2025-01-03 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163943', 'tblTempVendorCDR_20' ) start [2025-01-03 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163943', 'tblTempVendorCDR_20' ) end [2025-01-03 07:12:20] Production.INFO: ProcessCDR(1,14163943,1,1,2) [2025-01-03 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163943', 'tblTempUsageDetail_20' ) start [2025-01-03 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163943', 'tblTempUsageDetail_20' ) end [2025-01-03 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:12:23] Production.INFO: ==31824== Releasing lock... [2025-01-03 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:12:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:13:05 [end_date_ymd] => 2025-01-03 07:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:13:05' and `end` < '2025-01-03 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-01-03 07:13:20] Production.INFO: count ==49 [2025-01-03 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:13:05 - End Time 2025-01-03 07:13:05 [2025-01-03 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163948', 'tblTempUsageDetail_20' ) start [2025-01-03 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163948', 'tblTempUsageDetail_20' ) end [2025-01-03 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163948', 'tblTempVendorCDR_20' ) start [2025-01-03 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163948', 'tblTempVendorCDR_20' ) end [2025-01-03 07:13:20] Production.INFO: ProcessCDR(1,14163948,1,1,2) [2025-01-03 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163948', 'tblTempUsageDetail_20' ) start [2025-01-03 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163948', 'tblTempUsageDetail_20' ) end [2025-01-03 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:13:23] Production.INFO: ==31937== Releasing lock... [2025-01-03 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:14:05 [end_date_ymd] => 2025-01-03 07:14:05 [RateCDR] => 1 ) [2025-01-03 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:14:05' and `end` < '2025-01-03 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:14:20] Production.INFO: count ==49 [2025-01-03 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:14:05 - End Time 2025-01-03 07:14:05 [2025-01-03 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163953', 'tblTempUsageDetail_20' ) start [2025-01-03 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163953', 'tblTempUsageDetail_20' ) end [2025-01-03 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163953', 'tblTempVendorCDR_20' ) start [2025-01-03 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163953', 'tblTempVendorCDR_20' ) end [2025-01-03 07:14:20] Production.INFO: ProcessCDR(1,14163953,1,1,2) [2025-01-03 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163953', 'tblTempUsageDetail_20' ) start [2025-01-03 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163953', 'tblTempUsageDetail_20' ) end [2025-01-03 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:14:23] Production.INFO: ==32014== Releasing lock... [2025-01-03 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:15:05 [end_date_ymd] => 2025-01-03 07:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:15:05' and `end` < '2025-01-03 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-01-03 07:15:19] Production.INFO: count ==49 [2025-01-03 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:15:05 - End Time 2025-01-03 07:15:05 [2025-01-03 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163958', 'tblTempUsageDetail_20' ) start [2025-01-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163958', 'tblTempUsageDetail_20' ) end [2025-01-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163958', 'tblTempVendorCDR_20' ) start [2025-01-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163958', 'tblTempVendorCDR_20' ) end [2025-01-03 07:15:19] Production.INFO: ProcessCDR(1,14163958,1,1,2) [2025-01-03 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163958', 'tblTempUsageDetail_20' ) start [2025-01-03 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163958', 'tblTempUsageDetail_20' ) end [2025-01-03 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:15:22] Production.INFO: ==32168== Releasing lock... [2025-01-03 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:16:05 [end_date_ymd] => 2025-01-03 07:16:05 [RateCDR] => 1 ) [2025-01-03 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:16:05' and `end` < '2025-01-03 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:16:19] Production.INFO: count ==49 [2025-01-03 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:16:05 - End Time 2025-01-03 07:16:05 [2025-01-03 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163963', 'tblTempUsageDetail_20' ) start [2025-01-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163963', 'tblTempUsageDetail_20' ) end [2025-01-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163963', 'tblTempVendorCDR_20' ) start [2025-01-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163963', 'tblTempVendorCDR_20' ) end [2025-01-03 07:16:19] Production.INFO: ProcessCDR(1,14163963,1,1,2) [2025-01-03 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163963', 'tblTempUsageDetail_20' ) start [2025-01-03 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163963', 'tblTempUsageDetail_20' ) end [2025-01-03 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:16:22] Production.INFO: ==32243== Releasing lock... [2025-01-03 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:17:05 [end_date_ymd] => 2025-01-03 07:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:17:05' and `end` < '2025-01-03 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-01-03 07:17:20] Production.INFO: count ==49 [2025-01-03 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:17:05 - End Time 2025-01-03 07:17:05 [2025-01-03 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163968', 'tblTempUsageDetail_20' ) start [2025-01-03 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163968', 'tblTempUsageDetail_20' ) end [2025-01-03 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163968', 'tblTempVendorCDR_20' ) start [2025-01-03 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163968', 'tblTempVendorCDR_20' ) end [2025-01-03 07:17:20] Production.INFO: ProcessCDR(1,14163968,1,1,2) [2025-01-03 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163968', 'tblTempUsageDetail_20' ) start [2025-01-03 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163968', 'tblTempUsageDetail_20' ) end [2025-01-03 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:17:23] Production.INFO: ==32319== Releasing lock... [2025-01-03 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:18:05 [end_date_ymd] => 2025-01-03 07:18:05 [RateCDR] => 1 ) [2025-01-03 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:18:05' and `end` < '2025-01-03 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:18:20] Production.INFO: count ==49 [2025-01-03 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:18:05 - End Time 2025-01-03 07:18:05 [2025-01-03 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163973', 'tblTempUsageDetail_20' ) start [2025-01-03 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163973', 'tblTempUsageDetail_20' ) end [2025-01-03 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163973', 'tblTempVendorCDR_20' ) start [2025-01-03 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163973', 'tblTempVendorCDR_20' ) end [2025-01-03 07:18:20] Production.INFO: ProcessCDR(1,14163973,1,1,2) [2025-01-03 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163973', 'tblTempUsageDetail_20' ) start [2025-01-03 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163973', 'tblTempUsageDetail_20' ) end [2025-01-03 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:18:23] Production.INFO: ==32397== Releasing lock... [2025-01-03 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:18:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:19:05 [end_date_ymd] => 2025-01-03 07:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:19:05' and `end` < '2025-01-03 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-01-03 07:19:18] Production.INFO: count ==49 [2025-01-03 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:19:05 - End Time 2025-01-03 07:19:05 [2025-01-03 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163978', 'tblTempUsageDetail_20' ) start [2025-01-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163978', 'tblTempUsageDetail_20' ) end [2025-01-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163978', 'tblTempVendorCDR_20' ) start [2025-01-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163978', 'tblTempVendorCDR_20' ) end [2025-01-03 07:19:18] Production.INFO: ProcessCDR(1,14163978,1,1,2) [2025-01-03 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163978', 'tblTempUsageDetail_20' ) start [2025-01-03 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163978', 'tblTempUsageDetail_20' ) end [2025-01-03 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:19:21] Production.INFO: ==32487== Releasing lock... [2025-01-03 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:20:06 [end_date_ymd] => 2025-01-03 07:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:20:06' and `end` < '2025-01-03 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-01-03 07:20:19] Production.INFO: count ==49 [2025-01-03 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:20:06 - End Time 2025-01-03 07:20:06 [2025-01-03 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163983', 'tblTempUsageDetail_20' ) start [2025-01-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163983', 'tblTempUsageDetail_20' ) end [2025-01-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163983', 'tblTempVendorCDR_20' ) start [2025-01-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163983', 'tblTempVendorCDR_20' ) end [2025-01-03 07:20:19] Production.INFO: ProcessCDR(1,14163983,1,1,2) [2025-01-03 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163983', 'tblTempUsageDetail_20' ) start [2025-01-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163983', 'tblTempUsageDetail_20' ) end [2025-01-03 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:20:22] Production.INFO: ==32563== Releasing lock... [2025-01-03 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:21:05 [end_date_ymd] => 2025-01-03 07:21:05 [RateCDR] => 1 ) [2025-01-03 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:21:05' and `end` < '2025-01-03 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:21:49] Production.INFO: count ==49 [2025-01-03 07:21:49] Production.ERROR: pbx CDR StartTime 2025-01-03 04:21:05 - End Time 2025-01-03 07:21:05 [2025-01-03 07:21:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:21:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163989', 'tblTempUsageDetail_20' ) start [2025-01-03 07:21:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163989', 'tblTempUsageDetail_20' ) end [2025-01-03 07:21:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163989', 'tblTempVendorCDR_20' ) start [2025-01-03 07:21:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163989', 'tblTempVendorCDR_20' ) end [2025-01-03 07:21:49] Production.INFO: ProcessCDR(1,14163989,1,1,2) [2025-01-03 07:21:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:21:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:21:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:21:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:21:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163989', 'tblTempUsageDetail_20' ) start [2025-01-03 07:21:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163989', 'tblTempUsageDetail_20' ) end [2025-01-03 07:21:53] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:21:53] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:21:53] Production.INFO: ==32638== Releasing lock... [2025-01-03 07:21:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:21:53] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:22:05 [end_date_ymd] => 2025-01-03 07:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:22:05' and `end` < '2025-01-03 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-01-03 07:22:20] Production.INFO: count ==49 [2025-01-03 07:22:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:22:05 - End Time 2025-01-03 07:22:05 [2025-01-03 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163994', 'tblTempUsageDetail_20' ) start [2025-01-03 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163994', 'tblTempUsageDetail_20' ) end [2025-01-03 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163994', 'tblTempVendorCDR_20' ) start [2025-01-03 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163994', 'tblTempVendorCDR_20' ) end [2025-01-03 07:22:20] Production.INFO: ProcessCDR(1,14163994,1,1,2) [2025-01-03 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163994', 'tblTempUsageDetail_20' ) start [2025-01-03 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163994', 'tblTempUsageDetail_20' ) end [2025-01-03 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:22:23] Production.INFO: ==32715== Releasing lock... [2025-01-03 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:22:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:23:05 [end_date_ymd] => 2025-01-03 07:23:05 [RateCDR] => 1 ) [2025-01-03 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:23:05' and `end` < '2025-01-03 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:23:18] Production.INFO: count ==49 [2025-01-03 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:23:05 - End Time 2025-01-03 07:23:05 [2025-01-03 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163999', 'tblTempUsageDetail_20' ) start [2025-01-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14163999', 'tblTempUsageDetail_20' ) end [2025-01-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163999', 'tblTempVendorCDR_20' ) start [2025-01-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14163999', 'tblTempVendorCDR_20' ) end [2025-01-03 07:23:18] Production.INFO: ProcessCDR(1,14163999,1,1,2) [2025-01-03 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14163999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14163999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14163999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14163999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163999', 'tblTempUsageDetail_20' ) start [2025-01-03 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14163999', 'tblTempUsageDetail_20' ) end [2025-01-03 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:23:21] Production.INFO: ==328== Releasing lock... [2025-01-03 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:24:05 [end_date_ymd] => 2025-01-03 07:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:24:05' and `end` < '2025-01-03 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-01-03 07:24:18] Production.INFO: count ==49 [2025-01-03 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:24:05 - End Time 2025-01-03 07:24:05 [2025-01-03 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164004', 'tblTempUsageDetail_20' ) start [2025-01-03 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164004', 'tblTempUsageDetail_20' ) end [2025-01-03 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164004', 'tblTempVendorCDR_20' ) start [2025-01-03 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164004', 'tblTempVendorCDR_20' ) end [2025-01-03 07:24:19] Production.INFO: ProcessCDR(1,14164004,1,1,2) [2025-01-03 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164004', 'tblTempUsageDetail_20' ) start [2025-01-03 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164004', 'tblTempUsageDetail_20' ) end [2025-01-03 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:24:22] Production.INFO: ==416== Releasing lock... [2025-01-03 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:25:05 [end_date_ymd] => 2025-01-03 07:25:05 [RateCDR] => 1 ) [2025-01-03 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:25:05' and `end` < '2025-01-03 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:25:17] Production.INFO: count ==49 [2025-01-03 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:25:05 - End Time 2025-01-03 07:25:05 [2025-01-03 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164009', 'tblTempUsageDetail_20' ) start [2025-01-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164009', 'tblTempUsageDetail_20' ) end [2025-01-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164009', 'tblTempVendorCDR_20' ) start [2025-01-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164009', 'tblTempVendorCDR_20' ) end [2025-01-03 07:25:17] Production.INFO: ProcessCDR(1,14164009,1,1,2) [2025-01-03 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164009', 'tblTempUsageDetail_20' ) start [2025-01-03 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164009', 'tblTempUsageDetail_20' ) end [2025-01-03 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:25:20] Production.INFO: ==488== Releasing lock... [2025-01-03 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:26:05 [end_date_ymd] => 2025-01-03 07:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:26:05' and `end` < '2025-01-03 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-01-03 07:26:17] Production.INFO: count ==49 [2025-01-03 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:26:05 - End Time 2025-01-03 07:26:05 [2025-01-03 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164014', 'tblTempUsageDetail_20' ) start [2025-01-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164014', 'tblTempUsageDetail_20' ) end [2025-01-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164014', 'tblTempVendorCDR_20' ) start [2025-01-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164014', 'tblTempVendorCDR_20' ) end [2025-01-03 07:26:17] Production.INFO: ProcessCDR(1,14164014,1,1,2) [2025-01-03 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164014', 'tblTempUsageDetail_20' ) start [2025-01-03 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164014', 'tblTempUsageDetail_20' ) end [2025-01-03 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:26:20] Production.INFO: ==564== Releasing lock... [2025-01-03 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:26:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:27:04 [end_date_ymd] => 2025-01-03 07:27:04 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:27:04' and `end` < '2025-01-03 07: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-01-03 07:27:19] Production.INFO: count ==49 [2025-01-03 07:27:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:27:04 - End Time 2025-01-03 07:27:04 [2025-01-03 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164019', 'tblTempUsageDetail_20' ) start [2025-01-03 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164019', 'tblTempUsageDetail_20' ) end [2025-01-03 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164019', 'tblTempVendorCDR_20' ) start [2025-01-03 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164019', 'tblTempVendorCDR_20' ) end [2025-01-03 07:27:19] Production.INFO: ProcessCDR(1,14164019,1,1,2) [2025-01-03 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164019', 'tblTempUsageDetail_20' ) start [2025-01-03 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164019', 'tblTempUsageDetail_20' ) end [2025-01-03 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:27:22] Production.INFO: ==650== Releasing lock... [2025-01-03 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:28:05 [end_date_ymd] => 2025-01-03 07:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:28:05' and `end` < '2025-01-03 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-01-03 07:28:18] Production.INFO: count ==49 [2025-01-03 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:28:05 - End Time 2025-01-03 07:28:05 [2025-01-03 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164024', 'tblTempUsageDetail_20' ) start [2025-01-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164024', 'tblTempUsageDetail_20' ) end [2025-01-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164024', 'tblTempVendorCDR_20' ) start [2025-01-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164024', 'tblTempVendorCDR_20' ) end [2025-01-03 07:28:18] Production.INFO: ProcessCDR(1,14164024,1,1,2) [2025-01-03 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164024', 'tblTempUsageDetail_20' ) start [2025-01-03 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164024', 'tblTempUsageDetail_20' ) end [2025-01-03 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:28:22] Production.INFO: ==756== Releasing lock... [2025-01-03 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:29:05 [end_date_ymd] => 2025-01-03 07:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:29:05' and `end` < '2025-01-03 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-01-03 07:29:17] Production.INFO: count ==49 [2025-01-03 07:29:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:29:05 - End Time 2025-01-03 07:29:05 [2025-01-03 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164029', 'tblTempUsageDetail_20' ) start [2025-01-03 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164029', 'tblTempUsageDetail_20' ) end [2025-01-03 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164029', 'tblTempVendorCDR_20' ) start [2025-01-03 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164029', 'tblTempVendorCDR_20' ) end [2025-01-03 07:29:17] Production.INFO: ProcessCDR(1,14164029,1,1,2) [2025-01-03 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164029', 'tblTempUsageDetail_20' ) start [2025-01-03 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164029', 'tblTempUsageDetail_20' ) end [2025-01-03 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:29:20] Production.INFO: ==875== Releasing lock... [2025-01-03 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:30:05 [end_date_ymd] => 2025-01-03 07:30:05 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:30:05' and `end` < '2025-01-03 07: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-01-03 07:30:18] Production.INFO: count ==51 [2025-01-03 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:30:05 - End Time 2025-01-03 07:30:05 [2025-01-03 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164035', 'tblTempUsageDetail_20' ) start [2025-01-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164035', 'tblTempUsageDetail_20' ) end [2025-01-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164035', 'tblTempVendorCDR_20' ) start [2025-01-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164035', 'tblTempVendorCDR_20' ) end [2025-01-03 07:30:18] Production.INFO: ProcessCDR(1,14164035,1,1,2) [2025-01-03 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164035', 'tblTempUsageDetail_20' ) start [2025-01-03 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164035', 'tblTempUsageDetail_20' ) end [2025-01-03 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:30:21] Production.INFO: ==949== Releasing lock... [2025-01-03 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:31:05 [end_date_ymd] => 2025-01-03 07:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:31:05' and `end` < '2025-01-03 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-01-03 07:31:18] Production.INFO: count ==53 [2025-01-03 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:31:05 - End Time 2025-01-03 07:31:05 [2025-01-03 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164040', 'tblTempUsageDetail_20' ) start [2025-01-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164040', 'tblTempUsageDetail_20' ) end [2025-01-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164040', 'tblTempVendorCDR_20' ) start [2025-01-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164040', 'tblTempVendorCDR_20' ) end [2025-01-03 07:31:18] Production.INFO: ProcessCDR(1,14164040,1,1,2) [2025-01-03 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164040', 'tblTempUsageDetail_20' ) start [2025-01-03 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164040', 'tblTempUsageDetail_20' ) end [2025-01-03 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:31:21] Production.INFO: ==1025== Releasing lock... [2025-01-03 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:32:04 [end_date_ymd] => 2025-01-03 07:32:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:32:04' and `end` < '2025-01-03 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-01-03 07:32:17] Production.INFO: count ==53 [2025-01-03 07:32:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:32:04 - End Time 2025-01-03 07:32:04 [2025-01-03 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164045', 'tblTempUsageDetail_20' ) start [2025-01-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164045', 'tblTempUsageDetail_20' ) end [2025-01-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164045', 'tblTempVendorCDR_20' ) start [2025-01-03 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164045', 'tblTempVendorCDR_20' ) end [2025-01-03 07:32:17] Production.INFO: ProcessCDR(1,14164045,1,1,2) [2025-01-03 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164045', 'tblTempUsageDetail_20' ) start [2025-01-03 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164045', 'tblTempUsageDetail_20' ) end [2025-01-03 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:32:20] Production.INFO: ==1100== Releasing lock... [2025-01-03 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:32:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:33:05 [end_date_ymd] => 2025-01-03 07:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:33:05' and `end` < '2025-01-03 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-01-03 07:33:20] Production.INFO: count ==55 [2025-01-03 07:33:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:33:05 - End Time 2025-01-03 07:33:05 [2025-01-03 07:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164050', 'tblTempUsageDetail_20' ) start [2025-01-03 07:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164050', 'tblTempUsageDetail_20' ) end [2025-01-03 07:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164050', 'tblTempVendorCDR_20' ) start [2025-01-03 07:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164050', 'tblTempVendorCDR_20' ) end [2025-01-03 07:33:20] Production.INFO: ProcessCDR(1,14164050,1,1,2) [2025-01-03 07:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164050', 'tblTempUsageDetail_20' ) start [2025-01-03 07:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164050', 'tblTempUsageDetail_20' ) end [2025-01-03 07:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:33:25] Production.INFO: ==1186== Releasing lock... [2025-01-03 07:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:33:25] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:34:06 [end_date_ymd] => 2025-01-03 07:34:06 [RateCDR] => 1 ) [2025-01-03 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:34:06' and `end` < '2025-01-03 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:34:20] Production.INFO: count ==55 [2025-01-03 07:34:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:34:06 - End Time 2025-01-03 07:34:06 [2025-01-03 07:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164055', 'tblTempUsageDetail_20' ) start [2025-01-03 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164055', 'tblTempUsageDetail_20' ) end [2025-01-03 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164055', 'tblTempVendorCDR_20' ) start [2025-01-03 07:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164055', 'tblTempVendorCDR_20' ) end [2025-01-03 07:34:20] Production.INFO: ProcessCDR(1,14164055,1,1,2) [2025-01-03 07:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164055', 'tblTempUsageDetail_20' ) start [2025-01-03 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164055', 'tblTempUsageDetail_20' ) end [2025-01-03 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:34:23] Production.INFO: ==1271== Releasing lock... [2025-01-03 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:34:23] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:35:05 [end_date_ymd] => 2025-01-03 07:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:35:05' and `end` < '2025-01-03 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-01-03 07:35:18] Production.INFO: count ==55 [2025-01-03 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:35:05 - End Time 2025-01-03 07:35:05 [2025-01-03 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164060', 'tblTempUsageDetail_20' ) start [2025-01-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164060', 'tblTempUsageDetail_20' ) end [2025-01-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164060', 'tblTempVendorCDR_20' ) start [2025-01-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164060', 'tblTempVendorCDR_20' ) end [2025-01-03 07:35:18] Production.INFO: ProcessCDR(1,14164060,1,1,2) [2025-01-03 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164060', 'tblTempUsageDetail_20' ) start [2025-01-03 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164060', 'tblTempUsageDetail_20' ) end [2025-01-03 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:35:22] Production.INFO: ==1345== Releasing lock... [2025-01-03 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:35:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:36:05 [end_date_ymd] => 2025-01-03 07:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:36:05' and `end` < '2025-01-03 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-01-03 07:36:19] Production.INFO: count ==61 [2025-01-03 07:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:36:05 - End Time 2025-01-03 07:36:05 [2025-01-03 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164065', 'tblTempUsageDetail_20' ) start [2025-01-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164065', 'tblTempUsageDetail_20' ) end [2025-01-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164065', 'tblTempVendorCDR_20' ) start [2025-01-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164065', 'tblTempVendorCDR_20' ) end [2025-01-03 07:36:19] Production.INFO: ProcessCDR(1,14164065,1,1,2) [2025-01-03 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164065', 'tblTempUsageDetail_20' ) start [2025-01-03 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164065', 'tblTempUsageDetail_20' ) end [2025-01-03 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:36:22] Production.INFO: ==1419== Releasing lock... [2025-01-03 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:37:04 [end_date_ymd] => 2025-01-03 07:37:04 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:37:04' and `end` < '2025-01-03 07: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-01-03 07:37:17] Production.INFO: count ==61 [2025-01-03 07:37:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:37:04 - End Time 2025-01-03 07:37:04 [2025-01-03 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164070', 'tblTempUsageDetail_20' ) start [2025-01-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164070', 'tblTempUsageDetail_20' ) end [2025-01-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164070', 'tblTempVendorCDR_20' ) start [2025-01-03 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164070', 'tblTempVendorCDR_20' ) end [2025-01-03 07:37:17] Production.INFO: ProcessCDR(1,14164070,1,1,2) [2025-01-03 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164070', 'tblTempUsageDetail_20' ) start [2025-01-03 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164070', 'tblTempUsageDetail_20' ) end [2025-01-03 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:37:20] Production.INFO: ==1494== Releasing lock... [2025-01-03 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:37:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:38:05 [end_date_ymd] => 2025-01-03 07:38:05 [RateCDR] => 1 ) [2025-01-03 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:38:05' and `end` < '2025-01-03 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:38:19] Production.INFO: count ==65 [2025-01-03 07:38:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:38:05 - End Time 2025-01-03 07:38:05 [2025-01-03 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164075', 'tblTempUsageDetail_20' ) start [2025-01-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164075', 'tblTempUsageDetail_20' ) end [2025-01-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164075', 'tblTempVendorCDR_20' ) start [2025-01-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164075', 'tblTempVendorCDR_20' ) end [2025-01-03 07:38:19] Production.INFO: ProcessCDR(1,14164075,1,1,2) [2025-01-03 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164075', 'tblTempUsageDetail_20' ) start [2025-01-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164075', 'tblTempUsageDetail_20' ) end [2025-01-03 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:38:22] Production.INFO: ==1609== Releasing lock... [2025-01-03 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:39:05 [end_date_ymd] => 2025-01-03 07:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:39:05' and `end` < '2025-01-03 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-01-03 07:39:20] Production.INFO: count ==65 [2025-01-03 07:39:20] Production.ERROR: pbx CDR StartTime 2025-01-03 04:39:05 - End Time 2025-01-03 07:39:05 [2025-01-03 07:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164080', 'tblTempUsageDetail_20' ) start [2025-01-03 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164080', 'tblTempUsageDetail_20' ) end [2025-01-03 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164080', 'tblTempVendorCDR_20' ) start [2025-01-03 07:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164080', 'tblTempVendorCDR_20' ) end [2025-01-03 07:39:20] Production.INFO: ProcessCDR(1,14164080,1,1,2) [2025-01-03 07:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164080', 'tblTempUsageDetail_20' ) start [2025-01-03 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164080', 'tblTempUsageDetail_20' ) end [2025-01-03 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:39:23] Production.INFO: ==1682== Releasing lock... [2025-01-03 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:39:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:40:06 [end_date_ymd] => 2025-01-03 07:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:40:06' and `end` < '2025-01-03 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-01-03 07:40:19] Production.INFO: count ==65 [2025-01-03 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:40:06 - End Time 2025-01-03 07:40:06 [2025-01-03 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164086', 'tblTempUsageDetail_20' ) start [2025-01-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164086', 'tblTempUsageDetail_20' ) end [2025-01-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164086', 'tblTempVendorCDR_20' ) start [2025-01-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164086', 'tblTempVendorCDR_20' ) end [2025-01-03 07:40:19] Production.INFO: ProcessCDR(1,14164086,1,1,2) [2025-01-03 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164086', 'tblTempUsageDetail_20' ) start [2025-01-03 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164086', 'tblTempUsageDetail_20' ) end [2025-01-03 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:40:22] Production.INFO: ==1758== Releasing lock... [2025-01-03 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:41:05 [end_date_ymd] => 2025-01-03 07:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:41:05' and `end` < '2025-01-03 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-01-03 07:41:18] Production.INFO: count ==65 [2025-01-03 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:41:05 - End Time 2025-01-03 07:41:05 [2025-01-03 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164091', 'tblTempUsageDetail_20' ) start [2025-01-03 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164091', 'tblTempUsageDetail_20' ) end [2025-01-03 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164091', 'tblTempVendorCDR_20' ) start [2025-01-03 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164091', 'tblTempVendorCDR_20' ) end [2025-01-03 07:41:18] Production.INFO: ProcessCDR(1,14164091,1,1,2) [2025-01-03 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164091', 'tblTempUsageDetail_20' ) start [2025-01-03 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164091', 'tblTempUsageDetail_20' ) end [2025-01-03 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:41:21] Production.INFO: ==1844== Releasing lock... [2025-01-03 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:42:05 [end_date_ymd] => 2025-01-03 07:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:42:05' and `end` < '2025-01-03 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-01-03 07:42:17] Production.INFO: count ==65 [2025-01-03 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:42:05 - End Time 2025-01-03 07:42:05 [2025-01-03 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164096', 'tblTempUsageDetail_20' ) start [2025-01-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164096', 'tblTempUsageDetail_20' ) end [2025-01-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164096', 'tblTempVendorCDR_20' ) start [2025-01-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164096', 'tblTempVendorCDR_20' ) end [2025-01-03 07:42:18] Production.INFO: ProcessCDR(1,14164096,1,1,2) [2025-01-03 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164096', 'tblTempUsageDetail_20' ) start [2025-01-03 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164096', 'tblTempUsageDetail_20' ) end [2025-01-03 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:42:21] Production.INFO: ==1922== Releasing lock... [2025-01-03 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:43:04 [end_date_ymd] => 2025-01-03 07:43:04 [RateCDR] => 1 ) [2025-01-03 07:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:43:04' and `end` < '2025-01-03 07:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:43:17] Production.INFO: count ==65 [2025-01-03 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:43:04 - End Time 2025-01-03 07:43:04 [2025-01-03 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164101', 'tblTempUsageDetail_20' ) start [2025-01-03 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164101', 'tblTempUsageDetail_20' ) end [2025-01-03 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164101', 'tblTempVendorCDR_20' ) start [2025-01-03 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164101', 'tblTempVendorCDR_20' ) end [2025-01-03 07:43:17] Production.INFO: ProcessCDR(1,14164101,1,1,2) [2025-01-03 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164101', 'tblTempUsageDetail_20' ) start [2025-01-03 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164101', 'tblTempUsageDetail_20' ) end [2025-01-03 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:43:20] Production.INFO: ==2011== Releasing lock... [2025-01-03 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:44:05 [end_date_ymd] => 2025-01-03 07:44:05 [RateCDR] => 1 ) [2025-01-03 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:44:05' and `end` < '2025-01-03 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:44:18] Production.INFO: count ==65 [2025-01-03 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:44:05 - End Time 2025-01-03 07:44:05 [2025-01-03 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164106', 'tblTempUsageDetail_20' ) start [2025-01-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164106', 'tblTempUsageDetail_20' ) end [2025-01-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164106', 'tblTempVendorCDR_20' ) start [2025-01-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164106', 'tblTempVendorCDR_20' ) end [2025-01-03 07:44:18] Production.INFO: ProcessCDR(1,14164106,1,1,2) [2025-01-03 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164106', 'tblTempUsageDetail_20' ) start [2025-01-03 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164106', 'tblTempUsageDetail_20' ) end [2025-01-03 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:44:21] Production.INFO: ==2119== Releasing lock... [2025-01-03 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:45:05 [end_date_ymd] => 2025-01-03 07:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:45:05' and `end` < '2025-01-03 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-01-03 07:45:17] Production.INFO: count ==67 [2025-01-03 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:45:05 - End Time 2025-01-03 07:45:05 [2025-01-03 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164111', 'tblTempUsageDetail_20' ) start [2025-01-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164111', 'tblTempUsageDetail_20' ) end [2025-01-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164111', 'tblTempVendorCDR_20' ) start [2025-01-03 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164111', 'tblTempVendorCDR_20' ) end [2025-01-03 07:45:17] Production.INFO: ProcessCDR(1,14164111,1,1,2) [2025-01-03 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164111', 'tblTempUsageDetail_20' ) start [2025-01-03 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164111', 'tblTempUsageDetail_20' ) end [2025-01-03 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:45:21] Production.INFO: ==2263== Releasing lock... [2025-01-03 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:46:05 [end_date_ymd] => 2025-01-03 07:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:46:05' and `end` < '2025-01-03 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-01-03 07:46:18] Production.INFO: count ==67 [2025-01-03 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:46:05 - End Time 2025-01-03 07:46:05 [2025-01-03 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164116', 'tblTempUsageDetail_20' ) start [2025-01-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164116', 'tblTempUsageDetail_20' ) end [2025-01-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164116', 'tblTempVendorCDR_20' ) start [2025-01-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164116', 'tblTempVendorCDR_20' ) end [2025-01-03 07:46:18] Production.INFO: ProcessCDR(1,14164116,1,1,2) [2025-01-03 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164116', 'tblTempUsageDetail_20' ) start [2025-01-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164116', 'tblTempUsageDetail_20' ) end [2025-01-03 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:46:21] Production.INFO: ==2371== Releasing lock... [2025-01-03 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:47:05 [end_date_ymd] => 2025-01-03 07:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:47:05' and `end` < '2025-01-03 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-01-03 07:47:18] Production.INFO: count ==72 [2025-01-03 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:47:05 - End Time 2025-01-03 07:47:05 [2025-01-03 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164121', 'tblTempUsageDetail_20' ) start [2025-01-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164121', 'tblTempUsageDetail_20' ) end [2025-01-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164121', 'tblTempVendorCDR_20' ) start [2025-01-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164121', 'tblTempVendorCDR_20' ) end [2025-01-03 07:47:18] Production.INFO: ProcessCDR(1,14164121,1,1,2) [2025-01-03 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164121', 'tblTempUsageDetail_20' ) start [2025-01-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164121', 'tblTempUsageDetail_20' ) end [2025-01-03 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:47:21] Production.INFO: ==2477== Releasing lock... [2025-01-03 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:48:04 [end_date_ymd] => 2025-01-03 07:48:04 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:48:04' and `end` < '2025-01-03 07: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-01-03 07:48:19] Production.INFO: count ==72 [2025-01-03 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:48:04 - End Time 2025-01-03 07:48:04 [2025-01-03 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164126', 'tblTempUsageDetail_20' ) start [2025-01-03 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164126', 'tblTempUsageDetail_20' ) end [2025-01-03 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164126', 'tblTempVendorCDR_20' ) start [2025-01-03 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164126', 'tblTempVendorCDR_20' ) end [2025-01-03 07:48:19] Production.INFO: ProcessCDR(1,14164126,1,1,2) [2025-01-03 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164126', 'tblTempUsageDetail_20' ) start [2025-01-03 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164126', 'tblTempUsageDetail_20' ) end [2025-01-03 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:48:22] Production.INFO: ==2582== Releasing lock... [2025-01-03 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:49:05 [end_date_ymd] => 2025-01-03 07:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:49:05' and `end` < '2025-01-03 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-01-03 07:49:17] Production.INFO: count ==72 [2025-01-03 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:49:05 - End Time 2025-01-03 07:49:05 [2025-01-03 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164131', 'tblTempUsageDetail_20' ) start [2025-01-03 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164131', 'tblTempUsageDetail_20' ) end [2025-01-03 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164131', 'tblTempVendorCDR_20' ) start [2025-01-03 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164131', 'tblTempVendorCDR_20' ) end [2025-01-03 07:49:17] Production.INFO: ProcessCDR(1,14164131,1,1,2) [2025-01-03 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164131', 'tblTempUsageDetail_20' ) start [2025-01-03 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164131', 'tblTempUsageDetail_20' ) end [2025-01-03 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:49:20] Production.INFO: ==2688== Releasing lock... [2025-01-03 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:50:05 [end_date_ymd] => 2025-01-03 07:50:05 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:50:05' and `end` < '2025-01-03 07: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-01-03 07:50:18] Production.INFO: count ==72 [2025-01-03 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:50:05 - End Time 2025-01-03 07:50:05 [2025-01-03 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164137', 'tblTempUsageDetail_20' ) start [2025-01-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164137', 'tblTempUsageDetail_20' ) end [2025-01-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164137', 'tblTempVendorCDR_20' ) start [2025-01-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164137', 'tblTempVendorCDR_20' ) end [2025-01-03 07:50:18] Production.INFO: ProcessCDR(1,14164137,1,1,2) [2025-01-03 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164137', 'tblTempUsageDetail_20' ) start [2025-01-03 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164137', 'tblTempUsageDetail_20' ) end [2025-01-03 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:50:21] Production.INFO: ==2798== Releasing lock... [2025-01-03 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:51:05 [end_date_ymd] => 2025-01-03 07:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:51:05' and `end` < '2025-01-03 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-01-03 07:51:17] Production.INFO: count ==72 [2025-01-03 07:51:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:51:05 - End Time 2025-01-03 07:51:05 [2025-01-03 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164142', 'tblTempUsageDetail_20' ) start [2025-01-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164142', 'tblTempUsageDetail_20' ) end [2025-01-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164142', 'tblTempVendorCDR_20' ) start [2025-01-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164142', 'tblTempVendorCDR_20' ) end [2025-01-03 07:51:18] Production.INFO: ProcessCDR(1,14164142,1,1,2) [2025-01-03 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164142', 'tblTempUsageDetail_20' ) start [2025-01-03 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164142', 'tblTempUsageDetail_20' ) end [2025-01-03 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:51:21] Production.INFO: ==2908== Releasing lock... [2025-01-03 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:52:05 [end_date_ymd] => 2025-01-03 07:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:52:05' and `end` < '2025-01-03 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-01-03 07:52:18] Production.INFO: count ==72 [2025-01-03 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:52:05 - End Time 2025-01-03 07:52:05 [2025-01-03 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164147', 'tblTempUsageDetail_20' ) start [2025-01-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164147', 'tblTempUsageDetail_20' ) end [2025-01-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164147', 'tblTempVendorCDR_20' ) start [2025-01-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164147', 'tblTempVendorCDR_20' ) end [2025-01-03 07:52:18] Production.INFO: ProcessCDR(1,14164147,1,1,2) [2025-01-03 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164147', 'tblTempUsageDetail_20' ) start [2025-01-03 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164147', 'tblTempUsageDetail_20' ) end [2025-01-03 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:52:21] Production.INFO: ==3013== Releasing lock... [2025-01-03 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:53:06 [end_date_ymd] => 2025-01-03 07:53:06 [RateCDR] => 1 ) [2025-01-03 07: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-01-03 04:53:06' and `end` < '2025-01-03 07: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-01-03 07:53:19] Production.INFO: count ==72 [2025-01-03 07:53:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:53:06 - End Time 2025-01-03 07:53:06 [2025-01-03 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164152', 'tblTempUsageDetail_20' ) start [2025-01-03 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164152', 'tblTempUsageDetail_20' ) end [2025-01-03 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164152', 'tblTempVendorCDR_20' ) start [2025-01-03 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164152', 'tblTempVendorCDR_20' ) end [2025-01-03 07:53:19] Production.INFO: ProcessCDR(1,14164152,1,1,2) [2025-01-03 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164152', 'tblTempUsageDetail_20' ) start [2025-01-03 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164152', 'tblTempUsageDetail_20' ) end [2025-01-03 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:53:22] Production.INFO: ==3127== Releasing lock... [2025-01-03 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:54:05 [end_date_ymd] => 2025-01-03 07:54:05 [RateCDR] => 1 ) [2025-01-03 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:54:05' and `end` < '2025-01-03 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:54:18] Production.INFO: count ==72 [2025-01-03 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:54:05 - End Time 2025-01-03 07:54:05 [2025-01-03 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164156', 'tblTempUsageDetail_20' ) start [2025-01-03 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164156', 'tblTempUsageDetail_20' ) end [2025-01-03 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164156', 'tblTempVendorCDR_20' ) start [2025-01-03 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164156', 'tblTempVendorCDR_20' ) end [2025-01-03 07:54:18] Production.INFO: ProcessCDR(1,14164156,1,1,2) [2025-01-03 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164156', 'tblTempUsageDetail_20' ) start [2025-01-03 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164156', 'tblTempUsageDetail_20' ) end [2025-01-03 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:54:21] Production.INFO: ==3234== Releasing lock... [2025-01-03 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:55:05 [end_date_ymd] => 2025-01-03 07:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:55:05' and `end` < '2025-01-03 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-01-03 07:55:17] Production.INFO: count ==71 [2025-01-03 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-03 04:55:05 - End Time 2025-01-03 07:55:05 [2025-01-03 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164162', 'tblTempUsageDetail_20' ) start [2025-01-03 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164162', 'tblTempUsageDetail_20' ) end [2025-01-03 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164162', 'tblTempVendorCDR_20' ) start [2025-01-03 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164162', 'tblTempVendorCDR_20' ) end [2025-01-03 07:55:17] Production.INFO: ProcessCDR(1,14164162,1,1,2) [2025-01-03 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164162', 'tblTempUsageDetail_20' ) start [2025-01-03 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164162', 'tblTempUsageDetail_20' ) end [2025-01-03 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:55:20] Production.INFO: ==3343== Releasing lock... [2025-01-03 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:56:05 [end_date_ymd] => 2025-01-03 07:56:05 [RateCDR] => 1 ) [2025-01-03 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 04:56:05' and `end` < '2025-01-03 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 07:56:19] Production.INFO: count ==66 [2025-01-03 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 04:56:05 - End Time 2025-01-03 07:56:05 [2025-01-03 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164167', 'tblTempUsageDetail_20' ) start [2025-01-03 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164167', 'tblTempUsageDetail_20' ) end [2025-01-03 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164167', 'tblTempVendorCDR_20' ) start [2025-01-03 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164167', 'tblTempVendorCDR_20' ) end [2025-01-03 07:56:19] Production.INFO: ProcessCDR(1,14164167,1,1,2) [2025-01-03 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164167', 'tblTempUsageDetail_20' ) start [2025-01-03 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164167', 'tblTempUsageDetail_20' ) end [2025-01-03 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:56:21] Production.INFO: ==3448== Releasing lock... [2025-01-03 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:57:05 [end_date_ymd] => 2025-01-03 07:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:57:05' and `end` < '2025-01-03 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-01-03 07:57:18] Production.INFO: count ==60 [2025-01-03 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:57:05 - End Time 2025-01-03 07:57:05 [2025-01-03 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164172', 'tblTempUsageDetail_20' ) start [2025-01-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164172', 'tblTempUsageDetail_20' ) end [2025-01-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164172', 'tblTempVendorCDR_20' ) start [2025-01-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164172', 'tblTempVendorCDR_20' ) end [2025-01-03 07:57:18] Production.INFO: ProcessCDR(1,14164172,1,1,2) [2025-01-03 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164172', 'tblTempUsageDetail_20' ) start [2025-01-03 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164172', 'tblTempUsageDetail_20' ) end [2025-01-03 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:57:21] Production.INFO: ==3555== Releasing lock... [2025-01-03 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:58:05 [end_date_ymd] => 2025-01-03 07:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:58:05' and `end` < '2025-01-03 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-01-03 07:58:18] Production.INFO: count ==57 [2025-01-03 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:58:05 - End Time 2025-01-03 07:58:05 [2025-01-03 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164177', 'tblTempUsageDetail_20' ) start [2025-01-03 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164177', 'tblTempUsageDetail_20' ) end [2025-01-03 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164177', 'tblTempVendorCDR_20' ) start [2025-01-03 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164177', 'tblTempVendorCDR_20' ) end [2025-01-03 07:58:18] Production.INFO: ProcessCDR(1,14164177,1,1,2) [2025-01-03 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164177', 'tblTempUsageDetail_20' ) start [2025-01-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164177', 'tblTempUsageDetail_20' ) end [2025-01-03 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:58:22] Production.INFO: ==3630== Releasing lock... [2025-01-03 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-03 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 04:59:05 [end_date_ymd] => 2025-01-03 07:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 04:59:05' and `end` < '2025-01-03 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-01-03 07:59:18] Production.INFO: count ==57 [2025-01-03 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 04:59:05 - End Time 2025-01-03 07:59:05 [2025-01-03 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164182', 'tblTempUsageDetail_20' ) start [2025-01-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164182', 'tblTempUsageDetail_20' ) end [2025-01-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164182', 'tblTempVendorCDR_20' ) start [2025-01-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164182', 'tblTempVendorCDR_20' ) end [2025-01-03 07:59:18] Production.INFO: ProcessCDR(1,14164182,1,1,2) [2025-01-03 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164182', 'tblTempUsageDetail_20' ) start [2025-01-03 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164182', 'tblTempUsageDetail_20' ) end [2025-01-03 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 07:59:21] Production.INFO: ==3703== Releasing lock... [2025-01-03 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 07:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:00:05 [end_date_ymd] => 2025-01-03 08:00:05 [RateCDR] => 1 ) [2025-01-03 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:00:05' and `end` < '2025-01-03 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:00:18] Production.INFO: count ==53 [2025-01-03 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:00:05 - End Time 2025-01-03 08:00:05 [2025-01-03 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164188', 'tblTempUsageDetail_20' ) start [2025-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164188', 'tblTempUsageDetail_20' ) end [2025-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164188', 'tblTempVendorCDR_20' ) start [2025-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164188', 'tblTempVendorCDR_20' ) end [2025-01-03 08:00:18] Production.INFO: ProcessCDR(1,14164188,1,1,2) [2025-01-03 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164188', 'tblTempUsageDetail_20' ) start [2025-01-03 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164188', 'tblTempUsageDetail_20' ) end [2025-01-03 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:00:21] Production.INFO: ==3816== Releasing lock... [2025-01-03 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:01:04 [end_date_ymd] => 2025-01-03 08:01:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:01:04' and `end` < '2025-01-03 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-01-03 08:01:17] Production.INFO: count ==54 [2025-01-03 08:01:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:01:04 - End Time 2025-01-03 08:01:04 [2025-01-03 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164193', 'tblTempUsageDetail_20' ) start [2025-01-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164193', 'tblTempUsageDetail_20' ) end [2025-01-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164193', 'tblTempVendorCDR_20' ) start [2025-01-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164193', 'tblTempVendorCDR_20' ) end [2025-01-03 08:01:17] Production.INFO: ProcessCDR(1,14164193,1,1,2) [2025-01-03 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164193', 'tblTempUsageDetail_20' ) start [2025-01-03 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164193', 'tblTempUsageDetail_20' ) end [2025-01-03 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:01:20] Production.INFO: ==3899== Releasing lock... [2025-01-03 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:01:20] Production.INFO: 28 MB #Memory Used# [2025-01-03 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:02:05 [end_date_ymd] => 2025-01-03 08:02:05 [RateCDR] => 1 ) [2025-01-03 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:02:05' and `end` < '2025-01-03 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:02:18] Production.INFO: count ==54 [2025-01-03 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:02:05 - End Time 2025-01-03 08:02:05 [2025-01-03 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164198', 'tblTempUsageDetail_20' ) start [2025-01-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164198', 'tblTempUsageDetail_20' ) end [2025-01-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164198', 'tblTempVendorCDR_20' ) start [2025-01-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164198', 'tblTempVendorCDR_20' ) end [2025-01-03 08:02:18] Production.INFO: ProcessCDR(1,14164198,1,1,2) [2025-01-03 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164198', 'tblTempUsageDetail_20' ) start [2025-01-03 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164198', 'tblTempUsageDetail_20' ) end [2025-01-03 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:02:21] Production.INFO: ==3971== Releasing lock... [2025-01-03 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:03:05 [end_date_ymd] => 2025-01-03 08:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:03:05' and `end` < '2025-01-03 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-01-03 08:03:18] Production.INFO: count ==55 [2025-01-03 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:03:05 - End Time 2025-01-03 08:03:05 [2025-01-03 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164203', 'tblTempUsageDetail_20' ) start [2025-01-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164203', 'tblTempUsageDetail_20' ) end [2025-01-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164203', 'tblTempVendorCDR_20' ) start [2025-01-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164203', 'tblTempVendorCDR_20' ) end [2025-01-03 08:03:18] Production.INFO: ProcessCDR(1,14164203,1,1,2) [2025-01-03 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164203', 'tblTempUsageDetail_20' ) start [2025-01-03 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164203', 'tblTempUsageDetail_20' ) end [2025-01-03 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:03:21] Production.INFO: ==4041== Releasing lock... [2025-01-03 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:03:21] Production.INFO: 28 MB #Memory Used# [2025-01-03 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:04:04 [end_date_ymd] => 2025-01-03 08:04:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:04:04' and `end` < '2025-01-03 08:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:04:17] Production.INFO: count ==63 [2025-01-03 08:04:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:04:04 - End Time 2025-01-03 08:04:04 [2025-01-03 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164208', 'tblTempUsageDetail_20' ) start [2025-01-03 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164208', 'tblTempUsageDetail_20' ) end [2025-01-03 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164208', 'tblTempVendorCDR_20' ) start [2025-01-03 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164208', 'tblTempVendorCDR_20' ) end [2025-01-03 08:04:17] Production.INFO: ProcessCDR(1,14164208,1,1,2) [2025-01-03 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164208', 'tblTempUsageDetail_20' ) start [2025-01-03 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164208', 'tblTempUsageDetail_20' ) end [2025-01-03 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:04:20] Production.INFO: ==4117== Releasing lock... [2025-01-03 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:05:05 [end_date_ymd] => 2025-01-03 08:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:05:05' and `end` < '2025-01-03 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-01-03 08:05:18] Production.INFO: count ==75 [2025-01-03 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:05:05 - End Time 2025-01-03 08:05:05 [2025-01-03 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164213', 'tblTempUsageDetail_20' ) start [2025-01-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164213', 'tblTempUsageDetail_20' ) end [2025-01-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164213', 'tblTempVendorCDR_20' ) start [2025-01-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164213', 'tblTempVendorCDR_20' ) end [2025-01-03 08:05:18] Production.INFO: ProcessCDR(1,14164213,1,1,2) [2025-01-03 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164213', 'tblTempUsageDetail_20' ) start [2025-01-03 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164213', 'tblTempUsageDetail_20' ) end [2025-01-03 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:05:23] Production.INFO: ==4192== Releasing lock... [2025-01-03 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:05:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-03 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:06:05 [end_date_ymd] => 2025-01-03 08:06:05 [RateCDR] => 1 ) [2025-01-03 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:06:05' and `end` < '2025-01-03 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:06:19] Production.INFO: count ==84 [2025-01-03 08:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:06:05 - End Time 2025-01-03 08:06:05 [2025-01-03 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164218', 'tblTempUsageDetail_20' ) start [2025-01-03 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164218', 'tblTempUsageDetail_20' ) end [2025-01-03 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164218', 'tblTempVendorCDR_20' ) start [2025-01-03 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164218', 'tblTempVendorCDR_20' ) end [2025-01-03 08:06:19] Production.INFO: ProcessCDR(1,14164218,1,1,2) [2025-01-03 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164218', 'tblTempUsageDetail_20' ) start [2025-01-03 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164218', 'tblTempUsageDetail_20' ) end [2025-01-03 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:06:22] Production.INFO: ==4263== Releasing lock... [2025-01-03 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:07:05 [end_date_ymd] => 2025-01-03 08:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:07:05' and `end` < '2025-01-03 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-01-03 08:07:18] Production.INFO: count ==89 [2025-01-03 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:07:05 - End Time 2025-01-03 08:07:05 [2025-01-03 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164223', 'tblTempUsageDetail_20' ) start [2025-01-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164223', 'tblTempUsageDetail_20' ) end [2025-01-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164223', 'tblTempVendorCDR_20' ) start [2025-01-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164223', 'tblTempVendorCDR_20' ) end [2025-01-03 08:07:18] Production.INFO: ProcessCDR(1,14164223,1,1,2) [2025-01-03 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164223', 'tblTempUsageDetail_20' ) start [2025-01-03 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164223', 'tblTempUsageDetail_20' ) end [2025-01-03 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:07:21] Production.INFO: ==4335== Releasing lock... [2025-01-03 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:08:05 [end_date_ymd] => 2025-01-03 08:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:08:05' and `end` < '2025-01-03 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-01-03 08:08:20] Production.INFO: count ==90 [2025-01-03 08:08:20] Production.ERROR: pbx CDR StartTime 2025-01-03 05:08:05 - End Time 2025-01-03 08:08:05 [2025-01-03 08:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164228', 'tblTempUsageDetail_20' ) start [2025-01-03 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164228', 'tblTempUsageDetail_20' ) end [2025-01-03 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164228', 'tblTempVendorCDR_20' ) start [2025-01-03 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164228', 'tblTempVendorCDR_20' ) end [2025-01-03 08:08:20] Production.INFO: ProcessCDR(1,14164228,1,1,2) [2025-01-03 08:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164228', 'tblTempUsageDetail_20' ) start [2025-01-03 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164228', 'tblTempUsageDetail_20' ) end [2025-01-03 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:08:23] Production.INFO: ==4406== Releasing lock... [2025-01-03 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:08:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:09:05 [end_date_ymd] => 2025-01-03 08:09:05 [RateCDR] => 1 ) [2025-01-03 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:09:05' and `end` < '2025-01-03 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:09:17] Production.INFO: count ==90 [2025-01-03 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:09:05 - End Time 2025-01-03 08:09:05 [2025-01-03 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164233', 'tblTempUsageDetail_20' ) start [2025-01-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164233', 'tblTempUsageDetail_20' ) end [2025-01-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164233', 'tblTempVendorCDR_20' ) start [2025-01-03 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164233', 'tblTempVendorCDR_20' ) end [2025-01-03 08:09:17] Production.INFO: ProcessCDR(1,14164233,1,1,2) [2025-01-03 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164233', 'tblTempUsageDetail_20' ) start [2025-01-03 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164233', 'tblTempUsageDetail_20' ) end [2025-01-03 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:09:21] Production.INFO: ==4476== Releasing lock... [2025-01-03 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:10:05 [end_date_ymd] => 2025-01-03 08:10:05 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:10:05' and `end` < '2025-01-03 08: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-01-03 08:10:18] Production.INFO: count ==101 [2025-01-03 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:10:05 - End Time 2025-01-03 08:10:05 [2025-01-03 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164239', 'tblTempUsageDetail_20' ) start [2025-01-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164239', 'tblTempUsageDetail_20' ) end [2025-01-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164239', 'tblTempVendorCDR_20' ) start [2025-01-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164239', 'tblTempVendorCDR_20' ) end [2025-01-03 08:10:18] Production.INFO: ProcessCDR(1,14164239,1,1,2) [2025-01-03 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164239', 'tblTempUsageDetail_20' ) start [2025-01-03 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164239', 'tblTempUsageDetail_20' ) end [2025-01-03 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:10:22] Production.INFO: ==4551== Releasing lock... [2025-01-03 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-03 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:11:05 [end_date_ymd] => 2025-01-03 08:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:11:05' and `end` < '2025-01-03 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-01-03 08:11:20] Production.INFO: count ==117 [2025-01-03 08:11:20] Production.ERROR: pbx CDR StartTime 2025-01-03 05:11:05 - End Time 2025-01-03 08:11:05 [2025-01-03 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164244', 'tblTempUsageDetail_20' ) start [2025-01-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164244', 'tblTempUsageDetail_20' ) end [2025-01-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164244', 'tblTempVendorCDR_20' ) start [2025-01-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164244', 'tblTempVendorCDR_20' ) end [2025-01-03 08:11:20] Production.INFO: ProcessCDR(1,14164244,1,1,2) [2025-01-03 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164244', 'tblTempUsageDetail_20' ) start [2025-01-03 08:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164244', 'tblTempUsageDetail_20' ) end [2025-01-03 08:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:11:25] Production.INFO: ==4631== Releasing lock... [2025-01-03 08:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:11:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:12:04 [end_date_ymd] => 2025-01-03 08:12:04 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:12:04' and `end` < '2025-01-03 08: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-01-03 08:12:17] Production.INFO: count ==118 [2025-01-03 08:12:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:12:04 - End Time 2025-01-03 08:12:04 [2025-01-03 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164249', 'tblTempUsageDetail_20' ) start [2025-01-03 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164249', 'tblTempUsageDetail_20' ) end [2025-01-03 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164249', 'tblTempVendorCDR_20' ) start [2025-01-03 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164249', 'tblTempVendorCDR_20' ) end [2025-01-03 08:12:17] Production.INFO: ProcessCDR(1,14164249,1,1,2) [2025-01-03 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164249', 'tblTempUsageDetail_20' ) start [2025-01-03 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164249', 'tblTempUsageDetail_20' ) end [2025-01-03 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:12:22] Production.INFO: ==4704== Releasing lock... [2025-01-03 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:13:04 [end_date_ymd] => 2025-01-03 08:13:04 [RateCDR] => 1 ) [2025-01-03 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:13:04' and `end` < '2025-01-03 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:13:17] Production.INFO: count ==121 [2025-01-03 08:13:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:13:04 - End Time 2025-01-03 08:13:04 [2025-01-03 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164254', 'tblTempUsageDetail_20' ) start [2025-01-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164254', 'tblTempUsageDetail_20' ) end [2025-01-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164254', 'tblTempVendorCDR_20' ) start [2025-01-03 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164254', 'tblTempVendorCDR_20' ) end [2025-01-03 08:13:17] Production.INFO: ProcessCDR(1,14164254,1,1,2) [2025-01-03 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164254', 'tblTempUsageDetail_20' ) start [2025-01-03 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164254', 'tblTempUsageDetail_20' ) end [2025-01-03 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:13:20] Production.INFO: ==4777== Releasing lock... [2025-01-03 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-03 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:14:05 [end_date_ymd] => 2025-01-03 08:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:14:05' and `end` < '2025-01-03 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-01-03 08:14:19] Production.INFO: count ==127 [2025-01-03 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:14:05 - End Time 2025-01-03 08:14:05 [2025-01-03 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164259', 'tblTempUsageDetail_20' ) start [2025-01-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164259', 'tblTempUsageDetail_20' ) end [2025-01-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164259', 'tblTempVendorCDR_20' ) start [2025-01-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164259', 'tblTempVendorCDR_20' ) end [2025-01-03 08:14:19] Production.INFO: ProcessCDR(1,14164259,1,1,2) [2025-01-03 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164259', 'tblTempUsageDetail_20' ) start [2025-01-03 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164259', 'tblTempUsageDetail_20' ) end [2025-01-03 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:14:22] Production.INFO: ==4847== Releasing lock... [2025-01-03 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:15:05 [end_date_ymd] => 2025-01-03 08:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:15:05' and `end` < '2025-01-03 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-01-03 08:15:17] Production.INFO: count ==134 [2025-01-03 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:15:05 - End Time 2025-01-03 08:15:05 [2025-01-03 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164264', 'tblTempUsageDetail_20' ) start [2025-01-03 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164264', 'tblTempUsageDetail_20' ) end [2025-01-03 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164264', 'tblTempVendorCDR_20' ) start [2025-01-03 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164264', 'tblTempVendorCDR_20' ) end [2025-01-03 08:15:17] Production.INFO: ProcessCDR(1,14164264,1,1,2) [2025-01-03 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164264', 'tblTempUsageDetail_20' ) start [2025-01-03 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164264', 'tblTempUsageDetail_20' ) end [2025-01-03 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:15:22] Production.INFO: ==4918== Releasing lock... [2025-01-03 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:16:05 [end_date_ymd] => 2025-01-03 08:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:16:05' and `end` < '2025-01-03 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-01-03 08:16:18] Production.INFO: count ==136 [2025-01-03 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:16:05 - End Time 2025-01-03 08:16:05 [2025-01-03 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164269', 'tblTempUsageDetail_20' ) start [2025-01-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164269', 'tblTempUsageDetail_20' ) end [2025-01-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164269', 'tblTempVendorCDR_20' ) start [2025-01-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164269', 'tblTempVendorCDR_20' ) end [2025-01-03 08:16:18] Production.INFO: ProcessCDR(1,14164269,1,1,2) [2025-01-03 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164269', 'tblTempUsageDetail_20' ) start [2025-01-03 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164269', 'tblTempUsageDetail_20' ) end [2025-01-03 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:16:23] Production.INFO: ==5029== Releasing lock... [2025-01-03 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:16:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-03 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:17:05 [end_date_ymd] => 2025-01-03 08:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:17:05' and `end` < '2025-01-03 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-01-03 08:17:19] Production.INFO: count ==148 [2025-01-03 08:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:17:05 - End Time 2025-01-03 08:17:05 [2025-01-03 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164274', 'tblTempUsageDetail_20' ) start [2025-01-03 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164274', 'tblTempUsageDetail_20' ) end [2025-01-03 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164274', 'tblTempVendorCDR_20' ) start [2025-01-03 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164274', 'tblTempVendorCDR_20' ) end [2025-01-03 08:17:19] Production.INFO: ProcessCDR(1,14164274,1,1,2) [2025-01-03 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164274', 'tblTempUsageDetail_20' ) start [2025-01-03 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164274', 'tblTempUsageDetail_20' ) end [2025-01-03 08:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:17:24] Production.INFO: ==5101== Releasing lock... [2025-01-03 08:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:17:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:18:05 [end_date_ymd] => 2025-01-03 08:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:18:05' and `end` < '2025-01-03 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-01-03 08:18:19] Production.INFO: count ==158 [2025-01-03 08:18:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:18:05 - End Time 2025-01-03 08:18:05 [2025-01-03 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164279', 'tblTempUsageDetail_20' ) start [2025-01-03 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164279', 'tblTempUsageDetail_20' ) end [2025-01-03 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164279', 'tblTempVendorCDR_20' ) start [2025-01-03 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164279', 'tblTempVendorCDR_20' ) end [2025-01-03 08:18:19] Production.INFO: ProcessCDR(1,14164279,1,1,2) [2025-01-03 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164279', 'tblTempUsageDetail_20' ) start [2025-01-03 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164279', 'tblTempUsageDetail_20' ) end [2025-01-03 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:18:22] Production.INFO: ==5185== Releasing lock... [2025-01-03 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:18:22] Production.INFO: 29 MB #Memory Used# [2025-01-03 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:19:05 [end_date_ymd] => 2025-01-03 08:19:05 [RateCDR] => 1 ) [2025-01-03 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:19:05' and `end` < '2025-01-03 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:19:18] Production.INFO: count ==171 [2025-01-03 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:19:05 - End Time 2025-01-03 08:19:05 [2025-01-03 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164284', 'tblTempUsageDetail_20' ) start [2025-01-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164284', 'tblTempUsageDetail_20' ) end [2025-01-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164284', 'tblTempVendorCDR_20' ) start [2025-01-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164284', 'tblTempVendorCDR_20' ) end [2025-01-03 08:19:18] Production.INFO: ProcessCDR(1,14164284,1,1,2) [2025-01-03 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164284', 'tblTempUsageDetail_20' ) start [2025-01-03 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164284', 'tblTempUsageDetail_20' ) end [2025-01-03 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:19:21] Production.INFO: ==5258== Releasing lock... [2025-01-03 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:20:06 [end_date_ymd] => 2025-01-03 08:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:20:06' and `end` < '2025-01-03 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-01-03 08:20:18] Production.INFO: count ==180 [2025-01-03 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:20:06 - End Time 2025-01-03 08:20:06 [2025-01-03 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164290', 'tblTempUsageDetail_20' ) start [2025-01-03 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164290', 'tblTempUsageDetail_20' ) end [2025-01-03 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164290', 'tblTempVendorCDR_20' ) start [2025-01-03 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164290', 'tblTempVendorCDR_20' ) end [2025-01-03 08:20:18] Production.INFO: ProcessCDR(1,14164290,1,1,2) [2025-01-03 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164290', 'tblTempUsageDetail_20' ) start [2025-01-03 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164290', 'tblTempUsageDetail_20' ) end [2025-01-03 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:20:23] Production.INFO: ==5332== Releasing lock... [2025-01-03 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-03 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:21:05 [end_date_ymd] => 2025-01-03 08:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:21:05' and `end` < '2025-01-03 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-01-03 08:21:19] Production.INFO: count ==196 [2025-01-03 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:21:05 - End Time 2025-01-03 08:21:05 [2025-01-03 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164295', 'tblTempUsageDetail_20' ) start [2025-01-03 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164295', 'tblTempUsageDetail_20' ) end [2025-01-03 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164295', 'tblTempVendorCDR_20' ) start [2025-01-03 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164295', 'tblTempVendorCDR_20' ) end [2025-01-03 08:21:19] Production.INFO: ProcessCDR(1,14164295,1,1,2) [2025-01-03 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164295', 'tblTempUsageDetail_20' ) start [2025-01-03 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164295', 'tblTempUsageDetail_20' ) end [2025-01-03 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:21:22] Production.INFO: ==5405== Releasing lock... [2025-01-03 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:22:05 [end_date_ymd] => 2025-01-03 08:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:22:05' and `end` < '2025-01-03 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-01-03 08:22:18] Production.INFO: count ==205 [2025-01-03 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:22:05 - End Time 2025-01-03 08:22:05 [2025-01-03 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164300', 'tblTempUsageDetail_20' ) start [2025-01-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164300', 'tblTempUsageDetail_20' ) end [2025-01-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164300', 'tblTempVendorCDR_20' ) start [2025-01-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164300', 'tblTempVendorCDR_20' ) end [2025-01-03 08:22:18] Production.INFO: ProcessCDR(1,14164300,1,1,2) [2025-01-03 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164300', 'tblTempUsageDetail_20' ) start [2025-01-03 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164300', 'tblTempUsageDetail_20' ) end [2025-01-03 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:22:23] Production.INFO: ==5497== Releasing lock... [2025-01-03 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:22:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-03 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:23:05 [end_date_ymd] => 2025-01-03 08:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:23:05' and `end` < '2025-01-03 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-01-03 08:23:18] Production.INFO: count ==208 [2025-01-03 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:23:05 - End Time 2025-01-03 08:23:05 [2025-01-03 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164305', 'tblTempUsageDetail_20' ) start [2025-01-03 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164305', 'tblTempUsageDetail_20' ) end [2025-01-03 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164305', 'tblTempVendorCDR_20' ) start [2025-01-03 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164305', 'tblTempVendorCDR_20' ) end [2025-01-03 08:23:18] Production.INFO: ProcessCDR(1,14164305,1,1,2) [2025-01-03 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164305', 'tblTempUsageDetail_20' ) start [2025-01-03 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164305', 'tblTempUsageDetail_20' ) end [2025-01-03 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:23:22] Production.INFO: ==5583== Releasing lock... [2025-01-03 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-03 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:24:05 [end_date_ymd] => 2025-01-03 08:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:24:05' and `end` < '2025-01-03 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-01-03 08:24:19] Production.INFO: count ==223 [2025-01-03 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:24:05 - End Time 2025-01-03 08:24:05 [2025-01-03 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164310', 'tblTempUsageDetail_20' ) start [2025-01-03 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164310', 'tblTempUsageDetail_20' ) end [2025-01-03 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164310', 'tblTempVendorCDR_20' ) start [2025-01-03 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164310', 'tblTempVendorCDR_20' ) end [2025-01-03 08:24:19] Production.INFO: ProcessCDR(1,14164310,1,1,2) [2025-01-03 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164310', 'tblTempUsageDetail_20' ) start [2025-01-03 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164310', 'tblTempUsageDetail_20' ) end [2025-01-03 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:24:22] Production.INFO: ==5669== Releasing lock... [2025-01-03 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:25:05 [end_date_ymd] => 2025-01-03 08:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:25:05' and `end` < '2025-01-03 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-01-03 08:25:18] Production.INFO: count ==228 [2025-01-03 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:25:05 - End Time 2025-01-03 08:25:05 [2025-01-03 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164315', 'tblTempUsageDetail_20' ) start [2025-01-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164315', 'tblTempUsageDetail_20' ) end [2025-01-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164315', 'tblTempVendorCDR_20' ) start [2025-01-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164315', 'tblTempVendorCDR_20' ) end [2025-01-03 08:25:18] Production.INFO: ProcessCDR(1,14164315,1,1,2) [2025-01-03 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164315', 'tblTempUsageDetail_20' ) start [2025-01-03 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164315', 'tblTempUsageDetail_20' ) end [2025-01-03 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:25:21] Production.INFO: ==5759== Releasing lock... [2025-01-03 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-03 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:26:05 [end_date_ymd] => 2025-01-03 08:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:26:05' and `end` < '2025-01-03 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-01-03 08:26:18] Production.INFO: count ==234 [2025-01-03 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:26:05 - End Time 2025-01-03 08:26:05 [2025-01-03 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164320', 'tblTempUsageDetail_20' ) start [2025-01-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164320', 'tblTempUsageDetail_20' ) end [2025-01-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164320', 'tblTempVendorCDR_20' ) start [2025-01-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164320', 'tblTempVendorCDR_20' ) end [2025-01-03 08:26:18] Production.INFO: ProcessCDR(1,14164320,1,1,2) [2025-01-03 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164320', 'tblTempUsageDetail_20' ) start [2025-01-03 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164320', 'tblTempUsageDetail_20' ) end [2025-01-03 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:26:22] Production.INFO: ==5841== Releasing lock... [2025-01-03 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-03 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:27:05 [end_date_ymd] => 2025-01-03 08:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:27:05' and `end` < '2025-01-03 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-01-03 08:27:18] Production.INFO: count ==252 [2025-01-03 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:27:05 - End Time 2025-01-03 08:27:05 [2025-01-03 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164325', 'tblTempUsageDetail_20' ) start [2025-01-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164325', 'tblTempUsageDetail_20' ) end [2025-01-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164325', 'tblTempVendorCDR_20' ) start [2025-01-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164325', 'tblTempVendorCDR_20' ) end [2025-01-03 08:27:18] Production.INFO: ProcessCDR(1,14164325,1,1,2) [2025-01-03 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164325', 'tblTempUsageDetail_20' ) start [2025-01-03 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164325', 'tblTempUsageDetail_20' ) end [2025-01-03 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:27:23] Production.INFO: ==5934== Releasing lock... [2025-01-03 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:27:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-03 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:28:05 [end_date_ymd] => 2025-01-03 08:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:28:05' and `end` < '2025-01-03 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-01-03 08:28:19] Production.INFO: count ==262 [2025-01-03 08:28:20] Production.ERROR: pbx CDR StartTime 2025-01-03 05:28:05 - End Time 2025-01-03 08:28:05 [2025-01-03 08:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164330', 'tblTempUsageDetail_20' ) start [2025-01-03 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164330', 'tblTempUsageDetail_20' ) end [2025-01-03 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164330', 'tblTempVendorCDR_20' ) start [2025-01-03 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164330', 'tblTempVendorCDR_20' ) end [2025-01-03 08:28:20] Production.INFO: ProcessCDR(1,14164330,1,1,2) [2025-01-03 08:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164330', 'tblTempUsageDetail_20' ) start [2025-01-03 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164330', 'tblTempUsageDetail_20' ) end [2025-01-03 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:28:23] Production.INFO: ==6022== Releasing lock... [2025-01-03 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:28:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-03 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:29:05 [end_date_ymd] => 2025-01-03 08:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:29:05' and `end` < '2025-01-03 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-01-03 08:29:19] Production.INFO: count ==275 [2025-01-03 08:29:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:29:05 - End Time 2025-01-03 08:29:05 [2025-01-03 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164335', 'tblTempUsageDetail_20' ) start [2025-01-03 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164335', 'tblTempUsageDetail_20' ) end [2025-01-03 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164335', 'tblTempVendorCDR_20' ) start [2025-01-03 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164335', 'tblTempVendorCDR_20' ) end [2025-01-03 08:29:19] Production.INFO: ProcessCDR(1,14164335,1,1,2) [2025-01-03 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164335', 'tblTempUsageDetail_20' ) start [2025-01-03 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164335', 'tblTempUsageDetail_20' ) end [2025-01-03 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:29:22] Production.INFO: ==6111== Releasing lock... [2025-01-03 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-03 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:30:07 [end_date_ymd] => 2025-01-03 08:30:07 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:30:07' and `end` < '2025-01-03 08: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-01-03 08:30:20] Production.INFO: count ==291 [2025-01-03 08:30:20] Production.ERROR: pbx CDR StartTime 2025-01-03 05:30:07 - End Time 2025-01-03 08:30:07 [2025-01-03 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164341', 'tblTempUsageDetail_20' ) start [2025-01-03 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164341', 'tblTempUsageDetail_20' ) end [2025-01-03 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164341', 'tblTempVendorCDR_20' ) start [2025-01-03 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164341', 'tblTempVendorCDR_20' ) end [2025-01-03 08:30:20] Production.INFO: ProcessCDR(1,14164341,1,1,2) [2025-01-03 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164341', 'tblTempUsageDetail_20' ) start [2025-01-03 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164341', 'tblTempUsageDetail_20' ) end [2025-01-03 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:30:23] Production.INFO: ==6206== Releasing lock... [2025-01-03 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:30:23] Production.INFO: 31 MB #Memory Used# [2025-01-03 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:31:05 [end_date_ymd] => 2025-01-03 08:31:05 [RateCDR] => 1 ) [2025-01-03 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:31:05' and `end` < '2025-01-03 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:31:18] Production.INFO: count ==313 [2025-01-03 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:31:05 - End Time 2025-01-03 08:31:05 [2025-01-03 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164346', 'tblTempUsageDetail_20' ) start [2025-01-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164346', 'tblTempUsageDetail_20' ) end [2025-01-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164346', 'tblTempVendorCDR_20' ) start [2025-01-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164346', 'tblTempVendorCDR_20' ) end [2025-01-03 08:31:18] Production.INFO: ProcessCDR(1,14164346,1,1,2) [2025-01-03 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164346', 'tblTempUsageDetail_20' ) start [2025-01-03 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164346', 'tblTempUsageDetail_20' ) end [2025-01-03 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:31:21] Production.INFO: ==6296== Releasing lock... [2025-01-03 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:31:21] Production.INFO: 31 MB #Memory Used# [2025-01-03 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:32:05 [end_date_ymd] => 2025-01-03 08:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:32:05' and `end` < '2025-01-03 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-01-03 08:32:18] Production.INFO: count ==317 [2025-01-03 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:32:05 - End Time 2025-01-03 08:32:05 [2025-01-03 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164351', 'tblTempUsageDetail_20' ) start [2025-01-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164351', 'tblTempUsageDetail_20' ) end [2025-01-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164351', 'tblTempVendorCDR_20' ) start [2025-01-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164351', 'tblTempVendorCDR_20' ) end [2025-01-03 08:32:18] Production.INFO: ProcessCDR(1,14164351,1,1,2) [2025-01-03 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164351', 'tblTempUsageDetail_20' ) start [2025-01-03 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164351', 'tblTempUsageDetail_20' ) end [2025-01-03 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:32:22] Production.INFO: ==6417== Releasing lock... [2025-01-03 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:32:22] Production.INFO: 31 MB #Memory Used# [2025-01-03 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:33:04 [end_date_ymd] => 2025-01-03 08:33:04 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:33:04' and `end` < '2025-01-03 08: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-01-03 08:33:17] Production.INFO: count ==323 [2025-01-03 08:33:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:33:04 - End Time 2025-01-03 08:33:04 [2025-01-03 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164354', 'tblTempUsageDetail_20' ) start [2025-01-03 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164354', 'tblTempUsageDetail_20' ) end [2025-01-03 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164354', 'tblTempVendorCDR_20' ) start [2025-01-03 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164354', 'tblTempVendorCDR_20' ) end [2025-01-03 08:33:17] Production.INFO: ProcessCDR(1,14164354,1,1,2) [2025-01-03 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164354', 'tblTempUsageDetail_20' ) start [2025-01-03 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164354', 'tblTempUsageDetail_20' ) end [2025-01-03 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:33:20] Production.INFO: ==6504== Releasing lock... [2025-01-03 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:33:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-03 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:34:05 [end_date_ymd] => 2025-01-03 08:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:34:05' and `end` < '2025-01-03 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-01-03 08:34:17] Production.INFO: count ==339 [2025-01-03 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:34:05 - End Time 2025-01-03 08:34:05 [2025-01-03 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164361', 'tblTempUsageDetail_20' ) start [2025-01-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164361', 'tblTempUsageDetail_20' ) end [2025-01-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164361', 'tblTempVendorCDR_20' ) start [2025-01-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164361', 'tblTempVendorCDR_20' ) end [2025-01-03 08:34:18] Production.INFO: ProcessCDR(1,14164361,1,1,2) [2025-01-03 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164361', 'tblTempUsageDetail_20' ) start [2025-01-03 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164361', 'tblTempUsageDetail_20' ) end [2025-01-03 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:34:22] Production.INFO: ==6590== Releasing lock... [2025-01-03 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-03 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:35:05 [end_date_ymd] => 2025-01-03 08:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:35:05' and `end` < '2025-01-03 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-01-03 08:35:18] Production.INFO: count ==351 [2025-01-03 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:35:05 - End Time 2025-01-03 08:35:05 [2025-01-03 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164366', 'tblTempUsageDetail_20' ) start [2025-01-03 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164366', 'tblTempUsageDetail_20' ) end [2025-01-03 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164366', 'tblTempVendorCDR_20' ) start [2025-01-03 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164366', 'tblTempVendorCDR_20' ) end [2025-01-03 08:35:18] Production.INFO: ProcessCDR(1,14164366,1,1,2) [2025-01-03 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164366', 'tblTempUsageDetail_20' ) start [2025-01-03 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164366', 'tblTempUsageDetail_20' ) end [2025-01-03 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:35:21] Production.INFO: ==6677== Releasing lock... [2025-01-03 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-03 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:36:05 [end_date_ymd] => 2025-01-03 08:36:05 [RateCDR] => 1 ) [2025-01-03 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:36:05' and `end` < '2025-01-03 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:36:18] Production.INFO: count ==357 [2025-01-03 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:36:05 - End Time 2025-01-03 08:36:05 [2025-01-03 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164371', 'tblTempUsageDetail_20' ) start [2025-01-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164371', 'tblTempUsageDetail_20' ) end [2025-01-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164371', 'tblTempVendorCDR_20' ) start [2025-01-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164371', 'tblTempVendorCDR_20' ) end [2025-01-03 08:36:18] Production.INFO: ProcessCDR(1,14164371,1,1,2) [2025-01-03 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164371', 'tblTempUsageDetail_20' ) start [2025-01-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164371', 'tblTempUsageDetail_20' ) end [2025-01-03 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:36:21] Production.INFO: ==6768== Releasing lock... [2025-01-03 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-03 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:37:06 [end_date_ymd] => 2025-01-03 08:37:06 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:37:06' and `end` < '2025-01-03 08: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-01-03 08:37:18] Production.INFO: count ==357 [2025-01-03 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:37:06 - End Time 2025-01-03 08:37:06 [2025-01-03 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164376', 'tblTempUsageDetail_20' ) start [2025-01-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164376', 'tblTempUsageDetail_20' ) end [2025-01-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164376', 'tblTempVendorCDR_20' ) start [2025-01-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164376', 'tblTempVendorCDR_20' ) end [2025-01-03 08:37:18] Production.INFO: ProcessCDR(1,14164376,1,1,2) [2025-01-03 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164376', 'tblTempUsageDetail_20' ) start [2025-01-03 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164376', 'tblTempUsageDetail_20' ) end [2025-01-03 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:37:22] Production.INFO: ==6867== Releasing lock... [2025-01-03 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-03 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:38:05 [end_date_ymd] => 2025-01-03 08:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:38:05' and `end` < '2025-01-03 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-01-03 08:38:18] Production.INFO: count ==366 [2025-01-03 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:38:05 - End Time 2025-01-03 08:38:05 [2025-01-03 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164381', 'tblTempUsageDetail_20' ) start [2025-01-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164381', 'tblTempUsageDetail_20' ) end [2025-01-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164381', 'tblTempVendorCDR_20' ) start [2025-01-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164381', 'tblTempVendorCDR_20' ) end [2025-01-03 08:38:18] Production.INFO: ProcessCDR(1,14164381,1,1,2) [2025-01-03 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164381', 'tblTempUsageDetail_20' ) start [2025-01-03 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164381', 'tblTempUsageDetail_20' ) end [2025-01-03 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:38:21] Production.INFO: ==6987== Releasing lock... [2025-01-03 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:38:21] Production.INFO: 31 MB #Memory Used# [2025-01-03 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:39:05 [end_date_ymd] => 2025-01-03 08:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:39:05' and `end` < '2025-01-03 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-01-03 08:39:19] Production.INFO: count ==367 [2025-01-03 08:39:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:39:05 - End Time 2025-01-03 08:39:05 [2025-01-03 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164386', 'tblTempUsageDetail_20' ) start [2025-01-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164386', 'tblTempUsageDetail_20' ) end [2025-01-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164386', 'tblTempVendorCDR_20' ) start [2025-01-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164386', 'tblTempVendorCDR_20' ) end [2025-01-03 08:39:19] Production.INFO: ProcessCDR(1,14164386,1,1,2) [2025-01-03 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164386', 'tblTempUsageDetail_20' ) start [2025-01-03 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164386', 'tblTempUsageDetail_20' ) end [2025-01-03 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:39:24] Production.INFO: ==7104== Releasing lock... [2025-01-03 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:39:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-03 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:40:06 [end_date_ymd] => 2025-01-03 08:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:40:06' and `end` < '2025-01-03 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-01-03 08:40:18] Production.INFO: count ==391 [2025-01-03 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:40:06 - End Time 2025-01-03 08:40:06 [2025-01-03 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164391', 'tblTempUsageDetail_20' ) start [2025-01-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164391', 'tblTempUsageDetail_20' ) end [2025-01-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164391', 'tblTempVendorCDR_20' ) start [2025-01-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164391', 'tblTempVendorCDR_20' ) end [2025-01-03 08:40:19] Production.INFO: ProcessCDR(1,14164391,1,1,2) [2025-01-03 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164391', 'tblTempUsageDetail_20' ) start [2025-01-03 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164391', 'tblTempUsageDetail_20' ) end [2025-01-03 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:40:22] Production.INFO: ==7202== Releasing lock... [2025-01-03 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-03 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:41:05 [end_date_ymd] => 2025-01-03 08:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:41:05' and `end` < '2025-01-03 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-01-03 08:41:18] Production.INFO: count ==409 [2025-01-03 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:41:05 - End Time 2025-01-03 08:41:05 [2025-01-03 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164397', 'tblTempUsageDetail_20' ) start [2025-01-03 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164397', 'tblTempUsageDetail_20' ) end [2025-01-03 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164397', 'tblTempVendorCDR_20' ) start [2025-01-03 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164397', 'tblTempVendorCDR_20' ) end [2025-01-03 08:41:18] Production.INFO: ProcessCDR(1,14164397,1,1,2) [2025-01-03 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164397', 'tblTempUsageDetail_20' ) start [2025-01-03 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164397', 'tblTempUsageDetail_20' ) end [2025-01-03 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:41:23] Production.INFO: ==7294== Releasing lock... [2025-01-03 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:41:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-03 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:42:05 [end_date_ymd] => 2025-01-03 08:42:05 [RateCDR] => 1 ) [2025-01-03 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:42:05' and `end` < '2025-01-03 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:42:18] Production.INFO: count ==409 [2025-01-03 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:42:05 - End Time 2025-01-03 08:42:05 [2025-01-03 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164402', 'tblTempUsageDetail_20' ) start [2025-01-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164402', 'tblTempUsageDetail_20' ) end [2025-01-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164402', 'tblTempVendorCDR_20' ) start [2025-01-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164402', 'tblTempVendorCDR_20' ) end [2025-01-03 08:42:18] Production.INFO: ProcessCDR(1,14164402,1,1,2) [2025-01-03 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164402', 'tblTempUsageDetail_20' ) start [2025-01-03 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164402', 'tblTempUsageDetail_20' ) end [2025-01-03 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:42:21] Production.INFO: ==7379== Releasing lock... [2025-01-03 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-03 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:43:04 [end_date_ymd] => 2025-01-03 08:43:04 [RateCDR] => 1 ) [2025-01-03 08:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:43:04' and `end` < '2025-01-03 08:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:43:17] Production.INFO: count ==423 [2025-01-03 08:43:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:43:04 - End Time 2025-01-03 08:43:04 [2025-01-03 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164407', 'tblTempUsageDetail_20' ) start [2025-01-03 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164407', 'tblTempUsageDetail_20' ) end [2025-01-03 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164407', 'tblTempVendorCDR_20' ) start [2025-01-03 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164407', 'tblTempVendorCDR_20' ) end [2025-01-03 08:43:17] Production.INFO: ProcessCDR(1,14164407,1,1,2) [2025-01-03 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164407', 'tblTempUsageDetail_20' ) start [2025-01-03 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164407', 'tblTempUsageDetail_20' ) end [2025-01-03 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:43:20] Production.INFO: ==7467== Releasing lock... [2025-01-03 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:43:20] Production.INFO: 32 MB #Memory Used# [2025-01-03 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:44:05 [end_date_ymd] => 2025-01-03 08:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:44:05' and `end` < '2025-01-03 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-01-03 08:44:18] Production.INFO: count ==424 [2025-01-03 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:44:05 - End Time 2025-01-03 08:44:05 [2025-01-03 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164412', 'tblTempUsageDetail_20' ) start [2025-01-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164412', 'tblTempUsageDetail_20' ) end [2025-01-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164412', 'tblTempVendorCDR_20' ) start [2025-01-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164412', 'tblTempVendorCDR_20' ) end [2025-01-03 08:44:18] Production.INFO: ProcessCDR(1,14164412,1,1,2) [2025-01-03 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164412', 'tblTempUsageDetail_20' ) start [2025-01-03 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164412', 'tblTempUsageDetail_20' ) end [2025-01-03 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:44:21] Production.INFO: ==7558== Releasing lock... [2025-01-03 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-03 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:45:06 [end_date_ymd] => 2025-01-03 08:45:06 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:45:06' and `end` < '2025-01-03 08: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-01-03 08:45:18] Production.INFO: count ==437 [2025-01-03 08:45:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:45:06 - End Time 2025-01-03 08:45:06 [2025-01-03 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164417', 'tblTempUsageDetail_20' ) start [2025-01-03 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164417', 'tblTempUsageDetail_20' ) end [2025-01-03 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164417', 'tblTempVendorCDR_20' ) start [2025-01-03 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164417', 'tblTempVendorCDR_20' ) end [2025-01-03 08:45:19] Production.INFO: ProcessCDR(1,14164417,1,1,2) [2025-01-03 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164417', 'tblTempUsageDetail_20' ) start [2025-01-03 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164417', 'tblTempUsageDetail_20' ) end [2025-01-03 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:45:22] Production.INFO: ==7645== Releasing lock... [2025-01-03 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:45:22] Production.INFO: 32 MB #Memory Used# [2025-01-03 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:46:05 [end_date_ymd] => 2025-01-03 08:46:05 [RateCDR] => 1 ) [2025-01-03 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:46:05' and `end` < '2025-01-03 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:46:18] Production.INFO: count ==438 [2025-01-03 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:46:05 - End Time 2025-01-03 08:46:05 [2025-01-03 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164422', 'tblTempUsageDetail_20' ) start [2025-01-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164422', 'tblTempUsageDetail_20' ) end [2025-01-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164422', 'tblTempVendorCDR_20' ) start [2025-01-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164422', 'tblTempVendorCDR_20' ) end [2025-01-03 08:46:18] Production.INFO: ProcessCDR(1,14164422,1,1,2) [2025-01-03 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164422', 'tblTempUsageDetail_20' ) start [2025-01-03 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164422', 'tblTempUsageDetail_20' ) end [2025-01-03 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:46:22] Production.INFO: ==7719== Releasing lock... [2025-01-03 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:46:22] Production.INFO: 32 MB #Memory Used# [2025-01-03 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:47:06 [end_date_ymd] => 2025-01-03 08:47:06 [RateCDR] => 1 ) [2025-01-03 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:47:06' and `end` < '2025-01-03 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:47:18] Production.INFO: count ==443 [2025-01-03 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:47:06 - End Time 2025-01-03 08:47:06 [2025-01-03 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164427', 'tblTempUsageDetail_20' ) start [2025-01-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164427', 'tblTempUsageDetail_20' ) end [2025-01-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164427', 'tblTempVendorCDR_20' ) start [2025-01-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164427', 'tblTempVendorCDR_20' ) end [2025-01-03 08:47:18] Production.INFO: ProcessCDR(1,14164427,1,1,2) [2025-01-03 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164427', 'tblTempUsageDetail_20' ) start [2025-01-03 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164427', 'tblTempUsageDetail_20' ) end [2025-01-03 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:47:22] Production.INFO: ==7828== Releasing lock... [2025-01-03 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:48:05 [end_date_ymd] => 2025-01-03 08:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:48:05' and `end` < '2025-01-03 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-01-03 08:48:18] Production.INFO: count ==461 [2025-01-03 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:48:05 - End Time 2025-01-03 08:48:05 [2025-01-03 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164432', 'tblTempUsageDetail_20' ) start [2025-01-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164432', 'tblTempUsageDetail_20' ) end [2025-01-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164432', 'tblTempVendorCDR_20' ) start [2025-01-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164432', 'tblTempVendorCDR_20' ) end [2025-01-03 08:48:18] Production.INFO: ProcessCDR(1,14164432,1,1,2) [2025-01-03 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164432', 'tblTempUsageDetail_20' ) start [2025-01-03 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164432', 'tblTempUsageDetail_20' ) end [2025-01-03 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:48:22] Production.INFO: ==7899== Releasing lock... [2025-01-03 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:49:05 [end_date_ymd] => 2025-01-03 08:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:49:05' and `end` < '2025-01-03 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-01-03 08:49:18] Production.INFO: count ==464 [2025-01-03 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:49:05 - End Time 2025-01-03 08:49:05 [2025-01-03 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164437', 'tblTempUsageDetail_20' ) start [2025-01-03 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164437', 'tblTempUsageDetail_20' ) end [2025-01-03 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164437', 'tblTempVendorCDR_20' ) start [2025-01-03 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164437', 'tblTempVendorCDR_20' ) end [2025-01-03 08:49:18] Production.INFO: ProcessCDR(1,14164437,1,1,2) [2025-01-03 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164437', 'tblTempUsageDetail_20' ) start [2025-01-03 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164437', 'tblTempUsageDetail_20' ) end [2025-01-03 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:49:22] Production.INFO: ==7971== Releasing lock... [2025-01-03 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-03 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:50:05 [end_date_ymd] => 2025-01-03 08:50:05 [RateCDR] => 1 ) [2025-01-03 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:50:05' and `end` < '2025-01-03 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:50:18] Production.INFO: count ==477 [2025-01-03 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:50:05 - End Time 2025-01-03 08:50:05 [2025-01-03 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164443', 'tblTempUsageDetail_20' ) start [2025-01-03 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164443', 'tblTempUsageDetail_20' ) end [2025-01-03 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164443', 'tblTempVendorCDR_20' ) start [2025-01-03 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164443', 'tblTempVendorCDR_20' ) end [2025-01-03 08:50:18] Production.INFO: ProcessCDR(1,14164443,1,1,2) [2025-01-03 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164443', 'tblTempUsageDetail_20' ) start [2025-01-03 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164443', 'tblTempUsageDetail_20' ) end [2025-01-03 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:50:21] Production.INFO: ==8047== Releasing lock... [2025-01-03 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-03 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:51:05 [end_date_ymd] => 2025-01-03 08:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:51:05' and `end` < '2025-01-03 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-01-03 08:51:17] Production.INFO: count ==494 [2025-01-03 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:51:05 - End Time 2025-01-03 08:51:05 [2025-01-03 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164448', 'tblTempUsageDetail_20' ) start [2025-01-03 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164448', 'tblTempUsageDetail_20' ) end [2025-01-03 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164448', 'tblTempVendorCDR_20' ) start [2025-01-03 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164448', 'tblTempVendorCDR_20' ) end [2025-01-03 08:51:18] Production.INFO: ProcessCDR(1,14164448,1,1,2) [2025-01-03 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164448', 'tblTempUsageDetail_20' ) start [2025-01-03 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164448', 'tblTempUsageDetail_20' ) end [2025-01-03 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:51:21] Production.INFO: ==8119== Releasing lock... [2025-01-03 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-03 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:52:05 [end_date_ymd] => 2025-01-03 08:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:52:05' and `end` < '2025-01-03 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-01-03 08:52:18] Production.INFO: count ==498 [2025-01-03 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:52:05 - End Time 2025-01-03 08:52:05 [2025-01-03 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164453', 'tblTempUsageDetail_20' ) start [2025-01-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164453', 'tblTempUsageDetail_20' ) end [2025-01-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164453', 'tblTempVendorCDR_20' ) start [2025-01-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164453', 'tblTempVendorCDR_20' ) end [2025-01-03 08:52:18] Production.INFO: ProcessCDR(1,14164453,1,1,2) [2025-01-03 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164453', 'tblTempUsageDetail_20' ) start [2025-01-03 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164453', 'tblTempUsageDetail_20' ) end [2025-01-03 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:52:21] Production.INFO: ==8193== Releasing lock... [2025-01-03 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:53:05 [end_date_ymd] => 2025-01-03 08:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:53:05' and `end` < '2025-01-03 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-01-03 08:53:17] Production.INFO: count ==500 [2025-01-03 08:53:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:53:05 - End Time 2025-01-03 08:53:05 [2025-01-03 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164458', 'tblTempUsageDetail_20' ) start [2025-01-03 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164458', 'tblTempUsageDetail_20' ) end [2025-01-03 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164458', 'tblTempVendorCDR_20' ) start [2025-01-03 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164458', 'tblTempVendorCDR_20' ) end [2025-01-03 08:53:17] Production.INFO: ProcessCDR(1,14164458,1,1,2) [2025-01-03 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164458', 'tblTempUsageDetail_20' ) start [2025-01-03 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164458', 'tblTempUsageDetail_20' ) end [2025-01-03 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:53:20] Production.INFO: ==8264== Releasing lock... [2025-01-03 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:53:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:54:05 [end_date_ymd] => 2025-01-03 08:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:54:05' and `end` < '2025-01-03 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-01-03 08:54:18] Production.INFO: count ==500 [2025-01-03 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:54:05 - End Time 2025-01-03 08:54:05 [2025-01-03 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164463', 'tblTempUsageDetail_20' ) start [2025-01-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164463', 'tblTempUsageDetail_20' ) end [2025-01-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164463', 'tblTempVendorCDR_20' ) start [2025-01-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164463', 'tblTempVendorCDR_20' ) end [2025-01-03 08:54:18] Production.INFO: ProcessCDR(1,14164463,1,1,2) [2025-01-03 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164463', 'tblTempUsageDetail_20' ) start [2025-01-03 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164463', 'tblTempUsageDetail_20' ) end [2025-01-03 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:54:21] Production.INFO: ==8335== Releasing lock... [2025-01-03 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:55:05 [end_date_ymd] => 2025-01-03 08:55:05 [RateCDR] => 1 ) [2025-01-03 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:55:05' and `end` < '2025-01-03 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:55:18] Production.INFO: count ==500 [2025-01-03 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:55:05 - End Time 2025-01-03 08:55:05 [2025-01-03 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164468', 'tblTempUsageDetail_20' ) start [2025-01-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164468', 'tblTempUsageDetail_20' ) end [2025-01-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164468', 'tblTempVendorCDR_20' ) start [2025-01-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164468', 'tblTempVendorCDR_20' ) end [2025-01-03 08:55:18] Production.INFO: ProcessCDR(1,14164468,1,1,2) [2025-01-03 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164468', 'tblTempUsageDetail_20' ) start [2025-01-03 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164468', 'tblTempUsageDetail_20' ) end [2025-01-03 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:55:21] Production.INFO: ==8405== Releasing lock... [2025-01-03 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:56:05 [end_date_ymd] => 2025-01-03 08:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:56:05' and `end` < '2025-01-03 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-01-03 08:56:18] Production.INFO: count ==500 [2025-01-03 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:56:05 - End Time 2025-01-03 08:56:05 [2025-01-03 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164473', 'tblTempUsageDetail_20' ) start [2025-01-03 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164473', 'tblTempUsageDetail_20' ) end [2025-01-03 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164473', 'tblTempVendorCDR_20' ) start [2025-01-03 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164473', 'tblTempVendorCDR_20' ) end [2025-01-03 08:56:18] Production.INFO: ProcessCDR(1,14164473,1,1,2) [2025-01-03 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164473', 'tblTempUsageDetail_20' ) start [2025-01-03 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164473', 'tblTempUsageDetail_20' ) end [2025-01-03 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:56:21] Production.INFO: ==8475== Releasing lock... [2025-01-03 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:57:04 [end_date_ymd] => 2025-01-03 08:57:04 [RateCDR] => 1 ) [2025-01-03 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 05:57:04' and `end` < '2025-01-03 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 08:57:18] Production.INFO: count ==501 [2025-01-03 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-03 05:57:04 - End Time 2025-01-03 08:57:04 [2025-01-03 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164478', 'tblTempUsageDetail_20' ) start [2025-01-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164478', 'tblTempUsageDetail_20' ) end [2025-01-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164478', 'tblTempVendorCDR_20' ) start [2025-01-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164478', 'tblTempVendorCDR_20' ) end [2025-01-03 08:57:19] Production.INFO: ProcessCDR(1,14164478,1,1,2) [2025-01-03 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164478', 'tblTempUsageDetail_20' ) start [2025-01-03 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164478', 'tblTempUsageDetail_20' ) end [2025-01-03 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:57:23] Production.INFO: ==8548== Releasing lock... [2025-01-03 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:57:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:58:05 [end_date_ymd] => 2025-01-03 08:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 05:58:05' and `end` < '2025-01-03 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-01-03 08:58:18] Production.INFO: count ==509 [2025-01-03 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 05:58:05 - End Time 2025-01-03 08:58:05 [2025-01-03 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164483', 'tblTempUsageDetail_20' ) start [2025-01-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164483', 'tblTempUsageDetail_20' ) end [2025-01-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164483', 'tblTempVendorCDR_20' ) start [2025-01-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164483', 'tblTempVendorCDR_20' ) end [2025-01-03 08:58:18] Production.INFO: ProcessCDR(1,14164483,1,1,2) [2025-01-03 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164483', 'tblTempUsageDetail_20' ) start [2025-01-03 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164483', 'tblTempUsageDetail_20' ) end [2025-01-03 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:58:22] Production.INFO: ==8621== Releasing lock... [2025-01-03 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-03 08:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 05:59:04 [end_date_ymd] => 2025-01-03 08:59:04 [RateCDR] => 1 ) [2025-01-03 08: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-01-03 05:59:04' and `end` < '2025-01-03 08: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-01-03 08:59:17] Production.INFO: count ==524 [2025-01-03 08:59:17] Production.ERROR: pbx CDR StartTime 2025-01-03 05:59:04 - End Time 2025-01-03 08:59:04 [2025-01-03 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164488', 'tblTempUsageDetail_20' ) start [2025-01-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164488', 'tblTempUsageDetail_20' ) end [2025-01-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164488', 'tblTempVendorCDR_20' ) start [2025-01-03 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164488', 'tblTempVendorCDR_20' ) end [2025-01-03 08:59:17] Production.INFO: ProcessCDR(1,14164488,1,1,2) [2025-01-03 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164488', 'tblTempUsageDetail_20' ) start [2025-01-03 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164488', 'tblTempUsageDetail_20' ) end [2025-01-03 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 08:59:22] Production.INFO: ==8690== Releasing lock... [2025-01-03 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 08:59:22] Production.INFO: 32 MB #Memory Used# [2025-01-03 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:00:05 [end_date_ymd] => 2025-01-03 09:00:05 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:00:05' and `end` < '2025-01-03 09: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-01-03 09:00:18] Production.INFO: count ==538 [2025-01-03 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:00:05 - End Time 2025-01-03 09:00:05 [2025-01-03 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164493', 'tblTempUsageDetail_20' ) start [2025-01-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164493', 'tblTempUsageDetail_20' ) end [2025-01-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164493', 'tblTempVendorCDR_20' ) start [2025-01-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164493', 'tblTempVendorCDR_20' ) end [2025-01-03 09:00:18] Production.INFO: ProcessCDR(1,14164493,1,1,2) [2025-01-03 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164493', 'tblTempUsageDetail_20' ) start [2025-01-03 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164493', 'tblTempUsageDetail_20' ) end [2025-01-03 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:00:23] Production.INFO: ==8762== Releasing lock... [2025-01-03 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-03 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:01:04 [end_date_ymd] => 2025-01-03 09:01:04 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:01:04' and `end` < '2025-01-03 09: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-01-03 09:01:17] Production.INFO: count ==578 [2025-01-03 09:01:17] Production.ERROR: pbx CDR StartTime 2025-01-03 06:01:04 - End Time 2025-01-03 09:01:04 [2025-01-03 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164499', 'tblTempUsageDetail_20' ) start [2025-01-03 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164499', 'tblTempUsageDetail_20' ) end [2025-01-03 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164499', 'tblTempVendorCDR_20' ) start [2025-01-03 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164499', 'tblTempVendorCDR_20' ) end [2025-01-03 09:01:17] Production.INFO: ProcessCDR(1,14164499,1,1,2) [2025-01-03 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164499', 'tblTempUsageDetail_20' ) start [2025-01-03 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164499', 'tblTempUsageDetail_20' ) end [2025-01-03 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:01:22] Production.INFO: ==8847== Releasing lock... [2025-01-03 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:01:22] Production.INFO: 33 MB #Memory Used# [2025-01-03 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:02:06 [end_date_ymd] => 2025-01-03 09:02:06 [RateCDR] => 1 ) [2025-01-03 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:02:06' and `end` < '2025-01-03 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:02:19] Production.INFO: count ==581 [2025-01-03 09:02:20] Production.ERROR: pbx CDR StartTime 2025-01-03 06:02:06 - End Time 2025-01-03 09:02:06 [2025-01-03 09:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164504', 'tblTempUsageDetail_20' ) start [2025-01-03 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164504', 'tblTempUsageDetail_20' ) end [2025-01-03 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164504', 'tblTempVendorCDR_20' ) start [2025-01-03 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164504', 'tblTempVendorCDR_20' ) end [2025-01-03 09:02:20] Production.INFO: ProcessCDR(1,14164504,1,1,2) [2025-01-03 09:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164504', 'tblTempUsageDetail_20' ) start [2025-01-03 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164504', 'tblTempUsageDetail_20' ) end [2025-01-03 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:02:24] Production.INFO: ==8925== Releasing lock... [2025-01-03 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:02:24] Production.INFO: 33 MB #Memory Used# [2025-01-03 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:03:04 [end_date_ymd] => 2025-01-03 09:03:04 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:03:04' and `end` < '2025-01-03 09: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-01-03 09:03:17] Production.INFO: count ==590 [2025-01-03 09:03:17] Production.ERROR: pbx CDR StartTime 2025-01-03 06:03:04 - End Time 2025-01-03 09:03:04 [2025-01-03 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164509', 'tblTempUsageDetail_20' ) start [2025-01-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164509', 'tblTempUsageDetail_20' ) end [2025-01-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164509', 'tblTempVendorCDR_20' ) start [2025-01-03 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164509', 'tblTempVendorCDR_20' ) end [2025-01-03 09:03:17] Production.INFO: ProcessCDR(1,14164509,1,1,2) [2025-01-03 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164509', 'tblTempUsageDetail_20' ) start [2025-01-03 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164509', 'tblTempUsageDetail_20' ) end [2025-01-03 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:03:22] Production.INFO: ==9038== Releasing lock... [2025-01-03 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:03:22] Production.INFO: 33 MB #Memory Used# [2025-01-03 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:04:04 [end_date_ymd] => 2025-01-03 09:04:04 [RateCDR] => 1 ) [2025-01-03 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:04:04' and `end` < '2025-01-03 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:04:18] Production.INFO: count ==606 [2025-01-03 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:04:04 - End Time 2025-01-03 09:04:04 [2025-01-03 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164514', 'tblTempUsageDetail_20' ) start [2025-01-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164514', 'tblTempUsageDetail_20' ) end [2025-01-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164514', 'tblTempVendorCDR_20' ) start [2025-01-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164514', 'tblTempVendorCDR_20' ) end [2025-01-03 09:04:18] Production.INFO: ProcessCDR(1,14164514,1,1,2) [2025-01-03 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164514', 'tblTempUsageDetail_20' ) start [2025-01-03 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164514', 'tblTempUsageDetail_20' ) end [2025-01-03 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:04:23] Production.INFO: ==9111== Releasing lock... [2025-01-03 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:04:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-03 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:05:05 [end_date_ymd] => 2025-01-03 09:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:05:05' and `end` < '2025-01-03 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-01-03 09:05:18] Production.INFO: count ==627 [2025-01-03 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:05:05 - End Time 2025-01-03 09:05:05 [2025-01-03 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164519', 'tblTempUsageDetail_20' ) start [2025-01-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164519', 'tblTempUsageDetail_20' ) end [2025-01-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164519', 'tblTempVendorCDR_20' ) start [2025-01-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164519', 'tblTempVendorCDR_20' ) end [2025-01-03 09:05:18] Production.INFO: ProcessCDR(1,14164519,1,1,2) [2025-01-03 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164519', 'tblTempUsageDetail_20' ) start [2025-01-03 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164519', 'tblTempUsageDetail_20' ) end [2025-01-03 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:05:21] Production.INFO: ==9181== Releasing lock... [2025-01-03 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:06:05 [end_date_ymd] => 2025-01-03 09:06:05 [RateCDR] => 1 ) [2025-01-03 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:06:05' and `end` < '2025-01-03 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:06:19] Production.INFO: count ==629 [2025-01-03 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:06:05 - End Time 2025-01-03 09:06:05 [2025-01-03 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164524', 'tblTempUsageDetail_20' ) start [2025-01-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164524', 'tblTempUsageDetail_20' ) end [2025-01-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164524', 'tblTempVendorCDR_20' ) start [2025-01-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164524', 'tblTempVendorCDR_20' ) end [2025-01-03 09:06:19] Production.INFO: ProcessCDR(1,14164524,1,1,2) [2025-01-03 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164524', 'tblTempUsageDetail_20' ) start [2025-01-03 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164524', 'tblTempUsageDetail_20' ) end [2025-01-03 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:06:24] Production.INFO: ==9252== Releasing lock... [2025-01-03 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:06:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:07:05 [end_date_ymd] => 2025-01-03 09:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:07:05' and `end` < '2025-01-03 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-01-03 09:07:18] Production.INFO: count ==640 [2025-01-03 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:07:05 - End Time 2025-01-03 09:07:05 [2025-01-03 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164529', 'tblTempUsageDetail_20' ) start [2025-01-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164529', 'tblTempUsageDetail_20' ) end [2025-01-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164529', 'tblTempVendorCDR_20' ) start [2025-01-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164529', 'tblTempVendorCDR_20' ) end [2025-01-03 09:07:18] Production.INFO: ProcessCDR(1,14164529,1,1,2) [2025-01-03 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164529', 'tblTempUsageDetail_20' ) start [2025-01-03 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164529', 'tblTempUsageDetail_20' ) end [2025-01-03 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:07:23] Production.INFO: ==9325== Releasing lock... [2025-01-03 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:07:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-03 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:08:05 [end_date_ymd] => 2025-01-03 09:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:08:05' and `end` < '2025-01-03 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-01-03 09:08:18] Production.INFO: count ==645 [2025-01-03 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:08:05 - End Time 2025-01-03 09:08:05 [2025-01-03 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164534', 'tblTempUsageDetail_20' ) start [2025-01-03 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164534', 'tblTempUsageDetail_20' ) end [2025-01-03 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164534', 'tblTempVendorCDR_20' ) start [2025-01-03 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164534', 'tblTempVendorCDR_20' ) end [2025-01-03 09:08:18] Production.INFO: ProcessCDR(1,14164534,1,1,2) [2025-01-03 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164534', 'tblTempUsageDetail_20' ) start [2025-01-03 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164534', 'tblTempUsageDetail_20' ) end [2025-01-03 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:08:21] Production.INFO: ==9396== Releasing lock... [2025-01-03 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:09:05 [end_date_ymd] => 2025-01-03 09:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:09:05' and `end` < '2025-01-03 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-01-03 09:09:18] Production.INFO: count ==649 [2025-01-03 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:09:05 - End Time 2025-01-03 09:09:05 [2025-01-03 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164539', 'tblTempUsageDetail_20' ) start [2025-01-03 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164539', 'tblTempUsageDetail_20' ) end [2025-01-03 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164539', 'tblTempVendorCDR_20' ) start [2025-01-03 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164539', 'tblTempVendorCDR_20' ) end [2025-01-03 09:09:18] Production.INFO: ProcessCDR(1,14164539,1,1,2) [2025-01-03 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164539', 'tblTempUsageDetail_20' ) start [2025-01-03 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164539', 'tblTempUsageDetail_20' ) end [2025-01-03 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:09:23] Production.INFO: ==9467== Releasing lock... [2025-01-03 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:09:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:10:06 [end_date_ymd] => 2025-01-03 09:10:06 [RateCDR] => 1 ) [2025-01-03 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:10:06' and `end` < '2025-01-03 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:10:18] Production.INFO: count ==674 [2025-01-03 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:10:06 - End Time 2025-01-03 09:10:06 [2025-01-03 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164544', 'tblTempUsageDetail_20' ) start [2025-01-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164544', 'tblTempUsageDetail_20' ) end [2025-01-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164544', 'tblTempVendorCDR_20' ) start [2025-01-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164544', 'tblTempVendorCDR_20' ) end [2025-01-03 09:10:19] Production.INFO: ProcessCDR(1,14164544,1,1,2) [2025-01-03 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164544', 'tblTempUsageDetail_20' ) start [2025-01-03 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164544', 'tblTempUsageDetail_20' ) end [2025-01-03 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:10:22] Production.INFO: ==9538== Releasing lock... [2025-01-03 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:10:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:11:05 [end_date_ymd] => 2025-01-03 09:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:11:05' and `end` < '2025-01-03 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-01-03 09:11:18] Production.INFO: count ==735 [2025-01-03 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:11:05 - End Time 2025-01-03 09:11:05 [2025-01-03 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164550', 'tblTempUsageDetail_20' ) start [2025-01-03 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164550', 'tblTempUsageDetail_20' ) end [2025-01-03 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164550', 'tblTempVendorCDR_20' ) start [2025-01-03 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164550', 'tblTempVendorCDR_20' ) end [2025-01-03 09:11:18] Production.INFO: ProcessCDR(1,14164550,1,1,2) [2025-01-03 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164550', 'tblTempUsageDetail_20' ) start [2025-01-03 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164550', 'tblTempUsageDetail_20' ) end [2025-01-03 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:11:23] Production.INFO: ==9610== Releasing lock... [2025-01-03 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:11:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:12:04 [end_date_ymd] => 2025-01-03 09:12:04 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:12:04' and `end` < '2025-01-03 09: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-01-03 09:12:17] Production.INFO: count ==765 [2025-01-03 09:12:17] Production.ERROR: pbx CDR StartTime 2025-01-03 06:12:04 - End Time 2025-01-03 09:12:04 [2025-01-03 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164555', 'tblTempUsageDetail_20' ) start [2025-01-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164555', 'tblTempUsageDetail_20' ) end [2025-01-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164555', 'tblTempVendorCDR_20' ) start [2025-01-03 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164555', 'tblTempVendorCDR_20' ) end [2025-01-03 09:12:17] Production.INFO: ProcessCDR(1,14164555,1,1,2) [2025-01-03 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164555', 'tblTempUsageDetail_20' ) start [2025-01-03 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164555', 'tblTempUsageDetail_20' ) end [2025-01-03 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:12:22] Production.INFO: ==9683== Releasing lock... [2025-01-03 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:12:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:13:05 [end_date_ymd] => 2025-01-03 09:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:13:05' and `end` < '2025-01-03 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-01-03 09:13:18] Production.INFO: count ==780 [2025-01-03 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:13:05 - End Time 2025-01-03 09:13:05 [2025-01-03 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164560', 'tblTempUsageDetail_20' ) start [2025-01-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164560', 'tblTempUsageDetail_20' ) end [2025-01-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164560', 'tblTempVendorCDR_20' ) start [2025-01-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164560', 'tblTempVendorCDR_20' ) end [2025-01-03 09:13:18] Production.INFO: ProcessCDR(1,14164560,1,1,2) [2025-01-03 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164560', 'tblTempUsageDetail_20' ) start [2025-01-03 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164560', 'tblTempUsageDetail_20' ) end [2025-01-03 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:13:23] Production.INFO: ==9756== Releasing lock... [2025-01-03 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:13:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-03 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:14:05 [end_date_ymd] => 2025-01-03 09:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:14:05' and `end` < '2025-01-03 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-01-03 09:14:18] Production.INFO: count ==796 [2025-01-03 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:14:05 - End Time 2025-01-03 09:14:05 [2025-01-03 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164565', 'tblTempUsageDetail_20' ) start [2025-01-03 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164565', 'tblTempUsageDetail_20' ) end [2025-01-03 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164565', 'tblTempVendorCDR_20' ) start [2025-01-03 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164565', 'tblTempVendorCDR_20' ) end [2025-01-03 09:14:18] Production.INFO: ProcessCDR(1,14164565,1,1,2) [2025-01-03 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164565', 'tblTempUsageDetail_20' ) start [2025-01-03 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164565', 'tblTempUsageDetail_20' ) end [2025-01-03 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:14:22] Production.INFO: ==9828== Releasing lock... [2025-01-03 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:14:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:15:05 [end_date_ymd] => 2025-01-03 09:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:15:05' and `end` < '2025-01-03 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-01-03 09:15:18] Production.INFO: count ==814 [2025-01-03 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:15:05 - End Time 2025-01-03 09:15:05 [2025-01-03 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164570', 'tblTempUsageDetail_20' ) start [2025-01-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164570', 'tblTempUsageDetail_20' ) end [2025-01-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164570', 'tblTempVendorCDR_20' ) start [2025-01-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164570', 'tblTempVendorCDR_20' ) end [2025-01-03 09:15:18] Production.INFO: ProcessCDR(1,14164570,1,1,2) [2025-01-03 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164570', 'tblTempUsageDetail_20' ) start [2025-01-03 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164570', 'tblTempUsageDetail_20' ) end [2025-01-03 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:15:21] Production.INFO: ==9898== Releasing lock... [2025-01-03 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:15:21] Production.INFO: 35 MB #Memory Used# [2025-01-03 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:16:06 [end_date_ymd] => 2025-01-03 09:16:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:16:06' and `end` < '2025-01-03 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-01-03 09:16:18] Production.INFO: count ==840 [2025-01-03 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:16:06 - End Time 2025-01-03 09:16:06 [2025-01-03 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164575', 'tblTempUsageDetail_20' ) start [2025-01-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164575', 'tblTempUsageDetail_20' ) end [2025-01-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164575', 'tblTempVendorCDR_20' ) start [2025-01-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164575', 'tblTempVendorCDR_20' ) end [2025-01-03 09:16:19] Production.INFO: ProcessCDR(1,14164575,1,1,2) [2025-01-03 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164575', 'tblTempUsageDetail_20' ) start [2025-01-03 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164575', 'tblTempUsageDetail_20' ) end [2025-01-03 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:16:24] Production.INFO: ==9970== Releasing lock... [2025-01-03 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:16:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:17:05 [end_date_ymd] => 2025-01-03 09:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:17:05' and `end` < '2025-01-03 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-01-03 09:17:18] Production.INFO: count ==873 [2025-01-03 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:17:05 - End Time 2025-01-03 09:17:05 [2025-01-03 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164580', 'tblTempUsageDetail_20' ) start [2025-01-03 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164580', 'tblTempUsageDetail_20' ) end [2025-01-03 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164580', 'tblTempVendorCDR_20' ) start [2025-01-03 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164580', 'tblTempVendorCDR_20' ) end [2025-01-03 09:17:18] Production.INFO: ProcessCDR(1,14164580,1,1,2) [2025-01-03 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164580', 'tblTempUsageDetail_20' ) start [2025-01-03 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164580', 'tblTempUsageDetail_20' ) end [2025-01-03 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:17:23] Production.INFO: ==10044== Releasing lock... [2025-01-03 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:17:23] Production.INFO: 35 MB #Memory Used# [2025-01-03 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:18:05 [end_date_ymd] => 2025-01-03 09:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:18:05' and `end` < '2025-01-03 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-01-03 09:18:18] Production.INFO: count ==879 [2025-01-03 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:18:05 - End Time 2025-01-03 09:18:05 [2025-01-03 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164585', 'tblTempUsageDetail_20' ) start [2025-01-03 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164585', 'tblTempUsageDetail_20' ) end [2025-01-03 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164585', 'tblTempVendorCDR_20' ) start [2025-01-03 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164585', 'tblTempVendorCDR_20' ) end [2025-01-03 09:18:18] Production.INFO: ProcessCDR(1,14164585,1,1,2) [2025-01-03 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164585', 'tblTempUsageDetail_20' ) start [2025-01-03 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164585', 'tblTempUsageDetail_20' ) end [2025-01-03 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:18:23] Production.INFO: ==10155== Releasing lock... [2025-01-03 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:18:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:19:05 [end_date_ymd] => 2025-01-03 09:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:19:05' and `end` < '2025-01-03 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-01-03 09:19:17] Production.INFO: count ==890 [2025-01-03 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:19:05 - End Time 2025-01-03 09:19:05 [2025-01-03 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164590', 'tblTempUsageDetail_20' ) start [2025-01-03 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164590', 'tblTempUsageDetail_20' ) end [2025-01-03 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164590', 'tblTempVendorCDR_20' ) start [2025-01-03 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164590', 'tblTempVendorCDR_20' ) end [2025-01-03 09:19:18] Production.INFO: ProcessCDR(1,14164590,1,1,2) [2025-01-03 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164590', 'tblTempUsageDetail_20' ) start [2025-01-03 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164590', 'tblTempUsageDetail_20' ) end [2025-01-03 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:19:21] Production.INFO: ==10224== Releasing lock... [2025-01-03 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:20:06 [end_date_ymd] => 2025-01-03 09:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:20:06' and `end` < '2025-01-03 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-01-03 09:20:19] Production.INFO: count ==914 [2025-01-03 09:20:20] Production.ERROR: pbx CDR StartTime 2025-01-03 06:20:06 - End Time 2025-01-03 09:20:06 [2025-01-03 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164596', 'tblTempUsageDetail_20' ) start [2025-01-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164596', 'tblTempUsageDetail_20' ) end [2025-01-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164596', 'tblTempVendorCDR_20' ) start [2025-01-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164596', 'tblTempVendorCDR_20' ) end [2025-01-03 09:20:20] Production.INFO: ProcessCDR(1,14164596,1,1,2) [2025-01-03 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164596', 'tblTempUsageDetail_20' ) start [2025-01-03 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164596', 'tblTempUsageDetail_20' ) end [2025-01-03 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:20:24] Production.INFO: ==10297== Releasing lock... [2025-01-03 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:20:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:21:05 [end_date_ymd] => 2025-01-03 09:21:05 [RateCDR] => 1 ) [2025-01-03 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:21:05' and `end` < '2025-01-03 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:21:18] Production.INFO: count ==978 [2025-01-03 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:21:05 - End Time 2025-01-03 09:21:05 [2025-01-03 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164601', 'tblTempUsageDetail_20' ) start [2025-01-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164601', 'tblTempUsageDetail_20' ) end [2025-01-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164601', 'tblTempVendorCDR_20' ) start [2025-01-03 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164601', 'tblTempVendorCDR_20' ) end [2025-01-03 09:21:18] Production.INFO: ProcessCDR(1,14164601,1,1,2) [2025-01-03 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164601', 'tblTempUsageDetail_20' ) start [2025-01-03 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164601', 'tblTempUsageDetail_20' ) end [2025-01-03 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:21:23] Production.INFO: ==10369== Releasing lock... [2025-01-03 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:21:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:22:05 [end_date_ymd] => 2025-01-03 09:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:22:05' and `end` < '2025-01-03 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-01-03 09:22:18] Production.INFO: count ==982 [2025-01-03 09:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:22:05 - End Time 2025-01-03 09:22:05 [2025-01-03 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164606', 'tblTempUsageDetail_20' ) start [2025-01-03 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164606', 'tblTempUsageDetail_20' ) end [2025-01-03 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164606', 'tblTempVendorCDR_20' ) start [2025-01-03 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164606', 'tblTempVendorCDR_20' ) end [2025-01-03 09:22:18] Production.INFO: ProcessCDR(1,14164606,1,1,2) [2025-01-03 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164606', 'tblTempUsageDetail_20' ) start [2025-01-03 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164606', 'tblTempUsageDetail_20' ) end [2025-01-03 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:22:23] Production.INFO: ==10440== Releasing lock... [2025-01-03 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:22:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:23:05 [end_date_ymd] => 2025-01-03 09:23:05 [RateCDR] => 1 ) [2025-01-03 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:23:05' and `end` < '2025-01-03 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:23:18] Production.INFO: count ==995 [2025-01-03 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:23:05 - End Time 2025-01-03 09:23:05 [2025-01-03 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164611', 'tblTempUsageDetail_20' ) start [2025-01-03 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164611', 'tblTempUsageDetail_20' ) end [2025-01-03 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164611', 'tblTempVendorCDR_20' ) start [2025-01-03 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164611', 'tblTempVendorCDR_20' ) end [2025-01-03 09:23:18] Production.INFO: ProcessCDR(1,14164611,1,1,2) [2025-01-03 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164611', 'tblTempUsageDetail_20' ) start [2025-01-03 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164611', 'tblTempUsageDetail_20' ) end [2025-01-03 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:23:23] Production.INFO: ==10512== Releasing lock... [2025-01-03 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:23:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:24:05 [end_date_ymd] => 2025-01-03 09:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:24:05' and `end` < '2025-01-03 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-01-03 09:24:19] Production.INFO: count ==997 [2025-01-03 09:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:24:05 - End Time 2025-01-03 09:24:05 [2025-01-03 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164616', 'tblTempUsageDetail_20' ) start [2025-01-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164616', 'tblTempUsageDetail_20' ) end [2025-01-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164616', 'tblTempVendorCDR_20' ) start [2025-01-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164616', 'tblTempVendorCDR_20' ) end [2025-01-03 09:24:19] Production.INFO: ProcessCDR(1,14164616,1,1,2) [2025-01-03 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164616', 'tblTempUsageDetail_20' ) start [2025-01-03 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164616', 'tblTempUsageDetail_20' ) end [2025-01-03 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:24:24] Production.INFO: ==10583== Releasing lock... [2025-01-03 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:24:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:25:04 [end_date_ymd] => 2025-01-03 09:25:04 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:25:04' and `end` < '2025-01-03 09: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-01-03 09:25:17] Production.INFO: count ==1002 [2025-01-03 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:25:04 - End Time 2025-01-03 09:25:04 [2025-01-03 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164621', 'tblTempUsageDetail_20' ) start [2025-01-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164621', 'tblTempUsageDetail_20' ) end [2025-01-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164621', 'tblTempVendorCDR_20' ) start [2025-01-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164621', 'tblTempVendorCDR_20' ) end [2025-01-03 09:25:18] Production.INFO: ProcessCDR(1,14164621,1,1,2) [2025-01-03 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164621', 'tblTempUsageDetail_20' ) start [2025-01-03 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164621', 'tblTempUsageDetail_20' ) end [2025-01-03 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:25:21] Production.INFO: ==10652== Releasing lock... [2025-01-03 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:25:21] Production.INFO: 36 MB #Memory Used# [2025-01-03 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:26:05 [end_date_ymd] => 2025-01-03 09:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:26:05' and `end` < '2025-01-03 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-01-03 09:26:18] Production.INFO: count ==1003 [2025-01-03 09:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:26:05 - End Time 2025-01-03 09:26:05 [2025-01-03 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164626', 'tblTempUsageDetail_20' ) start [2025-01-03 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164626', 'tblTempUsageDetail_20' ) end [2025-01-03 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164626', 'tblTempVendorCDR_20' ) start [2025-01-03 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164626', 'tblTempVendorCDR_20' ) end [2025-01-03 09:26:18] Production.INFO: ProcessCDR(1,14164626,1,1,2) [2025-01-03 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164626', 'tblTempUsageDetail_20' ) start [2025-01-03 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164626', 'tblTempUsageDetail_20' ) end [2025-01-03 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:26:21] Production.INFO: ==10726== Releasing lock... [2025-01-03 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:26:21] Production.INFO: 36 MB #Memory Used# [2025-01-03 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:27:05 [end_date_ymd] => 2025-01-03 09:27:05 [RateCDR] => 1 ) [2025-01-03 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:27:05' and `end` < '2025-01-03 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:27:18] Production.INFO: count ==1007 [2025-01-03 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:27:05 - End Time 2025-01-03 09:27:05 [2025-01-03 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164631', 'tblTempUsageDetail_20' ) start [2025-01-03 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164631', 'tblTempUsageDetail_20' ) end [2025-01-03 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164631', 'tblTempVendorCDR_20' ) start [2025-01-03 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164631', 'tblTempVendorCDR_20' ) end [2025-01-03 09:27:19] Production.INFO: ProcessCDR(1,14164631,1,1,2) [2025-01-03 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164631', 'tblTempUsageDetail_20' ) start [2025-01-03 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164631', 'tblTempUsageDetail_20' ) end [2025-01-03 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:27:23] Production.INFO: ==10796== Releasing lock... [2025-01-03 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:27:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-03 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:28:05 [end_date_ymd] => 2025-01-03 09:28:05 [RateCDR] => 1 ) [2025-01-03 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:28:05' and `end` < '2025-01-03 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:28:24] Production.INFO: count ==1026 [2025-01-03 09:28:24] Production.ERROR: pbx CDR StartTime 2025-01-03 06:28:05 - End Time 2025-01-03 09:28:05 [2025-01-03 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164636', 'tblTempUsageDetail_20' ) start [2025-01-03 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164636', 'tblTempUsageDetail_20' ) end [2025-01-03 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164636', 'tblTempVendorCDR_20' ) start [2025-01-03 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164636', 'tblTempVendorCDR_20' ) end [2025-01-03 09:28:24] Production.INFO: ProcessCDR(1,14164636,1,1,2) [2025-01-03 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164636', 'tblTempUsageDetail_20' ) start [2025-01-03 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164636', 'tblTempUsageDetail_20' ) end [2025-01-03 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:28:29] Production.INFO: ==10867== Releasing lock... [2025-01-03 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:28:29] Production.INFO: 36 MB #Memory Used# [2025-01-03 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:29:05 [end_date_ymd] => 2025-01-03 09:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:29:05' and `end` < '2025-01-03 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-01-03 09:29:26] Production.INFO: count ==1039 [2025-01-03 09:29:26] Production.ERROR: pbx CDR StartTime 2025-01-03 06:29:05 - End Time 2025-01-03 09:29:05 [2025-01-03 09:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164641', 'tblTempUsageDetail_20' ) start [2025-01-03 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164641', 'tblTempUsageDetail_20' ) end [2025-01-03 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164641', 'tblTempVendorCDR_20' ) start [2025-01-03 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164641', 'tblTempVendorCDR_20' ) end [2025-01-03 09:29:26] Production.INFO: ProcessCDR(1,14164641,1,1,2) [2025-01-03 09:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164641', 'tblTempUsageDetail_20' ) start [2025-01-03 09:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164641', 'tblTempUsageDetail_20' ) end [2025-01-03 09:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:29:31] Production.INFO: ==10940== Releasing lock... [2025-01-03 09:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:29:31] Production.INFO: 36.25 MB #Memory Used# [2025-01-03 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:30:05 [end_date_ymd] => 2025-01-03 09:30:05 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:30:05' and `end` < '2025-01-03 09: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-01-03 09:30:19] Production.INFO: count ==1048 [2025-01-03 09:30:20] Production.ERROR: pbx CDR StartTime 2025-01-03 06:30:05 - End Time 2025-01-03 09:30:05 [2025-01-03 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164646', 'tblTempUsageDetail_20' ) start [2025-01-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164646', 'tblTempUsageDetail_20' ) end [2025-01-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164646', 'tblTempVendorCDR_20' ) start [2025-01-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164646', 'tblTempVendorCDR_20' ) end [2025-01-03 09:30:20] Production.INFO: ProcessCDR(1,14164646,1,1,2) [2025-01-03 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164646', 'tblTempUsageDetail_20' ) start [2025-01-03 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164646', 'tblTempUsageDetail_20' ) end [2025-01-03 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:30:24] Production.INFO: ==11018== Releasing lock... [2025-01-03 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:30:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:31:05 [end_date_ymd] => 2025-01-03 09:31:05 [RateCDR] => 1 ) [2025-01-03 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:31:05' and `end` < '2025-01-03 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:31:18] Production.INFO: count ==1118 [2025-01-03 09:31:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:31:05 - End Time 2025-01-03 09:31:05 [2025-01-03 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164652', 'tblTempUsageDetail_20' ) start [2025-01-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164652', 'tblTempUsageDetail_20' ) end [2025-01-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164652', 'tblTempVendorCDR_20' ) start [2025-01-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164652', 'tblTempVendorCDR_20' ) end [2025-01-03 09:31:19] Production.INFO: ProcessCDR(1,14164652,1,1,2) [2025-01-03 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164652', 'tblTempUsageDetail_20' ) start [2025-01-03 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164652', 'tblTempUsageDetail_20' ) end [2025-01-03 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:31:23] Production.INFO: ==11095== Releasing lock... [2025-01-03 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:31:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:32:05 [end_date_ymd] => 2025-01-03 09:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:32:05' and `end` < '2025-01-03 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-01-03 09:32:23] Production.INFO: count ==1125 [2025-01-03 09:32:24] Production.ERROR: pbx CDR StartTime 2025-01-03 06:32:05 - End Time 2025-01-03 09:32:05 [2025-01-03 09:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164657', 'tblTempUsageDetail_20' ) start [2025-01-03 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164657', 'tblTempUsageDetail_20' ) end [2025-01-03 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164657', 'tblTempVendorCDR_20' ) start [2025-01-03 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164657', 'tblTempVendorCDR_20' ) end [2025-01-03 09:32:24] Production.INFO: ProcessCDR(1,14164657,1,1,2) [2025-01-03 09:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164657', 'tblTempUsageDetail_20' ) start [2025-01-03 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164657', 'tblTempUsageDetail_20' ) end [2025-01-03 09:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:32:28] Production.INFO: ==11165== Releasing lock... [2025-01-03 09:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:32:28] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:33:05 [end_date_ymd] => 2025-01-03 09:33:05 [RateCDR] => 1 ) [2025-01-03 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:33:05' and `end` < '2025-01-03 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:33:23] Production.INFO: count ==1138 [2025-01-03 09:33:23] Production.ERROR: pbx CDR StartTime 2025-01-03 06:33:05 - End Time 2025-01-03 09:33:05 [2025-01-03 09:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164662', 'tblTempUsageDetail_20' ) start [2025-01-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164662', 'tblTempUsageDetail_20' ) end [2025-01-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164662', 'tblTempVendorCDR_20' ) start [2025-01-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164662', 'tblTempVendorCDR_20' ) end [2025-01-03 09:33:23] Production.INFO: ProcessCDR(1,14164662,1,1,2) [2025-01-03 09:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164662', 'tblTempUsageDetail_20' ) start [2025-01-03 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164662', 'tblTempUsageDetail_20' ) end [2025-01-03 09:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:33:26] Production.INFO: ==11235== Releasing lock... [2025-01-03 09:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:33:26] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:34:04 [end_date_ymd] => 2025-01-03 09:34:04 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:34:04' and `end` < '2025-01-03 09: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-01-03 09:34:17] Production.INFO: count ==1139 [2025-01-03 09:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:34:04 - End Time 2025-01-03 09:34:04 [2025-01-03 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164667', 'tblTempUsageDetail_20' ) start [2025-01-03 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164667', 'tblTempUsageDetail_20' ) end [2025-01-03 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164667', 'tblTempVendorCDR_20' ) start [2025-01-03 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164667', 'tblTempVendorCDR_20' ) end [2025-01-03 09:34:18] Production.INFO: ProcessCDR(1,14164667,1,1,2) [2025-01-03 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164667', 'tblTempUsageDetail_20' ) start [2025-01-03 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164667', 'tblTempUsageDetail_20' ) end [2025-01-03 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:34:22] Production.INFO: ==11347== Releasing lock... [2025-01-03 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:35:04 [end_date_ymd] => 2025-01-03 09:35:04 [RateCDR] => 1 ) [2025-01-03 09:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:35:04' and `end` < '2025-01-03 09:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:35:19] Production.INFO: count ==1148 [2025-01-03 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:35:04 - End Time 2025-01-03 09:35:04 [2025-01-03 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164672', 'tblTempUsageDetail_20' ) start [2025-01-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164672', 'tblTempUsageDetail_20' ) end [2025-01-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164672', 'tblTempVendorCDR_20' ) start [2025-01-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164672', 'tblTempVendorCDR_20' ) end [2025-01-03 09:35:19] Production.INFO: ProcessCDR(1,14164672,1,1,2) [2025-01-03 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164672', 'tblTempUsageDetail_20' ) start [2025-01-03 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164672', 'tblTempUsageDetail_20' ) end [2025-01-03 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:35:24] Production.INFO: ==11418== Releasing lock... [2025-01-03 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:35:24] Production.INFO: 37 MB #Memory Used# [2025-01-03 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:36:05 [end_date_ymd] => 2025-01-03 09:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:36:05' and `end` < '2025-01-03 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-01-03 09:36:18] Production.INFO: count ==1164 [2025-01-03 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:36:05 - End Time 2025-01-03 09:36:05 [2025-01-03 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164677', 'tblTempUsageDetail_20' ) start [2025-01-03 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164677', 'tblTempUsageDetail_20' ) end [2025-01-03 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164677', 'tblTempVendorCDR_20' ) start [2025-01-03 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164677', 'tblTempVendorCDR_20' ) end [2025-01-03 09:36:18] Production.INFO: ProcessCDR(1,14164677,1,1,2) [2025-01-03 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164677', 'tblTempUsageDetail_20' ) start [2025-01-03 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164677', 'tblTempUsageDetail_20' ) end [2025-01-03 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:36:23] Production.INFO: ==11488== Releasing lock... [2025-01-03 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:36:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:37:04 [end_date_ymd] => 2025-01-03 09:37:04 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:37:04' and `end` < '2025-01-03 09: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-01-03 09:37:22] Production.INFO: count ==1187 [2025-01-03 09:37:22] Production.ERROR: pbx CDR StartTime 2025-01-03 06:37:04 - End Time 2025-01-03 09:37:04 [2025-01-03 09:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164682', 'tblTempUsageDetail_20' ) start [2025-01-03 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164682', 'tblTempUsageDetail_20' ) end [2025-01-03 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164682', 'tblTempVendorCDR_20' ) start [2025-01-03 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164682', 'tblTempVendorCDR_20' ) end [2025-01-03 09:37:22] Production.INFO: ProcessCDR(1,14164682,1,1,2) [2025-01-03 09:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164682', 'tblTempUsageDetail_20' ) start [2025-01-03 09:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164682', 'tblTempUsageDetail_20' ) end [2025-01-03 09:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:37:27] Production.INFO: ==11560== Releasing lock... [2025-01-03 09:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:37:27] Production.INFO: 37 MB #Memory Used# [2025-01-03 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:38:05 [end_date_ymd] => 2025-01-03 09:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:38:05' and `end` < '2025-01-03 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-01-03 09:38:21] Production.INFO: count ==1203 [2025-01-03 09:38:21] Production.ERROR: pbx CDR StartTime 2025-01-03 06:38:05 - End Time 2025-01-03 09:38:05 [2025-01-03 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164687', 'tblTempUsageDetail_20' ) start [2025-01-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164687', 'tblTempUsageDetail_20' ) end [2025-01-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164687', 'tblTempVendorCDR_20' ) start [2025-01-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164687', 'tblTempVendorCDR_20' ) end [2025-01-03 09:38:21] Production.INFO: ProcessCDR(1,14164687,1,1,2) [2025-01-03 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164687', 'tblTempUsageDetail_20' ) start [2025-01-03 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164687', 'tblTempUsageDetail_20' ) end [2025-01-03 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:38:25] Production.INFO: ==11631== Releasing lock... [2025-01-03 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:38:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-03 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:39:05 [end_date_ymd] => 2025-01-03 09:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:39:05' and `end` < '2025-01-03 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-01-03 09:39:18] Production.INFO: count ==1210 [2025-01-03 09:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:39:05 - End Time 2025-01-03 09:39:05 [2025-01-03 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164692', 'tblTempUsageDetail_20' ) start [2025-01-03 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164692', 'tblTempUsageDetail_20' ) end [2025-01-03 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164692', 'tblTempVendorCDR_20' ) start [2025-01-03 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164692', 'tblTempVendorCDR_20' ) end [2025-01-03 09:39:18] Production.INFO: ProcessCDR(1,14164692,1,1,2) [2025-01-03 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164692', 'tblTempUsageDetail_20' ) start [2025-01-03 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164692', 'tblTempUsageDetail_20' ) end [2025-01-03 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:39:23] Production.INFO: ==11705== Releasing lock... [2025-01-03 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:39:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:40:06 [end_date_ymd] => 2025-01-03 09:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:40:06' and `end` < '2025-01-03 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-01-03 09:40:20] Production.INFO: count ==1221 [2025-01-03 09:40:21] Production.ERROR: pbx CDR StartTime 2025-01-03 06:40:06 - End Time 2025-01-03 09:40:06 [2025-01-03 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164698', 'tblTempUsageDetail_20' ) start [2025-01-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164698', 'tblTempUsageDetail_20' ) end [2025-01-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164698', 'tblTempVendorCDR_20' ) start [2025-01-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164698', 'tblTempVendorCDR_20' ) end [2025-01-03 09:40:21] Production.INFO: ProcessCDR(1,14164698,1,1,2) [2025-01-03 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164698', 'tblTempUsageDetail_20' ) start [2025-01-03 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164698', 'tblTempUsageDetail_20' ) end [2025-01-03 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:40:25] Production.INFO: ==11777== Releasing lock... [2025-01-03 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:40:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:41:04 [end_date_ymd] => 2025-01-03 09:41:04 [RateCDR] => 1 ) [2025-01-03 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:41:04' and `end` < '2025-01-03 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:41:18] Production.INFO: count ==1292 [2025-01-03 09:41:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:41:04 - End Time 2025-01-03 09:41:04 [2025-01-03 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164703', 'tblTempUsageDetail_20' ) start [2025-01-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164703', 'tblTempUsageDetail_20' ) end [2025-01-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164703', 'tblTempVendorCDR_20' ) start [2025-01-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164703', 'tblTempVendorCDR_20' ) end [2025-01-03 09:41:19] Production.INFO: ProcessCDR(1,14164703,1,1,2) [2025-01-03 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164703', 'tblTempUsageDetail_20' ) start [2025-01-03 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164703', 'tblTempUsageDetail_20' ) end [2025-01-03 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:41:24] Production.INFO: ==11849== Releasing lock... [2025-01-03 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:41:24] Production.INFO: 38 MB #Memory Used# [2025-01-03 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:42:05 [end_date_ymd] => 2025-01-03 09:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:42:05' and `end` < '2025-01-03 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-01-03 09:42:21] Production.INFO: count ==1313 [2025-01-03 09:42:22] Production.ERROR: pbx CDR StartTime 2025-01-03 06:42:05 - End Time 2025-01-03 09:42:05 [2025-01-03 09:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164708', 'tblTempUsageDetail_20' ) start [2025-01-03 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164708', 'tblTempUsageDetail_20' ) end [2025-01-03 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164708', 'tblTempVendorCDR_20' ) start [2025-01-03 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164708', 'tblTempVendorCDR_20' ) end [2025-01-03 09:42:22] Production.INFO: ProcessCDR(1,14164708,1,1,2) [2025-01-03 09:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164708', 'tblTempUsageDetail_20' ) start [2025-01-03 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164708', 'tblTempUsageDetail_20' ) end [2025-01-03 09:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:42:26] Production.INFO: ==11919== Releasing lock... [2025-01-03 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:42:26] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:43:06 [end_date_ymd] => 2025-01-03 09:43:06 [RateCDR] => 1 ) [2025-01-03 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:43:06' and `end` < '2025-01-03 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:43:19] Production.INFO: count ==1323 [2025-01-03 09:43:20] Production.ERROR: pbx CDR StartTime 2025-01-03 06:43:06 - End Time 2025-01-03 09:43:06 [2025-01-03 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164713', 'tblTempUsageDetail_20' ) start [2025-01-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164713', 'tblTempUsageDetail_20' ) end [2025-01-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164713', 'tblTempVendorCDR_20' ) start [2025-01-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164713', 'tblTempVendorCDR_20' ) end [2025-01-03 09:43:20] Production.INFO: ProcessCDR(1,14164713,1,1,2) [2025-01-03 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164713', 'tblTempUsageDetail_20' ) start [2025-01-03 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164713', 'tblTempUsageDetail_20' ) end [2025-01-03 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:43:23] Production.INFO: ==11991== Releasing lock... [2025-01-03 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:43:23] Production.INFO: 38 MB #Memory Used# [2025-01-03 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:44:05 [end_date_ymd] => 2025-01-03 09:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:44:05' and `end` < '2025-01-03 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-01-03 09:44:19] Production.INFO: count ==1334 [2025-01-03 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:44:05 - End Time 2025-01-03 09:44:05 [2025-01-03 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164718', 'tblTempUsageDetail_20' ) start [2025-01-03 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164718', 'tblTempUsageDetail_20' ) end [2025-01-03 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164718', 'tblTempVendorCDR_20' ) start [2025-01-03 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164718', 'tblTempVendorCDR_20' ) end [2025-01-03 09:44:20] Production.INFO: ProcessCDR(1,14164718,1,1,2) [2025-01-03 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164718', 'tblTempUsageDetail_20' ) start [2025-01-03 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164718', 'tblTempUsageDetail_20' ) end [2025-01-03 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:44:24] Production.INFO: ==12068== Releasing lock... [2025-01-03 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:44:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:45:05 [end_date_ymd] => 2025-01-03 09:45:05 [RateCDR] => 1 ) [2025-01-03 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:45:05' and `end` < '2025-01-03 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:45:20] Production.INFO: count ==1346 [2025-01-03 09:45:20] Production.ERROR: pbx CDR StartTime 2025-01-03 06:45:05 - End Time 2025-01-03 09:45:05 [2025-01-03 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164723', 'tblTempUsageDetail_20' ) start [2025-01-03 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164723', 'tblTempUsageDetail_20' ) end [2025-01-03 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164723', 'tblTempVendorCDR_20' ) start [2025-01-03 09:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164723', 'tblTempVendorCDR_20' ) end [2025-01-03 09:45:21] Production.INFO: ProcessCDR(1,14164723,1,1,2) [2025-01-03 09:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164723', 'tblTempUsageDetail_20' ) start [2025-01-03 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164723', 'tblTempUsageDetail_20' ) end [2025-01-03 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:45:25] Production.INFO: ==12139== Releasing lock... [2025-01-03 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:45:25] Production.INFO: 38.5 MB #Memory Used# [2025-01-03 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:46:05 [end_date_ymd] => 2025-01-03 09:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:46:05' and `end` < '2025-01-03 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-01-03 09:46:18] Production.INFO: count ==1359 [2025-01-03 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:46:05 - End Time 2025-01-03 09:46:05 [2025-01-03 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164728', 'tblTempUsageDetail_20' ) start [2025-01-03 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164728', 'tblTempUsageDetail_20' ) end [2025-01-03 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164728', 'tblTempVendorCDR_20' ) start [2025-01-03 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164728', 'tblTempVendorCDR_20' ) end [2025-01-03 09:46:18] Production.INFO: ProcessCDR(1,14164728,1,1,2) [2025-01-03 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164728', 'tblTempUsageDetail_20' ) start [2025-01-03 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164728', 'tblTempUsageDetail_20' ) end [2025-01-03 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:46:22] Production.INFO: ==12208== Releasing lock... [2025-01-03 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:47:05 [end_date_ymd] => 2025-01-03 09:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:47:05' and `end` < '2025-01-03 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-01-03 09:47:18] Production.INFO: count ==1362 [2025-01-03 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:47:05 - End Time 2025-01-03 09:47:05 [2025-01-03 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164733', 'tblTempUsageDetail_20' ) start [2025-01-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164733', 'tblTempUsageDetail_20' ) end [2025-01-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164733', 'tblTempVendorCDR_20' ) start [2025-01-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164733', 'tblTempVendorCDR_20' ) end [2025-01-03 09:47:19] Production.INFO: ProcessCDR(1,14164733,1,1,2) [2025-01-03 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164733', 'tblTempUsageDetail_20' ) start [2025-01-03 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164733', 'tblTempUsageDetail_20' ) end [2025-01-03 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:47:23] Production.INFO: ==12279== Releasing lock... [2025-01-03 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:47:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:48:04 [end_date_ymd] => 2025-01-03 09:48:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:48:04' and `end` < '2025-01-03 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-01-03 09:48:18] Production.INFO: count ==1374 [2025-01-03 09:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:48:04 - End Time 2025-01-03 09:48:04 [2025-01-03 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164738', 'tblTempUsageDetail_20' ) start [2025-01-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164738', 'tblTempUsageDetail_20' ) end [2025-01-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164738', 'tblTempVendorCDR_20' ) start [2025-01-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164738', 'tblTempVendorCDR_20' ) end [2025-01-03 09:48:19] Production.INFO: ProcessCDR(1,14164738,1,1,2) [2025-01-03 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164738', 'tblTempUsageDetail_20' ) start [2025-01-03 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164738', 'tblTempUsageDetail_20' ) end [2025-01-03 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:48:23] Production.INFO: ==12349== Releasing lock... [2025-01-03 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:48:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:49:05 [end_date_ymd] => 2025-01-03 09:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:49:05' and `end` < '2025-01-03 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-01-03 09:49:18] Production.INFO: count ==1379 [2025-01-03 09:49:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:49:05 - End Time 2025-01-03 09:49:05 [2025-01-03 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164742', 'tblTempUsageDetail_20' ) start [2025-01-03 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164742', 'tblTempUsageDetail_20' ) end [2025-01-03 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164742', 'tblTempVendorCDR_20' ) start [2025-01-03 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164742', 'tblTempVendorCDR_20' ) end [2025-01-03 09:49:19] Production.INFO: ProcessCDR(1,14164742,1,1,2) [2025-01-03 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164742', 'tblTempUsageDetail_20' ) start [2025-01-03 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164742', 'tblTempUsageDetail_20' ) end [2025-01-03 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:49:23] Production.INFO: ==12421== Releasing lock... [2025-01-03 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:49:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-03 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:50:05 [end_date_ymd] => 2025-01-03 09:50:05 [RateCDR] => 1 ) [2025-01-03 09: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-01-03 06:50:05' and `end` < '2025-01-03 09: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-01-03 09:50:20] Production.INFO: count ==1398 [2025-01-03 09:50:21] Production.ERROR: pbx CDR StartTime 2025-01-03 06:50:05 - End Time 2025-01-03 09:50:05 [2025-01-03 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164749', 'tblTempUsageDetail_20' ) start [2025-01-03 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164749', 'tblTempUsageDetail_20' ) end [2025-01-03 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164749', 'tblTempVendorCDR_20' ) start [2025-01-03 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164749', 'tblTempVendorCDR_20' ) end [2025-01-03 09:50:21] Production.INFO: ProcessCDR(1,14164749,1,1,2) [2025-01-03 09:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164749', 'tblTempUsageDetail_20' ) start [2025-01-03 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164749', 'tblTempUsageDetail_20' ) end [2025-01-03 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:50:25] Production.INFO: ==12538== Releasing lock... [2025-01-03 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:50:25] Production.INFO: 38.5 MB #Memory Used# [2025-01-03 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:51:05 [end_date_ymd] => 2025-01-03 09:51:05 [RateCDR] => 1 ) [2025-01-03 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:51:05' and `end` < '2025-01-03 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:51:22] Production.INFO: count ==1472 [2025-01-03 09:51:23] Production.ERROR: pbx CDR StartTime 2025-01-03 06:51:05 - End Time 2025-01-03 09:51:05 [2025-01-03 09:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164754', 'tblTempUsageDetail_20' ) start [2025-01-03 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164754', 'tblTempUsageDetail_20' ) end [2025-01-03 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164754', 'tblTempVendorCDR_20' ) start [2025-01-03 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164754', 'tblTempVendorCDR_20' ) end [2025-01-03 09:51:23] Production.INFO: ProcessCDR(1,14164754,1,1,2) [2025-01-03 09:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164754', 'tblTempUsageDetail_20' ) start [2025-01-03 09:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164754', 'tblTempUsageDetail_20' ) end [2025-01-03 09:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:51:27] Production.INFO: ==12611== Releasing lock... [2025-01-03 09:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:51:27] Production.INFO: 39 MB #Memory Used# [2025-01-03 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:52:05 [end_date_ymd] => 2025-01-03 09:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:52:05' and `end` < '2025-01-03 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-01-03 09:52:22] Production.INFO: count ==1476 [2025-01-03 09:52:23] Production.ERROR: pbx CDR StartTime 2025-01-03 06:52:05 - End Time 2025-01-03 09:52:05 [2025-01-03 09:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164759', 'tblTempUsageDetail_20' ) start [2025-01-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164759', 'tblTempUsageDetail_20' ) end [2025-01-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164759', 'tblTempVendorCDR_20' ) start [2025-01-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164759', 'tblTempVendorCDR_20' ) end [2025-01-03 09:52:23] Production.INFO: ProcessCDR(1,14164759,1,1,2) [2025-01-03 09:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164759', 'tblTempUsageDetail_20' ) start [2025-01-03 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164759', 'tblTempUsageDetail_20' ) end [2025-01-03 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:52:27] Production.INFO: ==12680== Releasing lock... [2025-01-03 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:52:27] Production.INFO: 39.25 MB #Memory Used# [2025-01-03 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:53:05 [end_date_ymd] => 2025-01-03 09:53:05 [RateCDR] => 1 ) [2025-01-03 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:53:05' and `end` < '2025-01-03 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:53:18] Production.INFO: count ==1481 [2025-01-03 09:53:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:53:05 - End Time 2025-01-03 09:53:05 [2025-01-03 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164764', 'tblTempUsageDetail_20' ) start [2025-01-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164764', 'tblTempUsageDetail_20' ) end [2025-01-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164764', 'tblTempVendorCDR_20' ) start [2025-01-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164764', 'tblTempVendorCDR_20' ) end [2025-01-03 09:53:19] Production.INFO: ProcessCDR(1,14164764,1,1,2) [2025-01-03 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164764', 'tblTempUsageDetail_20' ) start [2025-01-03 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164764', 'tblTempUsageDetail_20' ) end [2025-01-03 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:53:23] Production.INFO: ==12755== Releasing lock... [2025-01-03 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:53:23] Production.INFO: 39 MB #Memory Used# [2025-01-03 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:54:06 [end_date_ymd] => 2025-01-03 09:54:06 [RateCDR] => 1 ) [2025-01-03 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:54:06' and `end` < '2025-01-03 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:54:25] Production.INFO: count ==1521 [2025-01-03 09:54:25] Production.ERROR: pbx CDR StartTime 2025-01-03 06:54:06 - End Time 2025-01-03 09:54:06 [2025-01-03 09:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164769', 'tblTempUsageDetail_20' ) start [2025-01-03 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164769', 'tblTempUsageDetail_20' ) end [2025-01-03 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164769', 'tblTempVendorCDR_20' ) start [2025-01-03 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164769', 'tblTempVendorCDR_20' ) end [2025-01-03 09:54:25] Production.INFO: ProcessCDR(1,14164769,1,1,2) [2025-01-03 09:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164769', 'tblTempUsageDetail_20' ) start [2025-01-03 09:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164769', 'tblTempUsageDetail_20' ) end [2025-01-03 09:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:54:30] Production.INFO: ==12828== Releasing lock... [2025-01-03 09:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:54:30] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:55:05 [end_date_ymd] => 2025-01-03 09:55:05 [RateCDR] => 1 ) [2025-01-03 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:55:05' and `end` < '2025-01-03 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:55:25] Production.INFO: count ==1527 [2025-01-03 09:55:26] Production.ERROR: pbx CDR StartTime 2025-01-03 06:55:05 - End Time 2025-01-03 09:55:05 [2025-01-03 09:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164774', 'tblTempUsageDetail_20' ) start [2025-01-03 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164774', 'tblTempUsageDetail_20' ) end [2025-01-03 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164774', 'tblTempVendorCDR_20' ) start [2025-01-03 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164774', 'tblTempVendorCDR_20' ) end [2025-01-03 09:55:26] Production.INFO: ProcessCDR(1,14164774,1,1,2) [2025-01-03 09:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164774', 'tblTempUsageDetail_20' ) start [2025-01-03 09:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164774', 'tblTempUsageDetail_20' ) end [2025-01-03 09:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:55:31] Production.INFO: ==12900== Releasing lock... [2025-01-03 09:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:55:31] Production.INFO: 40 MB #Memory Used# [2025-01-03 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:56:05 [end_date_ymd] => 2025-01-03 09:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:56:05' and `end` < '2025-01-03 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-01-03 09:56:18] Production.INFO: count ==1550 [2025-01-03 09:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 06:56:05 - End Time 2025-01-03 09:56:05 [2025-01-03 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164779', 'tblTempUsageDetail_20' ) start [2025-01-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164779', 'tblTempUsageDetail_20' ) end [2025-01-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164779', 'tblTempVendorCDR_20' ) start [2025-01-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164779', 'tblTempVendorCDR_20' ) end [2025-01-03 09:56:19] Production.INFO: ProcessCDR(1,14164779,1,1,2) [2025-01-03 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164779', 'tblTempUsageDetail_20' ) start [2025-01-03 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164779', 'tblTempUsageDetail_20' ) end [2025-01-03 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:56:23] Production.INFO: ==12971== Releasing lock... [2025-01-03 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:56:23] Production.INFO: 40 MB #Memory Used# [2025-01-03 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:57:05 [end_date_ymd] => 2025-01-03 09:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 06:57:05' and `end` < '2025-01-03 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-01-03 09:57:22] Production.INFO: count ==1551 [2025-01-03 09:57:23] Production.ERROR: pbx CDR StartTime 2025-01-03 06:57:05 - End Time 2025-01-03 09:57:05 [2025-01-03 09:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164784', 'tblTempUsageDetail_20' ) start [2025-01-03 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164784', 'tblTempUsageDetail_20' ) end [2025-01-03 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164784', 'tblTempVendorCDR_20' ) start [2025-01-03 09:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164784', 'tblTempVendorCDR_20' ) end [2025-01-03 09:57:23] Production.INFO: ProcessCDR(1,14164784,1,1,2) [2025-01-03 09:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164784', 'tblTempUsageDetail_20' ) start [2025-01-03 09:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164784', 'tblTempUsageDetail_20' ) end [2025-01-03 09:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:57:28] Production.INFO: ==13042== Releasing lock... [2025-01-03 09:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:57:28] Production.INFO: 39.75 MB #Memory Used# [2025-01-03 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:58:05 [end_date_ymd] => 2025-01-03 09:58:05 [RateCDR] => 1 ) [2025-01-03 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:58:05' and `end` < '2025-01-03 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:58:22] Production.INFO: count ==1558 [2025-01-03 09:58:23] Production.ERROR: pbx CDR StartTime 2025-01-03 06:58:05 - End Time 2025-01-03 09:58:05 [2025-01-03 09:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164789', 'tblTempUsageDetail_20' ) start [2025-01-03 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164789', 'tblTempUsageDetail_20' ) end [2025-01-03 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164789', 'tblTempVendorCDR_20' ) start [2025-01-03 09:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164789', 'tblTempVendorCDR_20' ) end [2025-01-03 09:58:23] Production.INFO: ProcessCDR(1,14164789,1,1,2) [2025-01-03 09:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164789', 'tblTempUsageDetail_20' ) start [2025-01-03 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164789', 'tblTempUsageDetail_20' ) end [2025-01-03 09:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:58:26] Production.INFO: ==13120== Releasing lock... [2025-01-03 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:58:26] Production.INFO: 40 MB #Memory Used# [2025-01-03 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 06:59:05 [end_date_ymd] => 2025-01-03 09:59:05 [RateCDR] => 1 ) [2025-01-03 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 06:59:05' and `end` < '2025-01-03 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 09:59:17] Production.INFO: count ==1563 [2025-01-03 09:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 06:59:05 - End Time 2025-01-03 09:59:05 [2025-01-03 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164794', 'tblTempUsageDetail_20' ) start [2025-01-03 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164794', 'tblTempUsageDetail_20' ) end [2025-01-03 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164794', 'tblTempVendorCDR_20' ) start [2025-01-03 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164794', 'tblTempVendorCDR_20' ) end [2025-01-03 09:59:18] Production.INFO: ProcessCDR(1,14164794,1,1,2) [2025-01-03 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164794', 'tblTempUsageDetail_20' ) start [2025-01-03 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164794', 'tblTempUsageDetail_20' ) end [2025-01-03 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 09:59:23] Production.INFO: ==13196== Releasing lock... [2025-01-03 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 09:59:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-03 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:00:06 [end_date_ymd] => 2025-01-03 10:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:00:06' and `end` < '2025-01-03 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-01-03 10:00:22] Production.INFO: count ==1574 [2025-01-03 10:00:23] Production.ERROR: pbx CDR StartTime 2025-01-03 07:00:06 - End Time 2025-01-03 10:00:06 [2025-01-03 10:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164799', 'tblTempUsageDetail_20' ) start [2025-01-03 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164799', 'tblTempUsageDetail_20' ) end [2025-01-03 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164799', 'tblTempVendorCDR_20' ) start [2025-01-03 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164799', 'tblTempVendorCDR_20' ) end [2025-01-03 10:00:23] Production.INFO: ProcessCDR(1,14164799,1,1,2) [2025-01-03 10:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164799', 'tblTempUsageDetail_20' ) start [2025-01-03 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164799', 'tblTempUsageDetail_20' ) end [2025-01-03 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:00:27] Production.INFO: ==13274== Releasing lock... [2025-01-03 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:00:27] Production.INFO: 39.75 MB #Memory Used# [2025-01-03 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:01:05 [end_date_ymd] => 2025-01-03 10:01:05 [RateCDR] => 1 ) [2025-01-03 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:01:05' and `end` < '2025-01-03 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:01:22] Production.INFO: count ==1631 [2025-01-03 10:01:23] Production.ERROR: pbx CDR StartTime 2025-01-03 07:01:05 - End Time 2025-01-03 10:01:05 [2025-01-03 10:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164805', 'tblTempUsageDetail_20' ) start [2025-01-03 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164805', 'tblTempUsageDetail_20' ) end [2025-01-03 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164805', 'tblTempVendorCDR_20' ) start [2025-01-03 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164805', 'tblTempVendorCDR_20' ) end [2025-01-03 10:01:23] Production.INFO: ProcessCDR(1,14164805,1,1,2) [2025-01-03 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164805', 'tblTempUsageDetail_20' ) start [2025-01-03 10:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164805', 'tblTempUsageDetail_20' ) end [2025-01-03 10:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:01:28] Production.INFO: ==13365== Releasing lock... [2025-01-03 10:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:01:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-03 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:02:05 [end_date_ymd] => 2025-01-03 10:02:05 [RateCDR] => 1 ) [2025-01-03 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:02:05' and `end` < '2025-01-03 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:02:18] Production.INFO: count ==1638 [2025-01-03 10:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 07:02:05 - End Time 2025-01-03 10:02:05 [2025-01-03 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164810', 'tblTempUsageDetail_20' ) start [2025-01-03 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164810', 'tblTempUsageDetail_20' ) end [2025-01-03 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164810', 'tblTempVendorCDR_20' ) start [2025-01-03 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164810', 'tblTempVendorCDR_20' ) end [2025-01-03 10:02:18] Production.INFO: ProcessCDR(1,14164810,1,1,2) [2025-01-03 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164810', 'tblTempUsageDetail_20' ) start [2025-01-03 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164810', 'tblTempUsageDetail_20' ) end [2025-01-03 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:02:23] Production.INFO: ==13436== Releasing lock... [2025-01-03 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:02:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-03 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:03:06 [end_date_ymd] => 2025-01-03 10:03:06 [RateCDR] => 1 ) [2025-01-03 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:03:06' and `end` < '2025-01-03 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:03:21] Production.INFO: count ==1648 [2025-01-03 10:03:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:03:06 - End Time 2025-01-03 10:03:06 [2025-01-03 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164815', 'tblTempUsageDetail_20' ) start [2025-01-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164815', 'tblTempUsageDetail_20' ) end [2025-01-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164815', 'tblTempVendorCDR_20' ) start [2025-01-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164815', 'tblTempVendorCDR_20' ) end [2025-01-03 10:03:21] Production.INFO: ProcessCDR(1,14164815,1,1,2) [2025-01-03 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164815', 'tblTempUsageDetail_20' ) start [2025-01-03 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164815', 'tblTempUsageDetail_20' ) end [2025-01-03 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:03:26] Production.INFO: ==13516== Releasing lock... [2025-01-03 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:03:26] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:04:05 [end_date_ymd] => 2025-01-03 10:04:05 [RateCDR] => 1 ) [2025-01-03 10: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-01-03 07:04:05' and `end` < '2025-01-03 10: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-01-03 10:04:18] Production.INFO: count ==1651 [2025-01-03 10:04:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:04:05 - End Time 2025-01-03 10:04:05 [2025-01-03 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164820', 'tblTempUsageDetail_20' ) start [2025-01-03 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164820', 'tblTempUsageDetail_20' ) end [2025-01-03 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164820', 'tblTempVendorCDR_20' ) start [2025-01-03 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164820', 'tblTempVendorCDR_20' ) end [2025-01-03 10:04:19] Production.INFO: ProcessCDR(1,14164820,1,1,2) [2025-01-03 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164820', 'tblTempUsageDetail_20' ) start [2025-01-03 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164820', 'tblTempUsageDetail_20' ) end [2025-01-03 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:04:23] Production.INFO: ==13592== Releasing lock... [2025-01-03 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:04:23] Production.INFO: 41 MB #Memory Used# [2025-01-03 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:05:05 [end_date_ymd] => 2025-01-03 10:05:05 [RateCDR] => 1 ) [2025-01-03 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:05:05' and `end` < '2025-01-03 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:05:25] Production.INFO: count ==1667 [2025-01-03 10:05:26] Production.ERROR: pbx CDR StartTime 2025-01-03 07:05:05 - End Time 2025-01-03 10:05:05 [2025-01-03 10:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164825', 'tblTempUsageDetail_20' ) start [2025-01-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164825', 'tblTempUsageDetail_20' ) end [2025-01-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164825', 'tblTempVendorCDR_20' ) start [2025-01-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164825', 'tblTempVendorCDR_20' ) end [2025-01-03 10:05:26] Production.INFO: ProcessCDR(1,14164825,1,1,2) [2025-01-03 10:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164825', 'tblTempUsageDetail_20' ) start [2025-01-03 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164825', 'tblTempUsageDetail_20' ) end [2025-01-03 10:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:05:30] Production.INFO: ==13709== Releasing lock... [2025-01-03 10:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:05:30] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:06:05 [end_date_ymd] => 2025-01-03 10:06:05 [RateCDR] => 1 ) [2025-01-03 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:06:05' and `end` < '2025-01-03 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:06:18] Production.INFO: count ==1676 [2025-01-03 10:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 07:06:05 - End Time 2025-01-03 10:06:05 [2025-01-03 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164830', 'tblTempUsageDetail_20' ) start [2025-01-03 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164830', 'tblTempUsageDetail_20' ) end [2025-01-03 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164830', 'tblTempVendorCDR_20' ) start [2025-01-03 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164830', 'tblTempVendorCDR_20' ) end [2025-01-03 10:06:18] Production.INFO: ProcessCDR(1,14164830,1,1,2) [2025-01-03 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164830', 'tblTempUsageDetail_20' ) start [2025-01-03 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164830', 'tblTempUsageDetail_20' ) end [2025-01-03 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:06:23] Production.INFO: ==13789== Releasing lock... [2025-01-03 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:06:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-03 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:07:04 [end_date_ymd] => 2025-01-03 10:07:04 [RateCDR] => 1 ) [2025-01-03 10: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-01-03 07:07:04' and `end` < '2025-01-03 10: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-01-03 10:07:17] Production.INFO: count ==1692 [2025-01-03 10:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 07:07:04 - End Time 2025-01-03 10:07:04 [2025-01-03 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164835', 'tblTempUsageDetail_20' ) start [2025-01-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164835', 'tblTempUsageDetail_20' ) end [2025-01-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164835', 'tblTempVendorCDR_20' ) start [2025-01-03 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164835', 'tblTempVendorCDR_20' ) end [2025-01-03 10:07:18] Production.INFO: ProcessCDR(1,14164835,1,1,2) [2025-01-03 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164835', 'tblTempUsageDetail_20' ) start [2025-01-03 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164835', 'tblTempUsageDetail_20' ) end [2025-01-03 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:07:23] Production.INFO: ==13868== Releasing lock... [2025-01-03 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:07:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-03 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:08:05 [end_date_ymd] => 2025-01-03 10:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:08:05' and `end` < '2025-01-03 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-01-03 10:08:18] Production.INFO: count ==1713 [2025-01-03 10:08:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:08:05 - End Time 2025-01-03 10:08:05 [2025-01-03 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164840', 'tblTempUsageDetail_20' ) start [2025-01-03 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164840', 'tblTempUsageDetail_20' ) end [2025-01-03 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164840', 'tblTempVendorCDR_20' ) start [2025-01-03 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164840', 'tblTempVendorCDR_20' ) end [2025-01-03 10:08:19] Production.INFO: ProcessCDR(1,14164840,1,1,2) [2025-01-03 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164840', 'tblTempUsageDetail_20' ) start [2025-01-03 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164840', 'tblTempUsageDetail_20' ) end [2025-01-03 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:08:24] Production.INFO: ==13948== Releasing lock... [2025-01-03 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:08:24] Production.INFO: 41 MB #Memory Used# [2025-01-03 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:09:05 [end_date_ymd] => 2025-01-03 10:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:09:05' and `end` < '2025-01-03 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-01-03 10:09:20] Production.INFO: count ==1728 [2025-01-03 10:09:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:09:05 - End Time 2025-01-03 10:09:05 [2025-01-03 10:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164845', 'tblTempUsageDetail_20' ) start [2025-01-03 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164845', 'tblTempUsageDetail_20' ) end [2025-01-03 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164845', 'tblTempVendorCDR_20' ) start [2025-01-03 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164845', 'tblTempVendorCDR_20' ) end [2025-01-03 10:09:21] Production.INFO: ProcessCDR(1,14164845,1,1,2) [2025-01-03 10:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164845', 'tblTempUsageDetail_20' ) start [2025-01-03 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164845', 'tblTempUsageDetail_20' ) end [2025-01-03 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:09:26] Production.INFO: ==14025== Releasing lock... [2025-01-03 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:09:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-03 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:10:06 [end_date_ymd] => 2025-01-03 10:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:10:06' and `end` < '2025-01-03 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-01-03 10:10:28] Production.INFO: count ==1743 [2025-01-03 10:10:28] Production.ERROR: pbx CDR StartTime 2025-01-03 07:10:06 - End Time 2025-01-03 10:10:06 [2025-01-03 10:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164851', 'tblTempUsageDetail_20' ) start [2025-01-03 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164851', 'tblTempUsageDetail_20' ) end [2025-01-03 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164851', 'tblTempVendorCDR_20' ) start [2025-01-03 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164851', 'tblTempVendorCDR_20' ) end [2025-01-03 10:10:29] Production.INFO: ProcessCDR(1,14164851,1,1,2) [2025-01-03 10:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164851', 'tblTempUsageDetail_20' ) start [2025-01-03 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164851', 'tblTempUsageDetail_20' ) end [2025-01-03 10:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:10:33] Production.INFO: ==14111== Releasing lock... [2025-01-03 10:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:10:33] Production.INFO: 41.5 MB #Memory Used# [2025-01-03 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:11:05 [end_date_ymd] => 2025-01-03 10:11:05 [RateCDR] => 1 ) [2025-01-03 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:11:05' and `end` < '2025-01-03 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:11:18] Production.INFO: count ==1792 [2025-01-03 10:11:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:11:05 - End Time 2025-01-03 10:11:05 [2025-01-03 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164856', 'tblTempUsageDetail_20' ) start [2025-01-03 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164856', 'tblTempUsageDetail_20' ) end [2025-01-03 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164856', 'tblTempVendorCDR_20' ) start [2025-01-03 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164856', 'tblTempVendorCDR_20' ) end [2025-01-03 10:11:19] Production.INFO: ProcessCDR(1,14164856,1,1,2) [2025-01-03 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164856', 'tblTempUsageDetail_20' ) start [2025-01-03 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164856', 'tblTempUsageDetail_20' ) end [2025-01-03 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:11:23] Production.INFO: ==14195== Releasing lock... [2025-01-03 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:11:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-03 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:12:05 [end_date_ymd] => 2025-01-03 10:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:12:05' and `end` < '2025-01-03 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-01-03 10:12:26] Production.INFO: count ==1818 [2025-01-03 10:12:27] Production.ERROR: pbx CDR StartTime 2025-01-03 07:12:05 - End Time 2025-01-03 10:12:05 [2025-01-03 10:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164861', 'tblTempUsageDetail_20' ) start [2025-01-03 10:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164861', 'tblTempUsageDetail_20' ) end [2025-01-03 10:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164861', 'tblTempVendorCDR_20' ) start [2025-01-03 10:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164861', 'tblTempVendorCDR_20' ) end [2025-01-03 10:12:27] Production.INFO: ProcessCDR(1,14164861,1,1,2) [2025-01-03 10:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164861', 'tblTempUsageDetail_20' ) start [2025-01-03 10:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164861', 'tblTempUsageDetail_20' ) end [2025-01-03 10:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:12:32] Production.INFO: ==14278== Releasing lock... [2025-01-03 10:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:12:32] Production.INFO: 41.75 MB #Memory Used# [2025-01-03 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:13:04 [end_date_ymd] => 2025-01-03 10:13:04 [RateCDR] => 1 ) [2025-01-03 10:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:13:04' and `end` < '2025-01-03 10:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:13:22] Production.INFO: count ==1855 [2025-01-03 10:13:23] Production.ERROR: pbx CDR StartTime 2025-01-03 07:13:04 - End Time 2025-01-03 10:13:04 [2025-01-03 10:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164866', 'tblTempUsageDetail_20' ) start [2025-01-03 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164866', 'tblTempUsageDetail_20' ) end [2025-01-03 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164866', 'tblTempVendorCDR_20' ) start [2025-01-03 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164866', 'tblTempVendorCDR_20' ) end [2025-01-03 10:13:23] Production.INFO: ProcessCDR(1,14164866,1,1,2) [2025-01-03 10:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164866', 'tblTempUsageDetail_20' ) start [2025-01-03 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164866', 'tblTempUsageDetail_20' ) end [2025-01-03 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:13:27] Production.INFO: ==14354== Releasing lock... [2025-01-03 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:13:27] Production.INFO: 42 MB #Memory Used# [2025-01-03 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:14:05 [end_date_ymd] => 2025-01-03 10:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:14:05' and `end` < '2025-01-03 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-01-03 10:14:19] Production.INFO: count ==1878 [2025-01-03 10:14:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:14:05 - End Time 2025-01-03 10:14:05 [2025-01-03 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164871', 'tblTempUsageDetail_20' ) start [2025-01-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164871', 'tblTempUsageDetail_20' ) end [2025-01-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164871', 'tblTempVendorCDR_20' ) start [2025-01-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164871', 'tblTempVendorCDR_20' ) end [2025-01-03 10:14:20] Production.INFO: ProcessCDR(1,14164871,1,1,2) [2025-01-03 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164871', 'tblTempUsageDetail_20' ) start [2025-01-03 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164871', 'tblTempUsageDetail_20' ) end [2025-01-03 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:14:24] Production.INFO: ==14433== Releasing lock... [2025-01-03 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:14:24] Production.INFO: 43 MB #Memory Used# [2025-01-03 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:15:05 [end_date_ymd] => 2025-01-03 10:15:05 [RateCDR] => 1 ) [2025-01-03 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:15:05' and `end` < '2025-01-03 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:15:19] Production.INFO: count ==1882 [2025-01-03 10:15:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:15:05 - End Time 2025-01-03 10:15:05 [2025-01-03 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164876', 'tblTempUsageDetail_20' ) start [2025-01-03 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164876', 'tblTempUsageDetail_20' ) end [2025-01-03 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164876', 'tblTempVendorCDR_20' ) start [2025-01-03 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164876', 'tblTempVendorCDR_20' ) end [2025-01-03 10:15:19] Production.INFO: ProcessCDR(1,14164876,1,1,2) [2025-01-03 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164876', 'tblTempUsageDetail_20' ) start [2025-01-03 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164876', 'tblTempUsageDetail_20' ) end [2025-01-03 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:15:24] Production.INFO: ==14509== Releasing lock... [2025-01-03 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:15:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:16:05 [end_date_ymd] => 2025-01-03 10:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:16:05' and `end` < '2025-01-03 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-01-03 10:16:20] Production.INFO: count ==1891 [2025-01-03 10:16:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:16:05 - End Time 2025-01-03 10:16:05 [2025-01-03 10:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164881', 'tblTempUsageDetail_20' ) start [2025-01-03 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164881', 'tblTempUsageDetail_20' ) end [2025-01-03 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164881', 'tblTempVendorCDR_20' ) start [2025-01-03 10:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164881', 'tblTempVendorCDR_20' ) end [2025-01-03 10:16:21] Production.INFO: ProcessCDR(1,14164881,1,1,2) [2025-01-03 10:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164881', 'tblTempUsageDetail_20' ) start [2025-01-03 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164881', 'tblTempUsageDetail_20' ) end [2025-01-03 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:16:25] Production.INFO: ==14587== Releasing lock... [2025-01-03 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:16:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:17:05 [end_date_ymd] => 2025-01-03 10:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:17:05' and `end` < '2025-01-03 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-01-03 10:17:27] Production.INFO: count ==1920 [2025-01-03 10:17:27] Production.ERROR: pbx CDR StartTime 2025-01-03 07:17:05 - End Time 2025-01-03 10:17:05 [2025-01-03 10:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164886', 'tblTempUsageDetail_20' ) start [2025-01-03 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164886', 'tblTempUsageDetail_20' ) end [2025-01-03 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164886', 'tblTempVendorCDR_20' ) start [2025-01-03 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164886', 'tblTempVendorCDR_20' ) end [2025-01-03 10:17:27] Production.INFO: ProcessCDR(1,14164886,1,1,2) [2025-01-03 10:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164886', 'tblTempUsageDetail_20' ) start [2025-01-03 10:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164886', 'tblTempUsageDetail_20' ) end [2025-01-03 10:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:17:32] Production.INFO: ==14665== Releasing lock... [2025-01-03 10:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:17:32] Production.INFO: 42.5 MB #Memory Used# [2025-01-03 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:18:05 [end_date_ymd] => 2025-01-03 10:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:18:05' and `end` < '2025-01-03 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-01-03 10:18:26] Production.INFO: count ==1929 [2025-01-03 10:18:27] Production.ERROR: pbx CDR StartTime 2025-01-03 07:18:05 - End Time 2025-01-03 10:18:05 [2025-01-03 10:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164891', 'tblTempUsageDetail_20' ) start [2025-01-03 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164891', 'tblTempUsageDetail_20' ) end [2025-01-03 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164891', 'tblTempVendorCDR_20' ) start [2025-01-03 10:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164891', 'tblTempVendorCDR_20' ) end [2025-01-03 10:18:27] Production.INFO: ProcessCDR(1,14164891,1,1,2) [2025-01-03 10:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164891', 'tblTempUsageDetail_20' ) start [2025-01-03 10:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164891', 'tblTempUsageDetail_20' ) end [2025-01-03 10:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:18:33] Production.INFO: ==14742== Releasing lock... [2025-01-03 10:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:18:33] Production.INFO: 42.5 MB #Memory Used# [2025-01-03 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:19:05 [end_date_ymd] => 2025-01-03 10:19:05 [RateCDR] => 1 ) [2025-01-03 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:19:05' and `end` < '2025-01-03 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:19:18] Production.INFO: count ==1933 [2025-01-03 10:19:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:19:05 - End Time 2025-01-03 10:19:05 [2025-01-03 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164896', 'tblTempUsageDetail_20' ) start [2025-01-03 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164896', 'tblTempUsageDetail_20' ) end [2025-01-03 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164896', 'tblTempVendorCDR_20' ) start [2025-01-03 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164896', 'tblTempVendorCDR_20' ) end [2025-01-03 10:19:19] Production.INFO: ProcessCDR(1,14164896,1,1,2) [2025-01-03 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164896', 'tblTempUsageDetail_20' ) start [2025-01-03 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164896', 'tblTempUsageDetail_20' ) end [2025-01-03 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:19:22] Production.INFO: ==14822== Releasing lock... [2025-01-03 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:19:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-03 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:20:05 [end_date_ymd] => 2025-01-03 10:20:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:20:05' and `end` < '2025-01-03 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-01-03 10:20:18] Production.INFO: count ==1991 [2025-01-03 10:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:20:05 - End Time 2025-01-03 10:20:05 [2025-01-03 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164902', 'tblTempUsageDetail_20' ) start [2025-01-03 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164902', 'tblTempUsageDetail_20' ) end [2025-01-03 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164902', 'tblTempVendorCDR_20' ) start [2025-01-03 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164902', 'tblTempVendorCDR_20' ) end [2025-01-03 10:20:19] Production.INFO: ProcessCDR(1,14164902,1,1,2) [2025-01-03 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164902', 'tblTempUsageDetail_20' ) start [2025-01-03 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164902', 'tblTempUsageDetail_20' ) end [2025-01-03 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:20:23] Production.INFO: ==14899== Releasing lock... [2025-01-03 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:20:23] Production.INFO: 43 MB #Memory Used# [2025-01-03 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:21:05 [end_date_ymd] => 2025-01-03 10:21:05 [RateCDR] => 1 ) [2025-01-03 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:21:05' and `end` < '2025-01-03 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:21:19] Production.INFO: count ==2045 [2025-01-03 10:21:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:21:05 - End Time 2025-01-03 10:21:05 [2025-01-03 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164907', 'tblTempUsageDetail_20' ) start [2025-01-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164907', 'tblTempUsageDetail_20' ) end [2025-01-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164907', 'tblTempVendorCDR_20' ) start [2025-01-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164907', 'tblTempVendorCDR_20' ) end [2025-01-03 10:21:19] Production.INFO: ProcessCDR(1,14164907,1,1,2) [2025-01-03 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164907', 'tblTempUsageDetail_20' ) start [2025-01-03 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164907', 'tblTempUsageDetail_20' ) end [2025-01-03 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:21:24] Production.INFO: ==15020== Releasing lock... [2025-01-03 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:21:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-03 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:22:06 [end_date_ymd] => 2025-01-03 10:22:06 [RateCDR] => 1 ) [2025-01-03 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:22:06' and `end` < '2025-01-03 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:22:19] Production.INFO: count ==2064 [2025-01-03 10:22:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:22:06 - End Time 2025-01-03 10:22:06 [2025-01-03 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164912', 'tblTempUsageDetail_20' ) start [2025-01-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164912', 'tblTempUsageDetail_20' ) end [2025-01-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164912', 'tblTempVendorCDR_20' ) start [2025-01-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164912', 'tblTempVendorCDR_20' ) end [2025-01-03 10:22:20] Production.INFO: ProcessCDR(1,14164912,1,1,2) [2025-01-03 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164912', 'tblTempUsageDetail_20' ) start [2025-01-03 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164912', 'tblTempUsageDetail_20' ) end [2025-01-03 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:22:25] Production.INFO: ==15103== Releasing lock... [2025-01-03 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:22:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-03 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:23:05 [end_date_ymd] => 2025-01-03 10:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:23:05' and `end` < '2025-01-03 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-01-03 10:23:20] Production.INFO: count ==2078 [2025-01-03 10:23:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:23:05 - End Time 2025-01-03 10:23:05 [2025-01-03 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164917', 'tblTempUsageDetail_20' ) start [2025-01-03 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164917', 'tblTempUsageDetail_20' ) end [2025-01-03 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164917', 'tblTempVendorCDR_20' ) start [2025-01-03 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164917', 'tblTempVendorCDR_20' ) end [2025-01-03 10:23:20] Production.INFO: ProcessCDR(1,14164917,1,1,2) [2025-01-03 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164917', 'tblTempUsageDetail_20' ) start [2025-01-03 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164917', 'tblTempUsageDetail_20' ) end [2025-01-03 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:23:25] Production.INFO: ==15185== Releasing lock... [2025-01-03 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:23:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-03 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:24:05 [end_date_ymd] => 2025-01-03 10:24:05 [RateCDR] => 1 ) [2025-01-03 10: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-01-03 07:24:05' and `end` < '2025-01-03 10: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-01-03 10:24:26] Production.INFO: count ==2093 [2025-01-03 10:24:26] Production.ERROR: pbx CDR StartTime 2025-01-03 07:24:05 - End Time 2025-01-03 10:24:05 [2025-01-03 10:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164922', 'tblTempUsageDetail_20' ) start [2025-01-03 10:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164922', 'tblTempUsageDetail_20' ) end [2025-01-03 10:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164922', 'tblTempVendorCDR_20' ) start [2025-01-03 10:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164922', 'tblTempVendorCDR_20' ) end [2025-01-03 10:24:27] Production.INFO: ProcessCDR(1,14164922,1,1,2) [2025-01-03 10:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164922', 'tblTempUsageDetail_20' ) start [2025-01-03 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164922', 'tblTempUsageDetail_20' ) end [2025-01-03 10:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:24:30] Production.INFO: ==15266== Releasing lock... [2025-01-03 10:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:24:30] Production.INFO: 44.25 MB #Memory Used# [2025-01-03 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:25:04 [end_date_ymd] => 2025-01-03 10:25:04 [RateCDR] => 1 ) [2025-01-03 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:25:04' and `end` < '2025-01-03 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:25:25] Production.INFO: count ==2103 [2025-01-03 10:25:26] Production.ERROR: pbx CDR StartTime 2025-01-03 07:25:04 - End Time 2025-01-03 10:25:04 [2025-01-03 10:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164927', 'tblTempUsageDetail_20' ) start [2025-01-03 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164927', 'tblTempUsageDetail_20' ) end [2025-01-03 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164927', 'tblTempVendorCDR_20' ) start [2025-01-03 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164927', 'tblTempVendorCDR_20' ) end [2025-01-03 10:25:26] Production.INFO: ProcessCDR(1,14164927,1,1,2) [2025-01-03 10:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164927', 'tblTempUsageDetail_20' ) start [2025-01-03 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164927', 'tblTempUsageDetail_20' ) end [2025-01-03 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:25:30] Production.INFO: ==15340== Releasing lock... [2025-01-03 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:25:30] Production.INFO: 44 MB #Memory Used# [2025-01-03 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:26:05 [end_date_ymd] => 2025-01-03 10:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:26:05' and `end` < '2025-01-03 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-01-03 10:26:22] Production.INFO: count ==2114 [2025-01-03 10:26:23] Production.ERROR: pbx CDR StartTime 2025-01-03 07:26:05 - End Time 2025-01-03 10:26:05 [2025-01-03 10:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164932', 'tblTempUsageDetail_20' ) start [2025-01-03 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164932', 'tblTempUsageDetail_20' ) end [2025-01-03 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164932', 'tblTempVendorCDR_20' ) start [2025-01-03 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164932', 'tblTempVendorCDR_20' ) end [2025-01-03 10:26:23] Production.INFO: ProcessCDR(1,14164932,1,1,2) [2025-01-03 10:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164932', 'tblTempUsageDetail_20' ) start [2025-01-03 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164932', 'tblTempUsageDetail_20' ) end [2025-01-03 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:26:28] Production.INFO: ==15421== Releasing lock... [2025-01-03 10:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:26:28] Production.INFO: 44 MB #Memory Used# [2025-01-03 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:27:05 [end_date_ymd] => 2025-01-03 10:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:27:05' and `end` < '2025-01-03 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-01-03 10:27:21] Production.INFO: count ==2132 [2025-01-03 10:27:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:27:05 - End Time 2025-01-03 10:27:05 [2025-01-03 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164937', 'tblTempUsageDetail_20' ) start [2025-01-03 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164937', 'tblTempUsageDetail_20' ) end [2025-01-03 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164937', 'tblTempVendorCDR_20' ) start [2025-01-03 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164937', 'tblTempVendorCDR_20' ) end [2025-01-03 10:27:21] Production.INFO: ProcessCDR(1,14164937,1,1,2) [2025-01-03 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164937', 'tblTempUsageDetail_20' ) start [2025-01-03 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164937', 'tblTempUsageDetail_20' ) end [2025-01-03 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:27:26] Production.INFO: ==15501== Releasing lock... [2025-01-03 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:27:26] Production.INFO: 44 MB #Memory Used# [2025-01-03 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:28:05 [end_date_ymd] => 2025-01-03 10:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:28:05' and `end` < '2025-01-03 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-01-03 10:28:23] Production.INFO: count ==2136 [2025-01-03 10:28:23] Production.ERROR: pbx CDR StartTime 2025-01-03 07:28:05 - End Time 2025-01-03 10:28:05 [2025-01-03 10:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164942', 'tblTempUsageDetail_20' ) start [2025-01-03 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164942', 'tblTempUsageDetail_20' ) end [2025-01-03 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164942', 'tblTempVendorCDR_20' ) start [2025-01-03 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164942', 'tblTempVendorCDR_20' ) end [2025-01-03 10:28:23] Production.INFO: ProcessCDR(1,14164942,1,1,2) [2025-01-03 10:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164942', 'tblTempUsageDetail_20' ) start [2025-01-03 10:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164942', 'tblTempUsageDetail_20' ) end [2025-01-03 10:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:28:28] Production.INFO: ==15580== Releasing lock... [2025-01-03 10:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:28:28] Production.INFO: 44.25 MB #Memory Used# [2025-01-03 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:29:05 [end_date_ymd] => 2025-01-03 10:29:05 [RateCDR] => 1 ) [2025-01-03 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:29:05' and `end` < '2025-01-03 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:29:20] Production.INFO: count ==2146 [2025-01-03 10:29:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:29:05 - End Time 2025-01-03 10:29:05 [2025-01-03 10:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164947', 'tblTempUsageDetail_20' ) start [2025-01-03 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164947', 'tblTempUsageDetail_20' ) end [2025-01-03 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164947', 'tblTempVendorCDR_20' ) start [2025-01-03 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164947', 'tblTempVendorCDR_20' ) end [2025-01-03 10:29:21] Production.INFO: ProcessCDR(1,14164947,1,1,2) [2025-01-03 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164947', 'tblTempUsageDetail_20' ) start [2025-01-03 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164947', 'tblTempUsageDetail_20' ) end [2025-01-03 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:29:24] Production.INFO: ==15657== Releasing lock... [2025-01-03 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:29:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-03 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:30:05 [end_date_ymd] => 2025-01-03 10:30:05 [RateCDR] => 1 ) [2025-01-03 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:30:05' and `end` < '2025-01-03 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:30:29] Production.INFO: count ==2172 [2025-01-03 10:30:30] Production.ERROR: pbx CDR StartTime 2025-01-03 07:30:05 - End Time 2025-01-03 10:30:05 [2025-01-03 10:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164953', 'tblTempUsageDetail_20' ) start [2025-01-03 10:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164953', 'tblTempUsageDetail_20' ) end [2025-01-03 10:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164953', 'tblTempVendorCDR_20' ) start [2025-01-03 10:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164953', 'tblTempVendorCDR_20' ) end [2025-01-03 10:30:30] Production.INFO: ProcessCDR(1,14164953,1,1,2) [2025-01-03 10:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164953', 'tblTempUsageDetail_20' ) start [2025-01-03 10:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164953', 'tblTempUsageDetail_20' ) end [2025-01-03 10:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:30:35] Production.INFO: ==15735== Releasing lock... [2025-01-03 10:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:30:35] Production.INFO: 44.5 MB #Memory Used# [2025-01-03 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:31:05 [end_date_ymd] => 2025-01-03 10:31:05 [RateCDR] => 1 ) [2025-01-03 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:31:05' and `end` < '2025-01-03 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:31:24] Production.INFO: count ==2220 [2025-01-03 10:31:24] Production.ERROR: pbx CDR StartTime 2025-01-03 07:31:05 - End Time 2025-01-03 10:31:05 [2025-01-03 10:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164958', 'tblTempUsageDetail_20' ) start [2025-01-03 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164958', 'tblTempUsageDetail_20' ) end [2025-01-03 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164958', 'tblTempVendorCDR_20' ) start [2025-01-03 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164958', 'tblTempVendorCDR_20' ) end [2025-01-03 10:31:24] Production.INFO: ProcessCDR(1,14164958,1,1,2) [2025-01-03 10:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164958', 'tblTempUsageDetail_20' ) start [2025-01-03 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164958', 'tblTempUsageDetail_20' ) end [2025-01-03 10:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:31:29] Production.INFO: ==15810== Releasing lock... [2025-01-03 10:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:31:29] Production.INFO: 44.75 MB #Memory Used# [2025-01-03 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:32:05 [end_date_ymd] => 2025-01-03 10:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:32:05' and `end` < '2025-01-03 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-01-03 10:32:19] Production.INFO: count ==2226 [2025-01-03 10:32:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:32:05 - End Time 2025-01-03 10:32:05 [2025-01-03 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164963', 'tblTempUsageDetail_20' ) start [2025-01-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164963', 'tblTempUsageDetail_20' ) end [2025-01-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164963', 'tblTempVendorCDR_20' ) start [2025-01-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164963', 'tblTempVendorCDR_20' ) end [2025-01-03 10:32:20] Production.INFO: ProcessCDR(1,14164963,1,1,2) [2025-01-03 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164963', 'tblTempUsageDetail_20' ) start [2025-01-03 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164963', 'tblTempUsageDetail_20' ) end [2025-01-03 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:32:24] Production.INFO: ==15887== Releasing lock... [2025-01-03 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:32:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-03 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:33:05 [end_date_ymd] => 2025-01-03 10:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:33:05' and `end` < '2025-01-03 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-01-03 10:33:21] Production.INFO: count ==2228 [2025-01-03 10:33:22] Production.ERROR: pbx CDR StartTime 2025-01-03 07:33:05 - End Time 2025-01-03 10:33:05 [2025-01-03 10:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164968', 'tblTempUsageDetail_20' ) start [2025-01-03 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164968', 'tblTempUsageDetail_20' ) end [2025-01-03 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164968', 'tblTempVendorCDR_20' ) start [2025-01-03 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164968', 'tblTempVendorCDR_20' ) end [2025-01-03 10:33:22] Production.INFO: ProcessCDR(1,14164968,1,1,2) [2025-01-03 10:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164968', 'tblTempUsageDetail_20' ) start [2025-01-03 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164968', 'tblTempUsageDetail_20' ) end [2025-01-03 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:33:26] Production.INFO: ==15961== Releasing lock... [2025-01-03 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:33:26] Production.INFO: 44.75 MB #Memory Used# [2025-01-03 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:34:05 [end_date_ymd] => 2025-01-03 10:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:34:05' and `end` < '2025-01-03 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-01-03 10:34:21] Production.INFO: count ==2239 [2025-01-03 10:34:22] Production.ERROR: pbx CDR StartTime 2025-01-03 07:34:05 - End Time 2025-01-03 10:34:05 [2025-01-03 10:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164973', 'tblTempUsageDetail_20' ) start [2025-01-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164973', 'tblTempUsageDetail_20' ) end [2025-01-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164973', 'tblTempVendorCDR_20' ) start [2025-01-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164973', 'tblTempVendorCDR_20' ) end [2025-01-03 10:34:22] Production.INFO: ProcessCDR(1,14164973,1,1,2) [2025-01-03 10:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164973', 'tblTempUsageDetail_20' ) start [2025-01-03 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164973', 'tblTempUsageDetail_20' ) end [2025-01-03 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:34:27] Production.INFO: ==16033== Releasing lock... [2025-01-03 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:34:27] Production.INFO: 45 MB #Memory Used# [2025-01-03 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:35:05 [end_date_ymd] => 2025-01-03 10:35:05 [RateCDR] => 1 ) [2025-01-03 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:35:05' and `end` < '2025-01-03 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:35:20] Production.INFO: count ==2247 [2025-01-03 10:35:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:35:05 - End Time 2025-01-03 10:35:05 [2025-01-03 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164978', 'tblTempUsageDetail_20' ) start [2025-01-03 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164978', 'tblTempUsageDetail_20' ) end [2025-01-03 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164978', 'tblTempVendorCDR_20' ) start [2025-01-03 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164978', 'tblTempVendorCDR_20' ) end [2025-01-03 10:35:21] Production.INFO: ProcessCDR(1,14164978,1,1,2) [2025-01-03 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164978', 'tblTempUsageDetail_20' ) start [2025-01-03 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164978', 'tblTempUsageDetail_20' ) end [2025-01-03 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:35:25] Production.INFO: ==16109== Releasing lock... [2025-01-03 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:35:25] Production.INFO: 45 MB #Memory Used# [2025-01-03 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:36:05 [end_date_ymd] => 2025-01-03 10:36:05 [RateCDR] => 1 ) [2025-01-03 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:36:05' and `end` < '2025-01-03 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:36:25] Production.INFO: count ==2252 [2025-01-03 10:36:26] Production.ERROR: pbx CDR StartTime 2025-01-03 07:36:05 - End Time 2025-01-03 10:36:05 [2025-01-03 10:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164983', 'tblTempUsageDetail_20' ) start [2025-01-03 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164983', 'tblTempUsageDetail_20' ) end [2025-01-03 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164983', 'tblTempVendorCDR_20' ) start [2025-01-03 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164983', 'tblTempVendorCDR_20' ) end [2025-01-03 10:36:26] Production.INFO: ProcessCDR(1,14164983,1,1,2) [2025-01-03 10:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164983', 'tblTempUsageDetail_20' ) start [2025-01-03 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164983', 'tblTempUsageDetail_20' ) end [2025-01-03 10:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:36:30] Production.INFO: ==16224== Releasing lock... [2025-01-03 10:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:36:30] Production.INFO: 45 MB #Memory Used# [2025-01-03 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:37:05 [end_date_ymd] => 2025-01-03 10:37:05 [RateCDR] => 1 ) [2025-01-03 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:37:05' and `end` < '2025-01-03 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:37:30] Production.INFO: count ==2256 [2025-01-03 10:37:31] Production.ERROR: pbx CDR StartTime 2025-01-03 07:37:05 - End Time 2025-01-03 10:37:05 [2025-01-03 10:37:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164988', 'tblTempUsageDetail_20' ) start [2025-01-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164988', 'tblTempUsageDetail_20' ) end [2025-01-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164988', 'tblTempVendorCDR_20' ) start [2025-01-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164988', 'tblTempVendorCDR_20' ) end [2025-01-03 10:37:31] Production.INFO: ProcessCDR(1,14164988,1,1,2) [2025-01-03 10:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164988', 'tblTempUsageDetail_20' ) start [2025-01-03 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164988', 'tblTempUsageDetail_20' ) end [2025-01-03 10:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:37:35] Production.INFO: ==16298== Releasing lock... [2025-01-03 10:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:37:35] Production.INFO: 45 MB #Memory Used# [2025-01-03 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:38:05 [end_date_ymd] => 2025-01-03 10:38:05 [RateCDR] => 1 ) [2025-01-03 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:38:05' and `end` < '2025-01-03 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:38:25] Production.INFO: count ==2269 [2025-01-03 10:38:25] Production.ERROR: pbx CDR StartTime 2025-01-03 07:38:05 - End Time 2025-01-03 10:38:05 [2025-01-03 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164993', 'tblTempUsageDetail_20' ) start [2025-01-03 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164993', 'tblTempUsageDetail_20' ) end [2025-01-03 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164993', 'tblTempVendorCDR_20' ) start [2025-01-03 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164993', 'tblTempVendorCDR_20' ) end [2025-01-03 10:38:25] Production.INFO: ProcessCDR(1,14164993,1,1,2) [2025-01-03 10:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164993', 'tblTempUsageDetail_20' ) start [2025-01-03 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164993', 'tblTempUsageDetail_20' ) end [2025-01-03 10:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:38:30] Production.INFO: ==16377== Releasing lock... [2025-01-03 10:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:38:30] Production.INFO: 45 MB #Memory Used# [2025-01-03 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:39:05 [end_date_ymd] => 2025-01-03 10:39:05 [RateCDR] => 1 ) [2025-01-03 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:39:05' and `end` < '2025-01-03 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:39:18] Production.INFO: count ==2302 [2025-01-03 10:39:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:39:05 - End Time 2025-01-03 10:39:05 [2025-01-03 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164998', 'tblTempUsageDetail_20' ) start [2025-01-03 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14164998', 'tblTempUsageDetail_20' ) end [2025-01-03 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164998', 'tblTempVendorCDR_20' ) start [2025-01-03 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14164998', 'tblTempVendorCDR_20' ) end [2025-01-03 10:39:19] Production.INFO: ProcessCDR(1,14164998,1,1,2) [2025-01-03 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14164998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14164998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14164998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14164998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164998', 'tblTempUsageDetail_20' ) start [2025-01-03 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14164998', 'tblTempUsageDetail_20' ) end [2025-01-03 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:39:23] Production.INFO: ==16450== Releasing lock... [2025-01-03 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:39:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-03 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:40:05 [end_date_ymd] => 2025-01-03 10:40:05 [RateCDR] => 1 ) [2025-01-03 10: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-01-03 07:40:05' and `end` < '2025-01-03 10: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-01-03 10:40:21] Production.INFO: count ==2314 [2025-01-03 10:40:22] Production.ERROR: pbx CDR StartTime 2025-01-03 07:40:05 - End Time 2025-01-03 10:40:05 [2025-01-03 10:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165003', 'tblTempUsageDetail_20' ) start [2025-01-03 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165003', 'tblTempUsageDetail_20' ) end [2025-01-03 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165003', 'tblTempVendorCDR_20' ) start [2025-01-03 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165003', 'tblTempVendorCDR_20' ) end [2025-01-03 10:40:22] Production.INFO: ProcessCDR(1,14165003,1,1,2) [2025-01-03 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165003', 'tblTempUsageDetail_20' ) start [2025-01-03 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165003', 'tblTempUsageDetail_20' ) end [2025-01-03 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:40:27] Production.INFO: ==16524== Releasing lock... [2025-01-03 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:40:27] Production.INFO: 45.5 MB #Memory Used# [2025-01-03 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:41:05 [end_date_ymd] => 2025-01-03 10:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:41:05' and `end` < '2025-01-03 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-01-03 10:41:18] Production.INFO: count ==2387 [2025-01-03 10:41:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:41:05 - End Time 2025-01-03 10:41:05 [2025-01-03 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165009', 'tblTempUsageDetail_20' ) start [2025-01-03 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165009', 'tblTempUsageDetail_20' ) end [2025-01-03 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165009', 'tblTempVendorCDR_20' ) start [2025-01-03 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165009', 'tblTempVendorCDR_20' ) end [2025-01-03 10:41:19] Production.INFO: ProcessCDR(1,14165009,1,1,2) [2025-01-03 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165009', 'tblTempUsageDetail_20' ) start [2025-01-03 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165009', 'tblTempUsageDetail_20' ) end [2025-01-03 10:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:41:23] Production.INFO: ==16596== Releasing lock... [2025-01-03 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:41:23] Production.INFO: 46 MB #Memory Used# [2025-01-03 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:42:05 [end_date_ymd] => 2025-01-03 10:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:42:05' and `end` < '2025-01-03 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-01-03 10:42:25] Production.INFO: count ==2400 [2025-01-03 10:42:26] Production.ERROR: pbx CDR StartTime 2025-01-03 07:42:05 - End Time 2025-01-03 10:42:05 [2025-01-03 10:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165014', 'tblTempUsageDetail_20' ) start [2025-01-03 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165014', 'tblTempUsageDetail_20' ) end [2025-01-03 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165014', 'tblTempVendorCDR_20' ) start [2025-01-03 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165014', 'tblTempVendorCDR_20' ) end [2025-01-03 10:42:26] Production.INFO: ProcessCDR(1,14165014,1,1,2) [2025-01-03 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165014', 'tblTempUsageDetail_20' ) start [2025-01-03 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165014', 'tblTempUsageDetail_20' ) end [2025-01-03 10:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:42:31] Production.INFO: ==16668== Releasing lock... [2025-01-03 10:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:42:31] Production.INFO: 46 MB #Memory Used# [2025-01-03 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:43:05 [end_date_ymd] => 2025-01-03 10:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:43:05' and `end` < '2025-01-03 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-01-03 10:43:20] Production.INFO: count ==2407 [2025-01-03 10:43:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:43:05 - End Time 2025-01-03 10:43:05 [2025-01-03 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165019', 'tblTempUsageDetail_20' ) start [2025-01-03 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165019', 'tblTempUsageDetail_20' ) end [2025-01-03 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165019', 'tblTempVendorCDR_20' ) start [2025-01-03 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165019', 'tblTempVendorCDR_20' ) end [2025-01-03 10:43:21] Production.INFO: ProcessCDR(1,14165019,1,1,2) [2025-01-03 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165019', 'tblTempUsageDetail_20' ) start [2025-01-03 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165019', 'tblTempUsageDetail_20' ) end [2025-01-03 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:43:25] Production.INFO: ==16741== Releasing lock... [2025-01-03 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:43:25] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:44:04 [end_date_ymd] => 2025-01-03 10:44:04 [RateCDR] => 1 ) [2025-01-03 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:44:04' and `end` < '2025-01-03 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:44:20] Production.INFO: count ==2417 [2025-01-03 10:44:21] Production.ERROR: pbx CDR StartTime 2025-01-03 07:44:04 - End Time 2025-01-03 10:44:04 [2025-01-03 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165024', 'tblTempUsageDetail_20' ) start [2025-01-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165024', 'tblTempUsageDetail_20' ) end [2025-01-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165024', 'tblTempVendorCDR_20' ) start [2025-01-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165024', 'tblTempVendorCDR_20' ) end [2025-01-03 10:44:21] Production.INFO: ProcessCDR(1,14165024,1,1,2) [2025-01-03 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165024', 'tblTempUsageDetail_20' ) start [2025-01-03 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165024', 'tblTempUsageDetail_20' ) end [2025-01-03 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:44:25] Production.INFO: ==16811== Releasing lock... [2025-01-03 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:44:25] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:45:04 [end_date_ymd] => 2025-01-03 10:45:04 [RateCDR] => 1 ) [2025-01-03 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:45:04' and `end` < '2025-01-03 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:45:31] Production.INFO: count ==2424 [2025-01-03 10:45:32] Production.ERROR: pbx CDR StartTime 2025-01-03 07:45:04 - End Time 2025-01-03 10:45:04 [2025-01-03 10:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165029', 'tblTempUsageDetail_20' ) start [2025-01-03 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165029', 'tblTempUsageDetail_20' ) end [2025-01-03 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165029', 'tblTempVendorCDR_20' ) start [2025-01-03 10:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165029', 'tblTempVendorCDR_20' ) end [2025-01-03 10:45:32] Production.INFO: ProcessCDR(1,14165029,1,1,2) [2025-01-03 10:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165029', 'tblTempUsageDetail_20' ) start [2025-01-03 10:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165029', 'tblTempUsageDetail_20' ) end [2025-01-03 10:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:45:37] Production.INFO: ==16882== Releasing lock... [2025-01-03 10:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:45:37] Production.INFO: 46 MB #Memory Used# [2025-01-03 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:46:05 [end_date_ymd] => 2025-01-03 10:46:05 [RateCDR] => 1 ) [2025-01-03 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:46:05' and `end` < '2025-01-03 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:46:24] Production.INFO: count ==2437 [2025-01-03 10:46:25] Production.ERROR: pbx CDR StartTime 2025-01-03 07:46:05 - End Time 2025-01-03 10:46:05 [2025-01-03 10:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165034', 'tblTempUsageDetail_20' ) start [2025-01-03 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165034', 'tblTempUsageDetail_20' ) end [2025-01-03 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165034', 'tblTempVendorCDR_20' ) start [2025-01-03 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165034', 'tblTempVendorCDR_20' ) end [2025-01-03 10:46:25] Production.INFO: ProcessCDR(1,14165034,1,1,2) [2025-01-03 10:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165034', 'tblTempUsageDetail_20' ) start [2025-01-03 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165034', 'tblTempUsageDetail_20' ) end [2025-01-03 10:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:46:30] Production.INFO: ==16954== Releasing lock... [2025-01-03 10:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:46:30] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:47:05 [end_date_ymd] => 2025-01-03 10:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:47:05' and `end` < '2025-01-03 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-01-03 10:47:19] Production.INFO: count ==2444 [2025-01-03 10:47:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:47:05 - End Time 2025-01-03 10:47:05 [2025-01-03 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165039', 'tblTempUsageDetail_20' ) start [2025-01-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165039', 'tblTempUsageDetail_20' ) end [2025-01-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165039', 'tblTempVendorCDR_20' ) start [2025-01-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165039', 'tblTempVendorCDR_20' ) end [2025-01-03 10:47:20] Production.INFO: ProcessCDR(1,14165039,1,1,2) [2025-01-03 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165039', 'tblTempUsageDetail_20' ) start [2025-01-03 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165039', 'tblTempUsageDetail_20' ) end [2025-01-03 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:47:25] Production.INFO: ==17024== Releasing lock... [2025-01-03 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:47:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-03 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:48:05 [end_date_ymd] => 2025-01-03 10:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:48:05' and `end` < '2025-01-03 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-01-03 10:48:18] Production.INFO: count ==2454 [2025-01-03 10:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:48:05 - End Time 2025-01-03 10:48:05 [2025-01-03 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165044', 'tblTempUsageDetail_20' ) start [2025-01-03 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165044', 'tblTempUsageDetail_20' ) end [2025-01-03 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165044', 'tblTempVendorCDR_20' ) start [2025-01-03 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165044', 'tblTempVendorCDR_20' ) end [2025-01-03 10:48:19] Production.INFO: ProcessCDR(1,14165044,1,1,2) [2025-01-03 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165044', 'tblTempUsageDetail_20' ) start [2025-01-03 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165044', 'tblTempUsageDetail_20' ) end [2025-01-03 10:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:48:24] Production.INFO: ==17095== Releasing lock... [2025-01-03 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:48:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-03 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:49:04 [end_date_ymd] => 2025-01-03 10:49:04 [RateCDR] => 1 ) [2025-01-03 10: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-01-03 07:49:04' and `end` < '2025-01-03 10: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-01-03 10:49:19] Production.INFO: count ==2462 [2025-01-03 10:49:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:49:04 - End Time 2025-01-03 10:49:04 [2025-01-03 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165049', 'tblTempUsageDetail_20' ) start [2025-01-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165049', 'tblTempUsageDetail_20' ) end [2025-01-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165049', 'tblTempVendorCDR_20' ) start [2025-01-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165049', 'tblTempVendorCDR_20' ) end [2025-01-03 10:49:20] Production.INFO: ProcessCDR(1,14165049,1,1,2) [2025-01-03 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165049', 'tblTempUsageDetail_20' ) start [2025-01-03 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165049', 'tblTempUsageDetail_20' ) end [2025-01-03 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:49:25] Production.INFO: ==17164== Releasing lock... [2025-01-03 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:49:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-03 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:50:06 [end_date_ymd] => 2025-01-03 10:50:06 [RateCDR] => 1 ) [2025-01-03 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:50:06' and `end` < '2025-01-03 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:50:25] Production.INFO: count ==2480 [2025-01-03 10:50:26] Production.ERROR: pbx CDR StartTime 2025-01-03 07:50:06 - End Time 2025-01-03 10:50:06 [2025-01-03 10:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165055', 'tblTempUsageDetail_20' ) start [2025-01-03 10:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165055', 'tblTempUsageDetail_20' ) end [2025-01-03 10:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165055', 'tblTempVendorCDR_20' ) start [2025-01-03 10:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165055', 'tblTempVendorCDR_20' ) end [2025-01-03 10:50:26] Production.INFO: ProcessCDR(1,14165055,1,1,2) [2025-01-03 10:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165055', 'tblTempUsageDetail_20' ) start [2025-01-03 10:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165055', 'tblTempUsageDetail_20' ) end [2025-01-03 10:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:50:30] Production.INFO: ==17239== Releasing lock... [2025-01-03 10:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:50:30] Production.INFO: 46.75 MB #Memory Used# [2025-01-03 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:51:05 [end_date_ymd] => 2025-01-03 10:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:51:05' and `end` < '2025-01-03 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-01-03 10:51:19] Production.INFO: count ==2541 [2025-01-03 10:51:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:51:05 - End Time 2025-01-03 10:51:05 [2025-01-03 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165060', 'tblTempUsageDetail_20' ) start [2025-01-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165060', 'tblTempUsageDetail_20' ) end [2025-01-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165060', 'tblTempVendorCDR_20' ) start [2025-01-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165060', 'tblTempVendorCDR_20' ) end [2025-01-03 10:51:20] Production.INFO: ProcessCDR(1,14165060,1,1,2) [2025-01-03 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165060', 'tblTempUsageDetail_20' ) start [2025-01-03 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165060', 'tblTempUsageDetail_20' ) end [2025-01-03 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:51:24] Production.INFO: ==17316== Releasing lock... [2025-01-03 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:51:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:52:05 [end_date_ymd] => 2025-01-03 10:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:52:05' and `end` < '2025-01-03 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-01-03 10:52:18] Production.INFO: count ==2549 [2025-01-03 10:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:52:05 - End Time 2025-01-03 10:52:05 [2025-01-03 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165065', 'tblTempUsageDetail_20' ) start [2025-01-03 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165065', 'tblTempUsageDetail_20' ) end [2025-01-03 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165065', 'tblTempVendorCDR_20' ) start [2025-01-03 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165065', 'tblTempVendorCDR_20' ) end [2025-01-03 10:52:19] Production.INFO: ProcessCDR(1,14165065,1,1,2) [2025-01-03 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165065', 'tblTempUsageDetail_20' ) start [2025-01-03 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165065', 'tblTempUsageDetail_20' ) end [2025-01-03 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:52:24] Production.INFO: ==17434== Releasing lock... [2025-01-03 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:52:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:53:06 [end_date_ymd] => 2025-01-03 10:53:06 [RateCDR] => 1 ) [2025-01-03 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:53:06' and `end` < '2025-01-03 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:53:24] Production.INFO: count ==2565 [2025-01-03 10:53:25] Production.ERROR: pbx CDR StartTime 2025-01-03 07:53:06 - End Time 2025-01-03 10:53:06 [2025-01-03 10:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165070', 'tblTempUsageDetail_20' ) start [2025-01-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165070', 'tblTempUsageDetail_20' ) end [2025-01-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165070', 'tblTempVendorCDR_20' ) start [2025-01-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165070', 'tblTempVendorCDR_20' ) end [2025-01-03 10:53:25] Production.INFO: ProcessCDR(1,14165070,1,1,2) [2025-01-03 10:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165070', 'tblTempUsageDetail_20' ) start [2025-01-03 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165070', 'tblTempUsageDetail_20' ) end [2025-01-03 10:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:53:30] Production.INFO: ==17504== Releasing lock... [2025-01-03 10:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:53:30] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:54:05 [end_date_ymd] => 2025-01-03 10:54:05 [RateCDR] => 1 ) [2025-01-03 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:54:05' and `end` < '2025-01-03 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:54:21] Production.INFO: count ==2570 [2025-01-03 10:54:22] Production.ERROR: pbx CDR StartTime 2025-01-03 07:54:05 - End Time 2025-01-03 10:54:05 [2025-01-03 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165075', 'tblTempUsageDetail_20' ) start [2025-01-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165075', 'tblTempUsageDetail_20' ) end [2025-01-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165075', 'tblTempVendorCDR_20' ) start [2025-01-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165075', 'tblTempVendorCDR_20' ) end [2025-01-03 10:54:22] Production.INFO: ProcessCDR(1,14165075,1,1,2) [2025-01-03 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165075', 'tblTempUsageDetail_20' ) start [2025-01-03 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165075', 'tblTempUsageDetail_20' ) end [2025-01-03 10:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:54:27] Production.INFO: ==17573== Releasing lock... [2025-01-03 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:54:27] Production.INFO: 47.5 MB #Memory Used# [2025-01-03 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:55:05 [end_date_ymd] => 2025-01-03 10:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:55:05' and `end` < '2025-01-03 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-01-03 10:55:23] Production.INFO: count ==2596 [2025-01-03 10:55:24] Production.ERROR: pbx CDR StartTime 2025-01-03 07:55:05 - End Time 2025-01-03 10:55:05 [2025-01-03 10:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165080', 'tblTempUsageDetail_20' ) start [2025-01-03 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165080', 'tblTempUsageDetail_20' ) end [2025-01-03 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165080', 'tblTempVendorCDR_20' ) start [2025-01-03 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165080', 'tblTempVendorCDR_20' ) end [2025-01-03 10:55:24] Production.INFO: ProcessCDR(1,14165080,1,1,2) [2025-01-03 10:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165080', 'tblTempUsageDetail_20' ) start [2025-01-03 10:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165080', 'tblTempUsageDetail_20' ) end [2025-01-03 10:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:55:28] Production.INFO: ==17644== Releasing lock... [2025-01-03 10:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:55:28] Production.INFO: 47.5 MB #Memory Used# [2025-01-03 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:56:05 [end_date_ymd] => 2025-01-03 10:56:05 [RateCDR] => 1 ) [2025-01-03 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 07:56:05' and `end` < '2025-01-03 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 10:56:18] Production.INFO: count ==2603 [2025-01-03 10:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:56:05 - End Time 2025-01-03 10:56:05 [2025-01-03 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165085', 'tblTempUsageDetail_20' ) start [2025-01-03 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165085', 'tblTempUsageDetail_20' ) end [2025-01-03 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165085', 'tblTempVendorCDR_20' ) start [2025-01-03 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165085', 'tblTempVendorCDR_20' ) end [2025-01-03 10:56:19] Production.INFO: ProcessCDR(1,14165085,1,1,2) [2025-01-03 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165085', 'tblTempUsageDetail_20' ) start [2025-01-03 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165085', 'tblTempUsageDetail_20' ) end [2025-01-03 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:56:24] Production.INFO: ==17714== Releasing lock... [2025-01-03 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:56:24] Production.INFO: 47.5 MB #Memory Used# [2025-01-03 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:57:05 [end_date_ymd] => 2025-01-03 10:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:57:05' and `end` < '2025-01-03 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-01-03 10:57:18] Production.INFO: count ==2615 [2025-01-03 10:57:19] Production.ERROR: pbx CDR StartTime 2025-01-03 07:57:05 - End Time 2025-01-03 10:57:05 [2025-01-03 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165090', 'tblTempUsageDetail_20' ) start [2025-01-03 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165090', 'tblTempUsageDetail_20' ) end [2025-01-03 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165090', 'tblTempVendorCDR_20' ) start [2025-01-03 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165090', 'tblTempVendorCDR_20' ) end [2025-01-03 10:57:19] Production.INFO: ProcessCDR(1,14165090,1,1,2) [2025-01-03 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165090', 'tblTempUsageDetail_20' ) start [2025-01-03 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165090', 'tblTempUsageDetail_20' ) end [2025-01-03 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:57:24] Production.INFO: ==17784== Releasing lock... [2025-01-03 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:57:24] Production.INFO: 47.75 MB #Memory Used# [2025-01-03 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:58:05 [end_date_ymd] => 2025-01-03 10:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:58:05' and `end` < '2025-01-03 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-01-03 10:58:22] Production.INFO: count ==2621 [2025-01-03 10:58:23] Production.ERROR: pbx CDR StartTime 2025-01-03 07:58:05 - End Time 2025-01-03 10:58:05 [2025-01-03 10:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165095', 'tblTempUsageDetail_20' ) start [2025-01-03 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165095', 'tblTempUsageDetail_20' ) end [2025-01-03 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165095', 'tblTempVendorCDR_20' ) start [2025-01-03 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165095', 'tblTempVendorCDR_20' ) end [2025-01-03 10:58:23] Production.INFO: ProcessCDR(1,14165095,1,1,2) [2025-01-03 10:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165095', 'tblTempUsageDetail_20' ) start [2025-01-03 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165095', 'tblTempUsageDetail_20' ) end [2025-01-03 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:58:26] Production.INFO: ==17859== Releasing lock... [2025-01-03 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:58:26] Production.INFO: 47.5 MB #Memory Used# [2025-01-03 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 07:59:05 [end_date_ymd] => 2025-01-03 10:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 07:59:05' and `end` < '2025-01-03 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-01-03 10:59:19] Production.INFO: count ==2633 [2025-01-03 10:59:20] Production.ERROR: pbx CDR StartTime 2025-01-03 07:59:05 - End Time 2025-01-03 10:59:05 [2025-01-03 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165100', 'tblTempUsageDetail_20' ) start [2025-01-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165100', 'tblTempUsageDetail_20' ) end [2025-01-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165100', 'tblTempVendorCDR_20' ) start [2025-01-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165100', 'tblTempVendorCDR_20' ) end [2025-01-03 10:59:20] Production.INFO: ProcessCDR(1,14165100,1,1,2) [2025-01-03 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165100', 'tblTempUsageDetail_20' ) start [2025-01-03 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165100', 'tblTempUsageDetail_20' ) end [2025-01-03 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 10:59:23] Production.INFO: ==17932== Releasing lock... [2025-01-03 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 10:59:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-03 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:00:05 [end_date_ymd] => 2025-01-03 11:00:05 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:00:05' and `end` < '2025-01-03 11: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-01-03 11:00:24] Production.INFO: count ==2652 [2025-01-03 11:00:25] Production.ERROR: pbx CDR StartTime 2025-01-03 08:00:05 - End Time 2025-01-03 11:00:05 [2025-01-03 11:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165105', 'tblTempUsageDetail_20' ) start [2025-01-03 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165105', 'tblTempUsageDetail_20' ) end [2025-01-03 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165105', 'tblTempVendorCDR_20' ) start [2025-01-03 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165105', 'tblTempVendorCDR_20' ) end [2025-01-03 11:00:26] Production.INFO: ProcessCDR(1,14165105,1,1,2) [2025-01-03 11:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165105', 'tblTempUsageDetail_20' ) start [2025-01-03 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165105', 'tblTempUsageDetail_20' ) end [2025-01-03 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:00:29] Production.INFO: ==18017== Releasing lock... [2025-01-03 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:00:29] Production.INFO: 48 MB #Memory Used# [2025-01-03 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:01:05 [end_date_ymd] => 2025-01-03 11:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:01:05' and `end` < '2025-01-03 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-01-03 11:01:27] Production.INFO: count ==2715 [2025-01-03 11:01:28] Production.ERROR: pbx CDR StartTime 2025-01-03 08:01:05 - End Time 2025-01-03 11:01:05 [2025-01-03 11:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165111', 'tblTempUsageDetail_20' ) start [2025-01-03 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165111', 'tblTempUsageDetail_20' ) end [2025-01-03 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165111', 'tblTempVendorCDR_20' ) start [2025-01-03 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165111', 'tblTempVendorCDR_20' ) end [2025-01-03 11:01:28] Production.INFO: ProcessCDR(1,14165111,1,1,2) [2025-01-03 11:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165111', 'tblTempUsageDetail_20' ) start [2025-01-03 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165111', 'tblTempUsageDetail_20' ) end [2025-01-03 11:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:01:33] Production.INFO: ==18262== Releasing lock... [2025-01-03 11:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:01:33] Production.INFO: 48.5 MB #Memory Used# [2025-01-03 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:02:05 [end_date_ymd] => 2025-01-03 11:02:05 [RateCDR] => 1 ) [2025-01-03 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:02:05' and `end` < '2025-01-03 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:02:30] Production.INFO: count ==2726 [2025-01-03 11:02:31] Production.ERROR: pbx CDR StartTime 2025-01-03 08:02:05 - End Time 2025-01-03 11:02:05 [2025-01-03 11:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165116', 'tblTempUsageDetail_20' ) start [2025-01-03 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165116', 'tblTempUsageDetail_20' ) end [2025-01-03 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165116', 'tblTempVendorCDR_20' ) start [2025-01-03 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165116', 'tblTempVendorCDR_20' ) end [2025-01-03 11:02:31] Production.INFO: ProcessCDR(1,14165116,1,1,2) [2025-01-03 11:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165116', 'tblTempUsageDetail_20' ) start [2025-01-03 11:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165116', 'tblTempUsageDetail_20' ) end [2025-01-03 11:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:02:36] Production.INFO: ==18375== Releasing lock... [2025-01-03 11:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:02:36] Production.INFO: 48.5 MB #Memory Used# [2025-01-03 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:03:05 [end_date_ymd] => 2025-01-03 11:03:05 [RateCDR] => 1 ) [2025-01-03 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:03:05' and `end` < '2025-01-03 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:03:26] Production.INFO: count ==2748 [2025-01-03 11:03:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:03:05 - End Time 2025-01-03 11:03:05 [2025-01-03 11:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165121', 'tblTempUsageDetail_20' ) start [2025-01-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165121', 'tblTempUsageDetail_20' ) end [2025-01-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165121', 'tblTempVendorCDR_20' ) start [2025-01-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165121', 'tblTempVendorCDR_20' ) end [2025-01-03 11:03:27] Production.INFO: ProcessCDR(1,14165121,1,1,2) [2025-01-03 11:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165121', 'tblTempUsageDetail_20' ) start [2025-01-03 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165121', 'tblTempUsageDetail_20' ) end [2025-01-03 11:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:03:30] Production.INFO: ==18486== Releasing lock... [2025-01-03 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:03:30] Production.INFO: 48.75 MB #Memory Used# [2025-01-03 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:04:06 [end_date_ymd] => 2025-01-03 11:04:06 [RateCDR] => 1 ) [2025-01-03 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:04:06' and `end` < '2025-01-03 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:04:31] Production.INFO: count ==2762 [2025-01-03 11:04:32] Production.ERROR: pbx CDR StartTime 2025-01-03 08:04:06 - End Time 2025-01-03 11:04:06 [2025-01-03 11:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165126', 'tblTempUsageDetail_20' ) start [2025-01-03 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165126', 'tblTempUsageDetail_20' ) end [2025-01-03 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165126', 'tblTempVendorCDR_20' ) start [2025-01-03 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165126', 'tblTempVendorCDR_20' ) end [2025-01-03 11:04:32] Production.INFO: ProcessCDR(1,14165126,1,1,2) [2025-01-03 11:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165126', 'tblTempUsageDetail_20' ) start [2025-01-03 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165126', 'tblTempUsageDetail_20' ) end [2025-01-03 11:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:04:36] Production.INFO: ==18600== Releasing lock... [2025-01-03 11:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:04:36] Production.INFO: 48.75 MB #Memory Used# [2025-01-03 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:05:04 [end_date_ymd] => 2025-01-03 11:05:04 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:05:04' and `end` < '2025-01-03 11: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-01-03 11:05:30] Production.INFO: count ==2761 [2025-01-03 11:05:31] Production.ERROR: pbx CDR StartTime 2025-01-03 08:05:04 - End Time 2025-01-03 11:05:04 [2025-01-03 11:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165131', 'tblTempUsageDetail_20' ) start [2025-01-03 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165131', 'tblTempUsageDetail_20' ) end [2025-01-03 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165131', 'tblTempVendorCDR_20' ) start [2025-01-03 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165131', 'tblTempVendorCDR_20' ) end [2025-01-03 11:05:31] Production.INFO: ProcessCDR(1,14165131,1,1,2) [2025-01-03 11:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165131', 'tblTempUsageDetail_20' ) start [2025-01-03 11:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165131', 'tblTempUsageDetail_20' ) end [2025-01-03 11:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:05:36] Production.INFO: ==18793== Releasing lock... [2025-01-03 11:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:05:36] Production.INFO: 48.75 MB #Memory Used# [2025-01-03 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:06:05 [end_date_ymd] => 2025-01-03 11:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:06:05' and `end` < '2025-01-03 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-01-03 11:06:28] Production.INFO: count ==2778 [2025-01-03 11:06:29] Production.ERROR: pbx CDR StartTime 2025-01-03 08:06:05 - End Time 2025-01-03 11:06:05 [2025-01-03 11:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165136', 'tblTempUsageDetail_20' ) start [2025-01-03 11:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165136', 'tblTempUsageDetail_20' ) end [2025-01-03 11:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165136', 'tblTempVendorCDR_20' ) start [2025-01-03 11:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165136', 'tblTempVendorCDR_20' ) end [2025-01-03 11:06:29] Production.INFO: ProcessCDR(1,14165136,1,1,2) [2025-01-03 11:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165136', 'tblTempUsageDetail_20' ) start [2025-01-03 11:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165136', 'tblTempUsageDetail_20' ) end [2025-01-03 11:06:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:06:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:06:33] Production.INFO: ==18907== Releasing lock... [2025-01-03 11:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:06:33] Production.INFO: 49 MB #Memory Used# [2025-01-03 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:07:05 [end_date_ymd] => 2025-01-03 11:07:05 [RateCDR] => 1 ) [2025-01-03 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:07:05' and `end` < '2025-01-03 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:07:24] Production.INFO: count ==2781 [2025-01-03 11:07:25] Production.ERROR: pbx CDR StartTime 2025-01-03 08:07:05 - End Time 2025-01-03 11:07:05 [2025-01-03 11:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165141', 'tblTempUsageDetail_20' ) start [2025-01-03 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165141', 'tblTempUsageDetail_20' ) end [2025-01-03 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165141', 'tblTempVendorCDR_20' ) start [2025-01-03 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165141', 'tblTempVendorCDR_20' ) end [2025-01-03 11:07:25] Production.INFO: ProcessCDR(1,14165141,1,1,2) [2025-01-03 11:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165141', 'tblTempUsageDetail_20' ) start [2025-01-03 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165141', 'tblTempUsageDetail_20' ) end [2025-01-03 11:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:07:30] Production.INFO: ==19019== Releasing lock... [2025-01-03 11:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:07:30] Production.INFO: 49 MB #Memory Used# [2025-01-03 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:08:05 [end_date_ymd] => 2025-01-03 11:08:05 [RateCDR] => 1 ) [2025-01-03 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:08:05' and `end` < '2025-01-03 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:08:30] Production.INFO: count ==2799 [2025-01-03 11:08:31] Production.ERROR: pbx CDR StartTime 2025-01-03 08:08:05 - End Time 2025-01-03 11:08:05 [2025-01-03 11:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165146', 'tblTempUsageDetail_20' ) start [2025-01-03 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165146', 'tblTempUsageDetail_20' ) end [2025-01-03 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165146', 'tblTempVendorCDR_20' ) start [2025-01-03 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165146', 'tblTempVendorCDR_20' ) end [2025-01-03 11:08:31] Production.INFO: ProcessCDR(1,14165146,1,1,2) [2025-01-03 11:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165146', 'tblTempUsageDetail_20' ) start [2025-01-03 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165146', 'tblTempUsageDetail_20' ) end [2025-01-03 11:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:08:36] Production.INFO: ==19248== Releasing lock... [2025-01-03 11:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:08:36] Production.INFO: 49 MB #Memory Used# [2025-01-03 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:09:05 [end_date_ymd] => 2025-01-03 11:09:05 [RateCDR] => 1 ) [2025-01-03 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:09:05' and `end` < '2025-01-03 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:09:25] Production.INFO: count ==2811 [2025-01-03 11:09:26] Production.ERROR: pbx CDR StartTime 2025-01-03 08:09:05 - End Time 2025-01-03 11:09:05 [2025-01-03 11:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165151', 'tblTempUsageDetail_20' ) start [2025-01-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165151', 'tblTempUsageDetail_20' ) end [2025-01-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165151', 'tblTempVendorCDR_20' ) start [2025-01-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165151', 'tblTempVendorCDR_20' ) end [2025-01-03 11:09:26] Production.INFO: ProcessCDR(1,14165151,1,1,2) [2025-01-03 11:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165151', 'tblTempUsageDetail_20' ) start [2025-01-03 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165151', 'tblTempUsageDetail_20' ) end [2025-01-03 11:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:09:31] Production.INFO: ==19358== Releasing lock... [2025-01-03 11:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:09:31] Production.INFO: 49.25 MB #Memory Used# [2025-01-03 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:10:05 [end_date_ymd] => 2025-01-03 11:10:05 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:10:05' and `end` < '2025-01-03 11: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-01-03 11:10:27] Production.INFO: count ==2814 [2025-01-03 11:10:28] Production.ERROR: pbx CDR StartTime 2025-01-03 08:10:05 - End Time 2025-01-03 11:10:05 [2025-01-03 11:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165156', 'tblTempUsageDetail_20' ) start [2025-01-03 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165156', 'tblTempUsageDetail_20' ) end [2025-01-03 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165156', 'tblTempVendorCDR_20' ) start [2025-01-03 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165156', 'tblTempVendorCDR_20' ) end [2025-01-03 11:10:29] Production.INFO: ProcessCDR(1,14165156,1,1,2) [2025-01-03 11:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165156', 'tblTempUsageDetail_20' ) start [2025-01-03 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165156', 'tblTempUsageDetail_20' ) end [2025-01-03 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:10:33] Production.INFO: ==19479== Releasing lock... [2025-01-03 11:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:10:33] Production.INFO: 49.25 MB #Memory Used# [2025-01-03 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:11:05 [end_date_ymd] => 2025-01-03 11:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:11:05' and `end` < '2025-01-03 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-01-03 11:11:27] Production.INFO: count ==2882 [2025-01-03 11:11:28] Production.ERROR: pbx CDR StartTime 2025-01-03 08:11:05 - End Time 2025-01-03 11:11:05 [2025-01-03 11:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165162', 'tblTempUsageDetail_20' ) start [2025-01-03 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165162', 'tblTempUsageDetail_20' ) end [2025-01-03 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165162', 'tblTempVendorCDR_20' ) start [2025-01-03 11:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165162', 'tblTempVendorCDR_20' ) end [2025-01-03 11:11:28] Production.INFO: ProcessCDR(1,14165162,1,1,2) [2025-01-03 11:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165162', 'tblTempUsageDetail_20' ) start [2025-01-03 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165162', 'tblTempUsageDetail_20' ) end [2025-01-03 11:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:11:33] Production.INFO: ==19594== Releasing lock... [2025-01-03 11:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:11:33] Production.INFO: 49.75 MB #Memory Used# [2025-01-03 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:12:05 [end_date_ymd] => 2025-01-03 11:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:12:05' and `end` < '2025-01-03 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-01-03 11:12:21] Production.INFO: count ==2887 [2025-01-03 11:12:22] Production.ERROR: pbx CDR StartTime 2025-01-03 08:12:05 - End Time 2025-01-03 11:12:05 [2025-01-03 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165167', 'tblTempUsageDetail_20' ) start [2025-01-03 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165167', 'tblTempUsageDetail_20' ) end [2025-01-03 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165167', 'tblTempVendorCDR_20' ) start [2025-01-03 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165167', 'tblTempVendorCDR_20' ) end [2025-01-03 11:12:22] Production.INFO: ProcessCDR(1,14165167,1,1,2) [2025-01-03 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165167', 'tblTempUsageDetail_20' ) start [2025-01-03 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165167', 'tblTempUsageDetail_20' ) end [2025-01-03 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:12:27] Production.INFO: ==19778== Releasing lock... [2025-01-03 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:12:27] Production.INFO: 49.75 MB #Memory Used# [2025-01-03 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:13:05 [end_date_ymd] => 2025-01-03 11:13:05 [RateCDR] => 1 ) [2025-01-03 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:13:05' and `end` < '2025-01-03 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:13:25] Production.INFO: count ==2896 [2025-01-03 11:13:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:13:05 - End Time 2025-01-03 11:13:05 [2025-01-03 11:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165172', 'tblTempUsageDetail_20' ) start [2025-01-03 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165172', 'tblTempUsageDetail_20' ) end [2025-01-03 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165172', 'tblTempVendorCDR_20' ) start [2025-01-03 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165172', 'tblTempVendorCDR_20' ) end [2025-01-03 11:13:27] Production.INFO: ProcessCDR(1,14165172,1,1,2) [2025-01-03 11:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165172', 'tblTempUsageDetail_20' ) start [2025-01-03 11:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165172', 'tblTempUsageDetail_20' ) end [2025-01-03 11:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:13:31] Production.INFO: ==19848== Releasing lock... [2025-01-03 11:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:13:31] Production.INFO: 50 MB #Memory Used# [2025-01-03 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:14:05 [end_date_ymd] => 2025-01-03 11:14:05 [RateCDR] => 1 ) [2025-01-03 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:14:05' and `end` < '2025-01-03 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:14:28] Production.INFO: count ==2908 [2025-01-03 11:14:29] Production.ERROR: pbx CDR StartTime 2025-01-03 08:14:05 - End Time 2025-01-03 11:14:05 [2025-01-03 11:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165177', 'tblTempUsageDetail_20' ) start [2025-01-03 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165177', 'tblTempUsageDetail_20' ) end [2025-01-03 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165177', 'tblTempVendorCDR_20' ) start [2025-01-03 11:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165177', 'tblTempVendorCDR_20' ) end [2025-01-03 11:14:29] Production.INFO: ProcessCDR(1,14165177,1,1,2) [2025-01-03 11:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165177', 'tblTempUsageDetail_20' ) start [2025-01-03 11:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165177', 'tblTempUsageDetail_20' ) end [2025-01-03 11:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:14:34] Production.INFO: ==19919== Releasing lock... [2025-01-03 11:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:14:34] Production.INFO: 49.75 MB #Memory Used# [2025-01-03 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:15:05 [end_date_ymd] => 2025-01-03 11:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:15:05' and `end` < '2025-01-03 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-01-03 11:15:28] Production.INFO: count ==2911 [2025-01-03 11:15:29] Production.ERROR: pbx CDR StartTime 2025-01-03 08:15:05 - End Time 2025-01-03 11:15:05 [2025-01-03 11:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165182', 'tblTempUsageDetail_20' ) start [2025-01-03 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165182', 'tblTempUsageDetail_20' ) end [2025-01-03 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165182', 'tblTempVendorCDR_20' ) start [2025-01-03 11:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165182', 'tblTempVendorCDR_20' ) end [2025-01-03 11:15:29] Production.INFO: ProcessCDR(1,14165182,1,1,2) [2025-01-03 11:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165182', 'tblTempUsageDetail_20' ) start [2025-01-03 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165182', 'tblTempUsageDetail_20' ) end [2025-01-03 11:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:15:33] Production.INFO: ==20066== Releasing lock... [2025-01-03 11:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:15:33] Production.INFO: 50.25 MB #Memory Used# [2025-01-03 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:16:05 [end_date_ymd] => 2025-01-03 11:16:05 [RateCDR] => 1 ) [2025-01-03 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:16:05' and `end` < '2025-01-03 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:16:20] Production.INFO: count ==2925 [2025-01-03 11:16:21] Production.ERROR: pbx CDR StartTime 2025-01-03 08:16:05 - End Time 2025-01-03 11:16:05 [2025-01-03 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165187', 'tblTempUsageDetail_20' ) start [2025-01-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165187', 'tblTempUsageDetail_20' ) end [2025-01-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165187', 'tblTempVendorCDR_20' ) start [2025-01-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165187', 'tblTempVendorCDR_20' ) end [2025-01-03 11:16:21] Production.INFO: ProcessCDR(1,14165187,1,1,2) [2025-01-03 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165187', 'tblTempUsageDetail_20' ) start [2025-01-03 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165187', 'tblTempUsageDetail_20' ) end [2025-01-03 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:16:26] Production.INFO: ==20138== Releasing lock... [2025-01-03 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:16:26] Production.INFO: 50.25 MB #Memory Used# [2025-01-03 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:17:05 [end_date_ymd] => 2025-01-03 11:17:05 [RateCDR] => 1 ) [2025-01-03 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:17:05' and `end` < '2025-01-03 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:17:33] Production.INFO: count ==2948 [2025-01-03 11:17:34] Production.ERROR: pbx CDR StartTime 2025-01-03 08:17:05 - End Time 2025-01-03 11:17:05 [2025-01-03 11:17:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165192', 'tblTempUsageDetail_20' ) start [2025-01-03 11:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165192', 'tblTempUsageDetail_20' ) end [2025-01-03 11:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165192', 'tblTempVendorCDR_20' ) start [2025-01-03 11:17:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165192', 'tblTempVendorCDR_20' ) end [2025-01-03 11:17:34] Production.INFO: ProcessCDR(1,14165192,1,1,2) [2025-01-03 11:17:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:17:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:17:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:17:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:17:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165192', 'tblTempUsageDetail_20' ) start [2025-01-03 11:17:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165192', 'tblTempUsageDetail_20' ) end [2025-01-03 11:17:39] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:17:39] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:17:39] Production.INFO: ==20210== Releasing lock... [2025-01-03 11:17:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:17:39] Production.INFO: 50.25 MB #Memory Used# [2025-01-03 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:18:05 [end_date_ymd] => 2025-01-03 11:18:05 [RateCDR] => 1 ) [2025-01-03 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:18:05' and `end` < '2025-01-03 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:18:26] Production.INFO: count ==2976 [2025-01-03 11:18:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:18:05 - End Time 2025-01-03 11:18:05 [2025-01-03 11:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165197', 'tblTempUsageDetail_20' ) start [2025-01-03 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165197', 'tblTempUsageDetail_20' ) end [2025-01-03 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165197', 'tblTempVendorCDR_20' ) start [2025-01-03 11:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165197', 'tblTempVendorCDR_20' ) end [2025-01-03 11:18:28] Production.INFO: ProcessCDR(1,14165197,1,1,2) [2025-01-03 11:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165197', 'tblTempUsageDetail_20' ) start [2025-01-03 11:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165197', 'tblTempUsageDetail_20' ) end [2025-01-03 11:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:18:32] Production.INFO: ==20280== Releasing lock... [2025-01-03 11:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:18:32] Production.INFO: 51.25 MB #Memory Used# [2025-01-03 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:19:05 [end_date_ymd] => 2025-01-03 11:19:05 [RateCDR] => 1 ) [2025-01-03 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:19:05' and `end` < '2025-01-03 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:19:32] Production.INFO: count ==3015 [2025-01-03 11:19:33] Production.ERROR: pbx CDR StartTime 2025-01-03 08:19:05 - End Time 2025-01-03 11:19:05 [2025-01-03 11:19:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165202', 'tblTempUsageDetail_20' ) start [2025-01-03 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165202', 'tblTempUsageDetail_20' ) end [2025-01-03 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165202', 'tblTempVendorCDR_20' ) start [2025-01-03 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165202', 'tblTempVendorCDR_20' ) end [2025-01-03 11:19:33] Production.INFO: ProcessCDR(1,14165202,1,1,2) [2025-01-03 11:19:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:19:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:19:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165202', 'tblTempUsageDetail_20' ) start [2025-01-03 11:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165202', 'tblTempUsageDetail_20' ) end [2025-01-03 11:19:37] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:19:37] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:19:37] Production.INFO: ==20361== Releasing lock... [2025-01-03 11:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:19:37] Production.INFO: 51.75 MB #Memory Used# [2025-01-03 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:20:05 [end_date_ymd] => 2025-01-03 11:20:05 [RateCDR] => 1 ) [2025-01-03 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:20:05' and `end` < '2025-01-03 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:20:32] Production.INFO: count ==3044 [2025-01-03 11:20:33] Production.ERROR: pbx CDR StartTime 2025-01-03 08:20:05 - End Time 2025-01-03 11:20:05 [2025-01-03 11:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165208', 'tblTempUsageDetail_20' ) start [2025-01-03 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165208', 'tblTempUsageDetail_20' ) end [2025-01-03 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165208', 'tblTempVendorCDR_20' ) start [2025-01-03 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165208', 'tblTempVendorCDR_20' ) end [2025-01-03 11:20:33] Production.INFO: ProcessCDR(1,14165208,1,1,2) [2025-01-03 11:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165208', 'tblTempUsageDetail_20' ) start [2025-01-03 11:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165208', 'tblTempUsageDetail_20' ) end [2025-01-03 11:20:38] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:20:38] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:20:38] Production.INFO: ==20433== Releasing lock... [2025-01-03 11:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:20:38] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:21:05 [end_date_ymd] => 2025-01-03 11:21:05 [RateCDR] => 1 ) [2025-01-03 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:21:05' and `end` < '2025-01-03 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:21:24] Production.INFO: count ==3120 [2025-01-03 11:21:25] Production.ERROR: pbx CDR StartTime 2025-01-03 08:21:05 - End Time 2025-01-03 11:21:05 [2025-01-03 11:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165213', 'tblTempUsageDetail_20' ) start [2025-01-03 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165213', 'tblTempUsageDetail_20' ) end [2025-01-03 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165213', 'tblTempVendorCDR_20' ) start [2025-01-03 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165213', 'tblTempVendorCDR_20' ) end [2025-01-03 11:21:25] Production.INFO: ProcessCDR(1,14165213,1,1,2) [2025-01-03 11:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165213', 'tblTempUsageDetail_20' ) start [2025-01-03 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165213', 'tblTempUsageDetail_20' ) end [2025-01-03 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:21:30] Production.INFO: ==20505== Releasing lock... [2025-01-03 11:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:21:30] Production.INFO: 51.75 MB #Memory Used# [2025-01-03 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:22:05 [end_date_ymd] => 2025-01-03 11:22:05 [RateCDR] => 1 ) [2025-01-03 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:22:05' and `end` < '2025-01-03 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:22:24] Production.INFO: count ==3111 [2025-01-03 11:22:25] Production.ERROR: pbx CDR StartTime 2025-01-03 08:22:05 - End Time 2025-01-03 11:22:05 [2025-01-03 11:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165218', 'tblTempUsageDetail_20' ) start [2025-01-03 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165218', 'tblTempUsageDetail_20' ) end [2025-01-03 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165218', 'tblTempVendorCDR_20' ) start [2025-01-03 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165218', 'tblTempVendorCDR_20' ) end [2025-01-03 11:22:25] Production.INFO: ProcessCDR(1,14165218,1,1,2) [2025-01-03 11:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165218', 'tblTempUsageDetail_20' ) start [2025-01-03 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165218', 'tblTempUsageDetail_20' ) end [2025-01-03 11:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:22:30] Production.INFO: ==20580== Releasing lock... [2025-01-03 11:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:22:30] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:23:05 [end_date_ymd] => 2025-01-03 11:23:05 [RateCDR] => 1 ) [2025-01-03 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:23:05' and `end` < '2025-01-03 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:23:18] Production.INFO: count ==3112 [2025-01-03 11:23:19] Production.ERROR: pbx CDR StartTime 2025-01-03 08:23:05 - End Time 2025-01-03 11:23:05 [2025-01-03 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165223', 'tblTempUsageDetail_20' ) start [2025-01-03 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165223', 'tblTempUsageDetail_20' ) end [2025-01-03 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165223', 'tblTempVendorCDR_20' ) start [2025-01-03 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165223', 'tblTempVendorCDR_20' ) end [2025-01-03 11:23:19] Production.INFO: ProcessCDR(1,14165223,1,1,2) [2025-01-03 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165223', 'tblTempUsageDetail_20' ) start [2025-01-03 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165223', 'tblTempUsageDetail_20' ) end [2025-01-03 11:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:23:24] Production.INFO: ==20691== Releasing lock... [2025-01-03 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:23:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:24:05 [end_date_ymd] => 2025-01-03 11:24:05 [RateCDR] => 1 ) [2025-01-03 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:24:05' and `end` < '2025-01-03 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:24:21] Production.INFO: count ==3139 [2025-01-03 11:24:23] Production.ERROR: pbx CDR StartTime 2025-01-03 08:24:05 - End Time 2025-01-03 11:24:05 [2025-01-03 11:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165228', 'tblTempUsageDetail_20' ) start [2025-01-03 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165228', 'tblTempUsageDetail_20' ) end [2025-01-03 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165228', 'tblTempVendorCDR_20' ) start [2025-01-03 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165228', 'tblTempVendorCDR_20' ) end [2025-01-03 11:24:23] Production.INFO: ProcessCDR(1,14165228,1,1,2) [2025-01-03 11:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165228', 'tblTempUsageDetail_20' ) start [2025-01-03 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165228', 'tblTempUsageDetail_20' ) end [2025-01-03 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:24:27] Production.INFO: ==20762== Releasing lock... [2025-01-03 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:24:27] Production.INFO: 51.75 MB #Memory Used# [2025-01-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:25:05 [end_date_ymd] => 2025-01-03 11:25:05 [RateCDR] => 1 ) [2025-01-03 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:25:05' and `end` < '2025-01-03 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:25:29] Production.INFO: count ==3149 [2025-01-03 11:25:30] Production.ERROR: pbx CDR StartTime 2025-01-03 08:25:05 - End Time 2025-01-03 11:25:05 [2025-01-03 11:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165233', 'tblTempUsageDetail_20' ) start [2025-01-03 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165233', 'tblTempUsageDetail_20' ) end [2025-01-03 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165233', 'tblTempVendorCDR_20' ) start [2025-01-03 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165233', 'tblTempVendorCDR_20' ) end [2025-01-03 11:25:30] Production.INFO: ProcessCDR(1,14165233,1,1,2) [2025-01-03 11:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165233', 'tblTempUsageDetail_20' ) start [2025-01-03 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165233', 'tblTempUsageDetail_20' ) end [2025-01-03 11:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:25:35] Production.INFO: ==20833== Releasing lock... [2025-01-03 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:25:35] Production.INFO: 52.5 MB #Memory Used# [2025-01-03 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:26:05 [end_date_ymd] => 2025-01-03 11:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:26:05' and `end` < '2025-01-03 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-01-03 11:26:30] Production.INFO: count ==3157 [2025-01-03 11:26:31] Production.ERROR: pbx CDR StartTime 2025-01-03 08:26:05 - End Time 2025-01-03 11:26:05 [2025-01-03 11:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165238', 'tblTempUsageDetail_20' ) start [2025-01-03 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165238', 'tblTempUsageDetail_20' ) end [2025-01-03 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165238', 'tblTempVendorCDR_20' ) start [2025-01-03 11:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165238', 'tblTempVendorCDR_20' ) end [2025-01-03 11:26:31] Production.INFO: ProcessCDR(1,14165238,1,1,2) [2025-01-03 11:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:26:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165238', 'tblTempUsageDetail_20' ) start [2025-01-03 11:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165238', 'tblTempUsageDetail_20' ) end [2025-01-03 11:26:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:26:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:26:36] Production.INFO: ==20903== Releasing lock... [2025-01-03 11:26:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:26:36] Production.INFO: 52 MB #Memory Used# [2025-01-03 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:27:05 [end_date_ymd] => 2025-01-03 11:27:05 [RateCDR] => 1 ) [2025-01-03 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:27:05' and `end` < '2025-01-03 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:27:22] Production.INFO: count ==3157 [2025-01-03 11:27:23] Production.ERROR: pbx CDR StartTime 2025-01-03 08:27:05 - End Time 2025-01-03 11:27:05 [2025-01-03 11:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165243', 'tblTempUsageDetail_20' ) start [2025-01-03 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165243', 'tblTempUsageDetail_20' ) end [2025-01-03 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165243', 'tblTempVendorCDR_20' ) start [2025-01-03 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165243', 'tblTempVendorCDR_20' ) end [2025-01-03 11:27:24] Production.INFO: ProcessCDR(1,14165243,1,1,2) [2025-01-03 11:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165243', 'tblTempUsageDetail_20' ) start [2025-01-03 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165243', 'tblTempUsageDetail_20' ) end [2025-01-03 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:27:28] Production.INFO: ==20973== Releasing lock... [2025-01-03 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:27:28] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:28:05 [end_date_ymd] => 2025-01-03 11:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:28:05' and `end` < '2025-01-03 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-01-03 11:28:18] Production.INFO: count ==3160 [2025-01-03 11:28:19] Production.ERROR: pbx CDR StartTime 2025-01-03 08:28:05 - End Time 2025-01-03 11:28:05 [2025-01-03 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165248', 'tblTempUsageDetail_20' ) start [2025-01-03 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165248', 'tblTempUsageDetail_20' ) end [2025-01-03 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165248', 'tblTempVendorCDR_20' ) start [2025-01-03 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165248', 'tblTempVendorCDR_20' ) end [2025-01-03 11:28:19] Production.INFO: ProcessCDR(1,14165248,1,1,2) [2025-01-03 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165248', 'tblTempUsageDetail_20' ) start [2025-01-03 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165248', 'tblTempUsageDetail_20' ) end [2025-01-03 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:28:24] Production.INFO: ==21042== Releasing lock... [2025-01-03 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:28:24] Production.INFO: 52 MB #Memory Used# [2025-01-03 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:29:05 [end_date_ymd] => 2025-01-03 11:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:29:05' and `end` < '2025-01-03 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-01-03 11:29:22] Production.INFO: count ==3185 [2025-01-03 11:29:24] Production.ERROR: pbx CDR StartTime 2025-01-03 08:29:05 - End Time 2025-01-03 11:29:05 [2025-01-03 11:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165253', 'tblTempUsageDetail_20' ) start [2025-01-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165253', 'tblTempUsageDetail_20' ) end [2025-01-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165253', 'tblTempVendorCDR_20' ) start [2025-01-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165253', 'tblTempVendorCDR_20' ) end [2025-01-03 11:29:24] Production.INFO: ProcessCDR(1,14165253,1,1,2) [2025-01-03 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165253', 'tblTempUsageDetail_20' ) start [2025-01-03 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165253', 'tblTempUsageDetail_20' ) end [2025-01-03 11:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:29:29] Production.INFO: ==21117== Releasing lock... [2025-01-03 11:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:29:29] Production.INFO: 53 MB #Memory Used# [2025-01-03 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:30:06 [end_date_ymd] => 2025-01-03 11:30:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:30:06' and `end` < '2025-01-03 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-01-03 11:30:24] Production.INFO: count ==3204 [2025-01-03 11:30:26] Production.ERROR: pbx CDR StartTime 2025-01-03 08:30:06 - End Time 2025-01-03 11:30:06 [2025-01-03 11:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165258', 'tblTempUsageDetail_20' ) start [2025-01-03 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165258', 'tblTempUsageDetail_20' ) end [2025-01-03 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165258', 'tblTempVendorCDR_20' ) start [2025-01-03 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165258', 'tblTempVendorCDR_20' ) end [2025-01-03 11:30:26] Production.INFO: ProcessCDR(1,14165258,1,1,2) [2025-01-03 11:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165258', 'tblTempUsageDetail_20' ) start [2025-01-03 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165258', 'tblTempUsageDetail_20' ) end [2025-01-03 11:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:30:31] Production.INFO: ==21190== Releasing lock... [2025-01-03 11:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:30:31] Production.INFO: 53 MB #Memory Used# [2025-01-03 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:31:05 [end_date_ymd] => 2025-01-03 11:31:05 [RateCDR] => 1 ) [2025-01-03 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:31:05' and `end` < '2025-01-03 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:31:23] Production.INFO: count ==3290 [2025-01-03 11:31:24] Production.ERROR: pbx CDR StartTime 2025-01-03 08:31:05 - End Time 2025-01-03 11:31:05 [2025-01-03 11:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165264', 'tblTempUsageDetail_20' ) start [2025-01-03 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165264', 'tblTempUsageDetail_20' ) end [2025-01-03 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165264', 'tblTempVendorCDR_20' ) start [2025-01-03 11:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165264', 'tblTempVendorCDR_20' ) end [2025-01-03 11:31:24] Production.INFO: ProcessCDR(1,14165264,1,1,2) [2025-01-03 11:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165264', 'tblTempUsageDetail_20' ) start [2025-01-03 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165264', 'tblTempUsageDetail_20' ) end [2025-01-03 11:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:31:29] Production.INFO: ==21262== Releasing lock... [2025-01-03 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:31:29] Production.INFO: 54 MB #Memory Used# [2025-01-03 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:32:04 [end_date_ymd] => 2025-01-03 11:32:04 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:32:04' and `end` < '2025-01-03 11: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-01-03 11:32:27] Production.INFO: count ==3296 [2025-01-03 11:32:28] Production.ERROR: pbx CDR StartTime 2025-01-03 08:32:04 - End Time 2025-01-03 11:32:04 [2025-01-03 11:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165269', 'tblTempUsageDetail_20' ) start [2025-01-03 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165269', 'tblTempUsageDetail_20' ) end [2025-01-03 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165269', 'tblTempVendorCDR_20' ) start [2025-01-03 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165269', 'tblTempVendorCDR_20' ) end [2025-01-03 11:32:28] Production.INFO: ProcessCDR(1,14165269,1,1,2) [2025-01-03 11:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165269', 'tblTempUsageDetail_20' ) start [2025-01-03 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165269', 'tblTempUsageDetail_20' ) end [2025-01-03 11:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:32:33] Production.INFO: ==21338== Releasing lock... [2025-01-03 11:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:32:33] Production.INFO: 53.75 MB #Memory Used# [2025-01-03 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:33:05 [end_date_ymd] => 2025-01-03 11:33:05 [RateCDR] => 1 ) [2025-01-03 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:33:05' and `end` < '2025-01-03 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:33:24] Production.INFO: count ==3319 [2025-01-03 11:33:25] Production.ERROR: pbx CDR StartTime 2025-01-03 08:33:05 - End Time 2025-01-03 11:33:05 [2025-01-03 11:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165274', 'tblTempUsageDetail_20' ) start [2025-01-03 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165274', 'tblTempUsageDetail_20' ) end [2025-01-03 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165274', 'tblTempVendorCDR_20' ) start [2025-01-03 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165274', 'tblTempVendorCDR_20' ) end [2025-01-03 11:33:25] Production.INFO: ProcessCDR(1,14165274,1,1,2) [2025-01-03 11:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165274', 'tblTempUsageDetail_20' ) start [2025-01-03 11:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165274', 'tblTempUsageDetail_20' ) end [2025-01-03 11:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:33:30] Production.INFO: ==21411== Releasing lock... [2025-01-03 11:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:33:30] Production.INFO: 53 MB #Memory Used# [2025-01-03 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:34:05 [end_date_ymd] => 2025-01-03 11:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:34:05' and `end` < '2025-01-03 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-01-03 11:34:24] Production.INFO: count ==3335 [2025-01-03 11:34:26] Production.ERROR: pbx CDR StartTime 2025-01-03 08:34:05 - End Time 2025-01-03 11:34:05 [2025-01-03 11:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165279', 'tblTempUsageDetail_20' ) start [2025-01-03 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165279', 'tblTempUsageDetail_20' ) end [2025-01-03 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165279', 'tblTempVendorCDR_20' ) start [2025-01-03 11:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165279', 'tblTempVendorCDR_20' ) end [2025-01-03 11:34:26] Production.INFO: ProcessCDR(1,14165279,1,1,2) [2025-01-03 11:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165279', 'tblTempUsageDetail_20' ) start [2025-01-03 11:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165279', 'tblTempUsageDetail_20' ) end [2025-01-03 11:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:34:31] Production.INFO: ==21482== Releasing lock... [2025-01-03 11:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:34:31] Production.INFO: 53.25 MB #Memory Used# [2025-01-03 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:35:04 [end_date_ymd] => 2025-01-03 11:35:04 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:35:04' and `end` < '2025-01-03 11: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-01-03 11:35:29] Production.INFO: count ==3337 [2025-01-03 11:35:30] Production.ERROR: pbx CDR StartTime 2025-01-03 08:35:04 - End Time 2025-01-03 11:35:04 [2025-01-03 11:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165284', 'tblTempUsageDetail_20' ) start [2025-01-03 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165284', 'tblTempUsageDetail_20' ) end [2025-01-03 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165284', 'tblTempVendorCDR_20' ) start [2025-01-03 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165284', 'tblTempVendorCDR_20' ) end [2025-01-03 11:35:30] Production.INFO: ProcessCDR(1,14165284,1,1,2) [2025-01-03 11:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165284', 'tblTempUsageDetail_20' ) start [2025-01-03 11:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165284', 'tblTempUsageDetail_20' ) end [2025-01-03 11:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:35:35] Production.INFO: ==21551== Releasing lock... [2025-01-03 11:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:35:35] Production.INFO: 53 MB #Memory Used# [2025-01-03 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:36:05 [end_date_ymd] => 2025-01-03 11:36:05 [RateCDR] => 1 ) [2025-01-03 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:36:05' and `end` < '2025-01-03 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:36:26] Production.INFO: count ==3341 [2025-01-03 11:36:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:36:05 - End Time 2025-01-03 11:36:05 [2025-01-03 11:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165289', 'tblTempUsageDetail_20' ) start [2025-01-03 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165289', 'tblTempUsageDetail_20' ) end [2025-01-03 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165289', 'tblTempVendorCDR_20' ) start [2025-01-03 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165289', 'tblTempVendorCDR_20' ) end [2025-01-03 11:36:28] Production.INFO: ProcessCDR(1,14165289,1,1,2) [2025-01-03 11:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165289', 'tblTempUsageDetail_20' ) start [2025-01-03 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165289', 'tblTempUsageDetail_20' ) end [2025-01-03 11:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:36:32] Production.INFO: ==21624== Releasing lock... [2025-01-03 11:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:36:32] Production.INFO: 53.25 MB #Memory Used# [2025-01-03 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:37:04 [end_date_ymd] => 2025-01-03 11:37:04 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:37:04' and `end` < '2025-01-03 11: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-01-03 11:37:29] Production.INFO: count ==3361 [2025-01-03 11:37:30] Production.ERROR: pbx CDR StartTime 2025-01-03 08:37:04 - End Time 2025-01-03 11:37:04 [2025-01-03 11:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165294', 'tblTempUsageDetail_20' ) start [2025-01-03 11:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165294', 'tblTempUsageDetail_20' ) end [2025-01-03 11:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165294', 'tblTempVendorCDR_20' ) start [2025-01-03 11:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165294', 'tblTempVendorCDR_20' ) end [2025-01-03 11:37:30] Production.INFO: ProcessCDR(1,14165294,1,1,2) [2025-01-03 11:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165294', 'tblTempUsageDetail_20' ) start [2025-01-03 11:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165294', 'tblTempUsageDetail_20' ) end [2025-01-03 11:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:37:35] Production.INFO: ==21696== Releasing lock... [2025-01-03 11:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:37:35] Production.INFO: 53.25 MB #Memory Used# [2025-01-03 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:38:05 [end_date_ymd] => 2025-01-03 11:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:38:05' and `end` < '2025-01-03 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-01-03 11:38:27] Production.INFO: count ==3393 [2025-01-03 11:38:28] Production.ERROR: pbx CDR StartTime 2025-01-03 08:38:05 - End Time 2025-01-03 11:38:05 [2025-01-03 11:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165299', 'tblTempUsageDetail_20' ) start [2025-01-03 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165299', 'tblTempUsageDetail_20' ) end [2025-01-03 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165299', 'tblTempVendorCDR_20' ) start [2025-01-03 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165299', 'tblTempVendorCDR_20' ) end [2025-01-03 11:38:28] Production.INFO: ProcessCDR(1,14165299,1,1,2) [2025-01-03 11:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165299', 'tblTempUsageDetail_20' ) start [2025-01-03 11:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165299', 'tblTempUsageDetail_20' ) end [2025-01-03 11:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:38:33] Production.INFO: ==21768== Releasing lock... [2025-01-03 11:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:38:33] Production.INFO: 53.5 MB #Memory Used# [2025-01-03 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:39:05 [end_date_ymd] => 2025-01-03 11:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:39:05' and `end` < '2025-01-03 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-01-03 11:39:29] Production.INFO: count ==3434 [2025-01-03 11:39:30] Production.ERROR: pbx CDR StartTime 2025-01-03 08:39:05 - End Time 2025-01-03 11:39:05 [2025-01-03 11:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165304', 'tblTempUsageDetail_20' ) start [2025-01-03 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165304', 'tblTempUsageDetail_20' ) end [2025-01-03 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165304', 'tblTempVendorCDR_20' ) start [2025-01-03 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165304', 'tblTempVendorCDR_20' ) end [2025-01-03 11:39:30] Production.INFO: ProcessCDR(1,14165304,1,1,2) [2025-01-03 11:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165304', 'tblTempUsageDetail_20' ) start [2025-01-03 11:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165304', 'tblTempUsageDetail_20' ) end [2025-01-03 11:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:39:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:39:35] Production.INFO: ==21877== Releasing lock... [2025-01-03 11:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:39:35] Production.INFO: 53.75 MB #Memory Used# [2025-01-03 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:40:05 [end_date_ymd] => 2025-01-03 11:40:05 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:40:05' and `end` < '2025-01-03 11: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-01-03 11:40:26] Production.INFO: count ==3440 [2025-01-03 11:40:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:40:05 - End Time 2025-01-03 11:40:05 [2025-01-03 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165310', 'tblTempUsageDetail_20' ) start [2025-01-03 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165310', 'tblTempUsageDetail_20' ) end [2025-01-03 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165310', 'tblTempVendorCDR_20' ) start [2025-01-03 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165310', 'tblTempVendorCDR_20' ) end [2025-01-03 11:40:27] Production.INFO: ProcessCDR(1,14165310,1,1,2) [2025-01-03 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165310', 'tblTempUsageDetail_20' ) start [2025-01-03 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165310', 'tblTempUsageDetail_20' ) end [2025-01-03 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:40:32] Production.INFO: ==21949== Releasing lock... [2025-01-03 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:40:32] Production.INFO: 54 MB #Memory Used# [2025-01-03 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:41:05 [end_date_ymd] => 2025-01-03 11:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:41:05' and `end` < '2025-01-03 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-01-03 11:41:26] Production.INFO: count ==3487 [2025-01-03 11:41:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:41:05 - End Time 2025-01-03 11:41:05 [2025-01-03 11:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165315', 'tblTempUsageDetail_20' ) start [2025-01-03 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165315', 'tblTempUsageDetail_20' ) end [2025-01-03 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165315', 'tblTempVendorCDR_20' ) start [2025-01-03 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165315', 'tblTempVendorCDR_20' ) end [2025-01-03 11:41:27] Production.INFO: ProcessCDR(1,14165315,1,1,2) [2025-01-03 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165315', 'tblTempUsageDetail_20' ) start [2025-01-03 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165315', 'tblTempUsageDetail_20' ) end [2025-01-03 11:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:41:32] Production.INFO: ==22021== Releasing lock... [2025-01-03 11:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:41:32] Production.INFO: 54.5 MB #Memory Used# [2025-01-03 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:42:05 [end_date_ymd] => 2025-01-03 11:42:05 [RateCDR] => 1 ) [2025-01-03 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:42:05' and `end` < '2025-01-03 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:42:23] Production.INFO: count ==3515 [2025-01-03 11:42:24] Production.ERROR: pbx CDR StartTime 2025-01-03 08:42:05 - End Time 2025-01-03 11:42:05 [2025-01-03 11:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165320', 'tblTempUsageDetail_20' ) start [2025-01-03 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165320', 'tblTempUsageDetail_20' ) end [2025-01-03 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165320', 'tblTempVendorCDR_20' ) start [2025-01-03 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165320', 'tblTempVendorCDR_20' ) end [2025-01-03 11:42:24] Production.INFO: ProcessCDR(1,14165320,1,1,2) [2025-01-03 11:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165320', 'tblTempUsageDetail_20' ) start [2025-01-03 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165320', 'tblTempUsageDetail_20' ) end [2025-01-03 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:42:28] Production.INFO: ==22094== Releasing lock... [2025-01-03 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:42:28] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:43:05 [end_date_ymd] => 2025-01-03 11:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:43:05' and `end` < '2025-01-03 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-01-03 11:43:20] Production.INFO: count ==3528 [2025-01-03 11:43:21] Production.ERROR: pbx CDR StartTime 2025-01-03 08:43:05 - End Time 2025-01-03 11:43:05 [2025-01-03 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165325', 'tblTempUsageDetail_20' ) start [2025-01-03 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165325', 'tblTempUsageDetail_20' ) end [2025-01-03 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165325', 'tblTempVendorCDR_20' ) start [2025-01-03 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165325', 'tblTempVendorCDR_20' ) end [2025-01-03 11:43:21] Production.INFO: ProcessCDR(1,14165325,1,1,2) [2025-01-03 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165325', 'tblTempUsageDetail_20' ) start [2025-01-03 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165325', 'tblTempUsageDetail_20' ) end [2025-01-03 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:43:26] Production.INFO: ==22166== Releasing lock... [2025-01-03 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:43:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:44:05 [end_date_ymd] => 2025-01-03 11:44:05 [RateCDR] => 1 ) [2025-01-03 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:44:05' and `end` < '2025-01-03 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:44:18] Production.INFO: count ==3559 [2025-01-03 11:44:19] Production.ERROR: pbx CDR StartTime 2025-01-03 08:44:05 - End Time 2025-01-03 11:44:05 [2025-01-03 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165330', 'tblTempUsageDetail_20' ) start [2025-01-03 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165330', 'tblTempUsageDetail_20' ) end [2025-01-03 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165330', 'tblTempVendorCDR_20' ) start [2025-01-03 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165330', 'tblTempVendorCDR_20' ) end [2025-01-03 11:44:19] Production.INFO: ProcessCDR(1,14165330,1,1,2) [2025-01-03 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165330', 'tblTempUsageDetail_20' ) start [2025-01-03 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165330', 'tblTempUsageDetail_20' ) end [2025-01-03 11:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:44:24] Production.INFO: ==22235== Releasing lock... [2025-01-03 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:44:24] Production.INFO: 55 MB #Memory Used# [2025-01-03 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:45:04 [end_date_ymd] => 2025-01-03 11:45:04 [RateCDR] => 1 ) [2025-01-03 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:45:04' and `end` < '2025-01-03 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:45:30] Production.INFO: count ==3564 [2025-01-03 11:45:31] Production.ERROR: pbx CDR StartTime 2025-01-03 08:45:04 - End Time 2025-01-03 11:45:04 [2025-01-03 11:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165335', 'tblTempUsageDetail_20' ) start [2025-01-03 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165335', 'tblTempUsageDetail_20' ) end [2025-01-03 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165335', 'tblTempVendorCDR_20' ) start [2025-01-03 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165335', 'tblTempVendorCDR_20' ) end [2025-01-03 11:45:31] Production.INFO: ProcessCDR(1,14165335,1,1,2) [2025-01-03 11:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165335', 'tblTempUsageDetail_20' ) start [2025-01-03 11:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165335', 'tblTempUsageDetail_20' ) end [2025-01-03 11:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:45:35] Production.INFO: ==22310== Releasing lock... [2025-01-03 11:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:45:35] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:46:05 [end_date_ymd] => 2025-01-03 11:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:46:05' and `end` < '2025-01-03 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-01-03 11:46:25] Production.INFO: count ==3570 [2025-01-03 11:46:26] Production.ERROR: pbx CDR StartTime 2025-01-03 08:46:05 - End Time 2025-01-03 11:46:05 [2025-01-03 11:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165340', 'tblTempUsageDetail_20' ) start [2025-01-03 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165340', 'tblTempUsageDetail_20' ) end [2025-01-03 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165340', 'tblTempVendorCDR_20' ) start [2025-01-03 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165340', 'tblTempVendorCDR_20' ) end [2025-01-03 11:46:26] Production.INFO: ProcessCDR(1,14165340,1,1,2) [2025-01-03 11:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165340', 'tblTempUsageDetail_20' ) start [2025-01-03 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165340', 'tblTempUsageDetail_20' ) end [2025-01-03 11:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:46:30] Production.INFO: ==22380== Releasing lock... [2025-01-03 11:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:46:30] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:47:04 [end_date_ymd] => 2025-01-03 11:47:04 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:47:04' and `end` < '2025-01-03 11: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-01-03 11:47:24] Production.INFO: count ==3577 [2025-01-03 11:47:25] Production.ERROR: pbx CDR StartTime 2025-01-03 08:47:04 - End Time 2025-01-03 11:47:04 [2025-01-03 11:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165345', 'tblTempUsageDetail_20' ) start [2025-01-03 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165345', 'tblTempUsageDetail_20' ) end [2025-01-03 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165345', 'tblTempVendorCDR_20' ) start [2025-01-03 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165345', 'tblTempVendorCDR_20' ) end [2025-01-03 11:47:25] Production.INFO: ProcessCDR(1,14165345,1,1,2) [2025-01-03 11:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165345', 'tblTempUsageDetail_20' ) start [2025-01-03 11:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165345', 'tblTempUsageDetail_20' ) end [2025-01-03 11:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:47:30] Production.INFO: ==22450== Releasing lock... [2025-01-03 11:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:47:30] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:48:05 [end_date_ymd] => 2025-01-03 11:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:48:05' and `end` < '2025-01-03 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-01-03 11:48:28] Production.INFO: count ==3595 [2025-01-03 11:48:30] Production.ERROR: pbx CDR StartTime 2025-01-03 08:48:05 - End Time 2025-01-03 11:48:05 [2025-01-03 11:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165350', 'tblTempUsageDetail_20' ) start [2025-01-03 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165350', 'tblTempUsageDetail_20' ) end [2025-01-03 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165350', 'tblTempVendorCDR_20' ) start [2025-01-03 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165350', 'tblTempVendorCDR_20' ) end [2025-01-03 11:48:30] Production.INFO: ProcessCDR(1,14165350,1,1,2) [2025-01-03 11:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165350', 'tblTempUsageDetail_20' ) start [2025-01-03 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165350', 'tblTempUsageDetail_20' ) end [2025-01-03 11:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:48:34] Production.INFO: ==22526== Releasing lock... [2025-01-03 11:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:48:34] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:49:04 [end_date_ymd] => 2025-01-03 11:49:04 [RateCDR] => 1 ) [2025-01-03 11: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-01-03 08:49:04' and `end` < '2025-01-03 11: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-01-03 11:49:26] Production.INFO: count ==3613 [2025-01-03 11:49:27] Production.ERROR: pbx CDR StartTime 2025-01-03 08:49:04 - End Time 2025-01-03 11:49:04 [2025-01-03 11:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165355', 'tblTempUsageDetail_20' ) start [2025-01-03 11:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165355', 'tblTempUsageDetail_20' ) end [2025-01-03 11:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165355', 'tblTempVendorCDR_20' ) start [2025-01-03 11:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165355', 'tblTempVendorCDR_20' ) end [2025-01-03 11:49:27] Production.INFO: ProcessCDR(1,14165355,1,1,2) [2025-01-03 11:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165355', 'tblTempUsageDetail_20' ) start [2025-01-03 11:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165355', 'tblTempUsageDetail_20' ) end [2025-01-03 11:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:49:32] Production.INFO: ==22597== Releasing lock... [2025-01-03 11:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:49:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:50:05 [end_date_ymd] => 2025-01-03 11:50:05 [RateCDR] => 1 ) [2025-01-03 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:50:05' and `end` < '2025-01-03 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:50:25] Production.INFO: count ==3631 [2025-01-03 11:50:26] Production.ERROR: pbx CDR StartTime 2025-01-03 08:50:05 - End Time 2025-01-03 11:50:05 [2025-01-03 11:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165360', 'tblTempUsageDetail_20' ) start [2025-01-03 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165360', 'tblTempUsageDetail_20' ) end [2025-01-03 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165360', 'tblTempVendorCDR_20' ) start [2025-01-03 11:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165360', 'tblTempVendorCDR_20' ) end [2025-01-03 11:50:26] Production.INFO: ProcessCDR(1,14165360,1,1,2) [2025-01-03 11:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165360', 'tblTempUsageDetail_20' ) start [2025-01-03 11:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165360', 'tblTempUsageDetail_20' ) end [2025-01-03 11:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:50:31] Production.INFO: ==22670== Releasing lock... [2025-01-03 11:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:50:31] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:51:05 [end_date_ymd] => 2025-01-03 11:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:51:05' and `end` < '2025-01-03 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-01-03 11:51:21] Production.INFO: count ==3665 [2025-01-03 11:51:22] Production.ERROR: pbx CDR StartTime 2025-01-03 08:51:05 - End Time 2025-01-03 11:51:05 [2025-01-03 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165366', 'tblTempUsageDetail_20' ) start [2025-01-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165366', 'tblTempUsageDetail_20' ) end [2025-01-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165366', 'tblTempVendorCDR_20' ) start [2025-01-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165366', 'tblTempVendorCDR_20' ) end [2025-01-03 11:51:22] Production.INFO: ProcessCDR(1,14165366,1,1,2) [2025-01-03 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165366', 'tblTempUsageDetail_20' ) start [2025-01-03 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165366', 'tblTempUsageDetail_20' ) end [2025-01-03 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:51:26] Production.INFO: ==22745== Releasing lock... [2025-01-03 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:51:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:52:04 [end_date_ymd] => 2025-01-03 11:52:04 [RateCDR] => 1 ) [2025-01-03 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:52:04' and `end` < '2025-01-03 11:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:52:18] Production.INFO: count ==3670 [2025-01-03 11:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 08:52:04 - End Time 2025-01-03 11:52:04 [2025-01-03 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165371', 'tblTempUsageDetail_20' ) start [2025-01-03 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165371', 'tblTempUsageDetail_20' ) end [2025-01-03 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165371', 'tblTempVendorCDR_20' ) start [2025-01-03 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165371', 'tblTempVendorCDR_20' ) end [2025-01-03 11:52:19] Production.INFO: ProcessCDR(1,14165371,1,1,2) [2025-01-03 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165371', 'tblTempUsageDetail_20' ) start [2025-01-03 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165371', 'tblTempUsageDetail_20' ) end [2025-01-03 11:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:52:24] Production.INFO: ==22815== Releasing lock... [2025-01-03 11:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:52:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:53:05 [end_date_ymd] => 2025-01-03 11:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:53:05' and `end` < '2025-01-03 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-01-03 11:53:20] Production.INFO: count ==3680 [2025-01-03 11:53:21] Production.ERROR: pbx CDR StartTime 2025-01-03 08:53:05 - End Time 2025-01-03 11:53:05 [2025-01-03 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165376', 'tblTempUsageDetail_20' ) start [2025-01-03 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165376', 'tblTempUsageDetail_20' ) end [2025-01-03 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165376', 'tblTempVendorCDR_20' ) start [2025-01-03 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165376', 'tblTempVendorCDR_20' ) end [2025-01-03 11:53:21] Production.INFO: ProcessCDR(1,14165376,1,1,2) [2025-01-03 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165376', 'tblTempUsageDetail_20' ) start [2025-01-03 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165376', 'tblTempUsageDetail_20' ) end [2025-01-03 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:53:26] Production.INFO: ==22885== Releasing lock... [2025-01-03 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:53:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:54:04 [end_date_ymd] => 2025-01-03 11:54:04 [RateCDR] => 1 ) [2025-01-03 11:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:54:04' and `end` < '2025-01-03 11:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:54:22] Production.INFO: count ==3695 [2025-01-03 11:54:23] Production.ERROR: pbx CDR StartTime 2025-01-03 08:54:04 - End Time 2025-01-03 11:54:04 [2025-01-03 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165381', 'tblTempUsageDetail_20' ) start [2025-01-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165381', 'tblTempUsageDetail_20' ) end [2025-01-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165381', 'tblTempVendorCDR_20' ) start [2025-01-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165381', 'tblTempVendorCDR_20' ) end [2025-01-03 11:54:23] Production.INFO: ProcessCDR(1,14165381,1,1,2) [2025-01-03 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165381', 'tblTempUsageDetail_20' ) start [2025-01-03 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165381', 'tblTempUsageDetail_20' ) end [2025-01-03 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:54:27] Production.INFO: ==22993== Releasing lock... [2025-01-03 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:54:27] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:55:05 [end_date_ymd] => 2025-01-03 11:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:55:05' and `end` < '2025-01-03 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-01-03 11:55:27] Production.INFO: count ==3728 [2025-01-03 11:55:29] Production.ERROR: pbx CDR StartTime 2025-01-03 08:55:05 - End Time 2025-01-03 11:55:05 [2025-01-03 11:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165386', 'tblTempUsageDetail_20' ) start [2025-01-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165386', 'tblTempUsageDetail_20' ) end [2025-01-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165386', 'tblTempVendorCDR_20' ) start [2025-01-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165386', 'tblTempVendorCDR_20' ) end [2025-01-03 11:55:29] Production.INFO: ProcessCDR(1,14165386,1,1,2) [2025-01-03 11:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165386', 'tblTempUsageDetail_20' ) start [2025-01-03 11:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165386', 'tblTempUsageDetail_20' ) end [2025-01-03 11:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:55:33] Production.INFO: ==23068== Releasing lock... [2025-01-03 11:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:55:33] Production.INFO: 56 MB #Memory Used# [2025-01-03 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:56:05 [end_date_ymd] => 2025-01-03 11:56:05 [RateCDR] => 1 ) [2025-01-03 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:56:05' and `end` < '2025-01-03 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:56:19] Production.INFO: count ==3744 [2025-01-03 11:56:20] Production.ERROR: pbx CDR StartTime 2025-01-03 08:56:05 - End Time 2025-01-03 11:56:05 [2025-01-03 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165391', 'tblTempUsageDetail_20' ) start [2025-01-03 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165391', 'tblTempUsageDetail_20' ) end [2025-01-03 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165391', 'tblTempVendorCDR_20' ) start [2025-01-03 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165391', 'tblTempVendorCDR_20' ) end [2025-01-03 11:56:20] Production.INFO: ProcessCDR(1,14165391,1,1,2) [2025-01-03 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165391', 'tblTempUsageDetail_20' ) start [2025-01-03 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165391', 'tblTempUsageDetail_20' ) end [2025-01-03 11:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:56:25] Production.INFO: ==23140== Releasing lock... [2025-01-03 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:56:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-03 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:57:05 [end_date_ymd] => 2025-01-03 11:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:57:05' and `end` < '2025-01-03 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-01-03 11:57:20] Production.INFO: count ==3760 [2025-01-03 11:57:21] Production.ERROR: pbx CDR StartTime 2025-01-03 08:57:05 - End Time 2025-01-03 11:57:05 [2025-01-03 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165396', 'tblTempUsageDetail_20' ) start [2025-01-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165396', 'tblTempUsageDetail_20' ) end [2025-01-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165396', 'tblTempVendorCDR_20' ) start [2025-01-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165396', 'tblTempVendorCDR_20' ) end [2025-01-03 11:57:21] Production.INFO: ProcessCDR(1,14165396,1,1,2) [2025-01-03 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165396', 'tblTempUsageDetail_20' ) start [2025-01-03 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165396', 'tblTempUsageDetail_20' ) end [2025-01-03 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:57:26] Production.INFO: ==23210== Releasing lock... [2025-01-03 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:57:26] Production.INFO: 57 MB #Memory Used# [2025-01-03 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:58:05 [end_date_ymd] => 2025-01-03 11:58:05 [RateCDR] => 1 ) [2025-01-03 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 08:58:05' and `end` < '2025-01-03 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 11:58:18] Production.INFO: count ==3789 [2025-01-03 11:58:20] Production.ERROR: pbx CDR StartTime 2025-01-03 08:58:05 - End Time 2025-01-03 11:58:05 [2025-01-03 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165401', 'tblTempUsageDetail_20' ) start [2025-01-03 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165401', 'tblTempUsageDetail_20' ) end [2025-01-03 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165401', 'tblTempVendorCDR_20' ) start [2025-01-03 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165401', 'tblTempVendorCDR_20' ) end [2025-01-03 11:58:20] Production.INFO: ProcessCDR(1,14165401,1,1,2) [2025-01-03 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165401', 'tblTempUsageDetail_20' ) start [2025-01-03 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165401', 'tblTempUsageDetail_20' ) end [2025-01-03 11:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:58:25] Production.INFO: ==23281== Releasing lock... [2025-01-03 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:58:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-03 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 08:59:05 [end_date_ymd] => 2025-01-03 11:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 08:59:05' and `end` < '2025-01-03 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-01-03 11:59:18] Production.INFO: count ==3808 [2025-01-03 11:59:20] Production.ERROR: pbx CDR StartTime 2025-01-03 08:59:05 - End Time 2025-01-03 11:59:05 [2025-01-03 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165406', 'tblTempUsageDetail_20' ) start [2025-01-03 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165406', 'tblTempUsageDetail_20' ) end [2025-01-03 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165406', 'tblTempVendorCDR_20' ) start [2025-01-03 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165406', 'tblTempVendorCDR_20' ) end [2025-01-03 11:59:20] Production.INFO: ProcessCDR(1,14165406,1,1,2) [2025-01-03 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165406', 'tblTempUsageDetail_20' ) start [2025-01-03 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165406', 'tblTempUsageDetail_20' ) end [2025-01-03 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 11:59:24] Production.INFO: ==23359== Releasing lock... [2025-01-03 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 11:59:24] Production.INFO: 57 MB #Memory Used# [2025-01-03 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:00:05 [end_date_ymd] => 2025-01-03 12:00:05 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:00:05' and `end` < '2025-01-03 12: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-01-03 12:00:21] Production.INFO: count ==3884 [2025-01-03 12:00:22] Production.ERROR: pbx CDR StartTime 2025-01-03 09:00:05 - End Time 2025-01-03 12:00:05 [2025-01-03 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165412', 'tblTempUsageDetail_20' ) start [2025-01-03 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165412', 'tblTempUsageDetail_20' ) end [2025-01-03 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165412', 'tblTempVendorCDR_20' ) start [2025-01-03 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165412', 'tblTempVendorCDR_20' ) end [2025-01-03 12:00:22] Production.INFO: ProcessCDR(1,14165412,1,1,2) [2025-01-03 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165412', 'tblTempUsageDetail_20' ) start [2025-01-03 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165412', 'tblTempUsageDetail_20' ) end [2025-01-03 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:00:27] Production.INFO: ==23435== Releasing lock... [2025-01-03 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:00:27] Production.INFO: 57 MB #Memory Used# [2025-01-03 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:01:05 [end_date_ymd] => 2025-01-03 12:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:01:05' and `end` < '2025-01-03 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-01-03 12:01:23] Production.INFO: count ==3888 [2025-01-03 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-03 09:01:05 - End Time 2025-01-03 12:01:05 [2025-01-03 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165417', 'tblTempUsageDetail_20' ) start [2025-01-03 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165417', 'tblTempUsageDetail_20' ) end [2025-01-03 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165417', 'tblTempVendorCDR_20' ) start [2025-01-03 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165417', 'tblTempVendorCDR_20' ) end [2025-01-03 12:01:25] Production.INFO: ProcessCDR(1,14165417,1,1,2) [2025-01-03 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165417', 'tblTempUsageDetail_20' ) start [2025-01-03 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165417', 'tblTempUsageDetail_20' ) end [2025-01-03 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:01:30] Production.INFO: ==23524== Releasing lock... [2025-01-03 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:01:30] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:02:04 [end_date_ymd] => 2025-01-03 12:02:04 [RateCDR] => 1 ) [2025-01-03 12:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:02:04' and `end` < '2025-01-03 12:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:02:18] Production.INFO: count ==3882 [2025-01-03 12:02:19] Production.ERROR: pbx CDR StartTime 2025-01-03 09:02:04 - End Time 2025-01-03 12:02:04 [2025-01-03 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165422', 'tblTempUsageDetail_20' ) start [2025-01-03 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165422', 'tblTempUsageDetail_20' ) end [2025-01-03 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165422', 'tblTempVendorCDR_20' ) start [2025-01-03 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165422', 'tblTempVendorCDR_20' ) end [2025-01-03 12:02:20] Production.INFO: ProcessCDR(1,14165422,1,1,2) [2025-01-03 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165422', 'tblTempUsageDetail_20' ) start [2025-01-03 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165422', 'tblTempUsageDetail_20' ) end [2025-01-03 12:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:02:24] Production.INFO: ==23601== Releasing lock... [2025-01-03 12:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:02:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:03:05 [end_date_ymd] => 2025-01-03 12:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:03:05' and `end` < '2025-01-03 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-01-03 12:03:18] Production.INFO: count ==3876 [2025-01-03 12:03:20] Production.ERROR: pbx CDR StartTime 2025-01-03 09:03:05 - End Time 2025-01-03 12:03:05 [2025-01-03 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165426', 'tblTempUsageDetail_20' ) start [2025-01-03 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165426', 'tblTempUsageDetail_20' ) end [2025-01-03 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165426', 'tblTempVendorCDR_20' ) start [2025-01-03 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165426', 'tblTempVendorCDR_20' ) end [2025-01-03 12:03:20] Production.INFO: ProcessCDR(1,14165426,1,1,2) [2025-01-03 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165426', 'tblTempUsageDetail_20' ) start [2025-01-03 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165426', 'tblTempUsageDetail_20' ) end [2025-01-03 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:03:24] Production.INFO: ==23677== Releasing lock... [2025-01-03 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:03:24] Production.INFO: 57 MB #Memory Used# [2025-01-03 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:04:05 [end_date_ymd] => 2025-01-03 12:04:05 [RateCDR] => 1 ) [2025-01-03 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:04:05' and `end` < '2025-01-03 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:04:19] Production.INFO: count ==3911 [2025-01-03 12:04:21] Production.ERROR: pbx CDR StartTime 2025-01-03 09:04:05 - End Time 2025-01-03 12:04:05 [2025-01-03 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165432', 'tblTempUsageDetail_20' ) start [2025-01-03 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165432', 'tblTempUsageDetail_20' ) end [2025-01-03 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165432', 'tblTempVendorCDR_20' ) start [2025-01-03 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165432', 'tblTempVendorCDR_20' ) end [2025-01-03 12:04:21] Production.INFO: ProcessCDR(1,14165432,1,1,2) [2025-01-03 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165432', 'tblTempUsageDetail_20' ) start [2025-01-03 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165432', 'tblTempUsageDetail_20' ) end [2025-01-03 12:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:04:25] Production.INFO: ==23753== Releasing lock... [2025-01-03 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:04:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:05:05 [end_date_ymd] => 2025-01-03 12:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:05:05' and `end` < '2025-01-03 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-01-03 12:05:27] Production.INFO: count ==3908 [2025-01-03 12:05:29] Production.ERROR: pbx CDR StartTime 2025-01-03 09:05:05 - End Time 2025-01-03 12:05:05 [2025-01-03 12:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165437', 'tblTempUsageDetail_20' ) start [2025-01-03 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165437', 'tblTempUsageDetail_20' ) end [2025-01-03 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165437', 'tblTempVendorCDR_20' ) start [2025-01-03 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165437', 'tblTempVendorCDR_20' ) end [2025-01-03 12:05:29] Production.INFO: ProcessCDR(1,14165437,1,1,2) [2025-01-03 12:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165437', 'tblTempUsageDetail_20' ) start [2025-01-03 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165437', 'tblTempUsageDetail_20' ) end [2025-01-03 12:05:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:05:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:05:34] Production.INFO: ==23827== Releasing lock... [2025-01-03 12:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:05:34] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:06:05 [end_date_ymd] => 2025-01-03 12:06:05 [RateCDR] => 1 ) [2025-01-03 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:06:05' and `end` < '2025-01-03 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:06:23] Production.INFO: count ==3912 [2025-01-03 12:06:24] Production.ERROR: pbx CDR StartTime 2025-01-03 09:06:05 - End Time 2025-01-03 12:06:05 [2025-01-03 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165442', 'tblTempUsageDetail_20' ) start [2025-01-03 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165442', 'tblTempUsageDetail_20' ) end [2025-01-03 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165442', 'tblTempVendorCDR_20' ) start [2025-01-03 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165442', 'tblTempVendorCDR_20' ) end [2025-01-03 12:06:24] Production.INFO: ProcessCDR(1,14165442,1,1,2) [2025-01-03 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165442', 'tblTempUsageDetail_20' ) start [2025-01-03 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165442', 'tblTempUsageDetail_20' ) end [2025-01-03 12:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:06:29] Production.INFO: ==23901== Releasing lock... [2025-01-03 12:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:06:29] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:07:05 [end_date_ymd] => 2025-01-03 12:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:07:05' and `end` < '2025-01-03 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-01-03 12:07:20] Production.INFO: count ==3923 [2025-01-03 12:07:22] Production.ERROR: pbx CDR StartTime 2025-01-03 09:07:05 - End Time 2025-01-03 12:07:05 [2025-01-03 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165447', 'tblTempUsageDetail_20' ) start [2025-01-03 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165447', 'tblTempUsageDetail_20' ) end [2025-01-03 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165447', 'tblTempVendorCDR_20' ) start [2025-01-03 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165447', 'tblTempVendorCDR_20' ) end [2025-01-03 12:07:22] Production.INFO: ProcessCDR(1,14165447,1,1,2) [2025-01-03 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165447', 'tblTempUsageDetail_20' ) start [2025-01-03 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165447', 'tblTempUsageDetail_20' ) end [2025-01-03 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:07:27] Production.INFO: ==23980== Releasing lock... [2025-01-03 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:07:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:08:04 [end_date_ymd] => 2025-01-03 12:08:04 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:08:04' and `end` < '2025-01-03 12: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-01-03 12:08:23] Production.INFO: count ==3937 [2025-01-03 12:08:25] Production.ERROR: pbx CDR StartTime 2025-01-03 09:08:04 - End Time 2025-01-03 12:08:04 [2025-01-03 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165452', 'tblTempUsageDetail_20' ) start [2025-01-03 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165452', 'tblTempUsageDetail_20' ) end [2025-01-03 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165452', 'tblTempVendorCDR_20' ) start [2025-01-03 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165452', 'tblTempVendorCDR_20' ) end [2025-01-03 12:08:25] Production.INFO: ProcessCDR(1,14165452,1,1,2) [2025-01-03 12:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165452', 'tblTempUsageDetail_20' ) start [2025-01-03 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165452', 'tblTempUsageDetail_20' ) end [2025-01-03 12:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:08:30] Production.INFO: ==24058== Releasing lock... [2025-01-03 12:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:08:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:09:04 [end_date_ymd] => 2025-01-03 12:09:04 [RateCDR] => 1 ) [2025-01-03 12:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:09:04' and `end` < '2025-01-03 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:09:29] Production.INFO: count ==3940 [2025-01-03 12:09:31] Production.ERROR: pbx CDR StartTime 2025-01-03 09:09:04 - End Time 2025-01-03 12:09:04 [2025-01-03 12:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165457', 'tblTempUsageDetail_20' ) start [2025-01-03 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165457', 'tblTempUsageDetail_20' ) end [2025-01-03 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165457', 'tblTempVendorCDR_20' ) start [2025-01-03 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165457', 'tblTempVendorCDR_20' ) end [2025-01-03 12:09:31] Production.INFO: ProcessCDR(1,14165457,1,1,2) [2025-01-03 12:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165457', 'tblTempUsageDetail_20' ) start [2025-01-03 12:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165457', 'tblTempUsageDetail_20' ) end [2025-01-03 12:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:09:36] Production.INFO: ==24130== Releasing lock... [2025-01-03 12:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:09:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:10:05 [end_date_ymd] => 2025-01-03 12:10:05 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:10:05' and `end` < '2025-01-03 12: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-01-03 12:10:27] Production.INFO: count ==3922 [2025-01-03 12:10:28] Production.ERROR: pbx CDR StartTime 2025-01-03 09:10:05 - End Time 2025-01-03 12:10:05 [2025-01-03 12:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165462', 'tblTempUsageDetail_20' ) start [2025-01-03 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165462', 'tblTempUsageDetail_20' ) end [2025-01-03 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165462', 'tblTempVendorCDR_20' ) start [2025-01-03 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165462', 'tblTempVendorCDR_20' ) end [2025-01-03 12:10:28] Production.INFO: ProcessCDR(1,14165462,1,1,2) [2025-01-03 12:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165462', 'tblTempUsageDetail_20' ) start [2025-01-03 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165462', 'tblTempUsageDetail_20' ) end [2025-01-03 12:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:10:33] Production.INFO: ==24249== Releasing lock... [2025-01-03 12:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:10:33] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:11:05 [end_date_ymd] => 2025-01-03 12:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:11:05' and `end` < '2025-01-03 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-01-03 12:11:18] Production.INFO: count ==3932 [2025-01-03 12:11:20] Production.ERROR: pbx CDR StartTime 2025-01-03 09:11:05 - End Time 2025-01-03 12:11:05 [2025-01-03 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165468', 'tblTempUsageDetail_20' ) start [2025-01-03 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165468', 'tblTempUsageDetail_20' ) end [2025-01-03 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165468', 'tblTempVendorCDR_20' ) start [2025-01-03 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165468', 'tblTempVendorCDR_20' ) end [2025-01-03 12:11:20] Production.INFO: ProcessCDR(1,14165468,1,1,2) [2025-01-03 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165468', 'tblTempUsageDetail_20' ) start [2025-01-03 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165468', 'tblTempUsageDetail_20' ) end [2025-01-03 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:11:23] Production.INFO: ==24328== Releasing lock... [2025-01-03 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:11:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:12:05 [end_date_ymd] => 2025-01-03 12:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:12:05' and `end` < '2025-01-03 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-01-03 12:12:18] Production.INFO: count ==3920 [2025-01-03 12:12:19] Production.ERROR: pbx CDR StartTime 2025-01-03 09:12:05 - End Time 2025-01-03 12:12:05 [2025-01-03 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165473', 'tblTempUsageDetail_20' ) start [2025-01-03 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165473', 'tblTempUsageDetail_20' ) end [2025-01-03 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165473', 'tblTempVendorCDR_20' ) start [2025-01-03 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165473', 'tblTempVendorCDR_20' ) end [2025-01-03 12:12:20] Production.INFO: ProcessCDR(1,14165473,1,1,2) [2025-01-03 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165473', 'tblTempUsageDetail_20' ) start [2025-01-03 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165473', 'tblTempUsageDetail_20' ) end [2025-01-03 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:12:24] Production.INFO: ==24418== Releasing lock... [2025-01-03 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:12:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:13:05 [end_date_ymd] => 2025-01-03 12:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:13:05' and `end` < '2025-01-03 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-01-03 12:13:20] Production.INFO: count ==3923 [2025-01-03 12:13:21] Production.ERROR: pbx CDR StartTime 2025-01-03 09:13:05 - End Time 2025-01-03 12:13:05 [2025-01-03 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165478', 'tblTempUsageDetail_20' ) start [2025-01-03 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165478', 'tblTempUsageDetail_20' ) end [2025-01-03 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165478', 'tblTempVendorCDR_20' ) start [2025-01-03 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165478', 'tblTempVendorCDR_20' ) end [2025-01-03 12:13:21] Production.INFO: ProcessCDR(1,14165478,1,1,2) [2025-01-03 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165478', 'tblTempUsageDetail_20' ) start [2025-01-03 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165478', 'tblTempUsageDetail_20' ) end [2025-01-03 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:13:26] Production.INFO: ==24504== Releasing lock... [2025-01-03 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:13:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:14:05 [end_date_ymd] => 2025-01-03 12:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:14:05' and `end` < '2025-01-03 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-01-03 12:14:24] Production.INFO: count ==3911 [2025-01-03 12:14:25] Production.ERROR: pbx CDR StartTime 2025-01-03 09:14:05 - End Time 2025-01-03 12:14:05 [2025-01-03 12:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165483', 'tblTempUsageDetail_20' ) start [2025-01-03 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165483', 'tblTempUsageDetail_20' ) end [2025-01-03 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165483', 'tblTempVendorCDR_20' ) start [2025-01-03 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165483', 'tblTempVendorCDR_20' ) end [2025-01-03 12:14:25] Production.INFO: ProcessCDR(1,14165483,1,1,2) [2025-01-03 12:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165483', 'tblTempUsageDetail_20' ) start [2025-01-03 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165483', 'tblTempUsageDetail_20' ) end [2025-01-03 12:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:14:30] Production.INFO: ==24587== Releasing lock... [2025-01-03 12:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:14:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:15:05 [end_date_ymd] => 2025-01-03 12:15:05 [RateCDR] => 1 ) [2025-01-03 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:15:05' and `end` < '2025-01-03 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:15:36] Production.INFO: count ==3898 [2025-01-03 12:15:37] Production.ERROR: pbx CDR StartTime 2025-01-03 09:15:05 - End Time 2025-01-03 12:15:05 [2025-01-03 12:15:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:15:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165488', 'tblTempUsageDetail_20' ) start [2025-01-03 12:15:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165488', 'tblTempUsageDetail_20' ) end [2025-01-03 12:15:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165488', 'tblTempVendorCDR_20' ) start [2025-01-03 12:15:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165488', 'tblTempVendorCDR_20' ) end [2025-01-03 12:15:38] Production.INFO: ProcessCDR(1,14165488,1,1,2) [2025-01-03 12:15:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:15:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:15:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:15:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:15:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165488', 'tblTempUsageDetail_20' ) start [2025-01-03 12:15:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165488', 'tblTempUsageDetail_20' ) end [2025-01-03 12:15:42] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:15:42] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:15:42] Production.INFO: ==24673== Releasing lock... [2025-01-03 12:15:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:15:42] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:16:04 [end_date_ymd] => 2025-01-03 12:16:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:16:04' and `end` < '2025-01-03 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-01-03 12:16:24] Production.INFO: count ==3878 [2025-01-03 12:16:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:16:04 - End Time 2025-01-03 12:16:04 [2025-01-03 12:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165493', 'tblTempUsageDetail_20' ) start [2025-01-03 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165493', 'tblTempUsageDetail_20' ) end [2025-01-03 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165493', 'tblTempVendorCDR_20' ) start [2025-01-03 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165493', 'tblTempVendorCDR_20' ) end [2025-01-03 12:16:26] Production.INFO: ProcessCDR(1,14165493,1,1,2) [2025-01-03 12:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165493', 'tblTempUsageDetail_20' ) start [2025-01-03 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165493', 'tblTempUsageDetail_20' ) end [2025-01-03 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:16:30] Production.INFO: ==24756== Releasing lock... [2025-01-03 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:16:30] Production.INFO: 57 MB #Memory Used# [2025-01-03 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:17:05 [end_date_ymd] => 2025-01-03 12:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:17:05' and `end` < '2025-01-03 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-01-03 12:17:25] Production.INFO: count ==3878 [2025-01-03 12:17:27] Production.ERROR: pbx CDR StartTime 2025-01-03 09:17:05 - End Time 2025-01-03 12:17:05 [2025-01-03 12:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165498', 'tblTempUsageDetail_20' ) start [2025-01-03 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165498', 'tblTempUsageDetail_20' ) end [2025-01-03 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165498', 'tblTempVendorCDR_20' ) start [2025-01-03 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165498', 'tblTempVendorCDR_20' ) end [2025-01-03 12:17:27] Production.INFO: ProcessCDR(1,14165498,1,1,2) [2025-01-03 12:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165498', 'tblTempUsageDetail_20' ) start [2025-01-03 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165498', 'tblTempUsageDetail_20' ) end [2025-01-03 12:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:17:31] Production.INFO: ==24838== Releasing lock... [2025-01-03 12:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:17:31] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:18:05 [end_date_ymd] => 2025-01-03 12:18:05 [RateCDR] => 1 ) [2025-01-03 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:18:05' and `end` < '2025-01-03 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:18:23] Production.INFO: count ==3874 [2025-01-03 12:18:24] Production.ERROR: pbx CDR StartTime 2025-01-03 09:18:05 - End Time 2025-01-03 12:18:05 [2025-01-03 12:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165503', 'tblTempUsageDetail_20' ) start [2025-01-03 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165503', 'tblTempUsageDetail_20' ) end [2025-01-03 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165503', 'tblTempVendorCDR_20' ) start [2025-01-03 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165503', 'tblTempVendorCDR_20' ) end [2025-01-03 12:18:25] Production.INFO: ProcessCDR(1,14165503,1,1,2) [2025-01-03 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165503', 'tblTempUsageDetail_20' ) start [2025-01-03 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165503', 'tblTempUsageDetail_20' ) end [2025-01-03 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:18:28] Production.INFO: ==24931== Releasing lock... [2025-01-03 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:18:28] Production.INFO: 57 MB #Memory Used# [2025-01-03 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:19:04 [end_date_ymd] => 2025-01-03 12:19:04 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:19:04' and `end` < '2025-01-03 12: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-01-03 12:19:26] Production.INFO: count ==3884 [2025-01-03 12:19:28] Production.ERROR: pbx CDR StartTime 2025-01-03 09:19:04 - End Time 2025-01-03 12:19:04 [2025-01-03 12:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165508', 'tblTempUsageDetail_20' ) start [2025-01-03 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165508', 'tblTempUsageDetail_20' ) end [2025-01-03 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165508', 'tblTempVendorCDR_20' ) start [2025-01-03 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165508', 'tblTempVendorCDR_20' ) end [2025-01-03 12:19:28] Production.INFO: ProcessCDR(1,14165508,1,1,2) [2025-01-03 12:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165508', 'tblTempUsageDetail_20' ) start [2025-01-03 12:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165508', 'tblTempUsageDetail_20' ) end [2025-01-03 12:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:19:33] Production.INFO: ==25016== Releasing lock... [2025-01-03 12:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:19:33] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:20:06 [end_date_ymd] => 2025-01-03 12:20:06 [RateCDR] => 1 ) [2025-01-03 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:20:06' and `end` < '2025-01-03 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:20:27] Production.INFO: count ==3890 [2025-01-03 12:20:28] Production.ERROR: pbx CDR StartTime 2025-01-03 09:20:06 - End Time 2025-01-03 12:20:06 [2025-01-03 12:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165514', 'tblTempUsageDetail_20' ) start [2025-01-03 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165514', 'tblTempUsageDetail_20' ) end [2025-01-03 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165514', 'tblTempVendorCDR_20' ) start [2025-01-03 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165514', 'tblTempVendorCDR_20' ) end [2025-01-03 12:20:29] Production.INFO: ProcessCDR(1,14165514,1,1,2) [2025-01-03 12:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165514', 'tblTempUsageDetail_20' ) start [2025-01-03 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165514', 'tblTempUsageDetail_20' ) end [2025-01-03 12:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:20:33] Production.INFO: ==25106== Releasing lock... [2025-01-03 12:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:20:33] Production.INFO: 57 MB #Memory Used# [2025-01-03 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:21:05 [end_date_ymd] => 2025-01-03 12:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:21:05' and `end` < '2025-01-03 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-01-03 12:21:24] Production.INFO: count ==3906 [2025-01-03 12:21:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:21:05 - End Time 2025-01-03 12:21:05 [2025-01-03 12:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165519', 'tblTempUsageDetail_20' ) start [2025-01-03 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165519', 'tblTempUsageDetail_20' ) end [2025-01-03 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165519', 'tblTempVendorCDR_20' ) start [2025-01-03 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165519', 'tblTempVendorCDR_20' ) end [2025-01-03 12:21:26] Production.INFO: ProcessCDR(1,14165519,1,1,2) [2025-01-03 12:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165519', 'tblTempUsageDetail_20' ) start [2025-01-03 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165519', 'tblTempUsageDetail_20' ) end [2025-01-03 12:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:21:30] Production.INFO: ==25195== Releasing lock... [2025-01-03 12:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:21:30] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:22:05 [end_date_ymd] => 2025-01-03 12:22:05 [RateCDR] => 1 ) [2025-01-03 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:22:05' and `end` < '2025-01-03 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:22:20] Production.INFO: count ==3923 [2025-01-03 12:22:21] Production.ERROR: pbx CDR StartTime 2025-01-03 09:22:05 - End Time 2025-01-03 12:22:05 [2025-01-03 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165524', 'tblTempUsageDetail_20' ) start [2025-01-03 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165524', 'tblTempUsageDetail_20' ) end [2025-01-03 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165524', 'tblTempVendorCDR_20' ) start [2025-01-03 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165524', 'tblTempVendorCDR_20' ) end [2025-01-03 12:22:21] Production.INFO: ProcessCDR(1,14165524,1,1,2) [2025-01-03 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165524', 'tblTempUsageDetail_20' ) start [2025-01-03 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165524', 'tblTempUsageDetail_20' ) end [2025-01-03 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:22:26] Production.INFO: ==25282== Releasing lock... [2025-01-03 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:22:26] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:23:05 [end_date_ymd] => 2025-01-03 12:23:05 [RateCDR] => 1 ) [2025-01-03 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:23:05' and `end` < '2025-01-03 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:23:21] Production.INFO: count ==3929 [2025-01-03 12:23:23] Production.ERROR: pbx CDR StartTime 2025-01-03 09:23:05 - End Time 2025-01-03 12:23:05 [2025-01-03 12:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165529', 'tblTempUsageDetail_20' ) start [2025-01-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165529', 'tblTempUsageDetail_20' ) end [2025-01-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165529', 'tblTempVendorCDR_20' ) start [2025-01-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165529', 'tblTempVendorCDR_20' ) end [2025-01-03 12:23:23] Production.INFO: ProcessCDR(1,14165529,1,1,2) [2025-01-03 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165529', 'tblTempUsageDetail_20' ) start [2025-01-03 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165529', 'tblTempUsageDetail_20' ) end [2025-01-03 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:23:27] Production.INFO: ==25379== Releasing lock... [2025-01-03 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:23:27] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:24:05 [end_date_ymd] => 2025-01-03 12:24:05 [RateCDR] => 1 ) [2025-01-03 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:24:05' and `end` < '2025-01-03 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:24:19] Production.INFO: count ==3940 [2025-01-03 12:24:20] Production.ERROR: pbx CDR StartTime 2025-01-03 09:24:05 - End Time 2025-01-03 12:24:05 [2025-01-03 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165534', 'tblTempUsageDetail_20' ) start [2025-01-03 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165534', 'tblTempUsageDetail_20' ) end [2025-01-03 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165534', 'tblTempVendorCDR_20' ) start [2025-01-03 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165534', 'tblTempVendorCDR_20' ) end [2025-01-03 12:24:20] Production.INFO: ProcessCDR(1,14165534,1,1,2) [2025-01-03 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165534', 'tblTempUsageDetail_20' ) start [2025-01-03 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165534', 'tblTempUsageDetail_20' ) end [2025-01-03 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:24:25] Production.INFO: ==25460== Releasing lock... [2025-01-03 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:24:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:25:05 [end_date_ymd] => 2025-01-03 12:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:25:05' and `end` < '2025-01-03 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-01-03 12:25:18] Production.INFO: count ==3957 [2025-01-03 12:25:20] Production.ERROR: pbx CDR StartTime 2025-01-03 09:25:05 - End Time 2025-01-03 12:25:05 [2025-01-03 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165539', 'tblTempUsageDetail_20' ) start [2025-01-03 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165539', 'tblTempUsageDetail_20' ) end [2025-01-03 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165539', 'tblTempVendorCDR_20' ) start [2025-01-03 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165539', 'tblTempVendorCDR_20' ) end [2025-01-03 12:25:20] Production.INFO: ProcessCDR(1,14165539,1,1,2) [2025-01-03 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165539', 'tblTempUsageDetail_20' ) start [2025-01-03 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165539', 'tblTempUsageDetail_20' ) end [2025-01-03 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:25:24] Production.INFO: ==25553== Releasing lock... [2025-01-03 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:25:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:26:04 [end_date_ymd] => 2025-01-03 12:26:04 [RateCDR] => 1 ) [2025-01-03 12:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:26:04' and `end` < '2025-01-03 12:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:26:30] Production.INFO: count ==3971 [2025-01-03 12:26:32] Production.ERROR: pbx CDR StartTime 2025-01-03 09:26:04 - End Time 2025-01-03 12:26:04 [2025-01-03 12:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165544', 'tblTempUsageDetail_20' ) start [2025-01-03 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165544', 'tblTempUsageDetail_20' ) end [2025-01-03 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165544', 'tblTempVendorCDR_20' ) start [2025-01-03 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165544', 'tblTempVendorCDR_20' ) end [2025-01-03 12:26:32] Production.INFO: ProcessCDR(1,14165544,1,1,2) [2025-01-03 12:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165544', 'tblTempUsageDetail_20' ) start [2025-01-03 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165544', 'tblTempUsageDetail_20' ) end [2025-01-03 12:26:37] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:26:37] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:26:37] Production.INFO: ==25683== Releasing lock... [2025-01-03 12:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:26:37] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:27:05 [end_date_ymd] => 2025-01-03 12:27:05 [RateCDR] => 1 ) [2025-01-03 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:27:05' and `end` < '2025-01-03 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:27:25] Production.INFO: count ==3973 [2025-01-03 12:27:27] Production.ERROR: pbx CDR StartTime 2025-01-03 09:27:05 - End Time 2025-01-03 12:27:05 [2025-01-03 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165549', 'tblTempUsageDetail_20' ) start [2025-01-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165549', 'tblTempUsageDetail_20' ) end [2025-01-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165549', 'tblTempVendorCDR_20' ) start [2025-01-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165549', 'tblTempVendorCDR_20' ) end [2025-01-03 12:27:27] Production.INFO: ProcessCDR(1,14165549,1,1,2) [2025-01-03 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165549', 'tblTempUsageDetail_20' ) start [2025-01-03 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165549', 'tblTempUsageDetail_20' ) end [2025-01-03 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:27:32] Production.INFO: ==25781== Releasing lock... [2025-01-03 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:27:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:28:04 [end_date_ymd] => 2025-01-03 12:28:04 [RateCDR] => 1 ) [2025-01-03 12:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:28:04' and `end` < '2025-01-03 12:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:28:22] Production.INFO: count ==3982 [2025-01-03 12:28:23] Production.ERROR: pbx CDR StartTime 2025-01-03 09:28:04 - End Time 2025-01-03 12:28:04 [2025-01-03 12:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165554', 'tblTempUsageDetail_20' ) start [2025-01-03 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165554', 'tblTempUsageDetail_20' ) end [2025-01-03 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165554', 'tblTempVendorCDR_20' ) start [2025-01-03 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165554', 'tblTempVendorCDR_20' ) end [2025-01-03 12:28:24] Production.INFO: ProcessCDR(1,14165554,1,1,2) [2025-01-03 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165554', 'tblTempUsageDetail_20' ) start [2025-01-03 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165554', 'tblTempUsageDetail_20' ) end [2025-01-03 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:28:29] Production.INFO: ==25882== Releasing lock... [2025-01-03 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:28:29] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:29:05 [end_date_ymd] => 2025-01-03 12:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:29:05' and `end` < '2025-01-03 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-01-03 12:29:30] Production.INFO: count ==3983 [2025-01-03 12:29:31] Production.ERROR: pbx CDR StartTime 2025-01-03 09:29:05 - End Time 2025-01-03 12:29:05 [2025-01-03 12:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165559', 'tblTempUsageDetail_20' ) start [2025-01-03 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165559', 'tblTempUsageDetail_20' ) end [2025-01-03 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165559', 'tblTempVendorCDR_20' ) start [2025-01-03 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165559', 'tblTempVendorCDR_20' ) end [2025-01-03 12:29:31] Production.INFO: ProcessCDR(1,14165559,1,1,2) [2025-01-03 12:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:29:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:29:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:29:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165559', 'tblTempUsageDetail_20' ) start [2025-01-03 12:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165559', 'tblTempUsageDetail_20' ) end [2025-01-03 12:29:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:29:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:29:36] Production.INFO: ==25974== Releasing lock... [2025-01-03 12:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:29:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:30:06 [end_date_ymd] => 2025-01-03 12:30:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:30:06' and `end` < '2025-01-03 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-01-03 12:30:25] Production.INFO: count ==3968 [2025-01-03 12:30:27] Production.ERROR: pbx CDR StartTime 2025-01-03 09:30:06 - End Time 2025-01-03 12:30:06 [2025-01-03 12:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165565', 'tblTempUsageDetail_20' ) start [2025-01-03 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165565', 'tblTempUsageDetail_20' ) end [2025-01-03 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165565', 'tblTempVendorCDR_20' ) start [2025-01-03 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165565', 'tblTempVendorCDR_20' ) end [2025-01-03 12:30:27] Production.INFO: ProcessCDR(1,14165565,1,1,2) [2025-01-03 12:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165565', 'tblTempUsageDetail_20' ) start [2025-01-03 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165565', 'tblTempUsageDetail_20' ) end [2025-01-03 12:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:30:32] Production.INFO: ==26071== Releasing lock... [2025-01-03 12:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:30:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:31:05 [end_date_ymd] => 2025-01-03 12:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:31:05' and `end` < '2025-01-03 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-01-03 12:31:26] Production.INFO: count ==3996 [2025-01-03 12:31:28] Production.ERROR: pbx CDR StartTime 2025-01-03 09:31:05 - End Time 2025-01-03 12:31:05 [2025-01-03 12:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165570', 'tblTempUsageDetail_20' ) start [2025-01-03 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165570', 'tblTempUsageDetail_20' ) end [2025-01-03 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165570', 'tblTempVendorCDR_20' ) start [2025-01-03 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165570', 'tblTempVendorCDR_20' ) end [2025-01-03 12:31:28] Production.INFO: ProcessCDR(1,14165570,1,1,2) [2025-01-03 12:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165570', 'tblTempUsageDetail_20' ) start [2025-01-03 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165570', 'tblTempUsageDetail_20' ) end [2025-01-03 12:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:31:32] Production.INFO: ==26166== Releasing lock... [2025-01-03 12:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:31:32] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:32:05 [end_date_ymd] => 2025-01-03 12:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:32:05' and `end` < '2025-01-03 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-01-03 12:32:24] Production.INFO: count ==3996 [2025-01-03 12:32:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:32:05 - End Time 2025-01-03 12:32:05 [2025-01-03 12:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165575', 'tblTempUsageDetail_20' ) start [2025-01-03 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165575', 'tblTempUsageDetail_20' ) end [2025-01-03 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165575', 'tblTempVendorCDR_20' ) start [2025-01-03 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165575', 'tblTempVendorCDR_20' ) end [2025-01-03 12:32:26] Production.INFO: ProcessCDR(1,14165575,1,1,2) [2025-01-03 12:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165575', 'tblTempUsageDetail_20' ) start [2025-01-03 12:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165575', 'tblTempUsageDetail_20' ) end [2025-01-03 12:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:32:31] Production.INFO: ==26265== Releasing lock... [2025-01-03 12:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:32:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:33:05 [end_date_ymd] => 2025-01-03 12:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:33:05' and `end` < '2025-01-03 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-01-03 12:33:32] Production.INFO: count ==3996 [2025-01-03 12:33:34] Production.ERROR: pbx CDR StartTime 2025-01-03 09:33:05 - End Time 2025-01-03 12:33:05 [2025-01-03 12:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165580', 'tblTempUsageDetail_20' ) start [2025-01-03 12:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165580', 'tblTempUsageDetail_20' ) end [2025-01-03 12:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165580', 'tblTempVendorCDR_20' ) start [2025-01-03 12:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165580', 'tblTempVendorCDR_20' ) end [2025-01-03 12:33:34] Production.INFO: ProcessCDR(1,14165580,1,1,2) [2025-01-03 12:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:33:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:33:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:33:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165580', 'tblTempUsageDetail_20' ) start [2025-01-03 12:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165580', 'tblTempUsageDetail_20' ) end [2025-01-03 12:33:39] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:33:39] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:33:39] Production.INFO: ==26361== Releasing lock... [2025-01-03 12:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:33:39] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:34:06 [end_date_ymd] => 2025-01-03 12:34:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:34:06' and `end` < '2025-01-03 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-01-03 12:34:23] Production.INFO: count ==3995 [2025-01-03 12:34:25] Production.ERROR: pbx CDR StartTime 2025-01-03 09:34:06 - End Time 2025-01-03 12:34:06 [2025-01-03 12:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165585', 'tblTempUsageDetail_20' ) start [2025-01-03 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165585', 'tblTempUsageDetail_20' ) end [2025-01-03 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165585', 'tblTempVendorCDR_20' ) start [2025-01-03 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165585', 'tblTempVendorCDR_20' ) end [2025-01-03 12:34:25] Production.INFO: ProcessCDR(1,14165585,1,1,2) [2025-01-03 12:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165585', 'tblTempUsageDetail_20' ) start [2025-01-03 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165585', 'tblTempUsageDetail_20' ) end [2025-01-03 12:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:34:30] Production.INFO: ==26456== Releasing lock... [2025-01-03 12:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:34:30] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:35:05 [end_date_ymd] => 2025-01-03 12:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:35:05' and `end` < '2025-01-03 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-01-03 12:35:33] Production.INFO: count ==4003 [2025-01-03 12:35:34] Production.ERROR: pbx CDR StartTime 2025-01-03 09:35:05 - End Time 2025-01-03 12:35:05 [2025-01-03 12:35:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165590', 'tblTempUsageDetail_20' ) start [2025-01-03 12:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165590', 'tblTempUsageDetail_20' ) end [2025-01-03 12:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165590', 'tblTempVendorCDR_20' ) start [2025-01-03 12:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165590', 'tblTempVendorCDR_20' ) end [2025-01-03 12:35:35] Production.INFO: ProcessCDR(1,14165590,1,1,2) [2025-01-03 12:35:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:35:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:35:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:35:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165590', 'tblTempUsageDetail_20' ) start [2025-01-03 12:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165590', 'tblTempUsageDetail_20' ) end [2025-01-03 12:35:39] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:35:39] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:35:39] Production.INFO: ==26544== Releasing lock... [2025-01-03 12:35:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:35:39] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:36:05 [end_date_ymd] => 2025-01-03 12:36:05 [RateCDR] => 1 ) [2025-01-03 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:36:05' and `end` < '2025-01-03 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:36:27] Production.INFO: count ==3998 [2025-01-03 12:36:29] Production.ERROR: pbx CDR StartTime 2025-01-03 09:36:05 - End Time 2025-01-03 12:36:05 [2025-01-03 12:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165595', 'tblTempUsageDetail_20' ) start [2025-01-03 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165595', 'tblTempUsageDetail_20' ) end [2025-01-03 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165595', 'tblTempVendorCDR_20' ) start [2025-01-03 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165595', 'tblTempVendorCDR_20' ) end [2025-01-03 12:36:29] Production.INFO: ProcessCDR(1,14165595,1,1,2) [2025-01-03 12:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165595', 'tblTempUsageDetail_20' ) start [2025-01-03 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165595', 'tblTempUsageDetail_20' ) end [2025-01-03 12:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:36:33] Production.INFO: ==26639== Releasing lock... [2025-01-03 12:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:36:33] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:37:05 [end_date_ymd] => 2025-01-03 12:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:37:05' and `end` < '2025-01-03 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-01-03 12:37:27] Production.INFO: count ==3984 [2025-01-03 12:37:28] Production.ERROR: pbx CDR StartTime 2025-01-03 09:37:05 - End Time 2025-01-03 12:37:05 [2025-01-03 12:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165600', 'tblTempUsageDetail_20' ) start [2025-01-03 12:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165600', 'tblTempUsageDetail_20' ) end [2025-01-03 12:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165600', 'tblTempVendorCDR_20' ) start [2025-01-03 12:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165600', 'tblTempVendorCDR_20' ) end [2025-01-03 12:37:29] Production.INFO: ProcessCDR(1,14165600,1,1,2) [2025-01-03 12:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165600', 'tblTempUsageDetail_20' ) start [2025-01-03 12:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165600', 'tblTempUsageDetail_20' ) end [2025-01-03 12:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:37:33] Production.INFO: ==26738== Releasing lock... [2025-01-03 12:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:37:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:38:06 [end_date_ymd] => 2025-01-03 12:38:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:38:06' and `end` < '2025-01-03 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-01-03 12:38:19] Production.INFO: count ==3986 [2025-01-03 12:38:21] Production.ERROR: pbx CDR StartTime 2025-01-03 09:38:06 - End Time 2025-01-03 12:38:06 [2025-01-03 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165605', 'tblTempUsageDetail_20' ) start [2025-01-03 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165605', 'tblTempUsageDetail_20' ) end [2025-01-03 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165605', 'tblTempVendorCDR_20' ) start [2025-01-03 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165605', 'tblTempVendorCDR_20' ) end [2025-01-03 12:38:21] Production.INFO: ProcessCDR(1,14165605,1,1,2) [2025-01-03 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165605', 'tblTempUsageDetail_20' ) start [2025-01-03 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165605', 'tblTempUsageDetail_20' ) end [2025-01-03 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:38:26] Production.INFO: ==26824== Releasing lock... [2025-01-03 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:38:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:39:05 [end_date_ymd] => 2025-01-03 12:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:39:05' and `end` < '2025-01-03 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-01-03 12:39:29] Production.INFO: count ==3990 [2025-01-03 12:39:30] Production.ERROR: pbx CDR StartTime 2025-01-03 09:39:05 - End Time 2025-01-03 12:39:05 [2025-01-03 12:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165610', 'tblTempUsageDetail_20' ) start [2025-01-03 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165610', 'tblTempUsageDetail_20' ) end [2025-01-03 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165610', 'tblTempVendorCDR_20' ) start [2025-01-03 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165610', 'tblTempVendorCDR_20' ) end [2025-01-03 12:39:30] Production.INFO: ProcessCDR(1,14165610,1,1,2) [2025-01-03 12:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165610', 'tblTempUsageDetail_20' ) start [2025-01-03 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165610', 'tblTempUsageDetail_20' ) end [2025-01-03 12:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:39:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:39:35] Production.INFO: ==26918== Releasing lock... [2025-01-03 12:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:39:35] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:40:06 [end_date_ymd] => 2025-01-03 12:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:40:06' and `end` < '2025-01-03 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-01-03 12:40:25] Production.INFO: count ==3985 [2025-01-03 12:40:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:40:06 - End Time 2025-01-03 12:40:06 [2025-01-03 12:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165615', 'tblTempUsageDetail_20' ) start [2025-01-03 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165615', 'tblTempUsageDetail_20' ) end [2025-01-03 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165615', 'tblTempVendorCDR_20' ) start [2025-01-03 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165615', 'tblTempVendorCDR_20' ) end [2025-01-03 12:40:27] Production.INFO: ProcessCDR(1,14165615,1,1,2) [2025-01-03 12:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165615', 'tblTempUsageDetail_20' ) start [2025-01-03 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165615', 'tblTempUsageDetail_20' ) end [2025-01-03 12:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:40:31] Production.INFO: ==27004== Releasing lock... [2025-01-03 12:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:40:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:41:04 [end_date_ymd] => 2025-01-03 12:41:04 [RateCDR] => 1 ) [2025-01-03 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:41:04' and `end` < '2025-01-03 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:41:21] Production.INFO: count ==3980 [2025-01-03 12:41:22] Production.ERROR: pbx CDR StartTime 2025-01-03 09:41:04 - End Time 2025-01-03 12:41:04 [2025-01-03 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165621', 'tblTempUsageDetail_20' ) start [2025-01-03 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165621', 'tblTempUsageDetail_20' ) end [2025-01-03 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165621', 'tblTempVendorCDR_20' ) start [2025-01-03 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165621', 'tblTempVendorCDR_20' ) end [2025-01-03 12:41:22] Production.INFO: ProcessCDR(1,14165621,1,1,2) [2025-01-03 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165621', 'tblTempUsageDetail_20' ) start [2025-01-03 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165621', 'tblTempUsageDetail_20' ) end [2025-01-03 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:41:27] Production.INFO: ==27127== Releasing lock... [2025-01-03 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:41:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:42:05 [end_date_ymd] => 2025-01-03 12:42:05 [RateCDR] => 1 ) [2025-01-03 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:42:05' and `end` < '2025-01-03 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:42:20] Production.INFO: count ==3984 [2025-01-03 12:42:22] Production.ERROR: pbx CDR StartTime 2025-01-03 09:42:05 - End Time 2025-01-03 12:42:05 [2025-01-03 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165626', 'tblTempUsageDetail_20' ) start [2025-01-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165626', 'tblTempUsageDetail_20' ) end [2025-01-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165626', 'tblTempVendorCDR_20' ) start [2025-01-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165626', 'tblTempVendorCDR_20' ) end [2025-01-03 12:42:22] Production.INFO: ProcessCDR(1,14165626,1,1,2) [2025-01-03 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165626', 'tblTempUsageDetail_20' ) start [2025-01-03 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165626', 'tblTempUsageDetail_20' ) end [2025-01-03 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:42:27] Production.INFO: ==27229== Releasing lock... [2025-01-03 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:42:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:43:04 [end_date_ymd] => 2025-01-03 12:43:04 [RateCDR] => 1 ) [2025-01-03 12:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:43:04' and `end` < '2025-01-03 12:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:43:18] Production.INFO: count ==3989 [2025-01-03 12:43:19] Production.ERROR: pbx CDR StartTime 2025-01-03 09:43:04 - End Time 2025-01-03 12:43:04 [2025-01-03 12:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165631', 'tblTempUsageDetail_20' ) start [2025-01-03 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165631', 'tblTempUsageDetail_20' ) end [2025-01-03 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165631', 'tblTempVendorCDR_20' ) start [2025-01-03 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165631', 'tblTempVendorCDR_20' ) end [2025-01-03 12:43:19] Production.INFO: ProcessCDR(1,14165631,1,1,2) [2025-01-03 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165631', 'tblTempUsageDetail_20' ) start [2025-01-03 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165631', 'tblTempUsageDetail_20' ) end [2025-01-03 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:43:24] Production.INFO: ==27318== Releasing lock... [2025-01-03 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:43:24] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:44:05 [end_date_ymd] => 2025-01-03 12:44:05 [RateCDR] => 1 ) [2025-01-03 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:44:05' and `end` < '2025-01-03 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:44:24] Production.INFO: count ==3991 [2025-01-03 12:44:25] Production.ERROR: pbx CDR StartTime 2025-01-03 09:44:05 - End Time 2025-01-03 12:44:05 [2025-01-03 12:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165636', 'tblTempUsageDetail_20' ) start [2025-01-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165636', 'tblTempUsageDetail_20' ) end [2025-01-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165636', 'tblTempVendorCDR_20' ) start [2025-01-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165636', 'tblTempVendorCDR_20' ) end [2025-01-03 12:44:26] Production.INFO: ProcessCDR(1,14165636,1,1,2) [2025-01-03 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165636', 'tblTempUsageDetail_20' ) start [2025-01-03 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165636', 'tblTempUsageDetail_20' ) end [2025-01-03 12:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:44:30] Production.INFO: ==27417== Releasing lock... [2025-01-03 12:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:44:30] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:45:05 [end_date_ymd] => 2025-01-03 12:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:45:05' and `end` < '2025-01-03 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-01-03 12:45:24] Production.INFO: count ==3988 [2025-01-03 12:45:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:45:05 - End Time 2025-01-03 12:45:05 [2025-01-03 12:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165641', 'tblTempUsageDetail_20' ) start [2025-01-03 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165641', 'tblTempUsageDetail_20' ) end [2025-01-03 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165641', 'tblTempVendorCDR_20' ) start [2025-01-03 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165641', 'tblTempVendorCDR_20' ) end [2025-01-03 12:45:26] Production.INFO: ProcessCDR(1,14165641,1,1,2) [2025-01-03 12:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165641', 'tblTempUsageDetail_20' ) start [2025-01-03 12:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165641', 'tblTempUsageDetail_20' ) end [2025-01-03 12:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:45:31] Production.INFO: ==27528== Releasing lock... [2025-01-03 12:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:45:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:46:04 [end_date_ymd] => 2025-01-03 12:46:04 [RateCDR] => 1 ) [2025-01-03 12:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:46:04' and `end` < '2025-01-03 12:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:46:25] Production.INFO: count ==4003 [2025-01-03 12:46:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:46:04 - End Time 2025-01-03 12:46:04 [2025-01-03 12:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165646', 'tblTempUsageDetail_20' ) start [2025-01-03 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165646', 'tblTempUsageDetail_20' ) end [2025-01-03 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165646', 'tblTempVendorCDR_20' ) start [2025-01-03 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165646', 'tblTempVendorCDR_20' ) end [2025-01-03 12:46:26] Production.INFO: ProcessCDR(1,14165646,1,1,2) [2025-01-03 12:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165646', 'tblTempUsageDetail_20' ) start [2025-01-03 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165646', 'tblTempUsageDetail_20' ) end [2025-01-03 12:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:46:31] Production.INFO: ==27649== Releasing lock... [2025-01-03 12:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:46:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:47:05 [end_date_ymd] => 2025-01-03 12:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:47:05' and `end` < '2025-01-03 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-01-03 12:47:25] Production.INFO: count ==4005 [2025-01-03 12:47:27] Production.ERROR: pbx CDR StartTime 2025-01-03 09:47:05 - End Time 2025-01-03 12:47:05 [2025-01-03 12:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165651', 'tblTempUsageDetail_20' ) start [2025-01-03 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165651', 'tblTempUsageDetail_20' ) end [2025-01-03 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165651', 'tblTempVendorCDR_20' ) start [2025-01-03 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165651', 'tblTempVendorCDR_20' ) end [2025-01-03 12:47:27] Production.INFO: ProcessCDR(1,14165651,1,1,2) [2025-01-03 12:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165651', 'tblTempUsageDetail_20' ) start [2025-01-03 12:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165651', 'tblTempUsageDetail_20' ) end [2025-01-03 12:47:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:47:32] Production.INFO: ==27769== Releasing lock... [2025-01-03 12:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:47:32] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:48:04 [end_date_ymd] => 2025-01-03 12:48:04 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:48:04' and `end` < '2025-01-03 12: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-01-03 12:48:23] Production.INFO: count ==4017 [2025-01-03 12:48:24] Production.ERROR: pbx CDR StartTime 2025-01-03 09:48:04 - End Time 2025-01-03 12:48:04 [2025-01-03 12:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165656', 'tblTempUsageDetail_20' ) start [2025-01-03 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165656', 'tblTempUsageDetail_20' ) end [2025-01-03 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165656', 'tblTempVendorCDR_20' ) start [2025-01-03 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165656', 'tblTempVendorCDR_20' ) end [2025-01-03 12:48:25] Production.INFO: ProcessCDR(1,14165656,1,1,2) [2025-01-03 12:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165656', 'tblTempUsageDetail_20' ) start [2025-01-03 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165656', 'tblTempUsageDetail_20' ) end [2025-01-03 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:48:29] Production.INFO: ==27865== Releasing lock... [2025-01-03 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:48:29] Production.INFO: 58 MB #Memory Used# [2025-01-03 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:49:05 [end_date_ymd] => 2025-01-03 12:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:49:05' and `end` < '2025-01-03 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-01-03 12:49:29] Production.INFO: count ==4037 [2025-01-03 12:49:31] Production.ERROR: pbx CDR StartTime 2025-01-03 09:49:05 - End Time 2025-01-03 12:49:05 [2025-01-03 12:49:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165661', 'tblTempUsageDetail_20' ) start [2025-01-03 12:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165661', 'tblTempUsageDetail_20' ) end [2025-01-03 12:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165661', 'tblTempVendorCDR_20' ) start [2025-01-03 12:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165661', 'tblTempVendorCDR_20' ) end [2025-01-03 12:49:31] Production.INFO: ProcessCDR(1,14165661,1,1,2) [2025-01-03 12:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165661', 'tblTempUsageDetail_20' ) start [2025-01-03 12:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165661', 'tblTempUsageDetail_20' ) end [2025-01-03 12:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:49:36] Production.INFO: ==27958== Releasing lock... [2025-01-03 12:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:49:36] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:50:06 [end_date_ymd] => 2025-01-03 12:50:06 [RateCDR] => 1 ) [2025-01-03 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:50:06' and `end` < '2025-01-03 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:50:36] Production.INFO: count ==4091 [2025-01-03 12:50:38] Production.ERROR: pbx CDR StartTime 2025-01-03 09:50:06 - End Time 2025-01-03 12:50:06 [2025-01-03 12:50:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165667', 'tblTempUsageDetail_20' ) start [2025-01-03 12:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165667', 'tblTempUsageDetail_20' ) end [2025-01-03 12:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165667', 'tblTempVendorCDR_20' ) start [2025-01-03 12:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165667', 'tblTempVendorCDR_20' ) end [2025-01-03 12:50:38] Production.INFO: ProcessCDR(1,14165667,1,1,2) [2025-01-03 12:50:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:50:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:50:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:50:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:50:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165667', 'tblTempUsageDetail_20' ) start [2025-01-03 12:50:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165667', 'tblTempUsageDetail_20' ) end [2025-01-03 12:50:42] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:50:42] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:50:42] Production.INFO: ==28046== Releasing lock... [2025-01-03 12:50:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:50:42] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:51:05 [end_date_ymd] => 2025-01-03 12:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:51:05' and `end` < '2025-01-03 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-01-03 12:51:25] Production.INFO: count ==4115 [2025-01-03 12:51:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:51:05 - End Time 2025-01-03 12:51:05 [2025-01-03 12:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165672', 'tblTempUsageDetail_20' ) start [2025-01-03 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165672', 'tblTempUsageDetail_20' ) end [2025-01-03 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165672', 'tblTempVendorCDR_20' ) start [2025-01-03 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165672', 'tblTempVendorCDR_20' ) end [2025-01-03 12:51:27] Production.INFO: ProcessCDR(1,14165672,1,1,2) [2025-01-03 12:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165672', 'tblTempUsageDetail_20' ) start [2025-01-03 12:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165672', 'tblTempUsageDetail_20' ) end [2025-01-03 12:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:51:31] Production.INFO: ==28132== Releasing lock... [2025-01-03 12:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:51:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:52:05 [end_date_ymd] => 2025-01-03 12:52:05 [RateCDR] => 1 ) [2025-01-03 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:52:05' and `end` < '2025-01-03 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:52:19] Production.INFO: count ==4127 [2025-01-03 12:52:21] Production.ERROR: pbx CDR StartTime 2025-01-03 09:52:05 - End Time 2025-01-03 12:52:05 [2025-01-03 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165677', 'tblTempUsageDetail_20' ) start [2025-01-03 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165677', 'tblTempUsageDetail_20' ) end [2025-01-03 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165677', 'tblTempVendorCDR_20' ) start [2025-01-03 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165677', 'tblTempVendorCDR_20' ) end [2025-01-03 12:52:21] Production.INFO: ProcessCDR(1,14165677,1,1,2) [2025-01-03 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165677', 'tblTempUsageDetail_20' ) start [2025-01-03 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165677', 'tblTempUsageDetail_20' ) end [2025-01-03 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:52:26] Production.INFO: ==28214== Releasing lock... [2025-01-03 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:52:26] Production.INFO: 59 MB #Memory Used# [2025-01-03 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:53:04 [end_date_ymd] => 2025-01-03 12:53:04 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:53:04' and `end` < '2025-01-03 12: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-01-03 12:53:19] Production.INFO: count ==4126 [2025-01-03 12:53:21] Production.ERROR: pbx CDR StartTime 2025-01-03 09:53:04 - End Time 2025-01-03 12:53:04 [2025-01-03 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165682', 'tblTempUsageDetail_20' ) start [2025-01-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165682', 'tblTempUsageDetail_20' ) end [2025-01-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165682', 'tblTempVendorCDR_20' ) start [2025-01-03 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165682', 'tblTempVendorCDR_20' ) end [2025-01-03 12:53:21] Production.INFO: ProcessCDR(1,14165682,1,1,2) [2025-01-03 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165682', 'tblTempUsageDetail_20' ) start [2025-01-03 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165682', 'tblTempUsageDetail_20' ) end [2025-01-03 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:53:26] Production.INFO: ==28289== Releasing lock... [2025-01-03 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:53:26] Production.INFO: 59 MB #Memory Used# [2025-01-03 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:54:05 [end_date_ymd] => 2025-01-03 12:54:05 [RateCDR] => 1 ) [2025-01-03 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:54:05' and `end` < '2025-01-03 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:54:20] Production.INFO: count ==4125 [2025-01-03 12:54:22] Production.ERROR: pbx CDR StartTime 2025-01-03 09:54:05 - End Time 2025-01-03 12:54:05 [2025-01-03 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165687', 'tblTempUsageDetail_20' ) start [2025-01-03 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165687', 'tblTempUsageDetail_20' ) end [2025-01-03 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165687', 'tblTempVendorCDR_20' ) start [2025-01-03 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165687', 'tblTempVendorCDR_20' ) end [2025-01-03 12:54:22] Production.INFO: ProcessCDR(1,14165687,1,1,2) [2025-01-03 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165687', 'tblTempUsageDetail_20' ) start [2025-01-03 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165687', 'tblTempUsageDetail_20' ) end [2025-01-03 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:54:26] Production.INFO: ==28368== Releasing lock... [2025-01-03 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:54:26] Production.INFO: 59 MB #Memory Used# [2025-01-03 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:55:04 [end_date_ymd] => 2025-01-03 12:55:04 [RateCDR] => 1 ) [2025-01-03 12:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:55:04' and `end` < '2025-01-03 12:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:55:23] Production.INFO: count ==4132 [2025-01-03 12:55:25] Production.ERROR: pbx CDR StartTime 2025-01-03 09:55:04 - End Time 2025-01-03 12:55:04 [2025-01-03 12:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165692', 'tblTempUsageDetail_20' ) start [2025-01-03 12:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165692', 'tblTempUsageDetail_20' ) end [2025-01-03 12:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165692', 'tblTempVendorCDR_20' ) start [2025-01-03 12:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165692', 'tblTempVendorCDR_20' ) end [2025-01-03 12:55:25] Production.INFO: ProcessCDR(1,14165692,1,1,2) [2025-01-03 12:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165692', 'tblTempUsageDetail_20' ) start [2025-01-03 12:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165692', 'tblTempUsageDetail_20' ) end [2025-01-03 12:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:55:30] Production.INFO: ==28445== Releasing lock... [2025-01-03 12:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:55:30] Production.INFO: 59 MB #Memory Used# [2025-01-03 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:56:05 [end_date_ymd] => 2025-01-03 12:56:05 [RateCDR] => 1 ) [2025-01-03 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:56:05' and `end` < '2025-01-03 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:56:25] Production.INFO: count ==4118 [2025-01-03 12:56:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:56:05 - End Time 2025-01-03 12:56:05 [2025-01-03 12:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165697', 'tblTempUsageDetail_20' ) start [2025-01-03 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165697', 'tblTempUsageDetail_20' ) end [2025-01-03 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165697', 'tblTempVendorCDR_20' ) start [2025-01-03 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165697', 'tblTempVendorCDR_20' ) end [2025-01-03 12:56:27] Production.INFO: ProcessCDR(1,14165697,1,1,2) [2025-01-03 12:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165697', 'tblTempUsageDetail_20' ) start [2025-01-03 12:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165697', 'tblTempUsageDetail_20' ) end [2025-01-03 12:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:56:31] Production.INFO: ==28522== Releasing lock... [2025-01-03 12:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:56:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:57:06 [end_date_ymd] => 2025-01-03 12:57:06 [RateCDR] => 1 ) [2025-01-03 12: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-01-03 09:57:06' and `end` < '2025-01-03 12: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-01-03 12:57:24] Production.INFO: count ==4117 [2025-01-03 12:57:26] Production.ERROR: pbx CDR StartTime 2025-01-03 09:57:06 - End Time 2025-01-03 12:57:06 [2025-01-03 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165702', 'tblTempUsageDetail_20' ) start [2025-01-03 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165702', 'tblTempUsageDetail_20' ) end [2025-01-03 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165702', 'tblTempVendorCDR_20' ) start [2025-01-03 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165702', 'tblTempVendorCDR_20' ) end [2025-01-03 12:57:26] Production.INFO: ProcessCDR(1,14165702,1,1,2) [2025-01-03 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165702', 'tblTempUsageDetail_20' ) start [2025-01-03 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165702', 'tblTempUsageDetail_20' ) end [2025-01-03 12:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:57:30] Production.INFO: ==28643== Releasing lock... [2025-01-03 12:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:57:30] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:58:05 [end_date_ymd] => 2025-01-03 12:58:05 [RateCDR] => 1 ) [2025-01-03 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 09:58:05' and `end` < '2025-01-03 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 12:58:22] Production.INFO: count ==4127 [2025-01-03 12:58:24] Production.ERROR: pbx CDR StartTime 2025-01-03 09:58:05 - End Time 2025-01-03 12:58:05 [2025-01-03 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165707', 'tblTempUsageDetail_20' ) start [2025-01-03 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165707', 'tblTempUsageDetail_20' ) end [2025-01-03 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165707', 'tblTempVendorCDR_20' ) start [2025-01-03 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165707', 'tblTempVendorCDR_20' ) end [2025-01-03 12:58:24] Production.INFO: ProcessCDR(1,14165707,1,1,2) [2025-01-03 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165707', 'tblTempUsageDetail_20' ) start [2025-01-03 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165707', 'tblTempUsageDetail_20' ) end [2025-01-03 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:58:29] Production.INFO: ==28720== Releasing lock... [2025-01-03 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:58:29] Production.INFO: 59 MB #Memory Used# [2025-01-03 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 09:59:05 [end_date_ymd] => 2025-01-03 12:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 09:59:05' and `end` < '2025-01-03 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-01-03 12:59:19] Production.INFO: count ==4132 [2025-01-03 12:59:20] Production.ERROR: pbx CDR StartTime 2025-01-03 09:59:05 - End Time 2025-01-03 12:59:05 [2025-01-03 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165712', 'tblTempUsageDetail_20' ) start [2025-01-03 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165712', 'tblTempUsageDetail_20' ) end [2025-01-03 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165712', 'tblTempVendorCDR_20' ) start [2025-01-03 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165712', 'tblTempVendorCDR_20' ) end [2025-01-03 12:59:20] Production.INFO: ProcessCDR(1,14165712,1,1,2) [2025-01-03 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165712', 'tblTempUsageDetail_20' ) start [2025-01-03 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165712', 'tblTempUsageDetail_20' ) end [2025-01-03 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 12:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 12:59:25] Production.INFO: ==28795== Releasing lock... [2025-01-03 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 12:59:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:00:06 [end_date_ymd] => 2025-01-03 13:00:06 [RateCDR] => 1 ) [2025-01-03 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:00:06' and `end` < '2025-01-03 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:00:29] Production.INFO: count ==4135 [2025-01-03 13:00:31] Production.ERROR: pbx CDR StartTime 2025-01-03 10:00:06 - End Time 2025-01-03 13:00:06 [2025-01-03 13:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165718', 'tblTempUsageDetail_20' ) start [2025-01-03 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165718', 'tblTempUsageDetail_20' ) end [2025-01-03 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165718', 'tblTempVendorCDR_20' ) start [2025-01-03 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165718', 'tblTempVendorCDR_20' ) end [2025-01-03 13:00:31] Production.INFO: ProcessCDR(1,14165718,1,1,2) [2025-01-03 13:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165718', 'tblTempUsageDetail_20' ) start [2025-01-03 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165718', 'tblTempUsageDetail_20' ) end [2025-01-03 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:00:36] Production.INFO: ==28875== Releasing lock... [2025-01-03 13:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:00:36] Production.INFO: 59 MB #Memory Used# [2025-01-03 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:01:05 [end_date_ymd] => 2025-01-03 13:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:01:05' and `end` < '2025-01-03 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-01-03 13:01:34] Production.INFO: count ==4170 [2025-01-03 13:01:36] Production.ERROR: pbx CDR StartTime 2025-01-03 10:01:05 - End Time 2025-01-03 13:01:05 [2025-01-03 13:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165723', 'tblTempUsageDetail_20' ) start [2025-01-03 13:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165723', 'tblTempUsageDetail_20' ) end [2025-01-03 13:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165723', 'tblTempVendorCDR_20' ) start [2025-01-03 13:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165723', 'tblTempVendorCDR_20' ) end [2025-01-03 13:01:36] Production.INFO: ProcessCDR(1,14165723,1,1,2) [2025-01-03 13:01:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:01:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:01:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165723', 'tblTempUsageDetail_20' ) start [2025-01-03 13:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165723', 'tblTempUsageDetail_20' ) end [2025-01-03 13:01:41] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:01:41] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:01:41] Production.INFO: ==28961== Releasing lock... [2025-01-03 13:01:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:01:41] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:02:05 [end_date_ymd] => 2025-01-03 13:02:05 [RateCDR] => 1 ) [2025-01-03 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:02:05' and `end` < '2025-01-03 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:02:24] Production.INFO: count ==4175 [2025-01-03 13:02:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:02:05 - End Time 2025-01-03 13:02:05 [2025-01-03 13:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165728', 'tblTempUsageDetail_20' ) start [2025-01-03 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165728', 'tblTempUsageDetail_20' ) end [2025-01-03 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165728', 'tblTempVendorCDR_20' ) start [2025-01-03 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165728', 'tblTempVendorCDR_20' ) end [2025-01-03 13:02:26] Production.INFO: ProcessCDR(1,14165728,1,1,2) [2025-01-03 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165728', 'tblTempUsageDetail_20' ) start [2025-01-03 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165728', 'tblTempUsageDetail_20' ) end [2025-01-03 13:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:02:31] Production.INFO: ==29036== Releasing lock... [2025-01-03 13:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:02:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:03:05 [end_date_ymd] => 2025-01-03 13:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:03:05' and `end` < '2025-01-03 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-01-03 13:03:19] Production.INFO: count ==4177 [2025-01-03 13:03:21] Production.ERROR: pbx CDR StartTime 2025-01-03 10:03:05 - End Time 2025-01-03 13:03:05 [2025-01-03 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165733', 'tblTempUsageDetail_20' ) start [2025-01-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165733', 'tblTempUsageDetail_20' ) end [2025-01-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165733', 'tblTempVendorCDR_20' ) start [2025-01-03 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165733', 'tblTempVendorCDR_20' ) end [2025-01-03 13:03:21] Production.INFO: ProcessCDR(1,14165733,1,1,2) [2025-01-03 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165733', 'tblTempUsageDetail_20' ) start [2025-01-03 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165733', 'tblTempUsageDetail_20' ) end [2025-01-03 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:03:26] Production.INFO: ==29112== Releasing lock... [2025-01-03 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:03:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:04:05 [end_date_ymd] => 2025-01-03 13:04:05 [RateCDR] => 1 ) [2025-01-03 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:04:05' and `end` < '2025-01-03 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:04:18] Production.INFO: count ==4176 [2025-01-03 13:04:20] Production.ERROR: pbx CDR StartTime 2025-01-03 10:04:05 - End Time 2025-01-03 13:04:05 [2025-01-03 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165738', 'tblTempUsageDetail_20' ) start [2025-01-03 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165738', 'tblTempUsageDetail_20' ) end [2025-01-03 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165738', 'tblTempVendorCDR_20' ) start [2025-01-03 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165738', 'tblTempVendorCDR_20' ) end [2025-01-03 13:04:20] Production.INFO: ProcessCDR(1,14165738,1,1,2) [2025-01-03 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165738', 'tblTempUsageDetail_20' ) start [2025-01-03 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165738', 'tblTempUsageDetail_20' ) end [2025-01-03 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:04:25] Production.INFO: ==29185== Releasing lock... [2025-01-03 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:04:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:05:06 [end_date_ymd] => 2025-01-03 13:05:06 [RateCDR] => 1 ) [2025-01-03 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:05:06' and `end` < '2025-01-03 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:05:23] Production.INFO: count ==4182 [2025-01-03 13:05:25] Production.ERROR: pbx CDR StartTime 2025-01-03 10:05:06 - End Time 2025-01-03 13:05:06 [2025-01-03 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165743', 'tblTempUsageDetail_20' ) start [2025-01-03 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165743', 'tblTempUsageDetail_20' ) end [2025-01-03 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165743', 'tblTempVendorCDR_20' ) start [2025-01-03 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165743', 'tblTempVendorCDR_20' ) end [2025-01-03 13:05:25] Production.INFO: ProcessCDR(1,14165743,1,1,2) [2025-01-03 13:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165743', 'tblTempUsageDetail_20' ) start [2025-01-03 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165743', 'tblTempUsageDetail_20' ) end [2025-01-03 13:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:05:30] Production.INFO: ==29258== Releasing lock... [2025-01-03 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:05:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:06:05 [end_date_ymd] => 2025-01-03 13:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:06:05' and `end` < '2025-01-03 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-01-03 13:06:23] Production.INFO: count ==4177 [2025-01-03 13:06:25] Production.ERROR: pbx CDR StartTime 2025-01-03 10:06:05 - End Time 2025-01-03 13:06:05 [2025-01-03 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165748', 'tblTempUsageDetail_20' ) start [2025-01-03 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165748', 'tblTempUsageDetail_20' ) end [2025-01-03 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165748', 'tblTempVendorCDR_20' ) start [2025-01-03 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165748', 'tblTempVendorCDR_20' ) end [2025-01-03 13:06:25] Production.INFO: ProcessCDR(1,14165748,1,1,2) [2025-01-03 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165748', 'tblTempUsageDetail_20' ) start [2025-01-03 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165748', 'tblTempUsageDetail_20' ) end [2025-01-03 13:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:06:30] Production.INFO: ==29331== Releasing lock... [2025-01-03 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:06:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:07:06 [end_date_ymd] => 2025-01-03 13:07:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:07:06' and `end` < '2025-01-03 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-01-03 13:07:28] Production.INFO: count ==4186 [2025-01-03 13:07:30] Production.ERROR: pbx CDR StartTime 2025-01-03 10:07:06 - End Time 2025-01-03 13:07:06 [2025-01-03 13:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165753', 'tblTempUsageDetail_20' ) start [2025-01-03 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165753', 'tblTempUsageDetail_20' ) end [2025-01-03 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165753', 'tblTempVendorCDR_20' ) start [2025-01-03 13:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165753', 'tblTempVendorCDR_20' ) end [2025-01-03 13:07:30] Production.INFO: ProcessCDR(1,14165753,1,1,2) [2025-01-03 13:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165753', 'tblTempUsageDetail_20' ) start [2025-01-03 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165753', 'tblTempUsageDetail_20' ) end [2025-01-03 13:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:07:34] Production.INFO: ==29409== Releasing lock... [2025-01-03 13:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:07:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:08:05 [end_date_ymd] => 2025-01-03 13:08:05 [RateCDR] => 1 ) [2025-01-03 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:08:05' and `end` < '2025-01-03 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:08:20] Production.INFO: count ==4166 [2025-01-03 13:08:22] Production.ERROR: pbx CDR StartTime 2025-01-03 10:08:05 - End Time 2025-01-03 13:08:05 [2025-01-03 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165758', 'tblTempUsageDetail_20' ) start [2025-01-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165758', 'tblTempUsageDetail_20' ) end [2025-01-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165758', 'tblTempVendorCDR_20' ) start [2025-01-03 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165758', 'tblTempVendorCDR_20' ) end [2025-01-03 13:08:22] Production.INFO: ProcessCDR(1,14165758,1,1,2) [2025-01-03 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165758', 'tblTempUsageDetail_20' ) start [2025-01-03 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165758', 'tblTempUsageDetail_20' ) end [2025-01-03 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:08:26] Production.INFO: ==29481== Releasing lock... [2025-01-03 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:08:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:09:06 [end_date_ymd] => 2025-01-03 13:09:06 [RateCDR] => 1 ) [2025-01-03 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:09:06' and `end` < '2025-01-03 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:09:21] Production.INFO: count ==4161 [2025-01-03 13:09:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:09:06 - End Time 2025-01-03 13:09:06 [2025-01-03 13:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165763', 'tblTempUsageDetail_20' ) start [2025-01-03 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165763', 'tblTempUsageDetail_20' ) end [2025-01-03 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165763', 'tblTempVendorCDR_20' ) start [2025-01-03 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165763', 'tblTempVendorCDR_20' ) end [2025-01-03 13:09:23] Production.INFO: ProcessCDR(1,14165763,1,1,2) [2025-01-03 13:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165763', 'tblTempUsageDetail_20' ) start [2025-01-03 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165763', 'tblTempUsageDetail_20' ) end [2025-01-03 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:09:28] Production.INFO: ==29561== Releasing lock... [2025-01-03 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:09:28] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:10:06 [end_date_ymd] => 2025-01-03 13:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:10:06' and `end` < '2025-01-03 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-01-03 13:10:24] Production.INFO: count ==4161 [2025-01-03 13:10:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:10:06 - End Time 2025-01-03 13:10:06 [2025-01-03 13:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165769', 'tblTempUsageDetail_20' ) start [2025-01-03 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165769', 'tblTempUsageDetail_20' ) end [2025-01-03 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165769', 'tblTempVendorCDR_20' ) start [2025-01-03 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165769', 'tblTempVendorCDR_20' ) end [2025-01-03 13:10:26] Production.INFO: ProcessCDR(1,14165769,1,1,2) [2025-01-03 13:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165769', 'tblTempUsageDetail_20' ) start [2025-01-03 13:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165769', 'tblTempUsageDetail_20' ) end [2025-01-03 13:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:10:31] Production.INFO: ==29637== Releasing lock... [2025-01-03 13:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:10:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:11:04 [end_date_ymd] => 2025-01-03 13:11:04 [RateCDR] => 1 ) [2025-01-03 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:11:04' and `end` < '2025-01-03 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:11:19] Production.INFO: count ==4200 [2025-01-03 13:11:20] Production.ERROR: pbx CDR StartTime 2025-01-03 10:11:04 - End Time 2025-01-03 13:11:04 [2025-01-03 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165774', 'tblTempUsageDetail_20' ) start [2025-01-03 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165774', 'tblTempUsageDetail_20' ) end [2025-01-03 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165774', 'tblTempVendorCDR_20' ) start [2025-01-03 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165774', 'tblTempVendorCDR_20' ) end [2025-01-03 13:11:21] Production.INFO: ProcessCDR(1,14165774,1,1,2) [2025-01-03 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165774', 'tblTempUsageDetail_20' ) start [2025-01-03 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165774', 'tblTempUsageDetail_20' ) end [2025-01-03 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:11:25] Production.INFO: ==29709== Releasing lock... [2025-01-03 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:11:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:12:05 [end_date_ymd] => 2025-01-03 13:12:05 [RateCDR] => 1 ) [2025-01-03 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:12:05' and `end` < '2025-01-03 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:12:27] Production.INFO: count ==4192 [2025-01-03 13:12:29] Production.ERROR: pbx CDR StartTime 2025-01-03 10:12:05 - End Time 2025-01-03 13:12:05 [2025-01-03 13:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165779', 'tblTempUsageDetail_20' ) start [2025-01-03 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165779', 'tblTempUsageDetail_20' ) end [2025-01-03 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165779', 'tblTempVendorCDR_20' ) start [2025-01-03 13:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165779', 'tblTempVendorCDR_20' ) end [2025-01-03 13:12:29] Production.INFO: ProcessCDR(1,14165779,1,1,2) [2025-01-03 13:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165779', 'tblTempUsageDetail_20' ) start [2025-01-03 13:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165779', 'tblTempUsageDetail_20' ) end [2025-01-03 13:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:12:34] Production.INFO: ==29823== Releasing lock... [2025-01-03 13:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:12:34] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:13:05 [end_date_ymd] => 2025-01-03 13:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:13:05' and `end` < '2025-01-03 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-01-03 13:13:24] Production.INFO: count ==4190 [2025-01-03 13:13:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:13:05 - End Time 2025-01-03 13:13:05 [2025-01-03 13:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165784', 'tblTempUsageDetail_20' ) start [2025-01-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165784', 'tblTempUsageDetail_20' ) end [2025-01-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165784', 'tblTempVendorCDR_20' ) start [2025-01-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165784', 'tblTempVendorCDR_20' ) end [2025-01-03 13:13:26] Production.INFO: ProcessCDR(1,14165784,1,1,2) [2025-01-03 13:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165784', 'tblTempUsageDetail_20' ) start [2025-01-03 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165784', 'tblTempUsageDetail_20' ) end [2025-01-03 13:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:13:31] Production.INFO: ==29896== Releasing lock... [2025-01-03 13:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:13:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:14:05 [end_date_ymd] => 2025-01-03 13:14:05 [RateCDR] => 1 ) [2025-01-03 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:14:05' and `end` < '2025-01-03 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:14:24] Production.INFO: count ==4194 [2025-01-03 13:14:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:14:05 - End Time 2025-01-03 13:14:05 [2025-01-03 13:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165789', 'tblTempUsageDetail_20' ) start [2025-01-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165789', 'tblTempUsageDetail_20' ) end [2025-01-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165789', 'tblTempVendorCDR_20' ) start [2025-01-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165789', 'tblTempVendorCDR_20' ) end [2025-01-03 13:14:26] Production.INFO: ProcessCDR(1,14165789,1,1,2) [2025-01-03 13:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165789', 'tblTempUsageDetail_20' ) start [2025-01-03 13:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165789', 'tblTempUsageDetail_20' ) end [2025-01-03 13:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:14:31] Production.INFO: ==29968== Releasing lock... [2025-01-03 13:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:14:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:15:04 [end_date_ymd] => 2025-01-03 13:15:04 [RateCDR] => 1 ) [2025-01-03 13:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:15:04' and `end` < '2025-01-03 13:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:15:19] Production.INFO: count ==4185 [2025-01-03 13:15:21] Production.ERROR: pbx CDR StartTime 2025-01-03 10:15:04 - End Time 2025-01-03 13:15:04 [2025-01-03 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165794', 'tblTempUsageDetail_20' ) start [2025-01-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165794', 'tblTempUsageDetail_20' ) end [2025-01-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165794', 'tblTempVendorCDR_20' ) start [2025-01-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165794', 'tblTempVendorCDR_20' ) end [2025-01-03 13:15:21] Production.INFO: ProcessCDR(1,14165794,1,1,2) [2025-01-03 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165794', 'tblTempUsageDetail_20' ) start [2025-01-03 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165794', 'tblTempUsageDetail_20' ) end [2025-01-03 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:15:26] Production.INFO: ==30040== Releasing lock... [2025-01-03 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:15:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:16:05 [end_date_ymd] => 2025-01-03 13:16:05 [RateCDR] => 1 ) [2025-01-03 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:16:05' and `end` < '2025-01-03 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:16:20] Production.INFO: count ==4183 [2025-01-03 13:16:21] Production.ERROR: pbx CDR StartTime 2025-01-03 10:16:05 - End Time 2025-01-03 13:16:05 [2025-01-03 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165799', 'tblTempUsageDetail_20' ) start [2025-01-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165799', 'tblTempUsageDetail_20' ) end [2025-01-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165799', 'tblTempVendorCDR_20' ) start [2025-01-03 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165799', 'tblTempVendorCDR_20' ) end [2025-01-03 13:16:21] Production.INFO: ProcessCDR(1,14165799,1,1,2) [2025-01-03 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165799', 'tblTempUsageDetail_20' ) start [2025-01-03 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165799', 'tblTempUsageDetail_20' ) end [2025-01-03 13:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:16:25] Production.INFO: ==30114== Releasing lock... [2025-01-03 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:16:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:17:05 [end_date_ymd] => 2025-01-03 13:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:17:05' and `end` < '2025-01-03 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-01-03 13:17:19] Production.INFO: count ==4175 [2025-01-03 13:17:20] Production.ERROR: pbx CDR StartTime 2025-01-03 10:17:05 - End Time 2025-01-03 13:17:05 [2025-01-03 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165804', 'tblTempUsageDetail_20' ) start [2025-01-03 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165804', 'tblTempUsageDetail_20' ) end [2025-01-03 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165804', 'tblTempVendorCDR_20' ) start [2025-01-03 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165804', 'tblTempVendorCDR_20' ) end [2025-01-03 13:17:20] Production.INFO: ProcessCDR(1,14165804,1,1,2) [2025-01-03 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165804', 'tblTempUsageDetail_20' ) start [2025-01-03 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165804', 'tblTempUsageDetail_20' ) end [2025-01-03 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:17:25] Production.INFO: ==30190== Releasing lock... [2025-01-03 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:17:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:18:05 [end_date_ymd] => 2025-01-03 13:18:05 [RateCDR] => 1 ) [2025-01-03 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:18:05' and `end` < '2025-01-03 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:18:19] Production.INFO: count ==4184 [2025-01-03 13:18:21] Production.ERROR: pbx CDR StartTime 2025-01-03 10:18:05 - End Time 2025-01-03 13:18:05 [2025-01-03 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165809', 'tblTempUsageDetail_20' ) start [2025-01-03 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165809', 'tblTempUsageDetail_20' ) end [2025-01-03 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165809', 'tblTempVendorCDR_20' ) start [2025-01-03 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165809', 'tblTempVendorCDR_20' ) end [2025-01-03 13:18:21] Production.INFO: ProcessCDR(1,14165809,1,1,2) [2025-01-03 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165809', 'tblTempUsageDetail_20' ) start [2025-01-03 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165809', 'tblTempUsageDetail_20' ) end [2025-01-03 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:18:26] Production.INFO: ==30262== Releasing lock... [2025-01-03 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:18:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:19:05 [end_date_ymd] => 2025-01-03 13:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:19:05' and `end` < '2025-01-03 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-01-03 13:19:26] Production.INFO: count ==4195 [2025-01-03 13:19:28] Production.ERROR: pbx CDR StartTime 2025-01-03 10:19:05 - End Time 2025-01-03 13:19:05 [2025-01-03 13:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165814', 'tblTempUsageDetail_20' ) start [2025-01-03 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165814', 'tblTempUsageDetail_20' ) end [2025-01-03 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165814', 'tblTempVendorCDR_20' ) start [2025-01-03 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165814', 'tblTempVendorCDR_20' ) end [2025-01-03 13:19:28] Production.INFO: ProcessCDR(1,14165814,1,1,2) [2025-01-03 13:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165814', 'tblTempUsageDetail_20' ) start [2025-01-03 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165814', 'tblTempUsageDetail_20' ) end [2025-01-03 13:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:19:32] Production.INFO: ==30335== Releasing lock... [2025-01-03 13:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:19:32] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:20:05 [end_date_ymd] => 2025-01-03 13:20:05 [RateCDR] => 1 ) [2025-01-03 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:20:05' and `end` < '2025-01-03 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:20:21] Production.INFO: count ==4183 [2025-01-03 13:20:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:20:05 - End Time 2025-01-03 13:20:05 [2025-01-03 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165819', 'tblTempUsageDetail_20' ) start [2025-01-03 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165819', 'tblTempUsageDetail_20' ) end [2025-01-03 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165819', 'tblTempVendorCDR_20' ) start [2025-01-03 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165819', 'tblTempVendorCDR_20' ) end [2025-01-03 13:20:23] Production.INFO: ProcessCDR(1,14165819,1,1,2) [2025-01-03 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165819', 'tblTempUsageDetail_20' ) start [2025-01-03 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165819', 'tblTempUsageDetail_20' ) end [2025-01-03 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:20:27] Production.INFO: ==30407== Releasing lock... [2025-01-03 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:20:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:21:05 [end_date_ymd] => 2025-01-03 13:21:05 [RateCDR] => 1 ) [2025-01-03 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:21:05' and `end` < '2025-01-03 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:21:25] Production.INFO: count ==4247 [2025-01-03 13:21:27] Production.ERROR: pbx CDR StartTime 2025-01-03 10:21:05 - End Time 2025-01-03 13:21:05 [2025-01-03 13:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165825', 'tblTempUsageDetail_20' ) start [2025-01-03 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165825', 'tblTempUsageDetail_20' ) end [2025-01-03 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165825', 'tblTempVendorCDR_20' ) start [2025-01-03 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165825', 'tblTempVendorCDR_20' ) end [2025-01-03 13:21:27] Production.INFO: ProcessCDR(1,14165825,1,1,2) [2025-01-03 13:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165825', 'tblTempUsageDetail_20' ) start [2025-01-03 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165825', 'tblTempUsageDetail_20' ) end [2025-01-03 13:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:21:31] Production.INFO: ==30486== Releasing lock... [2025-01-03 13:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:21:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:22:05 [end_date_ymd] => 2025-01-03 13:22:05 [RateCDR] => 1 ) [2025-01-03 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:22:05' and `end` < '2025-01-03 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:22:31] Production.INFO: count ==4265 [2025-01-03 13:22:32] Production.ERROR: pbx CDR StartTime 2025-01-03 10:22:05 - End Time 2025-01-03 13:22:05 [2025-01-03 13:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165830', 'tblTempUsageDetail_20' ) start [2025-01-03 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165830', 'tblTempUsageDetail_20' ) end [2025-01-03 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165830', 'tblTempVendorCDR_20' ) start [2025-01-03 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165830', 'tblTempVendorCDR_20' ) end [2025-01-03 13:22:32] Production.INFO: ProcessCDR(1,14165830,1,1,2) [2025-01-03 13:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:22:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:22:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:22:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165830', 'tblTempUsageDetail_20' ) start [2025-01-03 13:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165830', 'tblTempUsageDetail_20' ) end [2025-01-03 13:22:37] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:22:37] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:22:37] Production.INFO: ==30561== Releasing lock... [2025-01-03 13:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:22:37] Production.INFO: 60 MB #Memory Used# [2025-01-03 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:23:04 [end_date_ymd] => 2025-01-03 13:23:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:23:04' and `end` < '2025-01-03 13: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-01-03 13:23:25] Production.INFO: count ==4281 [2025-01-03 13:23:27] Production.ERROR: pbx CDR StartTime 2025-01-03 10:23:04 - End Time 2025-01-03 13:23:04 [2025-01-03 13:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165835', 'tblTempUsageDetail_20' ) start [2025-01-03 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165835', 'tblTempUsageDetail_20' ) end [2025-01-03 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165835', 'tblTempVendorCDR_20' ) start [2025-01-03 13:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165835', 'tblTempVendorCDR_20' ) end [2025-01-03 13:23:27] Production.INFO: ProcessCDR(1,14165835,1,1,2) [2025-01-03 13:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165835', 'tblTempUsageDetail_20' ) start [2025-01-03 13:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165835', 'tblTempUsageDetail_20' ) end [2025-01-03 13:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:23:32] Production.INFO: ==30635== Releasing lock... [2025-01-03 13:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:23:32] Production.INFO: 60 MB #Memory Used# [2025-01-03 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:24:05 [end_date_ymd] => 2025-01-03 13:24:05 [RateCDR] => 1 ) [2025-01-03 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:24:05' and `end` < '2025-01-03 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:24:24] Production.INFO: count ==4278 [2025-01-03 13:24:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:24:05 - End Time 2025-01-03 13:24:05 [2025-01-03 13:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165840', 'tblTempUsageDetail_20' ) start [2025-01-03 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165840', 'tblTempUsageDetail_20' ) end [2025-01-03 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165840', 'tblTempVendorCDR_20' ) start [2025-01-03 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165840', 'tblTempVendorCDR_20' ) end [2025-01-03 13:24:26] Production.INFO: ProcessCDR(1,14165840,1,1,2) [2025-01-03 13:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165840', 'tblTempUsageDetail_20' ) start [2025-01-03 13:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165840', 'tblTempUsageDetail_20' ) end [2025-01-03 13:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:24:31] Production.INFO: ==30711== Releasing lock... [2025-01-03 13:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:24:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:25:04 [end_date_ymd] => 2025-01-03 13:25:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:25:04' and `end` < '2025-01-03 13: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-01-03 13:25:24] Production.INFO: count ==4268 [2025-01-03 13:25:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:25:04 - End Time 2025-01-03 13:25:04 [2025-01-03 13:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165845', 'tblTempUsageDetail_20' ) start [2025-01-03 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165845', 'tblTempUsageDetail_20' ) end [2025-01-03 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165845', 'tblTempVendorCDR_20' ) start [2025-01-03 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165845', 'tblTempVendorCDR_20' ) end [2025-01-03 13:25:26] Production.INFO: ProcessCDR(1,14165845,1,1,2) [2025-01-03 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165845', 'tblTempUsageDetail_20' ) start [2025-01-03 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165845', 'tblTempUsageDetail_20' ) end [2025-01-03 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:25:31] Production.INFO: ==30784== Releasing lock... [2025-01-03 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:25:31] Production.INFO: 60 MB #Memory Used# [2025-01-03 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:26:05 [end_date_ymd] => 2025-01-03 13:26:05 [RateCDR] => 1 ) [2025-01-03 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:26:05' and `end` < '2025-01-03 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:26:23] Production.INFO: count ==4278 [2025-01-03 13:26:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:26:05 - End Time 2025-01-03 13:26:05 [2025-01-03 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165850', 'tblTempUsageDetail_20' ) start [2025-01-03 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165850', 'tblTempUsageDetail_20' ) end [2025-01-03 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165850', 'tblTempVendorCDR_20' ) start [2025-01-03 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165850', 'tblTempVendorCDR_20' ) end [2025-01-03 13:26:24] Production.INFO: ProcessCDR(1,14165850,1,1,2) [2025-01-03 13:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165850', 'tblTempUsageDetail_20' ) start [2025-01-03 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165850', 'tblTempUsageDetail_20' ) end [2025-01-03 13:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:26:29] Production.INFO: ==30858== Releasing lock... [2025-01-03 13:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:26:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:27:05 [end_date_ymd] => 2025-01-03 13:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:27:05' and `end` < '2025-01-03 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-01-03 13:27:34] Production.INFO: count ==4291 [2025-01-03 13:27:36] Production.ERROR: pbx CDR StartTime 2025-01-03 10:27:05 - End Time 2025-01-03 13:27:05 [2025-01-03 13:27:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165855', 'tblTempUsageDetail_20' ) start [2025-01-03 13:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165855', 'tblTempUsageDetail_20' ) end [2025-01-03 13:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165855', 'tblTempVendorCDR_20' ) start [2025-01-03 13:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165855', 'tblTempVendorCDR_20' ) end [2025-01-03 13:27:36] Production.INFO: ProcessCDR(1,14165855,1,1,2) [2025-01-03 13:27:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:27:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:27:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:27:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165855', 'tblTempUsageDetail_20' ) start [2025-01-03 13:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165855', 'tblTempUsageDetail_20' ) end [2025-01-03 13:27:41] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:27:41] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:27:41] Production.INFO: ==30934== Releasing lock... [2025-01-03 13:27:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:27:41] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:28:05 [end_date_ymd] => 2025-01-03 13:28:05 [RateCDR] => 1 ) [2025-01-03 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:28:05' and `end` < '2025-01-03 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:28:25] Production.INFO: count ==4309 [2025-01-03 13:28:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:28:05 - End Time 2025-01-03 13:28:05 [2025-01-03 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165860', 'tblTempUsageDetail_20' ) start [2025-01-03 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165860', 'tblTempUsageDetail_20' ) end [2025-01-03 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165860', 'tblTempVendorCDR_20' ) start [2025-01-03 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165860', 'tblTempVendorCDR_20' ) end [2025-01-03 13:28:26] Production.INFO: ProcessCDR(1,14165860,1,1,2) [2025-01-03 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165860', 'tblTempUsageDetail_20' ) start [2025-01-03 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165860', 'tblTempUsageDetail_20' ) end [2025-01-03 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:28:31] Production.INFO: ==31048== Releasing lock... [2025-01-03 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:28:31] Production.INFO: 60.5 MB #Memory Used# [2025-01-03 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:29:04 [end_date_ymd] => 2025-01-03 13:29:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:29:04' and `end` < '2025-01-03 13: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-01-03 13:29:23] Production.INFO: count ==4322 [2025-01-03 13:29:25] Production.ERROR: pbx CDR StartTime 2025-01-03 10:29:04 - End Time 2025-01-03 13:29:04 [2025-01-03 13:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165865', 'tblTempUsageDetail_20' ) start [2025-01-03 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165865', 'tblTempUsageDetail_20' ) end [2025-01-03 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165865', 'tblTempVendorCDR_20' ) start [2025-01-03 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165865', 'tblTempVendorCDR_20' ) end [2025-01-03 13:29:25] Production.INFO: ProcessCDR(1,14165865,1,1,2) [2025-01-03 13:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165865', 'tblTempUsageDetail_20' ) start [2025-01-03 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165865', 'tblTempUsageDetail_20' ) end [2025-01-03 13:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:29:29] Production.INFO: ==31118== Releasing lock... [2025-01-03 13:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:29:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-03 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:30:05 [end_date_ymd] => 2025-01-03 13:30:05 [RateCDR] => 1 ) [2025-01-03 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:30:05' and `end` < '2025-01-03 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:30:19] Production.INFO: count ==4320 [2025-01-03 13:30:21] Production.ERROR: pbx CDR StartTime 2025-01-03 10:30:05 - End Time 2025-01-03 13:30:05 [2025-01-03 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165871', 'tblTempUsageDetail_20' ) start [2025-01-03 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165871', 'tblTempUsageDetail_20' ) end [2025-01-03 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165871', 'tblTempVendorCDR_20' ) start [2025-01-03 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165871', 'tblTempVendorCDR_20' ) end [2025-01-03 13:30:21] Production.INFO: ProcessCDR(1,14165871,1,1,2) [2025-01-03 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165871', 'tblTempUsageDetail_20' ) start [2025-01-03 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165871', 'tblTempUsageDetail_20' ) end [2025-01-03 13:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:30:25] Production.INFO: ==31193== Releasing lock... [2025-01-03 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:30:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:31:05 [end_date_ymd] => 2025-01-03 13:31:05 [RateCDR] => 1 ) [2025-01-03 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:31:05' and `end` < '2025-01-03 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:31:21] Production.INFO: count ==4391 [2025-01-03 13:31:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:31:05 - End Time 2025-01-03 13:31:05 [2025-01-03 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165876', 'tblTempUsageDetail_20' ) start [2025-01-03 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165876', 'tblTempUsageDetail_20' ) end [2025-01-03 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165876', 'tblTempVendorCDR_20' ) start [2025-01-03 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165876', 'tblTempVendorCDR_20' ) end [2025-01-03 13:31:23] Production.INFO: ProcessCDR(1,14165876,1,1,2) [2025-01-03 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165876', 'tblTempUsageDetail_20' ) start [2025-01-03 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165876', 'tblTempUsageDetail_20' ) end [2025-01-03 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:31:28] Production.INFO: ==31268== Releasing lock... [2025-01-03 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:31:28] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:32:05 [end_date_ymd] => 2025-01-03 13:32:05 [RateCDR] => 1 ) [2025-01-03 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:32:05' and `end` < '2025-01-03 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:32:21] Production.INFO: count ==4406 [2025-01-03 13:32:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:32:05 - End Time 2025-01-03 13:32:05 [2025-01-03 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165881', 'tblTempUsageDetail_20' ) start [2025-01-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165881', 'tblTempUsageDetail_20' ) end [2025-01-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165881', 'tblTempVendorCDR_20' ) start [2025-01-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165881', 'tblTempVendorCDR_20' ) end [2025-01-03 13:32:23] Production.INFO: ProcessCDR(1,14165881,1,1,2) [2025-01-03 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165881', 'tblTempUsageDetail_20' ) start [2025-01-03 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165881', 'tblTempUsageDetail_20' ) end [2025-01-03 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:32:27] Production.INFO: ==31340== Releasing lock... [2025-01-03 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:32:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:33:05 [end_date_ymd] => 2025-01-03 13:33:05 [RateCDR] => 1 ) [2025-01-03 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:33:05' and `end` < '2025-01-03 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:33:30] Production.INFO: count ==4405 [2025-01-03 13:33:32] Production.ERROR: pbx CDR StartTime 2025-01-03 10:33:05 - End Time 2025-01-03 13:33:05 [2025-01-03 13:33:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165886', 'tblTempUsageDetail_20' ) start [2025-01-03 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165886', 'tblTempUsageDetail_20' ) end [2025-01-03 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165886', 'tblTempVendorCDR_20' ) start [2025-01-03 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165886', 'tblTempVendorCDR_20' ) end [2025-01-03 13:33:32] Production.INFO: ProcessCDR(1,14165886,1,1,2) [2025-01-03 13:33:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165886', 'tblTempUsageDetail_20' ) start [2025-01-03 13:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165886', 'tblTempUsageDetail_20' ) end [2025-01-03 13:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:33:36] Production.INFO: ==31412== Releasing lock... [2025-01-03 13:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:33:36] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:34:05 [end_date_ymd] => 2025-01-03 13:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:34:05' and `end` < '2025-01-03 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-01-03 13:34:24] Production.INFO: count ==4400 [2025-01-03 13:34:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:34:05 - End Time 2025-01-03 13:34:05 [2025-01-03 13:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165891', 'tblTempUsageDetail_20' ) start [2025-01-03 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165891', 'tblTempUsageDetail_20' ) end [2025-01-03 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165891', 'tblTempVendorCDR_20' ) start [2025-01-03 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165891', 'tblTempVendorCDR_20' ) end [2025-01-03 13:34:26] Production.INFO: ProcessCDR(1,14165891,1,1,2) [2025-01-03 13:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165891', 'tblTempUsageDetail_20' ) start [2025-01-03 13:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165891', 'tblTempUsageDetail_20' ) end [2025-01-03 13:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:34:31] Production.INFO: ==31482== Releasing lock... [2025-01-03 13:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:34:31] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:35:05 [end_date_ymd] => 2025-01-03 13:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:35:05' and `end` < '2025-01-03 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-01-03 13:35:37] Production.INFO: count ==4406 [2025-01-03 13:35:39] Production.ERROR: pbx CDR StartTime 2025-01-03 10:35:05 - End Time 2025-01-03 13:35:05 [2025-01-03 13:35:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165896', 'tblTempUsageDetail_20' ) start [2025-01-03 13:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165896', 'tblTempUsageDetail_20' ) end [2025-01-03 13:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165896', 'tblTempVendorCDR_20' ) start [2025-01-03 13:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165896', 'tblTempVendorCDR_20' ) end [2025-01-03 13:35:39] Production.INFO: ProcessCDR(1,14165896,1,1,2) [2025-01-03 13:35:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:35:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:35:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:35:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165896', 'tblTempUsageDetail_20' ) start [2025-01-03 13:35:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165896', 'tblTempUsageDetail_20' ) end [2025-01-03 13:35:44] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:35:44] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:35:44] Production.INFO: ==31559== Releasing lock... [2025-01-03 13:35:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:35:44] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:36:04 [end_date_ymd] => 2025-01-03 13:36:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:36:04' and `end` < '2025-01-03 13: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-01-03 13:36:25] Production.INFO: count ==4407 [2025-01-03 13:36:27] Production.ERROR: pbx CDR StartTime 2025-01-03 10:36:04 - End Time 2025-01-03 13:36:04 [2025-01-03 13:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165901', 'tblTempUsageDetail_20' ) start [2025-01-03 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165901', 'tblTempUsageDetail_20' ) end [2025-01-03 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165901', 'tblTempVendorCDR_20' ) start [2025-01-03 13:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165901', 'tblTempVendorCDR_20' ) end [2025-01-03 13:36:27] Production.INFO: ProcessCDR(1,14165901,1,1,2) [2025-01-03 13:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165901', 'tblTempUsageDetail_20' ) start [2025-01-03 13:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165901', 'tblTempUsageDetail_20' ) end [2025-01-03 13:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:36:32] Production.INFO: ==31639== Releasing lock... [2025-01-03 13:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:36:32] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:37:05 [end_date_ymd] => 2025-01-03 13:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:37:05' and `end` < '2025-01-03 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-01-03 13:37:22] Production.INFO: count ==4416 [2025-01-03 13:37:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:37:05 - End Time 2025-01-03 13:37:05 [2025-01-03 13:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165906', 'tblTempUsageDetail_20' ) start [2025-01-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165906', 'tblTempUsageDetail_20' ) end [2025-01-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165906', 'tblTempVendorCDR_20' ) start [2025-01-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165906', 'tblTempVendorCDR_20' ) end [2025-01-03 13:37:24] Production.INFO: ProcessCDR(1,14165906,1,1,2) [2025-01-03 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165906', 'tblTempUsageDetail_20' ) start [2025-01-03 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165906', 'tblTempUsageDetail_20' ) end [2025-01-03 13:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:37:29] Production.INFO: ==31714== Releasing lock... [2025-01-03 13:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:37:29] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:38:04 [end_date_ymd] => 2025-01-03 13:38:04 [RateCDR] => 1 ) [2025-01-03 13:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:38:04' and `end` < '2025-01-03 13:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:38:18] Production.INFO: count ==4402 [2025-01-03 13:38:20] Production.ERROR: pbx CDR StartTime 2025-01-03 10:38:04 - End Time 2025-01-03 13:38:04 [2025-01-03 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165911', 'tblTempUsageDetail_20' ) start [2025-01-03 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165911', 'tblTempUsageDetail_20' ) end [2025-01-03 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165911', 'tblTempVendorCDR_20' ) start [2025-01-03 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165911', 'tblTempVendorCDR_20' ) end [2025-01-03 13:38:20] Production.INFO: ProcessCDR(1,14165911,1,1,2) [2025-01-03 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165911', 'tblTempUsageDetail_20' ) start [2025-01-03 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165911', 'tblTempUsageDetail_20' ) end [2025-01-03 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:38:25] Production.INFO: ==31786== Releasing lock... [2025-01-03 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:38:25] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:39:04 [end_date_ymd] => 2025-01-03 13:39:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:39:04' and `end` < '2025-01-03 13: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-01-03 13:39:18] Production.INFO: count ==4394 [2025-01-03 13:39:20] Production.ERROR: pbx CDR StartTime 2025-01-03 10:39:04 - End Time 2025-01-03 13:39:04 [2025-01-03 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165916', 'tblTempUsageDetail_20' ) start [2025-01-03 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165916', 'tblTempUsageDetail_20' ) end [2025-01-03 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165916', 'tblTempVendorCDR_20' ) start [2025-01-03 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165916', 'tblTempVendorCDR_20' ) end [2025-01-03 13:39:20] Production.INFO: ProcessCDR(1,14165916,1,1,2) [2025-01-03 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165916', 'tblTempUsageDetail_20' ) start [2025-01-03 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165916', 'tblTempUsageDetail_20' ) end [2025-01-03 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:39:25] Production.INFO: ==31860== Releasing lock... [2025-01-03 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:39:25] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:40:05 [end_date_ymd] => 2025-01-03 13:40:05 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:40:05' and `end` < '2025-01-03 13: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-01-03 13:40:25] Production.INFO: count ==4407 [2025-01-03 13:40:27] Production.ERROR: pbx CDR StartTime 2025-01-03 10:40:05 - End Time 2025-01-03 13:40:05 [2025-01-03 13:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165922', 'tblTempUsageDetail_20' ) start [2025-01-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165922', 'tblTempUsageDetail_20' ) end [2025-01-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165922', 'tblTempVendorCDR_20' ) start [2025-01-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165922', 'tblTempVendorCDR_20' ) end [2025-01-03 13:40:27] Production.INFO: ProcessCDR(1,14165922,1,1,2) [2025-01-03 13:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165922', 'tblTempUsageDetail_20' ) start [2025-01-03 13:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165922', 'tblTempUsageDetail_20' ) end [2025-01-03 13:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:40:32] Production.INFO: ==31936== Releasing lock... [2025-01-03 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:40:32] Production.INFO: 61 MB #Memory Used# [2025-01-03 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:41:05 [end_date_ymd] => 2025-01-03 13:41:05 [RateCDR] => 1 ) [2025-01-03 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:41:05' and `end` < '2025-01-03 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:41:21] Production.INFO: count ==4433 [2025-01-03 13:41:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:41:05 - End Time 2025-01-03 13:41:05 [2025-01-03 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165927', 'tblTempUsageDetail_20' ) start [2025-01-03 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165927', 'tblTempUsageDetail_20' ) end [2025-01-03 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165927', 'tblTempVendorCDR_20' ) start [2025-01-03 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165927', 'tblTempVendorCDR_20' ) end [2025-01-03 13:41:23] Production.INFO: ProcessCDR(1,14165927,1,1,2) [2025-01-03 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165927', 'tblTempUsageDetail_20' ) start [2025-01-03 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165927', 'tblTempUsageDetail_20' ) end [2025-01-03 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:41:27] Production.INFO: ==32011== Releasing lock... [2025-01-03 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:41:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:42:05 [end_date_ymd] => 2025-01-03 13:42:05 [RateCDR] => 1 ) [2025-01-03 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:42:05' and `end` < '2025-01-03 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:42:22] Production.INFO: count ==4432 [2025-01-03 13:42:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:42:05 - End Time 2025-01-03 13:42:05 [2025-01-03 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165932', 'tblTempUsageDetail_20' ) start [2025-01-03 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165932', 'tblTempUsageDetail_20' ) end [2025-01-03 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165932', 'tblTempVendorCDR_20' ) start [2025-01-03 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165932', 'tblTempVendorCDR_20' ) end [2025-01-03 13:42:24] Production.INFO: ProcessCDR(1,14165932,1,1,2) [2025-01-03 13:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165932', 'tblTempUsageDetail_20' ) start [2025-01-03 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165932', 'tblTempUsageDetail_20' ) end [2025-01-03 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:42:27] Production.INFO: ==32087== Releasing lock... [2025-01-03 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:42:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:43:05 [end_date_ymd] => 2025-01-03 13:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:43:05' and `end` < '2025-01-03 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-01-03 13:43:22] Production.INFO: count ==4444 [2025-01-03 13:43:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:43:05 - End Time 2025-01-03 13:43:05 [2025-01-03 13:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165937', 'tblTempUsageDetail_20' ) start [2025-01-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165937', 'tblTempUsageDetail_20' ) end [2025-01-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165937', 'tblTempVendorCDR_20' ) start [2025-01-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165937', 'tblTempVendorCDR_20' ) end [2025-01-03 13:43:24] Production.INFO: ProcessCDR(1,14165937,1,1,2) [2025-01-03 13:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165937', 'tblTempUsageDetail_20' ) start [2025-01-03 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165937', 'tblTempUsageDetail_20' ) end [2025-01-03 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:43:28] Production.INFO: ==32159== Releasing lock... [2025-01-03 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:43:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:44:05 [end_date_ymd] => 2025-01-03 13:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:44:05' and `end` < '2025-01-03 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-01-03 13:44:22] Production.INFO: count ==4439 [2025-01-03 13:44:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:44:05 - End Time 2025-01-03 13:44:05 [2025-01-03 13:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165942', 'tblTempUsageDetail_20' ) start [2025-01-03 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165942', 'tblTempUsageDetail_20' ) end [2025-01-03 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165942', 'tblTempVendorCDR_20' ) start [2025-01-03 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165942', 'tblTempVendorCDR_20' ) end [2025-01-03 13:44:24] Production.INFO: ProcessCDR(1,14165942,1,1,2) [2025-01-03 13:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165942', 'tblTempUsageDetail_20' ) start [2025-01-03 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165942', 'tblTempUsageDetail_20' ) end [2025-01-03 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:44:29] Production.INFO: ==32272== Releasing lock... [2025-01-03 13:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:44:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:45:05 [end_date_ymd] => 2025-01-03 13:45:05 [RateCDR] => 1 ) [2025-01-03 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:45:05' and `end` < '2025-01-03 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:45:28] Production.INFO: count ==4454 [2025-01-03 13:45:29] Production.ERROR: pbx CDR StartTime 2025-01-03 10:45:05 - End Time 2025-01-03 13:45:05 [2025-01-03 13:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165947', 'tblTempUsageDetail_20' ) start [2025-01-03 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165947', 'tblTempUsageDetail_20' ) end [2025-01-03 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165947', 'tblTempVendorCDR_20' ) start [2025-01-03 13:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165947', 'tblTempVendorCDR_20' ) end [2025-01-03 13:45:30] Production.INFO: ProcessCDR(1,14165947,1,1,2) [2025-01-03 13:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165947', 'tblTempUsageDetail_20' ) start [2025-01-03 13:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165947', 'tblTempUsageDetail_20' ) end [2025-01-03 13:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:45:34] Production.INFO: ==32345== Releasing lock... [2025-01-03 13:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:45:34] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:46:04 [end_date_ymd] => 2025-01-03 13:46:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:46:04' and `end` < '2025-01-03 13: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-01-03 13:46:21] Production.INFO: count ==4448 [2025-01-03 13:46:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:46:04 - End Time 2025-01-03 13:46:04 [2025-01-03 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165952', 'tblTempUsageDetail_20' ) start [2025-01-03 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165952', 'tblTempUsageDetail_20' ) end [2025-01-03 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165952', 'tblTempVendorCDR_20' ) start [2025-01-03 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165952', 'tblTempVendorCDR_20' ) end [2025-01-03 13:46:23] Production.INFO: ProcessCDR(1,14165952,1,1,2) [2025-01-03 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165952', 'tblTempUsageDetail_20' ) start [2025-01-03 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165952', 'tblTempUsageDetail_20' ) end [2025-01-03 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:46:28] Production.INFO: ==32417== Releasing lock... [2025-01-03 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:46:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:47:05 [end_date_ymd] => 2025-01-03 13:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:47:05' and `end` < '2025-01-03 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-01-03 13:47:23] Production.INFO: count ==4463 [2025-01-03 13:47:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:47:05 - End Time 2025-01-03 13:47:05 [2025-01-03 13:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165957', 'tblTempUsageDetail_20' ) start [2025-01-03 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165957', 'tblTempUsageDetail_20' ) end [2025-01-03 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165957', 'tblTempVendorCDR_20' ) start [2025-01-03 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165957', 'tblTempVendorCDR_20' ) end [2025-01-03 13:47:25] Production.INFO: ProcessCDR(1,14165957,1,1,2) [2025-01-03 13:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165957', 'tblTempUsageDetail_20' ) start [2025-01-03 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165957', 'tblTempUsageDetail_20' ) end [2025-01-03 13:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:47:29] Production.INFO: ==32495== Releasing lock... [2025-01-03 13:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:47:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:48:05 [end_date_ymd] => 2025-01-03 13:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:48:05' and `end` < '2025-01-03 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-01-03 13:48:25] Production.INFO: count ==4475 [2025-01-03 13:48:26] Production.ERROR: pbx CDR StartTime 2025-01-03 10:48:05 - End Time 2025-01-03 13:48:05 [2025-01-03 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165962', 'tblTempUsageDetail_20' ) start [2025-01-03 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165962', 'tblTempUsageDetail_20' ) end [2025-01-03 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165962', 'tblTempVendorCDR_20' ) start [2025-01-03 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165962', 'tblTempVendorCDR_20' ) end [2025-01-03 13:48:27] Production.INFO: ProcessCDR(1,14165962,1,1,2) [2025-01-03 13:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165962', 'tblTempUsageDetail_20' ) start [2025-01-03 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165962', 'tblTempUsageDetail_20' ) end [2025-01-03 13:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:48:31] Production.INFO: ==32569== Releasing lock... [2025-01-03 13:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:48:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:49:05 [end_date_ymd] => 2025-01-03 13:49:05 [RateCDR] => 1 ) [2025-01-03 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:49:05' and `end` < '2025-01-03 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:49:23] Production.INFO: count ==4477 [2025-01-03 13:49:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:49:05 - End Time 2025-01-03 13:49:05 [2025-01-03 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165967', 'tblTempUsageDetail_20' ) start [2025-01-03 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165967', 'tblTempUsageDetail_20' ) end [2025-01-03 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165967', 'tblTempVendorCDR_20' ) start [2025-01-03 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165967', 'tblTempVendorCDR_20' ) end [2025-01-03 13:49:25] Production.INFO: ProcessCDR(1,14165967,1,1,2) [2025-01-03 13:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165967', 'tblTempUsageDetail_20' ) start [2025-01-03 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165967', 'tblTempUsageDetail_20' ) end [2025-01-03 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:49:30] Production.INFO: ==32641== Releasing lock... [2025-01-03 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:49:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:50:06 [end_date_ymd] => 2025-01-03 13:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:50:06' and `end` < '2025-01-03 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-01-03 13:50:20] Production.INFO: count ==4476 [2025-01-03 13:50:22] Production.ERROR: pbx CDR StartTime 2025-01-03 10:50:06 - End Time 2025-01-03 13:50:06 [2025-01-03 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165973', 'tblTempUsageDetail_20' ) start [2025-01-03 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165973', 'tblTempUsageDetail_20' ) end [2025-01-03 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165973', 'tblTempVendorCDR_20' ) start [2025-01-03 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165973', 'tblTempVendorCDR_20' ) end [2025-01-03 13:50:22] Production.INFO: ProcessCDR(1,14165973,1,1,2) [2025-01-03 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165973', 'tblTempUsageDetail_20' ) start [2025-01-03 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165973', 'tblTempUsageDetail_20' ) end [2025-01-03 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:50:27] Production.INFO: ==32745== Releasing lock... [2025-01-03 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:50:27] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:51:05 [end_date_ymd] => 2025-01-03 13:51:05 [RateCDR] => 1 ) [2025-01-03 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:51:05' and `end` < '2025-01-03 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:51:23] Production.INFO: count ==4471 [2025-01-03 13:51:25] Production.ERROR: pbx CDR StartTime 2025-01-03 10:51:05 - End Time 2025-01-03 13:51:05 [2025-01-03 13:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165978', 'tblTempUsageDetail_20' ) start [2025-01-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165978', 'tblTempUsageDetail_20' ) end [2025-01-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165978', 'tblTempVendorCDR_20' ) start [2025-01-03 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165978', 'tblTempVendorCDR_20' ) end [2025-01-03 13:51:26] Production.INFO: ProcessCDR(1,14165978,1,1,2) [2025-01-03 13:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165978', 'tblTempUsageDetail_20' ) start [2025-01-03 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165978', 'tblTempUsageDetail_20' ) end [2025-01-03 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:51:30] Production.INFO: ==374== Releasing lock... [2025-01-03 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:51:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:52:05 [end_date_ymd] => 2025-01-03 13:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:52:05' and `end` < '2025-01-03 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-01-03 13:52:22] Production.INFO: count ==4477 [2025-01-03 13:52:24] Production.ERROR: pbx CDR StartTime 2025-01-03 10:52:05 - End Time 2025-01-03 13:52:05 [2025-01-03 13:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165983', 'tblTempUsageDetail_20' ) start [2025-01-03 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165983', 'tblTempUsageDetail_20' ) end [2025-01-03 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165983', 'tblTempVendorCDR_20' ) start [2025-01-03 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165983', 'tblTempVendorCDR_20' ) end [2025-01-03 13:52:24] Production.INFO: ProcessCDR(1,14165983,1,1,2) [2025-01-03 13:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165983', 'tblTempUsageDetail_20' ) start [2025-01-03 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165983', 'tblTempUsageDetail_20' ) end [2025-01-03 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:52:28] Production.INFO: ==450== Releasing lock... [2025-01-03 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:52:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:53:04 [end_date_ymd] => 2025-01-03 13:53:04 [RateCDR] => 1 ) [2025-01-03 13: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-01-03 10:53:04' and `end` < '2025-01-03 13: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-01-03 13:53:34] Production.INFO: count ==4492 [2025-01-03 13:53:36] Production.ERROR: pbx CDR StartTime 2025-01-03 10:53:04 - End Time 2025-01-03 13:53:04 [2025-01-03 13:53:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165988', 'tblTempUsageDetail_20' ) start [2025-01-03 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165988', 'tblTempUsageDetail_20' ) end [2025-01-03 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165988', 'tblTempVendorCDR_20' ) start [2025-01-03 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165988', 'tblTempVendorCDR_20' ) end [2025-01-03 13:53:36] Production.INFO: ProcessCDR(1,14165988,1,1,2) [2025-01-03 13:53:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:53:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:53:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:53:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:53:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165988', 'tblTempUsageDetail_20' ) start [2025-01-03 13:53:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165988', 'tblTempUsageDetail_20' ) end [2025-01-03 13:53:41] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:53:41] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:53:41] Production.INFO: ==526== Releasing lock... [2025-01-03 13:53:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:53:41] Production.INFO: 61.75 MB #Memory Used# [2025-01-03 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:54:04 [end_date_ymd] => 2025-01-03 13:54:04 [RateCDR] => 1 ) [2025-01-03 13:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:54:04' and `end` < '2025-01-03 13:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:54:28] Production.INFO: count ==4473 [2025-01-03 13:54:30] Production.ERROR: pbx CDR StartTime 2025-01-03 10:54:04 - End Time 2025-01-03 13:54:04 [2025-01-03 13:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165993', 'tblTempUsageDetail_20' ) start [2025-01-03 13:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165993', 'tblTempUsageDetail_20' ) end [2025-01-03 13:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165993', 'tblTempVendorCDR_20' ) start [2025-01-03 13:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165993', 'tblTempVendorCDR_20' ) end [2025-01-03 13:54:30] Production.INFO: ProcessCDR(1,14165993,1,1,2) [2025-01-03 13:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165993', 'tblTempUsageDetail_20' ) start [2025-01-03 13:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165993', 'tblTempUsageDetail_20' ) end [2025-01-03 13:54:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:54:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:54:35] Production.INFO: ==599== Releasing lock... [2025-01-03 13:54:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:54:35] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:55:04 [end_date_ymd] => 2025-01-03 13:55:04 [RateCDR] => 1 ) [2025-01-03 13:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:55:04' and `end` < '2025-01-03 13:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:55:21] Production.INFO: count ==4482 [2025-01-03 13:55:23] Production.ERROR: pbx CDR StartTime 2025-01-03 10:55:04 - End Time 2025-01-03 13:55:04 [2025-01-03 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165998', 'tblTempUsageDetail_20' ) start [2025-01-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14165998', 'tblTempUsageDetail_20' ) end [2025-01-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165998', 'tblTempVendorCDR_20' ) start [2025-01-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14165998', 'tblTempVendorCDR_20' ) end [2025-01-03 13:55:23] Production.INFO: ProcessCDR(1,14165998,1,1,2) [2025-01-03 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14165998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14165998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14165998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14165998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165998', 'tblTempUsageDetail_20' ) start [2025-01-03 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14165998', 'tblTempUsageDetail_20' ) end [2025-01-03 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:55:28] Production.INFO: ==696== Releasing lock... [2025-01-03 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:55:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:56:05 [end_date_ymd] => 2025-01-03 13:56:05 [RateCDR] => 1 ) [2025-01-03 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:56:05' and `end` < '2025-01-03 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:56:20] Production.INFO: count ==4491 [2025-01-03 13:56:22] Production.ERROR: pbx CDR StartTime 2025-01-03 10:56:05 - End Time 2025-01-03 13:56:05 [2025-01-03 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166003', 'tblTempUsageDetail_20' ) start [2025-01-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166003', 'tblTempUsageDetail_20' ) end [2025-01-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166003', 'tblTempVendorCDR_20' ) start [2025-01-03 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166003', 'tblTempVendorCDR_20' ) end [2025-01-03 13:56:22] Production.INFO: ProcessCDR(1,14166003,1,1,2) [2025-01-03 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166003', 'tblTempUsageDetail_20' ) start [2025-01-03 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166003', 'tblTempUsageDetail_20' ) end [2025-01-03 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:56:27] Production.INFO: ==778== Releasing lock... [2025-01-03 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:56:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-03 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:57:05 [end_date_ymd] => 2025-01-03 13:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:57:05' and `end` < '2025-01-03 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-01-03 13:57:28] Production.INFO: count ==4533 [2025-01-03 13:57:29] Production.ERROR: pbx CDR StartTime 2025-01-03 10:57:05 - End Time 2025-01-03 13:57:05 [2025-01-03 13:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166008', 'tblTempUsageDetail_20' ) start [2025-01-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166008', 'tblTempUsageDetail_20' ) end [2025-01-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166008', 'tblTempVendorCDR_20' ) start [2025-01-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166008', 'tblTempVendorCDR_20' ) end [2025-01-03 13:57:30] Production.INFO: ProcessCDR(1,14166008,1,1,2) [2025-01-03 13:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166008', 'tblTempUsageDetail_20' ) start [2025-01-03 13:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166008', 'tblTempUsageDetail_20' ) end [2025-01-03 13:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:57:34] Production.INFO: ==850== Releasing lock... [2025-01-03 13:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:57:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:58:04 [end_date_ymd] => 2025-01-03 13:58:04 [RateCDR] => 1 ) [2025-01-03 13:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 10:58:04' and `end` < '2025-01-03 13:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 13:58:20] Production.INFO: count ==4515 [2025-01-03 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-03 10:58:04 - End Time 2025-01-03 13:58:04 [2025-01-03 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166013', 'tblTempUsageDetail_20' ) start [2025-01-03 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166013', 'tblTempUsageDetail_20' ) end [2025-01-03 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166013', 'tblTempVendorCDR_20' ) start [2025-01-03 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166013', 'tblTempVendorCDR_20' ) end [2025-01-03 13:58:22] Production.INFO: ProcessCDR(1,14166013,1,1,2) [2025-01-03 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166013', 'tblTempUsageDetail_20' ) start [2025-01-03 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166013', 'tblTempUsageDetail_20' ) end [2025-01-03 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:58:27] Production.INFO: ==923== Releasing lock... [2025-01-03 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:58:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-03 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 10:59:05 [end_date_ymd] => 2025-01-03 13:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 10:59:05' and `end` < '2025-01-03 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-01-03 13:59:20] Production.INFO: count ==4521 [2025-01-03 13:59:22] Production.ERROR: pbx CDR StartTime 2025-01-03 10:59:05 - End Time 2025-01-03 13:59:05 [2025-01-03 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166018', 'tblTempUsageDetail_20' ) start [2025-01-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166018', 'tblTempUsageDetail_20' ) end [2025-01-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166018', 'tblTempVendorCDR_20' ) start [2025-01-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166018', 'tblTempVendorCDR_20' ) end [2025-01-03 13:59:22] Production.INFO: ProcessCDR(1,14166018,1,1,2) [2025-01-03 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166018', 'tblTempUsageDetail_20' ) start [2025-01-03 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166018', 'tblTempUsageDetail_20' ) end [2025-01-03 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 13:59:27] Production.INFO: ==1037== Releasing lock... [2025-01-03 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 13:59:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-03 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:00:06 [end_date_ymd] => 2025-01-03 14:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:00:06' and `end` < '2025-01-03 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-01-03 14:00:32] Production.INFO: count ==4537 [2025-01-03 14:00:34] Production.ERROR: pbx CDR StartTime 2025-01-03 11:00:06 - End Time 2025-01-03 14:00:06 [2025-01-03 14:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166024', 'tblTempUsageDetail_20' ) start [2025-01-03 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166024', 'tblTempUsageDetail_20' ) end [2025-01-03 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166024', 'tblTempVendorCDR_20' ) start [2025-01-03 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166024', 'tblTempVendorCDR_20' ) end [2025-01-03 14:00:34] Production.INFO: ProcessCDR(1,14166024,1,1,2) [2025-01-03 14:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166024', 'tblTempUsageDetail_20' ) start [2025-01-03 14:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166024', 'tblTempUsageDetail_20' ) end [2025-01-03 14:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:00:39] Production.INFO: ==1113== Releasing lock... [2025-01-03 14:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:00:39] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:01:05 [end_date_ymd] => 2025-01-03 14:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:01:05' and `end` < '2025-01-03 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-01-03 14:01:26] Production.INFO: count ==4564 [2025-01-03 14:01:28] Production.ERROR: pbx CDR StartTime 2025-01-03 11:01:05 - End Time 2025-01-03 14:01:05 [2025-01-03 14:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166029', 'tblTempUsageDetail_20' ) start [2025-01-03 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166029', 'tblTempUsageDetail_20' ) end [2025-01-03 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166029', 'tblTempVendorCDR_20' ) start [2025-01-03 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166029', 'tblTempVendorCDR_20' ) end [2025-01-03 14:01:29] Production.INFO: ProcessCDR(1,14166029,1,1,2) [2025-01-03 14:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166029', 'tblTempUsageDetail_20' ) start [2025-01-03 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166029', 'tblTempUsageDetail_20' ) end [2025-01-03 14:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:01:33] Production.INFO: ==1205== Releasing lock... [2025-01-03 14:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:01:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:02:05 [end_date_ymd] => 2025-01-03 14:02:05 [RateCDR] => 1 ) [2025-01-03 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:02:05' and `end` < '2025-01-03 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:02:28] Production.INFO: count ==4554 [2025-01-03 14:02:30] Production.ERROR: pbx CDR StartTime 2025-01-03 11:02:05 - End Time 2025-01-03 14:02:05 [2025-01-03 14:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166034', 'tblTempUsageDetail_20' ) start [2025-01-03 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166034', 'tblTempUsageDetail_20' ) end [2025-01-03 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166034', 'tblTempVendorCDR_20' ) start [2025-01-03 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166034', 'tblTempVendorCDR_20' ) end [2025-01-03 14:02:30] Production.INFO: ProcessCDR(1,14166034,1,1,2) [2025-01-03 14:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166034', 'tblTempUsageDetail_20' ) start [2025-01-03 14:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166034', 'tblTempUsageDetail_20' ) end [2025-01-03 14:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:02:35] Production.INFO: ==1289== Releasing lock... [2025-01-03 14:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:02:35] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:03:05 [end_date_ymd] => 2025-01-03 14:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:03:05' and `end` < '2025-01-03 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-01-03 14:03:21] Production.INFO: count ==4535 [2025-01-03 14:03:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:03:05 - End Time 2025-01-03 14:03:05 [2025-01-03 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166039', 'tblTempUsageDetail_20' ) start [2025-01-03 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166039', 'tblTempUsageDetail_20' ) end [2025-01-03 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166039', 'tblTempVendorCDR_20' ) start [2025-01-03 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166039', 'tblTempVendorCDR_20' ) end [2025-01-03 14:03:24] Production.INFO: ProcessCDR(1,14166039,1,1,2) [2025-01-03 14:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166039', 'tblTempUsageDetail_20' ) start [2025-01-03 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166039', 'tblTempUsageDetail_20' ) end [2025-01-03 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:03:28] Production.INFO: ==1369== Releasing lock... [2025-01-03 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:03:28] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:04:05 [end_date_ymd] => 2025-01-03 14:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:04:05' and `end` < '2025-01-03 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-01-03 14:04:19] Production.INFO: count ==4545 [2025-01-03 14:04:21] Production.ERROR: pbx CDR StartTime 2025-01-03 11:04:05 - End Time 2025-01-03 14:04:05 [2025-01-03 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166044', 'tblTempUsageDetail_20' ) start [2025-01-03 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166044', 'tblTempUsageDetail_20' ) end [2025-01-03 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166044', 'tblTempVendorCDR_20' ) start [2025-01-03 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166044', 'tblTempVendorCDR_20' ) end [2025-01-03 14:04:21] Production.INFO: ProcessCDR(1,14166044,1,1,2) [2025-01-03 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166044', 'tblTempUsageDetail_20' ) start [2025-01-03 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166044', 'tblTempUsageDetail_20' ) end [2025-01-03 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:04:25] Production.INFO: ==1452== Releasing lock... [2025-01-03 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:04:25] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:05:05 [end_date_ymd] => 2025-01-03 14:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:05:05' and `end` < '2025-01-03 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-01-03 14:05:18] Production.INFO: count ==4550 [2025-01-03 14:05:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:05:05 - End Time 2025-01-03 14:05:05 [2025-01-03 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166049', 'tblTempUsageDetail_20' ) start [2025-01-03 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166049', 'tblTempUsageDetail_20' ) end [2025-01-03 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166049', 'tblTempVendorCDR_20' ) start [2025-01-03 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166049', 'tblTempVendorCDR_20' ) end [2025-01-03 14:05:20] Production.INFO: ProcessCDR(1,14166049,1,1,2) [2025-01-03 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166049', 'tblTempUsageDetail_20' ) start [2025-01-03 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166049', 'tblTempUsageDetail_20' ) end [2025-01-03 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:05:25] Production.INFO: ==1560== Releasing lock... [2025-01-03 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:05:25] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:06:05 [end_date_ymd] => 2025-01-03 14:06:05 [RateCDR] => 1 ) [2025-01-03 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:06:05' and `end` < '2025-01-03 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-01-03 14:06:22] Production.INFO: count ==4533 [2025-01-03 14:06:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:06:05 - End Time 2025-01-03 14:06:05 [2025-01-03 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166054', 'tblTempUsageDetail_20' ) start [2025-01-03 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166054', 'tblTempUsageDetail_20' ) end [2025-01-03 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166054', 'tblTempVendorCDR_20' ) start [2025-01-03 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166054', 'tblTempVendorCDR_20' ) end [2025-01-03 14:06:24] Production.INFO: ProcessCDR(1,14166054,1,1,2) [2025-01-03 14:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166054', 'tblTempUsageDetail_20' ) start [2025-01-03 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166054', 'tblTempUsageDetail_20' ) end [2025-01-03 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:06:28] Production.INFO: ==1637== Releasing lock... [2025-01-03 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:06:28] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:07:04 [end_date_ymd] => 2025-01-03 14:07:04 [RateCDR] => 1 ) [2025-01-03 14: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-01-03 11:07:04' and `end` < '2025-01-03 14: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-01-03 14:07:31] Production.INFO: count ==4553 [2025-01-03 14:07:33] Production.ERROR: pbx CDR StartTime 2025-01-03 11:07:04 - End Time 2025-01-03 14:07:04 [2025-01-03 14:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166055', 'tblTempUsageDetail_20' ) start [2025-01-03 14:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166055', 'tblTempUsageDetail_20' ) end [2025-01-03 14:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166055', 'tblTempVendorCDR_20' ) start [2025-01-03 14:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166055', 'tblTempVendorCDR_20' ) end [2025-01-03 14:07:33] Production.INFO: ProcessCDR(1,14166055,1,1,2) [2025-01-03 14:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:07:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:07:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166055', 'tblTempUsageDetail_20' ) start [2025-01-03 14:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166055', 'tblTempUsageDetail_20' ) end [2025-01-03 14:07:38] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:07:38] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:07:38] Production.INFO: ==1710== Releasing lock... [2025-01-03 14:07:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:07:38] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:08:06 [end_date_ymd] => 2025-01-03 14:08:06 [RateCDR] => 1 ) [2025-01-03 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:08:06' and `end` < '2025-01-03 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:08:23] Production.INFO: count ==4550 [2025-01-03 14:08:25] Production.ERROR: pbx CDR StartTime 2025-01-03 11:08:06 - End Time 2025-01-03 14:08:06 [2025-01-03 14:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166064', 'tblTempUsageDetail_20' ) start [2025-01-03 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166064', 'tblTempUsageDetail_20' ) end [2025-01-03 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166064', 'tblTempVendorCDR_20' ) start [2025-01-03 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166064', 'tblTempVendorCDR_20' ) end [2025-01-03 14:08:25] Production.INFO: ProcessCDR(1,14166064,1,1,2) [2025-01-03 14:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166064', 'tblTempUsageDetail_20' ) start [2025-01-03 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166064', 'tblTempUsageDetail_20' ) end [2025-01-03 14:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:08:30] Production.INFO: ==1786== Releasing lock... [2025-01-03 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:08:30] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:09:05 [end_date_ymd] => 2025-01-03 14:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:09:05' and `end` < '2025-01-03 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-01-03 14:09:31] Production.INFO: count ==4535 [2025-01-03 14:09:33] Production.ERROR: pbx CDR StartTime 2025-01-03 11:09:05 - End Time 2025-01-03 14:09:05 [2025-01-03 14:09:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166069', 'tblTempUsageDetail_20' ) start [2025-01-03 14:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166069', 'tblTempUsageDetail_20' ) end [2025-01-03 14:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166069', 'tblTempVendorCDR_20' ) start [2025-01-03 14:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166069', 'tblTempVendorCDR_20' ) end [2025-01-03 14:09:33] Production.INFO: ProcessCDR(1,14166069,1,1,2) [2025-01-03 14:09:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:09:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:09:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166069', 'tblTempUsageDetail_20' ) start [2025-01-03 14:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166069', 'tblTempUsageDetail_20' ) end [2025-01-03 14:09:38] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:09:38] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:09:38] Production.INFO: ==1866== Releasing lock... [2025-01-03 14:09:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:09:38] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:10:06 [end_date_ymd] => 2025-01-03 14:10:06 [RateCDR] => 1 ) [2025-01-03 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:10:06' and `end` < '2025-01-03 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:10:26] Production.INFO: count ==4536 [2025-01-03 14:10:27] Production.ERROR: pbx CDR StartTime 2025-01-03 11:10:06 - End Time 2025-01-03 14:10:06 [2025-01-03 14:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166075', 'tblTempUsageDetail_20' ) start [2025-01-03 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166075', 'tblTempUsageDetail_20' ) end [2025-01-03 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166075', 'tblTempVendorCDR_20' ) start [2025-01-03 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166075', 'tblTempVendorCDR_20' ) end [2025-01-03 14:10:28] Production.INFO: ProcessCDR(1,14166075,1,1,2) [2025-01-03 14:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166075', 'tblTempUsageDetail_20' ) start [2025-01-03 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166075', 'tblTempUsageDetail_20' ) end [2025-01-03 14:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:10:32] Production.INFO: ==1940== Releasing lock... [2025-01-03 14:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:10:32] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:11:04 [end_date_ymd] => 2025-01-03 14:11:04 [RateCDR] => 1 ) [2025-01-03 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:11:04' and `end` < '2025-01-03 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:11:20] Production.INFO: count ==4560 [2025-01-03 14:11:22] Production.ERROR: pbx CDR StartTime 2025-01-03 11:11:04 - End Time 2025-01-03 14:11:04 [2025-01-03 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166080', 'tblTempUsageDetail_20' ) start [2025-01-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166080', 'tblTempUsageDetail_20' ) end [2025-01-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166080', 'tblTempVendorCDR_20' ) start [2025-01-03 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166080', 'tblTempVendorCDR_20' ) end [2025-01-03 14:11:22] Production.INFO: ProcessCDR(1,14166080,1,1,2) [2025-01-03 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166080', 'tblTempUsageDetail_20' ) start [2025-01-03 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166080', 'tblTempUsageDetail_20' ) end [2025-01-03 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:11:26] Production.INFO: ==2016== Releasing lock... [2025-01-03 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:11:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:12:05 [end_date_ymd] => 2025-01-03 14:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:12:05' and `end` < '2025-01-03 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-01-03 14:12:21] Production.INFO: count ==4556 [2025-01-03 14:12:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:12:05 - End Time 2025-01-03 14:12:05 [2025-01-03 14:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166085', 'tblTempUsageDetail_20' ) start [2025-01-03 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166085', 'tblTempUsageDetail_20' ) end [2025-01-03 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166085', 'tblTempVendorCDR_20' ) start [2025-01-03 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166085', 'tblTempVendorCDR_20' ) end [2025-01-03 14:12:23] Production.INFO: ProcessCDR(1,14166085,1,1,2) [2025-01-03 14:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166085', 'tblTempUsageDetail_20' ) start [2025-01-03 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166085', 'tblTempUsageDetail_20' ) end [2025-01-03 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:12:28] Production.INFO: ==2090== Releasing lock... [2025-01-03 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:12:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:13:06 [end_date_ymd] => 2025-01-03 14:13:06 [RateCDR] => 1 ) [2025-01-03 14: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-01-03 11:13:06' and `end` < '2025-01-03 14: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-01-03 14:13:20] Production.INFO: count ==4566 [2025-01-03 14:13:22] Production.ERROR: pbx CDR StartTime 2025-01-03 11:13:06 - End Time 2025-01-03 14:13:06 [2025-01-03 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166090', 'tblTempUsageDetail_20' ) start [2025-01-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166090', 'tblTempUsageDetail_20' ) end [2025-01-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166090', 'tblTempVendorCDR_20' ) start [2025-01-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166090', 'tblTempVendorCDR_20' ) end [2025-01-03 14:13:22] Production.INFO: ProcessCDR(1,14166090,1,1,2) [2025-01-03 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166090', 'tblTempUsageDetail_20' ) start [2025-01-03 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166090', 'tblTempUsageDetail_20' ) end [2025-01-03 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:13:27] Production.INFO: ==2163== Releasing lock... [2025-01-03 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:13:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:14:05 [end_date_ymd] => 2025-01-03 14:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:14:05' and `end` < '2025-01-03 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-01-03 14:14:24] Production.INFO: count ==4561 [2025-01-03 14:14:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:14:05 - End Time 2025-01-03 14:14:05 [2025-01-03 14:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166095', 'tblTempUsageDetail_20' ) start [2025-01-03 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166095', 'tblTempUsageDetail_20' ) end [2025-01-03 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166095', 'tblTempVendorCDR_20' ) start [2025-01-03 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166095', 'tblTempVendorCDR_20' ) end [2025-01-03 14:14:26] Production.INFO: ProcessCDR(1,14166095,1,1,2) [2025-01-03 14:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166095', 'tblTempUsageDetail_20' ) start [2025-01-03 14:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166095', 'tblTempUsageDetail_20' ) end [2025-01-03 14:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:14:31] Production.INFO: ==2234== Releasing lock... [2025-01-03 14:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:14:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-03 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:15:05 [end_date_ymd] => 2025-01-03 14:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:15:05' and `end` < '2025-01-03 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-01-03 14:15:34] Production.INFO: count ==4531 [2025-01-03 14:15:36] Production.ERROR: pbx CDR StartTime 2025-01-03 11:15:05 - End Time 2025-01-03 14:15:05 [2025-01-03 14:15:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166100', 'tblTempUsageDetail_20' ) start [2025-01-03 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166100', 'tblTempUsageDetail_20' ) end [2025-01-03 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166100', 'tblTempVendorCDR_20' ) start [2025-01-03 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166100', 'tblTempVendorCDR_20' ) end [2025-01-03 14:15:36] Production.INFO: ProcessCDR(1,14166100,1,1,2) [2025-01-03 14:15:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:15:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:15:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:15:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:15:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166100', 'tblTempUsageDetail_20' ) start [2025-01-03 14:15:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166100', 'tblTempUsageDetail_20' ) end [2025-01-03 14:15:41] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:15:41] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:15:41] Production.INFO: ==2350== Releasing lock... [2025-01-03 14:15:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:15:41] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:16:05 [end_date_ymd] => 2025-01-03 14:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:16:05' and `end` < '2025-01-03 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-01-03 14:16:24] Production.INFO: count ==4523 [2025-01-03 14:16:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:16:05 - End Time 2025-01-03 14:16:05 [2025-01-03 14:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166105', 'tblTempUsageDetail_20' ) start [2025-01-03 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166105', 'tblTempUsageDetail_20' ) end [2025-01-03 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166105', 'tblTempVendorCDR_20' ) start [2025-01-03 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166105', 'tblTempVendorCDR_20' ) end [2025-01-03 14:16:26] Production.INFO: ProcessCDR(1,14166105,1,1,2) [2025-01-03 14:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166105', 'tblTempUsageDetail_20' ) start [2025-01-03 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166105', 'tblTempUsageDetail_20' ) end [2025-01-03 14:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:16:31] Production.INFO: ==2424== Releasing lock... [2025-01-03 14:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:16:31] Production.INFO: 62 MB #Memory Used# [2025-01-03 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:17:05 [end_date_ymd] => 2025-01-03 14:17:05 [RateCDR] => 1 ) [2025-01-03 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:17:05' and `end` < '2025-01-03 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:17:23] Production.INFO: count ==4502 [2025-01-03 14:17:25] Production.ERROR: pbx CDR StartTime 2025-01-03 11:17:05 - End Time 2025-01-03 14:17:05 [2025-01-03 14:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166110', 'tblTempUsageDetail_20' ) start [2025-01-03 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166110', 'tblTempUsageDetail_20' ) end [2025-01-03 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166110', 'tblTempVendorCDR_20' ) start [2025-01-03 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166110', 'tblTempVendorCDR_20' ) end [2025-01-03 14:17:25] Production.INFO: ProcessCDR(1,14166110,1,1,2) [2025-01-03 14:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166110', 'tblTempUsageDetail_20' ) start [2025-01-03 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166110', 'tblTempUsageDetail_20' ) end [2025-01-03 14:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:17:29] Production.INFO: ==2496== Releasing lock... [2025-01-03 14:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:17:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-03 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:18:04 [end_date_ymd] => 2025-01-03 14:18:04 [RateCDR] => 1 ) [2025-01-03 14:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:18:04' and `end` < '2025-01-03 14:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:18:24] Production.INFO: count ==4478 [2025-01-03 14:18:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:18:04 - End Time 2025-01-03 14:18:04 [2025-01-03 14:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166115', 'tblTempUsageDetail_20' ) start [2025-01-03 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166115', 'tblTempUsageDetail_20' ) end [2025-01-03 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166115', 'tblTempVendorCDR_20' ) start [2025-01-03 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166115', 'tblTempVendorCDR_20' ) end [2025-01-03 14:18:27] Production.INFO: ProcessCDR(1,14166115,1,1,2) [2025-01-03 14:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166115', 'tblTempUsageDetail_20' ) start [2025-01-03 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166115', 'tblTempUsageDetail_20' ) end [2025-01-03 14:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:18:32] Production.INFO: ==2572== Releasing lock... [2025-01-03 14:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:18:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:19:05 [end_date_ymd] => 2025-01-03 14:19:05 [RateCDR] => 1 ) [2025-01-03 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:19:05' and `end` < '2025-01-03 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:19:23] Production.INFO: count ==4449 [2025-01-03 14:19:25] Production.ERROR: pbx CDR StartTime 2025-01-03 11:19:05 - End Time 2025-01-03 14:19:05 [2025-01-03 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166120', 'tblTempUsageDetail_20' ) start [2025-01-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166120', 'tblTempUsageDetail_20' ) end [2025-01-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166120', 'tblTempVendorCDR_20' ) start [2025-01-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166120', 'tblTempVendorCDR_20' ) end [2025-01-03 14:19:25] Production.INFO: ProcessCDR(1,14166120,1,1,2) [2025-01-03 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166120', 'tblTempUsageDetail_20' ) start [2025-01-03 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166120', 'tblTempUsageDetail_20' ) end [2025-01-03 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:19:30] Production.INFO: ==2650== Releasing lock... [2025-01-03 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:19:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:20:05 [end_date_ymd] => 2025-01-03 14:20:05 [RateCDR] => 1 ) [2025-01-03 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:20:05' and `end` < '2025-01-03 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:20:21] Production.INFO: count ==4454 [2025-01-03 14:20:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:20:05 - End Time 2025-01-03 14:20:05 [2025-01-03 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166126', 'tblTempUsageDetail_20' ) start [2025-01-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166126', 'tblTempUsageDetail_20' ) end [2025-01-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166126', 'tblTempVendorCDR_20' ) start [2025-01-03 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166126', 'tblTempVendorCDR_20' ) end [2025-01-03 14:20:23] Production.INFO: ProcessCDR(1,14166126,1,1,2) [2025-01-03 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166126', 'tblTempUsageDetail_20' ) start [2025-01-03 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166126', 'tblTempUsageDetail_20' ) end [2025-01-03 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:20:28] Production.INFO: ==2727== Releasing lock... [2025-01-03 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:20:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:21:05 [end_date_ymd] => 2025-01-03 14:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:21:05' and `end` < '2025-01-03 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-01-03 14:21:18] Production.INFO: count ==4469 [2025-01-03 14:21:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:21:05 - End Time 2025-01-03 14:21:05 [2025-01-03 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166131', 'tblTempUsageDetail_20' ) start [2025-01-03 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166131', 'tblTempUsageDetail_20' ) end [2025-01-03 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166131', 'tblTempVendorCDR_20' ) start [2025-01-03 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166131', 'tblTempVendorCDR_20' ) end [2025-01-03 14:21:20] Production.INFO: ProcessCDR(1,14166131,1,1,2) [2025-01-03 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166131', 'tblTempUsageDetail_20' ) start [2025-01-03 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166131', 'tblTempUsageDetail_20' ) end [2025-01-03 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:21:24] Production.INFO: ==2800== Releasing lock... [2025-01-03 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:21:24] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:22:06 [end_date_ymd] => 2025-01-03 14:22:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:22:06' and `end` < '2025-01-03 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-01-03 14:22:26] Production.INFO: count ==4470 [2025-01-03 14:22:27] Production.ERROR: pbx CDR StartTime 2025-01-03 11:22:06 - End Time 2025-01-03 14:22:06 [2025-01-03 14:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166136', 'tblTempUsageDetail_20' ) start [2025-01-03 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166136', 'tblTempUsageDetail_20' ) end [2025-01-03 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166136', 'tblTempVendorCDR_20' ) start [2025-01-03 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166136', 'tblTempVendorCDR_20' ) end [2025-01-03 14:22:28] Production.INFO: ProcessCDR(1,14166136,1,1,2) [2025-01-03 14:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166136', 'tblTempUsageDetail_20' ) start [2025-01-03 14:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166136', 'tblTempUsageDetail_20' ) end [2025-01-03 14:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:22:32] Production.INFO: ==2876== Releasing lock... [2025-01-03 14:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:22:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:23:05 [end_date_ymd] => 2025-01-03 14:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:23:05' and `end` < '2025-01-03 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-01-03 14:23:22] Production.INFO: count ==4462 [2025-01-03 14:23:24] Production.ERROR: pbx CDR StartTime 2025-01-03 11:23:05 - End Time 2025-01-03 14:23:05 [2025-01-03 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166141', 'tblTempUsageDetail_20' ) start [2025-01-03 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166141', 'tblTempUsageDetail_20' ) end [2025-01-03 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166141', 'tblTempVendorCDR_20' ) start [2025-01-03 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166141', 'tblTempVendorCDR_20' ) end [2025-01-03 14:23:24] Production.INFO: ProcessCDR(1,14166141,1,1,2) [2025-01-03 14:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166141', 'tblTempUsageDetail_20' ) start [2025-01-03 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166141', 'tblTempUsageDetail_20' ) end [2025-01-03 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:23:29] Production.INFO: ==2948== Releasing lock... [2025-01-03 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:23:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-03 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:24:05 [end_date_ymd] => 2025-01-03 14:24:05 [RateCDR] => 1 ) [2025-01-03 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:24:05' and `end` < '2025-01-03 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:24:19] Production.INFO: count ==4452 [2025-01-03 14:24:21] Production.ERROR: pbx CDR StartTime 2025-01-03 11:24:05 - End Time 2025-01-03 14:24:05 [2025-01-03 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166146', 'tblTempUsageDetail_20' ) start [2025-01-03 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166146', 'tblTempUsageDetail_20' ) end [2025-01-03 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166146', 'tblTempVendorCDR_20' ) start [2025-01-03 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166146', 'tblTempVendorCDR_20' ) end [2025-01-03 14:24:21] Production.INFO: ProcessCDR(1,14166146,1,1,2) [2025-01-03 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166146', 'tblTempUsageDetail_20' ) start [2025-01-03 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166146', 'tblTempUsageDetail_20' ) end [2025-01-03 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:24:26] Production.INFO: ==3023== Releasing lock... [2025-01-03 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:24:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:25:05 [end_date_ymd] => 2025-01-03 14:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:25:05' and `end` < '2025-01-03 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-01-03 14:25:19] Production.INFO: count ==4445 [2025-01-03 14:25:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:25:05 - End Time 2025-01-03 14:25:05 [2025-01-03 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166151', 'tblTempUsageDetail_20' ) start [2025-01-03 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166151', 'tblTempUsageDetail_20' ) end [2025-01-03 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166151', 'tblTempVendorCDR_20' ) start [2025-01-03 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166151', 'tblTempVendorCDR_20' ) end [2025-01-03 14:25:21] Production.INFO: ProcessCDR(1,14166151,1,1,2) [2025-01-03 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166151', 'tblTempUsageDetail_20' ) start [2025-01-03 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166151', 'tblTempUsageDetail_20' ) end [2025-01-03 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:25:25] Production.INFO: ==3103== Releasing lock... [2025-01-03 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:25:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:26:05 [end_date_ymd] => 2025-01-03 14:26:05 [RateCDR] => 1 ) [2025-01-03 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:26:05' and `end` < '2025-01-03 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:26:19] Production.INFO: count ==4426 [2025-01-03 14:26:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:26:05 - End Time 2025-01-03 14:26:05 [2025-01-03 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166156', 'tblTempUsageDetail_20' ) start [2025-01-03 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166156', 'tblTempUsageDetail_20' ) end [2025-01-03 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166156', 'tblTempVendorCDR_20' ) start [2025-01-03 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166156', 'tblTempVendorCDR_20' ) end [2025-01-03 14:26:21] Production.INFO: ProcessCDR(1,14166156,1,1,2) [2025-01-03 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166156', 'tblTempUsageDetail_20' ) start [2025-01-03 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166156', 'tblTempUsageDetail_20' ) end [2025-01-03 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:26:25] Production.INFO: ==3179== Releasing lock... [2025-01-03 14:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:26:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:27:05 [end_date_ymd] => 2025-01-03 14:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:27:05' and `end` < '2025-01-03 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-01-03 14:27:26] Production.INFO: count ==4415 [2025-01-03 14:27:28] Production.ERROR: pbx CDR StartTime 2025-01-03 11:27:05 - End Time 2025-01-03 14:27:05 [2025-01-03 14:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166161', 'tblTempUsageDetail_20' ) start [2025-01-03 14:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166161', 'tblTempUsageDetail_20' ) end [2025-01-03 14:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166161', 'tblTempVendorCDR_20' ) start [2025-01-03 14:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166161', 'tblTempVendorCDR_20' ) end [2025-01-03 14:27:28] Production.INFO: ProcessCDR(1,14166161,1,1,2) [2025-01-03 14:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166161', 'tblTempUsageDetail_20' ) start [2025-01-03 14:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166161', 'tblTempUsageDetail_20' ) end [2025-01-03 14:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:27:33] Production.INFO: ==3257== Releasing lock... [2025-01-03 14:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:27:33] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:28:05 [end_date_ymd] => 2025-01-03 14:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:28:05' and `end` < '2025-01-03 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-01-03 14:28:33] Production.INFO: count ==4431 [2025-01-03 14:28:35] Production.ERROR: pbx CDR StartTime 2025-01-03 11:28:05 - End Time 2025-01-03 14:28:05 [2025-01-03 14:28:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166166', 'tblTempUsageDetail_20' ) start [2025-01-03 14:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166166', 'tblTempUsageDetail_20' ) end [2025-01-03 14:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166166', 'tblTempVendorCDR_20' ) start [2025-01-03 14:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166166', 'tblTempVendorCDR_20' ) end [2025-01-03 14:28:35] Production.INFO: ProcessCDR(1,14166166,1,1,2) [2025-01-03 14:28:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:28:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:28:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:28:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166166', 'tblTempUsageDetail_20' ) start [2025-01-03 14:28:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166166', 'tblTempUsageDetail_20' ) end [2025-01-03 14:28:40] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:28:40] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:28:40] Production.INFO: ==3334== Releasing lock... [2025-01-03 14:28:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:28:40] Production.INFO: 61.25 MB #Memory Used# [2025-01-03 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:29:04 [end_date_ymd] => 2025-01-03 14:29:04 [RateCDR] => 1 ) [2025-01-03 14: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-01-03 11:29:04' and `end` < '2025-01-03 14: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-01-03 14:29:35] Production.INFO: count ==4419 [2025-01-03 14:29:37] Production.ERROR: pbx CDR StartTime 2025-01-03 11:29:04 - End Time 2025-01-03 14:29:04 [2025-01-03 14:29:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166171', 'tblTempUsageDetail_20' ) start [2025-01-03 14:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166171', 'tblTempUsageDetail_20' ) end [2025-01-03 14:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166171', 'tblTempVendorCDR_20' ) start [2025-01-03 14:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166171', 'tblTempVendorCDR_20' ) end [2025-01-03 14:29:37] Production.INFO: ProcessCDR(1,14166171,1,1,2) [2025-01-03 14:29:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:29:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:29:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:29:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:29:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166171', 'tblTempUsageDetail_20' ) start [2025-01-03 14:29:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166171', 'tblTempUsageDetail_20' ) end [2025-01-03 14:29:42] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:29:42] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:29:42] Production.INFO: ==3415== Releasing lock... [2025-01-03 14:29:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:29:42] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:30:05 [end_date_ymd] => 2025-01-03 14:30:05 [RateCDR] => 1 ) [2025-01-03 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:30:05' and `end` < '2025-01-03 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:30:33] Production.INFO: count ==4419 [2025-01-03 14:30:35] Production.ERROR: pbx CDR StartTime 2025-01-03 11:30:05 - End Time 2025-01-03 14:30:05 [2025-01-03 14:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166177', 'tblTempUsageDetail_20' ) start [2025-01-03 14:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166177', 'tblTempUsageDetail_20' ) end [2025-01-03 14:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166177', 'tblTempVendorCDR_20' ) start [2025-01-03 14:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166177', 'tblTempVendorCDR_20' ) end [2025-01-03 14:30:35] Production.INFO: ProcessCDR(1,14166177,1,1,2) [2025-01-03 14:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166177', 'tblTempUsageDetail_20' ) start [2025-01-03 14:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166177', 'tblTempUsageDetail_20' ) end [2025-01-03 14:30:40] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:30:40] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:30:40] Production.INFO: ==3539== Releasing lock... [2025-01-03 14:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:30:40] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:31:05 [end_date_ymd] => 2025-01-03 14:31:05 [RateCDR] => 1 ) [2025-01-03 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:31:05' and `end` < '2025-01-03 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:31:23] Production.INFO: count ==4394 [2025-01-03 14:31:25] Production.ERROR: pbx CDR StartTime 2025-01-03 11:31:05 - End Time 2025-01-03 14:31:05 [2025-01-03 14:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166182', 'tblTempUsageDetail_20' ) start [2025-01-03 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166182', 'tblTempUsageDetail_20' ) end [2025-01-03 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166182', 'tblTempVendorCDR_20' ) start [2025-01-03 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166182', 'tblTempVendorCDR_20' ) end [2025-01-03 14:31:25] Production.INFO: ProcessCDR(1,14166182,1,1,2) [2025-01-03 14:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166182', 'tblTempUsageDetail_20' ) start [2025-01-03 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166182', 'tblTempUsageDetail_20' ) end [2025-01-03 14:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:31:30] Production.INFO: ==3622== Releasing lock... [2025-01-03 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:31:30] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:32:05 [end_date_ymd] => 2025-01-03 14:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:32:05' and `end` < '2025-01-03 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-01-03 14:32:22] Production.INFO: count ==4392 [2025-01-03 14:32:24] Production.ERROR: pbx CDR StartTime 2025-01-03 11:32:05 - End Time 2025-01-03 14:32:05 [2025-01-03 14:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166187', 'tblTempUsageDetail_20' ) start [2025-01-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166187', 'tblTempUsageDetail_20' ) end [2025-01-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166187', 'tblTempVendorCDR_20' ) start [2025-01-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166187', 'tblTempVendorCDR_20' ) end [2025-01-03 14:32:24] Production.INFO: ProcessCDR(1,14166187,1,1,2) [2025-01-03 14:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166187', 'tblTempUsageDetail_20' ) start [2025-01-03 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166187', 'tblTempUsageDetail_20' ) end [2025-01-03 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:32:28] Production.INFO: ==3703== Releasing lock... [2025-01-03 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:32:28] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:33:05 [end_date_ymd] => 2025-01-03 14:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:33:05' and `end` < '2025-01-03 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-01-03 14:33:18] Production.INFO: count ==4359 [2025-01-03 14:33:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:33:05 - End Time 2025-01-03 14:33:05 [2025-01-03 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166192', 'tblTempUsageDetail_20' ) start [2025-01-03 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166192', 'tblTempUsageDetail_20' ) end [2025-01-03 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166192', 'tblTempVendorCDR_20' ) start [2025-01-03 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166192', 'tblTempVendorCDR_20' ) end [2025-01-03 14:33:20] Production.INFO: ProcessCDR(1,14166192,1,1,2) [2025-01-03 14:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166192', 'tblTempUsageDetail_20' ) start [2025-01-03 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166192', 'tblTempUsageDetail_20' ) end [2025-01-03 14:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:33:25] Production.INFO: ==3787== Releasing lock... [2025-01-03 14:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:33:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-03 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:34:05 [end_date_ymd] => 2025-01-03 14:34:05 [RateCDR] => 1 ) [2025-01-03 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:34:05' and `end` < '2025-01-03 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:34:24] Production.INFO: count ==4350 [2025-01-03 14:34:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:34:05 - End Time 2025-01-03 14:34:05 [2025-01-03 14:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166197', 'tblTempUsageDetail_20' ) start [2025-01-03 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166197', 'tblTempUsageDetail_20' ) end [2025-01-03 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166197', 'tblTempVendorCDR_20' ) start [2025-01-03 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166197', 'tblTempVendorCDR_20' ) end [2025-01-03 14:34:26] Production.INFO: ProcessCDR(1,14166197,1,1,2) [2025-01-03 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166197', 'tblTempUsageDetail_20' ) start [2025-01-03 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166197', 'tblTempUsageDetail_20' ) end [2025-01-03 14:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:34:31] Production.INFO: ==3871== Releasing lock... [2025-01-03 14:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:34:31] Production.INFO: 60.5 MB #Memory Used# [2025-01-03 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:35:04 [end_date_ymd] => 2025-01-03 14:35:04 [RateCDR] => 1 ) [2025-01-03 14: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-01-03 11:35:04' and `end` < '2025-01-03 14: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-01-03 14:35:23] Production.INFO: count ==4333 [2025-01-03 14:35:25] Production.ERROR: pbx CDR StartTime 2025-01-03 11:35:04 - End Time 2025-01-03 14:35:04 [2025-01-03 14:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166202', 'tblTempUsageDetail_20' ) start [2025-01-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166202', 'tblTempUsageDetail_20' ) end [2025-01-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166202', 'tblTempVendorCDR_20' ) start [2025-01-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166202', 'tblTempVendorCDR_20' ) end [2025-01-03 14:35:25] Production.INFO: ProcessCDR(1,14166202,1,1,2) [2025-01-03 14:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166202', 'tblTempUsageDetail_20' ) start [2025-01-03 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166202', 'tblTempUsageDetail_20' ) end [2025-01-03 14:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:35:30] Production.INFO: ==3960== Releasing lock... [2025-01-03 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:35:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-03 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:36:05 [end_date_ymd] => 2025-01-03 14:36:05 [RateCDR] => 1 ) [2025-01-03 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:36:05' and `end` < '2025-01-03 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:36:21] Production.INFO: count ==4332 [2025-01-03 14:36:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:36:05 - End Time 2025-01-03 14:36:05 [2025-01-03 14:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166207', 'tblTempUsageDetail_20' ) start [2025-01-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166207', 'tblTempUsageDetail_20' ) end [2025-01-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166207', 'tblTempVendorCDR_20' ) start [2025-01-03 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166207', 'tblTempVendorCDR_20' ) end [2025-01-03 14:36:23] Production.INFO: ProcessCDR(1,14166207,1,1,2) [2025-01-03 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166207', 'tblTempUsageDetail_20' ) start [2025-01-03 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166207', 'tblTempUsageDetail_20' ) end [2025-01-03 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:36:28] Production.INFO: ==4040== Releasing lock... [2025-01-03 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:36:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-03 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:37:05 [end_date_ymd] => 2025-01-03 14:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:37:05' and `end` < '2025-01-03 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-01-03 14:37:26] Production.INFO: count ==4316 [2025-01-03 14:37:28] Production.ERROR: pbx CDR StartTime 2025-01-03 11:37:05 - End Time 2025-01-03 14:37:05 [2025-01-03 14:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166212', 'tblTempUsageDetail_20' ) start [2025-01-03 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166212', 'tblTempUsageDetail_20' ) end [2025-01-03 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166212', 'tblTempVendorCDR_20' ) start [2025-01-03 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166212', 'tblTempVendorCDR_20' ) end [2025-01-03 14:37:28] Production.INFO: ProcessCDR(1,14166212,1,1,2) [2025-01-03 14:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166212', 'tblTempUsageDetail_20' ) start [2025-01-03 14:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166212', 'tblTempUsageDetail_20' ) end [2025-01-03 14:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:37:33] Production.INFO: ==4117== Releasing lock... [2025-01-03 14:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:37:33] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:38:05 [end_date_ymd] => 2025-01-03 14:38:05 [RateCDR] => 1 ) [2025-01-03 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:38:05' and `end` < '2025-01-03 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:38:25] Production.INFO: count ==4304 [2025-01-03 14:38:27] Production.ERROR: pbx CDR StartTime 2025-01-03 11:38:05 - End Time 2025-01-03 14:38:05 [2025-01-03 14:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166217', 'tblTempUsageDetail_20' ) start [2025-01-03 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166217', 'tblTempUsageDetail_20' ) end [2025-01-03 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166217', 'tblTempVendorCDR_20' ) start [2025-01-03 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166217', 'tblTempVendorCDR_20' ) end [2025-01-03 14:38:27] Production.INFO: ProcessCDR(1,14166217,1,1,2) [2025-01-03 14:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166217', 'tblTempUsageDetail_20' ) start [2025-01-03 14:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166217', 'tblTempUsageDetail_20' ) end [2025-01-03 14:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:38:32] Production.INFO: ==4198== Releasing lock... [2025-01-03 14:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:38:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:39:05 [end_date_ymd] => 2025-01-03 14:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:39:05' and `end` < '2025-01-03 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-01-03 14:39:26] Production.INFO: count ==4285 [2025-01-03 14:39:28] Production.ERROR: pbx CDR StartTime 2025-01-03 11:39:05 - End Time 2025-01-03 14:39:05 [2025-01-03 14:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166221', 'tblTempUsageDetail_20' ) start [2025-01-03 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166221', 'tblTempUsageDetail_20' ) end [2025-01-03 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166221', 'tblTempVendorCDR_20' ) start [2025-01-03 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166221', 'tblTempVendorCDR_20' ) end [2025-01-03 14:39:28] Production.INFO: ProcessCDR(1,14166221,1,1,2) [2025-01-03 14:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166221', 'tblTempUsageDetail_20' ) start [2025-01-03 14:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166221', 'tblTempUsageDetail_20' ) end [2025-01-03 14:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:39:32] Production.INFO: ==4276== Releasing lock... [2025-01-03 14:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:39:32] Production.INFO: 60 MB #Memory Used# [2025-01-03 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:40:05 [end_date_ymd] => 2025-01-03 14:40:05 [RateCDR] => 1 ) [2025-01-03 14: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-01-03 11:40:05' and `end` < '2025-01-03 14: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-01-03 14:40:27] Production.INFO: count ==4283 [2025-01-03 14:40:28] Production.ERROR: pbx CDR StartTime 2025-01-03 11:40:05 - End Time 2025-01-03 14:40:05 [2025-01-03 14:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166227', 'tblTempUsageDetail_20' ) start [2025-01-03 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166227', 'tblTempUsageDetail_20' ) end [2025-01-03 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166227', 'tblTempVendorCDR_20' ) start [2025-01-03 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166227', 'tblTempVendorCDR_20' ) end [2025-01-03 14:40:28] Production.INFO: ProcessCDR(1,14166227,1,1,2) [2025-01-03 14:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166227', 'tblTempUsageDetail_20' ) start [2025-01-03 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166227', 'tblTempUsageDetail_20' ) end [2025-01-03 14:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:40:31] Production.INFO: ==4356== Releasing lock... [2025-01-03 14:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:40:31] Production.INFO: 60 MB #Memory Used# [2025-01-03 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:41:05 [end_date_ymd] => 2025-01-03 14:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:41:05' and `end` < '2025-01-03 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-01-03 14:41:24] Production.INFO: count ==4306 [2025-01-03 14:41:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:41:05 - End Time 2025-01-03 14:41:05 [2025-01-03 14:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166233', 'tblTempUsageDetail_20' ) start [2025-01-03 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166233', 'tblTempUsageDetail_20' ) end [2025-01-03 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166233', 'tblTempVendorCDR_20' ) start [2025-01-03 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166233', 'tblTempVendorCDR_20' ) end [2025-01-03 14:41:26] Production.INFO: ProcessCDR(1,14166233,1,1,2) [2025-01-03 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166233', 'tblTempUsageDetail_20' ) start [2025-01-03 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166233', 'tblTempUsageDetail_20' ) end [2025-01-03 14:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:41:29] Production.INFO: ==4433== Releasing lock... [2025-01-03 14:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:41:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:42:04 [end_date_ymd] => 2025-01-03 14:42:04 [RateCDR] => 1 ) [2025-01-03 14:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:42:04' and `end` < '2025-01-03 14:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:42:19] Production.INFO: count ==4294 [2025-01-03 14:42:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:42:04 - End Time 2025-01-03 14:42:04 [2025-01-03 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166235', 'tblTempUsageDetail_20' ) start [2025-01-03 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166235', 'tblTempUsageDetail_20' ) end [2025-01-03 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166235', 'tblTempVendorCDR_20' ) start [2025-01-03 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166235', 'tblTempVendorCDR_20' ) end [2025-01-03 14:42:20] Production.INFO: ProcessCDR(1,14166235,1,1,2) [2025-01-03 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166235', 'tblTempUsageDetail_20' ) start [2025-01-03 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166235', 'tblTempUsageDetail_20' ) end [2025-01-03 14:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:42:25] Production.INFO: ==4506== Releasing lock... [2025-01-03 14:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:42:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:43:05 [end_date_ymd] => 2025-01-03 14:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:43:05' and `end` < '2025-01-03 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-01-03 14:43:19] Production.INFO: count ==4310 [2025-01-03 14:43:20] Production.ERROR: pbx CDR StartTime 2025-01-03 11:43:05 - End Time 2025-01-03 14:43:05 [2025-01-03 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166243', 'tblTempUsageDetail_20' ) start [2025-01-03 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166243', 'tblTempUsageDetail_20' ) end [2025-01-03 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166243', 'tblTempVendorCDR_20' ) start [2025-01-03 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166243', 'tblTempVendorCDR_20' ) end [2025-01-03 14:43:20] Production.INFO: ProcessCDR(1,14166243,1,1,2) [2025-01-03 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166243', 'tblTempUsageDetail_20' ) start [2025-01-03 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166243', 'tblTempUsageDetail_20' ) end [2025-01-03 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:43:24] Production.INFO: ==4590== Releasing lock... [2025-01-03 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:43:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:44:05 [end_date_ymd] => 2025-01-03 14:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:44:05' and `end` < '2025-01-03 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-01-03 14:44:28] Production.INFO: count ==4293 [2025-01-03 14:44:30] Production.ERROR: pbx CDR StartTime 2025-01-03 11:44:05 - End Time 2025-01-03 14:44:05 [2025-01-03 14:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166248', 'tblTempUsageDetail_20' ) start [2025-01-03 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166248', 'tblTempUsageDetail_20' ) end [2025-01-03 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166248', 'tblTempVendorCDR_20' ) start [2025-01-03 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166248', 'tblTempVendorCDR_20' ) end [2025-01-03 14:44:30] Production.INFO: ProcessCDR(1,14166248,1,1,2) [2025-01-03 14:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166248', 'tblTempUsageDetail_20' ) start [2025-01-03 14:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166248', 'tblTempUsageDetail_20' ) end [2025-01-03 14:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:44:35] Production.INFO: ==4667== Releasing lock... [2025-01-03 14:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:44:35] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:45:05 [end_date_ymd] => 2025-01-03 14:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:45:05' and `end` < '2025-01-03 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-01-03 14:45:35] Production.INFO: count ==4307 [2025-01-03 14:45:36] Production.ERROR: pbx CDR StartTime 2025-01-03 11:45:05 - End Time 2025-01-03 14:45:05 [2025-01-03 14:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166253', 'tblTempUsageDetail_20' ) start [2025-01-03 14:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166253', 'tblTempUsageDetail_20' ) end [2025-01-03 14:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166253', 'tblTempVendorCDR_20' ) start [2025-01-03 14:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166253', 'tblTempVendorCDR_20' ) end [2025-01-03 14:45:37] Production.INFO: ProcessCDR(1,14166253,1,1,2) [2025-01-03 14:45:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:45:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:45:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:45:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166253', 'tblTempUsageDetail_20' ) start [2025-01-03 14:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166253', 'tblTempUsageDetail_20' ) end [2025-01-03 14:45:41] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:45:41] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:45:41] Production.INFO: ==4741== Releasing lock... [2025-01-03 14:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:45:41] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:46:04 [end_date_ymd] => 2025-01-03 14:46:04 [RateCDR] => 1 ) [2025-01-03 14: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-01-03 11:46:04' and `end` < '2025-01-03 14: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-01-03 14:46:25] Production.INFO: count ==4312 [2025-01-03 14:46:27] Production.ERROR: pbx CDR StartTime 2025-01-03 11:46:04 - End Time 2025-01-03 14:46:04 [2025-01-03 14:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166258', 'tblTempUsageDetail_20' ) start [2025-01-03 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166258', 'tblTempUsageDetail_20' ) end [2025-01-03 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166258', 'tblTempVendorCDR_20' ) start [2025-01-03 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166258', 'tblTempVendorCDR_20' ) end [2025-01-03 14:46:27] Production.INFO: ProcessCDR(1,14166258,1,1,2) [2025-01-03 14:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166258', 'tblTempUsageDetail_20' ) start [2025-01-03 14:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166258', 'tblTempUsageDetail_20' ) end [2025-01-03 14:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:46:32] Production.INFO: ==4855== Releasing lock... [2025-01-03 14:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:46:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:47:05 [end_date_ymd] => 2025-01-03 14:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:47:05' and `end` < '2025-01-03 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-01-03 14:47:24] Production.INFO: count ==4301 [2025-01-03 14:47:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:47:05 - End Time 2025-01-03 14:47:05 [2025-01-03 14:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166263', 'tblTempUsageDetail_20' ) start [2025-01-03 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166263', 'tblTempUsageDetail_20' ) end [2025-01-03 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166263', 'tblTempVendorCDR_20' ) start [2025-01-03 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166263', 'tblTempVendorCDR_20' ) end [2025-01-03 14:47:26] Production.INFO: ProcessCDR(1,14166263,1,1,2) [2025-01-03 14:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166263', 'tblTempUsageDetail_20' ) start [2025-01-03 14:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166263', 'tblTempUsageDetail_20' ) end [2025-01-03 14:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:47:30] Production.INFO: ==4931== Releasing lock... [2025-01-03 14:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:47:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:48:05 [end_date_ymd] => 2025-01-03 14:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:48:05' and `end` < '2025-01-03 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-01-03 14:48:25] Production.INFO: count ==4290 [2025-01-03 14:48:26] Production.ERROR: pbx CDR StartTime 2025-01-03 11:48:05 - End Time 2025-01-03 14:48:05 [2025-01-03 14:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166268', 'tblTempUsageDetail_20' ) start [2025-01-03 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166268', 'tblTempUsageDetail_20' ) end [2025-01-03 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166268', 'tblTempVendorCDR_20' ) start [2025-01-03 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166268', 'tblTempVendorCDR_20' ) end [2025-01-03 14:48:26] Production.INFO: ProcessCDR(1,14166268,1,1,2) [2025-01-03 14:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166268', 'tblTempUsageDetail_20' ) start [2025-01-03 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166268', 'tblTempUsageDetail_20' ) end [2025-01-03 14:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:48:31] Production.INFO: ==5006== Releasing lock... [2025-01-03 14:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:48:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:49:05 [end_date_ymd] => 2025-01-03 14:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:49:05' and `end` < '2025-01-03 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-01-03 14:49:26] Production.INFO: count ==4296 [2025-01-03 14:49:27] Production.ERROR: pbx CDR StartTime 2025-01-03 11:49:05 - End Time 2025-01-03 14:49:05 [2025-01-03 14:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166273', 'tblTempUsageDetail_20' ) start [2025-01-03 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166273', 'tblTempUsageDetail_20' ) end [2025-01-03 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166273', 'tblTempVendorCDR_20' ) start [2025-01-03 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166273', 'tblTempVendorCDR_20' ) end [2025-01-03 14:49:27] Production.INFO: ProcessCDR(1,14166273,1,1,2) [2025-01-03 14:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166273', 'tblTempUsageDetail_20' ) start [2025-01-03 14:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166273', 'tblTempUsageDetail_20' ) end [2025-01-03 14:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:49:32] Production.INFO: ==5083== Releasing lock... [2025-01-03 14:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:49:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:50:06 [end_date_ymd] => 2025-01-03 14:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:50:06' and `end` < '2025-01-03 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-01-03 14:50:29] Production.INFO: count ==4299 [2025-01-03 14:50:31] Production.ERROR: pbx CDR StartTime 2025-01-03 11:50:06 - End Time 2025-01-03 14:50:06 [2025-01-03 14:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166278', 'tblTempUsageDetail_20' ) start [2025-01-03 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166278', 'tblTempUsageDetail_20' ) end [2025-01-03 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166278', 'tblTempVendorCDR_20' ) start [2025-01-03 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166278', 'tblTempVendorCDR_20' ) end [2025-01-03 14:50:31] Production.INFO: ProcessCDR(1,14166278,1,1,2) [2025-01-03 14:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166278', 'tblTempUsageDetail_20' ) start [2025-01-03 14:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166278', 'tblTempUsageDetail_20' ) end [2025-01-03 14:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:50:36] Production.INFO: ==5163== Releasing lock... [2025-01-03 14:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:50:36] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:51:04 [end_date_ymd] => 2025-01-03 14:51:04 [RateCDR] => 1 ) [2025-01-03 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:51:04' and `end` < '2025-01-03 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:51:21] Production.INFO: count ==4375 [2025-01-03 14:51:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:51:04 - End Time 2025-01-03 14:51:04 [2025-01-03 14:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166284', 'tblTempUsageDetail_20' ) start [2025-01-03 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166284', 'tblTempUsageDetail_20' ) end [2025-01-03 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166284', 'tblTempVendorCDR_20' ) start [2025-01-03 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166284', 'tblTempVendorCDR_20' ) end [2025-01-03 14:51:23] Production.INFO: ProcessCDR(1,14166284,1,1,2) [2025-01-03 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166284', 'tblTempUsageDetail_20' ) start [2025-01-03 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166284', 'tblTempUsageDetail_20' ) end [2025-01-03 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:51:28] Production.INFO: ==5238== Releasing lock... [2025-01-03 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:51:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-03 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:52:05 [end_date_ymd] => 2025-01-03 14:52:05 [RateCDR] => 1 ) [2025-01-03 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:52:05' and `end` < '2025-01-03 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:52:23] Production.INFO: count ==4391 [2025-01-03 14:52:25] Production.ERROR: pbx CDR StartTime 2025-01-03 11:52:05 - End Time 2025-01-03 14:52:05 [2025-01-03 14:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166289', 'tblTempUsageDetail_20' ) start [2025-01-03 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166289', 'tblTempUsageDetail_20' ) end [2025-01-03 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166289', 'tblTempVendorCDR_20' ) start [2025-01-03 14:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166289', 'tblTempVendorCDR_20' ) end [2025-01-03 14:52:25] Production.INFO: ProcessCDR(1,14166289,1,1,2) [2025-01-03 14:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166289', 'tblTempUsageDetail_20' ) start [2025-01-03 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166289', 'tblTempUsageDetail_20' ) end [2025-01-03 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:52:29] Production.INFO: ==5314== Releasing lock... [2025-01-03 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:52:29] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:53:05 [end_date_ymd] => 2025-01-03 14:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:53:05' and `end` < '2025-01-03 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-01-03 14:53:23] Production.INFO: count ==4395 [2025-01-03 14:53:24] Production.ERROR: pbx CDR StartTime 2025-01-03 11:53:05 - End Time 2025-01-03 14:53:05 [2025-01-03 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166294', 'tblTempUsageDetail_20' ) start [2025-01-03 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166294', 'tblTempUsageDetail_20' ) end [2025-01-03 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166294', 'tblTempVendorCDR_20' ) start [2025-01-03 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166294', 'tblTempVendorCDR_20' ) end [2025-01-03 14:53:25] Production.INFO: ProcessCDR(1,14166294,1,1,2) [2025-01-03 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166294', 'tblTempUsageDetail_20' ) start [2025-01-03 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166294', 'tblTempUsageDetail_20' ) end [2025-01-03 14:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:53:29] Production.INFO: ==5387== Releasing lock... [2025-01-03 14:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:53:29] Production.INFO: 61 MB #Memory Used# [2025-01-03 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:54:05 [end_date_ymd] => 2025-01-03 14:54:05 [RateCDR] => 1 ) [2025-01-03 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:54:05' and `end` < '2025-01-03 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:54:26] Production.INFO: count ==4364 [2025-01-03 14:54:28] Production.ERROR: pbx CDR StartTime 2025-01-03 11:54:05 - End Time 2025-01-03 14:54:05 [2025-01-03 14:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166299', 'tblTempUsageDetail_20' ) start [2025-01-03 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166299', 'tblTempUsageDetail_20' ) end [2025-01-03 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166299', 'tblTempVendorCDR_20' ) start [2025-01-03 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166299', 'tblTempVendorCDR_20' ) end [2025-01-03 14:54:28] Production.INFO: ProcessCDR(1,14166299,1,1,2) [2025-01-03 14:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166299', 'tblTempUsageDetail_20' ) start [2025-01-03 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166299', 'tblTempUsageDetail_20' ) end [2025-01-03 14:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:54:33] Production.INFO: ==5459== Releasing lock... [2025-01-03 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:54:33] Production.INFO: 60.75 MB #Memory Used# [2025-01-03 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:55:05 [end_date_ymd] => 2025-01-03 14:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:55:05' and `end` < '2025-01-03 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-01-03 14:55:22] Production.INFO: count ==4322 [2025-01-03 14:55:24] Production.ERROR: pbx CDR StartTime 2025-01-03 11:55:05 - End Time 2025-01-03 14:55:05 [2025-01-03 14:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166304', 'tblTempUsageDetail_20' ) start [2025-01-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166304', 'tblTempUsageDetail_20' ) end [2025-01-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166304', 'tblTempVendorCDR_20' ) start [2025-01-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166304', 'tblTempVendorCDR_20' ) end [2025-01-03 14:55:24] Production.INFO: ProcessCDR(1,14166304,1,1,2) [2025-01-03 14:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166304', 'tblTempUsageDetail_20' ) start [2025-01-03 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166304', 'tblTempUsageDetail_20' ) end [2025-01-03 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:55:28] Production.INFO: ==5532== Releasing lock... [2025-01-03 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:55:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-03 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:56:04 [end_date_ymd] => 2025-01-03 14:56:04 [RateCDR] => 1 ) [2025-01-03 14:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:56:04' and `end` < '2025-01-03 14:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:56:20] Production.INFO: count ==4302 [2025-01-03 14:56:22] Production.ERROR: pbx CDR StartTime 2025-01-03 11:56:04 - End Time 2025-01-03 14:56:04 [2025-01-03 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166309', 'tblTempUsageDetail_20' ) start [2025-01-03 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166309', 'tblTempUsageDetail_20' ) end [2025-01-03 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166309', 'tblTempVendorCDR_20' ) start [2025-01-03 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166309', 'tblTempVendorCDR_20' ) end [2025-01-03 14:56:22] Production.INFO: ProcessCDR(1,14166309,1,1,2) [2025-01-03 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166309', 'tblTempUsageDetail_20' ) start [2025-01-03 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166309', 'tblTempUsageDetail_20' ) end [2025-01-03 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:56:27] Production.INFO: ==5609== Releasing lock... [2025-01-03 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:56:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-03 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:57:05 [end_date_ymd] => 2025-01-03 14:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:57:05' and `end` < '2025-01-03 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-01-03 14:57:23] Production.INFO: count ==4266 [2025-01-03 14:57:24] Production.ERROR: pbx CDR StartTime 2025-01-03 11:57:05 - End Time 2025-01-03 14:57:05 [2025-01-03 14:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166314', 'tblTempUsageDetail_20' ) start [2025-01-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166314', 'tblTempUsageDetail_20' ) end [2025-01-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166314', 'tblTempVendorCDR_20' ) start [2025-01-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166314', 'tblTempVendorCDR_20' ) end [2025-01-03 14:57:24] Production.INFO: ProcessCDR(1,14166314,1,1,2) [2025-01-03 14:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166314', 'tblTempUsageDetail_20' ) start [2025-01-03 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166314', 'tblTempUsageDetail_20' ) end [2025-01-03 14:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:57:29] Production.INFO: ==5682== Releasing lock... [2025-01-03 14:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:57:29] Production.INFO: 60 MB #Memory Used# [2025-01-03 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:58:05 [end_date_ymd] => 2025-01-03 14:58:05 [RateCDR] => 1 ) [2025-01-03 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 11:58:05' and `end` < '2025-01-03 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 14:58:25] Production.INFO: count ==4232 [2025-01-03 14:58:27] Production.ERROR: pbx CDR StartTime 2025-01-03 11:58:05 - End Time 2025-01-03 14:58:05 [2025-01-03 14:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166319', 'tblTempUsageDetail_20' ) start [2025-01-03 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166319', 'tblTempUsageDetail_20' ) end [2025-01-03 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166319', 'tblTempVendorCDR_20' ) start [2025-01-03 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166319', 'tblTempVendorCDR_20' ) end [2025-01-03 14:58:27] Production.INFO: ProcessCDR(1,14166319,1,1,2) [2025-01-03 14:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166319', 'tblTempUsageDetail_20' ) start [2025-01-03 14:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166319', 'tblTempUsageDetail_20' ) end [2025-01-03 14:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:58:32] Production.INFO: ==5755== Releasing lock... [2025-01-03 14:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:58:32] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 11:59:05 [end_date_ymd] => 2025-01-03 14:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 11:59:05' and `end` < '2025-01-03 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-01-03 14:59:21] Production.INFO: count ==4206 [2025-01-03 14:59:23] Production.ERROR: pbx CDR StartTime 2025-01-03 11:59:05 - End Time 2025-01-03 14:59:05 [2025-01-03 14:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166324', 'tblTempUsageDetail_20' ) start [2025-01-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166324', 'tblTempUsageDetail_20' ) end [2025-01-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166324', 'tblTempVendorCDR_20' ) start [2025-01-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166324', 'tblTempVendorCDR_20' ) end [2025-01-03 14:59:23] Production.INFO: ProcessCDR(1,14166324,1,1,2) [2025-01-03 14:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166324', 'tblTempUsageDetail_20' ) start [2025-01-03 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166324', 'tblTempUsageDetail_20' ) end [2025-01-03 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 14:59:28] Production.INFO: ==5827== Releasing lock... [2025-01-03 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 14:59:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:00:06 [end_date_ymd] => 2025-01-03 15:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:00:06' and `end` < '2025-01-03 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-01-03 15:00:21] Production.INFO: count ==4203 [2025-01-03 15:00:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:00:06 - End Time 2025-01-03 15:00:06 [2025-01-03 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166329', 'tblTempUsageDetail_20' ) start [2025-01-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166329', 'tblTempUsageDetail_20' ) end [2025-01-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166329', 'tblTempVendorCDR_20' ) start [2025-01-03 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166329', 'tblTempVendorCDR_20' ) end [2025-01-03 15:00:23] Production.INFO: ProcessCDR(1,14166329,1,1,2) [2025-01-03 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166329', 'tblTempUsageDetail_20' ) start [2025-01-03 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166329', 'tblTempUsageDetail_20' ) end [2025-01-03 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:00:28] Production.INFO: ==5904== Releasing lock... [2025-01-03 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:00:28] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:01:05 [end_date_ymd] => 2025-01-03 15:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:01:05' and `end` < '2025-01-03 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-01-03 15:01:27] Production.INFO: count ==4246 [2025-01-03 15:01:28] Production.ERROR: pbx CDR StartTime 2025-01-03 12:01:05 - End Time 2025-01-03 15:01:05 [2025-01-03 15:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166335', 'tblTempUsageDetail_20' ) start [2025-01-03 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166335', 'tblTempUsageDetail_20' ) end [2025-01-03 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166335', 'tblTempVendorCDR_20' ) start [2025-01-03 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166335', 'tblTempVendorCDR_20' ) end [2025-01-03 15:01:28] Production.INFO: ProcessCDR(1,14166335,1,1,2) [2025-01-03 15:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166335', 'tblTempUsageDetail_20' ) start [2025-01-03 15:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166335', 'tblTempUsageDetail_20' ) end [2025-01-03 15:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:01:33] Production.INFO: ==6031== Releasing lock... [2025-01-03 15:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:01:33] Production.INFO: 60 MB #Memory Used# [2025-01-03 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:02:05 [end_date_ymd] => 2025-01-03 15:02:05 [RateCDR] => 1 ) [2025-01-03 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:02:05' and `end` < '2025-01-03 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:02:21] Production.INFO: count ==4261 [2025-01-03 15:02:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:02:05 - End Time 2025-01-03 15:02:05 [2025-01-03 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166340', 'tblTempUsageDetail_20' ) start [2025-01-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166340', 'tblTempUsageDetail_20' ) end [2025-01-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166340', 'tblTempVendorCDR_20' ) start [2025-01-03 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166340', 'tblTempVendorCDR_20' ) end [2025-01-03 15:02:23] Production.INFO: ProcessCDR(1,14166340,1,1,2) [2025-01-03 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166340', 'tblTempUsageDetail_20' ) start [2025-01-03 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166340', 'tblTempUsageDetail_20' ) end [2025-01-03 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:02:28] Production.INFO: ==6183== Releasing lock... [2025-01-03 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:02:28] Production.INFO: 60 MB #Memory Used# [2025-01-03 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:03:05 [end_date_ymd] => 2025-01-03 15:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:03:05' and `end` < '2025-01-03 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-01-03 15:03:22] Production.INFO: count ==4225 [2025-01-03 15:03:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:03:05 - End Time 2025-01-03 15:03:05 [2025-01-03 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166345', 'tblTempUsageDetail_20' ) start [2025-01-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166345', 'tblTempUsageDetail_20' ) end [2025-01-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166345', 'tblTempVendorCDR_20' ) start [2025-01-03 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166345', 'tblTempVendorCDR_20' ) end [2025-01-03 15:03:23] Production.INFO: ProcessCDR(1,14166345,1,1,2) [2025-01-03 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166345', 'tblTempUsageDetail_20' ) start [2025-01-03 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166345', 'tblTempUsageDetail_20' ) end [2025-01-03 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:03:28] Production.INFO: ==6258== Releasing lock... [2025-01-03 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:03:28] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:04:05 [end_date_ymd] => 2025-01-03 15:04:05 [RateCDR] => 1 ) [2025-01-03 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:04:05' and `end` < '2025-01-03 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:04:23] Production.INFO: count ==4228 [2025-01-03 15:04:24] Production.ERROR: pbx CDR StartTime 2025-01-03 12:04:05 - End Time 2025-01-03 15:04:05 [2025-01-03 15:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166350', 'tblTempUsageDetail_20' ) start [2025-01-03 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166350', 'tblTempUsageDetail_20' ) end [2025-01-03 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166350', 'tblTempVendorCDR_20' ) start [2025-01-03 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166350', 'tblTempVendorCDR_20' ) end [2025-01-03 15:04:25] Production.INFO: ProcessCDR(1,14166350,1,1,2) [2025-01-03 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166350', 'tblTempUsageDetail_20' ) start [2025-01-03 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166350', 'tblTempUsageDetail_20' ) end [2025-01-03 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:04:29] Production.INFO: ==6335== Releasing lock... [2025-01-03 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:04:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:05:05 [end_date_ymd] => 2025-01-03 15:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:05:05' and `end` < '2025-01-03 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-01-03 15:05:20] Production.INFO: count ==4225 [2025-01-03 15:05:22] Production.ERROR: pbx CDR StartTime 2025-01-03 12:05:05 - End Time 2025-01-03 15:05:05 [2025-01-03 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166355', 'tblTempUsageDetail_20' ) start [2025-01-03 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166355', 'tblTempUsageDetail_20' ) end [2025-01-03 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166355', 'tblTempVendorCDR_20' ) start [2025-01-03 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166355', 'tblTempVendorCDR_20' ) end [2025-01-03 15:05:22] Production.INFO: ProcessCDR(1,14166355,1,1,2) [2025-01-03 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166355', 'tblTempUsageDetail_20' ) start [2025-01-03 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166355', 'tblTempUsageDetail_20' ) end [2025-01-03 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:05:26] Production.INFO: ==6484== Releasing lock... [2025-01-03 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:05:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:06:04 [end_date_ymd] => 2025-01-03 15:06:04 [RateCDR] => 1 ) [2025-01-03 15: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-01-03 12:06:04' and `end` < '2025-01-03 15: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-01-03 15:06:21] Production.INFO: count ==4216 [2025-01-03 15:06:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:06:04 - End Time 2025-01-03 15:06:04 [2025-01-03 15:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166360', 'tblTempUsageDetail_20' ) start [2025-01-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166360', 'tblTempUsageDetail_20' ) end [2025-01-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166360', 'tblTempVendorCDR_20' ) start [2025-01-03 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166360', 'tblTempVendorCDR_20' ) end [2025-01-03 15:06:23] Production.INFO: ProcessCDR(1,14166360,1,1,2) [2025-01-03 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166360', 'tblTempUsageDetail_20' ) start [2025-01-03 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166360', 'tblTempUsageDetail_20' ) end [2025-01-03 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:06:27] Production.INFO: ==6566== Releasing lock... [2025-01-03 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:06:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:07:05 [end_date_ymd] => 2025-01-03 15:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:07:05' and `end` < '2025-01-03 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-01-03 15:07:18] Production.INFO: count ==4211 [2025-01-03 15:07:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:07:05 - End Time 2025-01-03 15:07:05 [2025-01-03 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166365', 'tblTempUsageDetail_20' ) start [2025-01-03 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166365', 'tblTempUsageDetail_20' ) end [2025-01-03 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166365', 'tblTempVendorCDR_20' ) start [2025-01-03 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166365', 'tblTempVendorCDR_20' ) end [2025-01-03 15:07:20] Production.INFO: ProcessCDR(1,14166365,1,1,2) [2025-01-03 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166365', 'tblTempUsageDetail_20' ) start [2025-01-03 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166365', 'tblTempUsageDetail_20' ) end [2025-01-03 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:07:25] Production.INFO: ==6646== Releasing lock... [2025-01-03 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:07:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:08:04 [end_date_ymd] => 2025-01-03 15:08:04 [RateCDR] => 1 ) [2025-01-03 15: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-01-03 12:08:04' and `end` < '2025-01-03 15: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-01-03 15:08:21] Production.INFO: count ==4216 [2025-01-03 15:08:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:08:04 - End Time 2025-01-03 15:08:04 [2025-01-03 15:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166370', 'tblTempUsageDetail_20' ) start [2025-01-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166370', 'tblTempUsageDetail_20' ) end [2025-01-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166370', 'tblTempVendorCDR_20' ) start [2025-01-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166370', 'tblTempVendorCDR_20' ) end [2025-01-03 15:08:23] Production.INFO: ProcessCDR(1,14166370,1,1,2) [2025-01-03 15:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166370', 'tblTempUsageDetail_20' ) start [2025-01-03 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166370', 'tblTempUsageDetail_20' ) end [2025-01-03 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:08:28] Production.INFO: ==6804== Releasing lock... [2025-01-03 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:08:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:09:05 [end_date_ymd] => 2025-01-03 15:09:05 [RateCDR] => 1 ) [2025-01-03 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:09:05' and `end` < '2025-01-03 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:09:25] Production.INFO: count ==4224 [2025-01-03 15:09:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:09:05 - End Time 2025-01-03 15:09:05 [2025-01-03 15:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166375', 'tblTempUsageDetail_20' ) start [2025-01-03 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166375', 'tblTempUsageDetail_20' ) end [2025-01-03 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166375', 'tblTempVendorCDR_20' ) start [2025-01-03 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166375', 'tblTempVendorCDR_20' ) end [2025-01-03 15:09:27] Production.INFO: ProcessCDR(1,14166375,1,1,2) [2025-01-03 15:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166375', 'tblTempUsageDetail_20' ) start [2025-01-03 15:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166375', 'tblTempUsageDetail_20' ) end [2025-01-03 15:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:09:32] Production.INFO: ==6884== Releasing lock... [2025-01-03 15:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:09:32] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:10:06 [end_date_ymd] => 2025-01-03 15:10:06 [RateCDR] => 1 ) [2025-01-03 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:10:06' and `end` < '2025-01-03 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:10:29] Production.INFO: count ==4232 [2025-01-03 15:10:31] Production.ERROR: pbx CDR StartTime 2025-01-03 12:10:06 - End Time 2025-01-03 15:10:06 [2025-01-03 15:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166381', 'tblTempUsageDetail_20' ) start [2025-01-03 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166381', 'tblTempUsageDetail_20' ) end [2025-01-03 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166381', 'tblTempVendorCDR_20' ) start [2025-01-03 15:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166381', 'tblTempVendorCDR_20' ) end [2025-01-03 15:10:31] Production.INFO: ProcessCDR(1,14166381,1,1,2) [2025-01-03 15:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166381', 'tblTempUsageDetail_20' ) start [2025-01-03 15:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166381', 'tblTempUsageDetail_20' ) end [2025-01-03 15:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:10:35] Production.INFO: ==6966== Releasing lock... [2025-01-03 15:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:10:35] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:11:05 [end_date_ymd] => 2025-01-03 15:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:11:05' and `end` < '2025-01-03 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-01-03 15:11:23] Production.INFO: count ==4180 [2025-01-03 15:11:24] Production.ERROR: pbx CDR StartTime 2025-01-03 12:11:05 - End Time 2025-01-03 15:11:05 [2025-01-03 15:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166386', 'tblTempUsageDetail_20' ) start [2025-01-03 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166386', 'tblTempUsageDetail_20' ) end [2025-01-03 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166386', 'tblTempVendorCDR_20' ) start [2025-01-03 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166386', 'tblTempVendorCDR_20' ) end [2025-01-03 15:11:25] Production.INFO: ProcessCDR(1,14166386,1,1,2) [2025-01-03 15:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166386', 'tblTempUsageDetail_20' ) start [2025-01-03 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166386', 'tblTempUsageDetail_20' ) end [2025-01-03 15:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:11:29] Production.INFO: ==7054== Releasing lock... [2025-01-03 15:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:11:29] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:12:05 [end_date_ymd] => 2025-01-03 15:12:05 [RateCDR] => 1 ) [2025-01-03 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:12:05' and `end` < '2025-01-03 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:12:19] Production.INFO: count ==4193 [2025-01-03 15:12:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:12:05 - End Time 2025-01-03 15:12:05 [2025-01-03 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166391', 'tblTempUsageDetail_20' ) start [2025-01-03 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166391', 'tblTempUsageDetail_20' ) end [2025-01-03 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166391', 'tblTempVendorCDR_20' ) start [2025-01-03 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166391', 'tblTempVendorCDR_20' ) end [2025-01-03 15:12:20] Production.INFO: ProcessCDR(1,14166391,1,1,2) [2025-01-03 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166391', 'tblTempUsageDetail_20' ) start [2025-01-03 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166391', 'tblTempUsageDetail_20' ) end [2025-01-03 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:12:25] Production.INFO: ==7211== Releasing lock... [2025-01-03 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:12:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:13:05 [end_date_ymd] => 2025-01-03 15:13:05 [RateCDR] => 1 ) [2025-01-03 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:13:05' and `end` < '2025-01-03 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:13:18] Production.INFO: count ==4192 [2025-01-03 15:13:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:13:05 - End Time 2025-01-03 15:13:05 [2025-01-03 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166396', 'tblTempUsageDetail_20' ) start [2025-01-03 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166396', 'tblTempUsageDetail_20' ) end [2025-01-03 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166396', 'tblTempVendorCDR_20' ) start [2025-01-03 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166396', 'tblTempVendorCDR_20' ) end [2025-01-03 15:13:20] Production.INFO: ProcessCDR(1,14166396,1,1,2) [2025-01-03 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166396', 'tblTempUsageDetail_20' ) start [2025-01-03 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166396', 'tblTempUsageDetail_20' ) end [2025-01-03 15:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:13:24] Production.INFO: ==7288== Releasing lock... [2025-01-03 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:13:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:14:05 [end_date_ymd] => 2025-01-03 15:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:14:05' and `end` < '2025-01-03 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-01-03 15:14:18] Production.INFO: count ==4189 [2025-01-03 15:14:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:14:05 - End Time 2025-01-03 15:14:05 [2025-01-03 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166401', 'tblTempUsageDetail_20' ) start [2025-01-03 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166401', 'tblTempUsageDetail_20' ) end [2025-01-03 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166401', 'tblTempVendorCDR_20' ) start [2025-01-03 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166401', 'tblTempVendorCDR_20' ) end [2025-01-03 15:14:20] Production.INFO: ProcessCDR(1,14166401,1,1,2) [2025-01-03 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166401', 'tblTempUsageDetail_20' ) start [2025-01-03 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166401', 'tblTempUsageDetail_20' ) end [2025-01-03 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:14:25] Production.INFO: ==7368== Releasing lock... [2025-01-03 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:14:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:15:04 [end_date_ymd] => 2025-01-03 15:15:04 [RateCDR] => 1 ) [2025-01-03 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:15:04' and `end` < '2025-01-03 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:15:18] Production.INFO: count ==4189 [2025-01-03 15:15:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:15:04 - End Time 2025-01-03 15:15:04 [2025-01-03 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166406', 'tblTempUsageDetail_20' ) start [2025-01-03 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166406', 'tblTempUsageDetail_20' ) end [2025-01-03 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166406', 'tblTempVendorCDR_20' ) start [2025-01-03 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166406', 'tblTempVendorCDR_20' ) end [2025-01-03 15:15:20] Production.INFO: ProcessCDR(1,14166406,1,1,2) [2025-01-03 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166406', 'tblTempUsageDetail_20' ) start [2025-01-03 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166406', 'tblTempUsageDetail_20' ) end [2025-01-03 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:15:25] Production.INFO: ==7525== Releasing lock... [2025-01-03 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:15:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:16:05 [end_date_ymd] => 2025-01-03 15:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:16:05' and `end` < '2025-01-03 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-01-03 15:16:23] Production.INFO: count ==4187 [2025-01-03 15:16:24] Production.ERROR: pbx CDR StartTime 2025-01-03 12:16:05 - End Time 2025-01-03 15:16:05 [2025-01-03 15:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166411', 'tblTempUsageDetail_20' ) start [2025-01-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166411', 'tblTempUsageDetail_20' ) end [2025-01-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166411', 'tblTempVendorCDR_20' ) start [2025-01-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166411', 'tblTempVendorCDR_20' ) end [2025-01-03 15:16:24] Production.INFO: ProcessCDR(1,14166411,1,1,2) [2025-01-03 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166411', 'tblTempUsageDetail_20' ) start [2025-01-03 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166411', 'tblTempUsageDetail_20' ) end [2025-01-03 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:16:29] Production.INFO: ==7607== Releasing lock... [2025-01-03 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:16:29] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:17:05 [end_date_ymd] => 2025-01-03 15:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:17:05' and `end` < '2025-01-03 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-01-03 15:17:19] Production.INFO: count ==4183 [2025-01-03 15:17:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:17:05 - End Time 2025-01-03 15:17:05 [2025-01-03 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166416', 'tblTempUsageDetail_20' ) start [2025-01-03 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166416', 'tblTempUsageDetail_20' ) end [2025-01-03 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166416', 'tblTempVendorCDR_20' ) start [2025-01-03 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166416', 'tblTempVendorCDR_20' ) end [2025-01-03 15:17:20] Production.INFO: ProcessCDR(1,14166416,1,1,2) [2025-01-03 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166416', 'tblTempUsageDetail_20' ) start [2025-01-03 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166416', 'tblTempUsageDetail_20' ) end [2025-01-03 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:17:25] Production.INFO: ==7724== Releasing lock... [2025-01-03 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:17:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:18:05 [end_date_ymd] => 2025-01-03 15:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:18:05' and `end` < '2025-01-03 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-01-03 15:18:19] Production.INFO: count ==4185 [2025-01-03 15:18:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:18:05 - End Time 2025-01-03 15:18:05 [2025-01-03 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166421', 'tblTempUsageDetail_20' ) start [2025-01-03 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166421', 'tblTempUsageDetail_20' ) end [2025-01-03 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166421', 'tblTempVendorCDR_20' ) start [2025-01-03 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166421', 'tblTempVendorCDR_20' ) end [2025-01-03 15:18:21] Production.INFO: ProcessCDR(1,14166421,1,1,2) [2025-01-03 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166421', 'tblTempUsageDetail_20' ) start [2025-01-03 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166421', 'tblTempUsageDetail_20' ) end [2025-01-03 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:18:25] Production.INFO: ==7805== Releasing lock... [2025-01-03 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:18:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:19:04 [end_date_ymd] => 2025-01-03 15:19:04 [RateCDR] => 1 ) [2025-01-03 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:19:04' and `end` < '2025-01-03 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:19:18] Production.INFO: count ==4164 [2025-01-03 15:19:19] Production.ERROR: pbx CDR StartTime 2025-01-03 12:19:04 - End Time 2025-01-03 15:19:04 [2025-01-03 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166426', 'tblTempUsageDetail_20' ) start [2025-01-03 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166426', 'tblTempUsageDetail_20' ) end [2025-01-03 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166426', 'tblTempVendorCDR_20' ) start [2025-01-03 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166426', 'tblTempVendorCDR_20' ) end [2025-01-03 15:19:20] Production.INFO: ProcessCDR(1,14166426,1,1,2) [2025-01-03 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166426', 'tblTempUsageDetail_20' ) start [2025-01-03 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166426', 'tblTempUsageDetail_20' ) end [2025-01-03 15:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:19:24] Production.INFO: ==7887== Releasing lock... [2025-01-03 15:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:19:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:20:06 [end_date_ymd] => 2025-01-03 15:20:06 [RateCDR] => 1 ) [2025-01-03 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:20:06' and `end` < '2025-01-03 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:20:20] Production.INFO: count ==4160 [2025-01-03 15:20:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:20:06 - End Time 2025-01-03 15:20:06 [2025-01-03 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166432', 'tblTempUsageDetail_20' ) start [2025-01-03 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166432', 'tblTempUsageDetail_20' ) end [2025-01-03 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166432', 'tblTempVendorCDR_20' ) start [2025-01-03 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166432', 'tblTempVendorCDR_20' ) end [2025-01-03 15:20:21] Production.INFO: ProcessCDR(1,14166432,1,1,2) [2025-01-03 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166432', 'tblTempUsageDetail_20' ) start [2025-01-03 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166432', 'tblTempUsageDetail_20' ) end [2025-01-03 15:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:20:26] Production.INFO: ==7973== Releasing lock... [2025-01-03 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:20:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:21:05 [end_date_ymd] => 2025-01-03 15:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:21:05' and `end` < '2025-01-03 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-01-03 15:21:20] Production.INFO: count ==4151 [2025-01-03 15:21:22] Production.ERROR: pbx CDR StartTime 2025-01-03 12:21:05 - End Time 2025-01-03 15:21:05 [2025-01-03 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166437', 'tblTempUsageDetail_20' ) start [2025-01-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166437', 'tblTempUsageDetail_20' ) end [2025-01-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166437', 'tblTempVendorCDR_20' ) start [2025-01-03 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166437', 'tblTempVendorCDR_20' ) end [2025-01-03 15:21:22] Production.INFO: ProcessCDR(1,14166437,1,1,2) [2025-01-03 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166437', 'tblTempUsageDetail_20' ) start [2025-01-03 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166437', 'tblTempUsageDetail_20' ) end [2025-01-03 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:21:26] Production.INFO: ==8055== Releasing lock... [2025-01-03 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:21:26] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:22:05 [end_date_ymd] => 2025-01-03 15:22:05 [RateCDR] => 1 ) [2025-01-03 15: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-01-03 12:22:05' and `end` < '2025-01-03 15: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-01-03 15:22:25] Production.INFO: count ==4146 [2025-01-03 15:22:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:22:05 - End Time 2025-01-03 15:22:05 [2025-01-03 15:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166442', 'tblTempUsageDetail_20' ) start [2025-01-03 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166442', 'tblTempUsageDetail_20' ) end [2025-01-03 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166442', 'tblTempVendorCDR_20' ) start [2025-01-03 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166442', 'tblTempVendorCDR_20' ) end [2025-01-03 15:22:27] Production.INFO: ProcessCDR(1,14166442,1,1,2) [2025-01-03 15:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166442', 'tblTempUsageDetail_20' ) start [2025-01-03 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166442', 'tblTempUsageDetail_20' ) end [2025-01-03 15:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:22:31] Production.INFO: ==8143== Releasing lock... [2025-01-03 15:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:22:31] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:23:04 [end_date_ymd] => 2025-01-03 15:23:04 [RateCDR] => 1 ) [2025-01-03 15: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-01-03 12:23:04' and `end` < '2025-01-03 15: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-01-03 15:23:22] Production.INFO: count ==4144 [2025-01-03 15:23:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:23:04 - End Time 2025-01-03 15:23:04 [2025-01-03 15:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166447', 'tblTempUsageDetail_20' ) start [2025-01-03 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166447', 'tblTempUsageDetail_20' ) end [2025-01-03 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166447', 'tblTempVendorCDR_20' ) start [2025-01-03 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166447', 'tblTempVendorCDR_20' ) end [2025-01-03 15:23:23] Production.INFO: ProcessCDR(1,14166447,1,1,2) [2025-01-03 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166447', 'tblTempUsageDetail_20' ) start [2025-01-03 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166447', 'tblTempUsageDetail_20' ) end [2025-01-03 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:23:28] Production.INFO: ==8229== Releasing lock... [2025-01-03 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:23:28] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:24:04 [end_date_ymd] => 2025-01-03 15:24:04 [RateCDR] => 1 ) [2025-01-03 15:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:24:04' and `end` < '2025-01-03 15:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:24:23] Production.INFO: count ==4143 [2025-01-03 15:24:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:24:04 - End Time 2025-01-03 15:24:04 [2025-01-03 15:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166452', 'tblTempUsageDetail_20' ) start [2025-01-03 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166452', 'tblTempUsageDetail_20' ) end [2025-01-03 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166452', 'tblTempVendorCDR_20' ) start [2025-01-03 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166452', 'tblTempVendorCDR_20' ) end [2025-01-03 15:24:25] Production.INFO: ProcessCDR(1,14166452,1,1,2) [2025-01-03 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166452', 'tblTempUsageDetail_20' ) start [2025-01-03 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166452', 'tblTempUsageDetail_20' ) end [2025-01-03 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:24:29] Production.INFO: ==8309== Releasing lock... [2025-01-03 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:24:29] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:25:05 [end_date_ymd] => 2025-01-03 15:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:25:05' and `end` < '2025-01-03 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-01-03 15:25:20] Production.INFO: count ==4137 [2025-01-03 15:25:22] Production.ERROR: pbx CDR StartTime 2025-01-03 12:25:05 - End Time 2025-01-03 15:25:05 [2025-01-03 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166457', 'tblTempUsageDetail_20' ) start [2025-01-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166457', 'tblTempUsageDetail_20' ) end [2025-01-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166457', 'tblTempVendorCDR_20' ) start [2025-01-03 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166457', 'tblTempVendorCDR_20' ) end [2025-01-03 15:25:22] Production.INFO: ProcessCDR(1,14166457,1,1,2) [2025-01-03 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166457', 'tblTempUsageDetail_20' ) start [2025-01-03 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166457', 'tblTempUsageDetail_20' ) end [2025-01-03 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:25:25] Production.INFO: ==8393== Releasing lock... [2025-01-03 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:25:25] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:26:05 [end_date_ymd] => 2025-01-03 15:26:05 [RateCDR] => 1 ) [2025-01-03 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:26:05' and `end` < '2025-01-03 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:26:19] Production.INFO: count ==4139 [2025-01-03 15:26:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:26:05 - End Time 2025-01-03 15:26:05 [2025-01-03 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166462', 'tblTempUsageDetail_20' ) start [2025-01-03 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166462', 'tblTempUsageDetail_20' ) end [2025-01-03 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166462', 'tblTempVendorCDR_20' ) start [2025-01-03 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166462', 'tblTempVendorCDR_20' ) end [2025-01-03 15:26:20] Production.INFO: ProcessCDR(1,14166462,1,1,2) [2025-01-03 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166462', 'tblTempUsageDetail_20' ) start [2025-01-03 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166462', 'tblTempUsageDetail_20' ) end [2025-01-03 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:26:25] Production.INFO: ==8470== Releasing lock... [2025-01-03 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:26:25] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:27:05 [end_date_ymd] => 2025-01-03 15:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:27:05' and `end` < '2025-01-03 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-01-03 15:27:20] Production.INFO: count ==4134 [2025-01-03 15:27:22] Production.ERROR: pbx CDR StartTime 2025-01-03 12:27:05 - End Time 2025-01-03 15:27:05 [2025-01-03 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166467', 'tblTempUsageDetail_20' ) start [2025-01-03 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166467', 'tblTempUsageDetail_20' ) end [2025-01-03 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166467', 'tblTempVendorCDR_20' ) start [2025-01-03 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166467', 'tblTempVendorCDR_20' ) end [2025-01-03 15:27:22] Production.INFO: ProcessCDR(1,14166467,1,1,2) [2025-01-03 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166467', 'tblTempUsageDetail_20' ) start [2025-01-03 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166467', 'tblTempUsageDetail_20' ) end [2025-01-03 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:27:26] Production.INFO: ==8551== Releasing lock... [2025-01-03 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:27:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:28:04 [end_date_ymd] => 2025-01-03 15:28:04 [RateCDR] => 1 ) [2025-01-03 15:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:28:04' and `end` < '2025-01-03 15:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:28:23] Production.INFO: count ==4138 [2025-01-03 15:28:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:28:04 - End Time 2025-01-03 15:28:04 [2025-01-03 15:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166472', 'tblTempUsageDetail_20' ) start [2025-01-03 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166472', 'tblTempUsageDetail_20' ) end [2025-01-03 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166472', 'tblTempVendorCDR_20' ) start [2025-01-03 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166472', 'tblTempVendorCDR_20' ) end [2025-01-03 15:28:25] Production.INFO: ProcessCDR(1,14166472,1,1,2) [2025-01-03 15:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166472', 'tblTempUsageDetail_20' ) start [2025-01-03 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166472', 'tblTempUsageDetail_20' ) end [2025-01-03 15:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:28:29] Production.INFO: ==8636== Releasing lock... [2025-01-03 15:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:28:29] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:29:05 [end_date_ymd] => 2025-01-03 15:29:05 [RateCDR] => 1 ) [2025-01-03 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:29:05' and `end` < '2025-01-03 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:29:19] Production.INFO: count ==4135 [2025-01-03 15:29:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:29:05 - End Time 2025-01-03 15:29:05 [2025-01-03 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166477', 'tblTempUsageDetail_20' ) start [2025-01-03 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166477', 'tblTempUsageDetail_20' ) end [2025-01-03 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166477', 'tblTempVendorCDR_20' ) start [2025-01-03 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166477', 'tblTempVendorCDR_20' ) end [2025-01-03 15:29:20] Production.INFO: ProcessCDR(1,14166477,1,1,2) [2025-01-03 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166477', 'tblTempUsageDetail_20' ) start [2025-01-03 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166477', 'tblTempUsageDetail_20' ) end [2025-01-03 15:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:29:25] Production.INFO: ==8714== Releasing lock... [2025-01-03 15:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:29:25] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:30:06 [end_date_ymd] => 2025-01-03 15:30:06 [RateCDR] => 1 ) [2025-01-03 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:30:06' and `end` < '2025-01-03 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:30:19] Production.INFO: count ==4136 [2025-01-03 15:30:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:30:06 - End Time 2025-01-03 15:30:06 [2025-01-03 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166483', 'tblTempUsageDetail_20' ) start [2025-01-03 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166483', 'tblTempUsageDetail_20' ) end [2025-01-03 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166483', 'tblTempVendorCDR_20' ) start [2025-01-03 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166483', 'tblTempVendorCDR_20' ) end [2025-01-03 15:30:21] Production.INFO: ProcessCDR(1,14166483,1,1,2) [2025-01-03 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166483', 'tblTempUsageDetail_20' ) start [2025-01-03 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166483', 'tblTempUsageDetail_20' ) end [2025-01-03 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:30:24] Production.INFO: ==8800== Releasing lock... [2025-01-03 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:30:24] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:31:05 [end_date_ymd] => 2025-01-03 15:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:31:05' and `end` < '2025-01-03 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-01-03 15:31:23] Production.INFO: count ==4129 [2025-01-03 15:31:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:31:05 - End Time 2025-01-03 15:31:05 [2025-01-03 15:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166488', 'tblTempUsageDetail_20' ) start [2025-01-03 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166488', 'tblTempUsageDetail_20' ) end [2025-01-03 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166488', 'tblTempVendorCDR_20' ) start [2025-01-03 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166488', 'tblTempVendorCDR_20' ) end [2025-01-03 15:31:25] Production.INFO: ProcessCDR(1,14166488,1,1,2) [2025-01-03 15:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166488', 'tblTempUsageDetail_20' ) start [2025-01-03 15:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166488', 'tblTempUsageDetail_20' ) end [2025-01-03 15:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:31:30] Production.INFO: ==8883== Releasing lock... [2025-01-03 15:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:31:30] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:32:05 [end_date_ymd] => 2025-01-03 15:32:05 [RateCDR] => 1 ) [2025-01-03 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:32:05' and `end` < '2025-01-03 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:32:20] Production.INFO: count ==4115 [2025-01-03 15:32:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:32:05 - End Time 2025-01-03 15:32:05 [2025-01-03 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166493', 'tblTempUsageDetail_20' ) start [2025-01-03 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166493', 'tblTempUsageDetail_20' ) end [2025-01-03 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166493', 'tblTempVendorCDR_20' ) start [2025-01-03 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166493', 'tblTempVendorCDR_20' ) end [2025-01-03 15:32:21] Production.INFO: ProcessCDR(1,14166493,1,1,2) [2025-01-03 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166493', 'tblTempUsageDetail_20' ) start [2025-01-03 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166493', 'tblTempUsageDetail_20' ) end [2025-01-03 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:32:24] Production.INFO: ==8969== Releasing lock... [2025-01-03 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:32:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:33:05 [end_date_ymd] => 2025-01-03 15:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:33:05' and `end` < '2025-01-03 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-01-03 15:33:26] Production.INFO: count ==4135 [2025-01-03 15:33:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:33:05 - End Time 2025-01-03 15:33:05 [2025-01-03 15:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166498', 'tblTempUsageDetail_20' ) start [2025-01-03 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166498', 'tblTempUsageDetail_20' ) end [2025-01-03 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166498', 'tblTempVendorCDR_20' ) start [2025-01-03 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166498', 'tblTempVendorCDR_20' ) end [2025-01-03 15:33:27] Production.INFO: ProcessCDR(1,14166498,1,1,2) [2025-01-03 15:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166498', 'tblTempUsageDetail_20' ) start [2025-01-03 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166498', 'tblTempUsageDetail_20' ) end [2025-01-03 15:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:33:32] Production.INFO: ==9085== Releasing lock... [2025-01-03 15:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:33:32] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:34:05 [end_date_ymd] => 2025-01-03 15:34:05 [RateCDR] => 1 ) [2025-01-03 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:34:05' and `end` < '2025-01-03 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:34:23] Production.INFO: count ==4140 [2025-01-03 15:34:24] Production.ERROR: pbx CDR StartTime 2025-01-03 12:34:05 - End Time 2025-01-03 15:34:05 [2025-01-03 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166503', 'tblTempUsageDetail_20' ) start [2025-01-03 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166503', 'tblTempUsageDetail_20' ) end [2025-01-03 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166503', 'tblTempVendorCDR_20' ) start [2025-01-03 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166503', 'tblTempVendorCDR_20' ) end [2025-01-03 15:34:24] Production.INFO: ProcessCDR(1,14166503,1,1,2) [2025-01-03 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166503', 'tblTempUsageDetail_20' ) start [2025-01-03 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166503', 'tblTempUsageDetail_20' ) end [2025-01-03 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:34:29] Production.INFO: ==9169== Releasing lock... [2025-01-03 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:34:29] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:35:05 [end_date_ymd] => 2025-01-03 15:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:35:05' and `end` < '2025-01-03 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-01-03 15:35:34] Production.INFO: count ==4140 [2025-01-03 15:35:36] Production.ERROR: pbx CDR StartTime 2025-01-03 12:35:05 - End Time 2025-01-03 15:35:05 [2025-01-03 15:35:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166508', 'tblTempUsageDetail_20' ) start [2025-01-03 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166508', 'tblTempUsageDetail_20' ) end [2025-01-03 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166508', 'tblTempVendorCDR_20' ) start [2025-01-03 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166508', 'tblTempVendorCDR_20' ) end [2025-01-03 15:35:36] Production.INFO: ProcessCDR(1,14166508,1,1,2) [2025-01-03 15:35:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:35:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:35:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:35:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:35:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166508', 'tblTempUsageDetail_20' ) start [2025-01-03 15:35:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166508', 'tblTempUsageDetail_20' ) end [2025-01-03 15:35:40] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:35:40] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:35:40] Production.INFO: ==9247== Releasing lock... [2025-01-03 15:35:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:35:40] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:36:05 [end_date_ymd] => 2025-01-03 15:36:05 [RateCDR] => 1 ) [2025-01-03 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:36:05' and `end` < '2025-01-03 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:36:29] Production.INFO: count ==4137 [2025-01-03 15:36:30] Production.ERROR: pbx CDR StartTime 2025-01-03 12:36:05 - End Time 2025-01-03 15:36:05 [2025-01-03 15:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166513', 'tblTempUsageDetail_20' ) start [2025-01-03 15:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166513', 'tblTempUsageDetail_20' ) end [2025-01-03 15:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166513', 'tblTempVendorCDR_20' ) start [2025-01-03 15:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166513', 'tblTempVendorCDR_20' ) end [2025-01-03 15:36:30] Production.INFO: ProcessCDR(1,14166513,1,1,2) [2025-01-03 15:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166513', 'tblTempUsageDetail_20' ) start [2025-01-03 15:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166513', 'tblTempUsageDetail_20' ) end [2025-01-03 15:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:36:34] Production.INFO: ==9329== Releasing lock... [2025-01-03 15:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:36:34] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:37:04 [end_date_ymd] => 2025-01-03 15:37:04 [RateCDR] => 1 ) [2025-01-03 15: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-01-03 12:37:04' and `end` < '2025-01-03 15: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-01-03 15:37:29] Production.INFO: count ==4148 [2025-01-03 15:37:31] Production.ERROR: pbx CDR StartTime 2025-01-03 12:37:04 - End Time 2025-01-03 15:37:04 [2025-01-03 15:37:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166518', 'tblTempUsageDetail_20' ) start [2025-01-03 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166518', 'tblTempUsageDetail_20' ) end [2025-01-03 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166518', 'tblTempVendorCDR_20' ) start [2025-01-03 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166518', 'tblTempVendorCDR_20' ) end [2025-01-03 15:37:31] Production.INFO: ProcessCDR(1,14166518,1,1,2) [2025-01-03 15:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166518', 'tblTempUsageDetail_20' ) start [2025-01-03 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166518', 'tblTempUsageDetail_20' ) end [2025-01-03 15:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:37:35] Production.INFO: ==9411== Releasing lock... [2025-01-03 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:37:35] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:38:05 [end_date_ymd] => 2025-01-03 15:38:05 [RateCDR] => 1 ) [2025-01-03 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:38:05' and `end` < '2025-01-03 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:38:24] Production.INFO: count ==4153 [2025-01-03 15:38:26] Production.ERROR: pbx CDR StartTime 2025-01-03 12:38:05 - End Time 2025-01-03 15:38:05 [2025-01-03 15:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166523', 'tblTempUsageDetail_20' ) start [2025-01-03 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166523', 'tblTempUsageDetail_20' ) end [2025-01-03 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166523', 'tblTempVendorCDR_20' ) start [2025-01-03 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166523', 'tblTempVendorCDR_20' ) end [2025-01-03 15:38:26] Production.INFO: ProcessCDR(1,14166523,1,1,2) [2025-01-03 15:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166523', 'tblTempUsageDetail_20' ) start [2025-01-03 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166523', 'tblTempUsageDetail_20' ) end [2025-01-03 15:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:38:31] Production.INFO: ==9492== Releasing lock... [2025-01-03 15:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:38:31] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:39:04 [end_date_ymd] => 2025-01-03 15:39:04 [RateCDR] => 1 ) [2025-01-03 15: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-01-03 12:39:04' and `end` < '2025-01-03 15: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-01-03 15:39:23] Production.INFO: count ==4163 [2025-01-03 15:39:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:39:04 - End Time 2025-01-03 15:39:04 [2025-01-03 15:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166528', 'tblTempUsageDetail_20' ) start [2025-01-03 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166528', 'tblTempUsageDetail_20' ) end [2025-01-03 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166528', 'tblTempVendorCDR_20' ) start [2025-01-03 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166528', 'tblTempVendorCDR_20' ) end [2025-01-03 15:39:25] Production.INFO: ProcessCDR(1,14166528,1,1,2) [2025-01-03 15:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166528', 'tblTempUsageDetail_20' ) start [2025-01-03 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166528', 'tblTempUsageDetail_20' ) end [2025-01-03 15:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:39:30] Production.INFO: ==9573== Releasing lock... [2025-01-03 15:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:39:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:40:06 [end_date_ymd] => 2025-01-03 15:40:06 [RateCDR] => 1 ) [2025-01-03 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:40:06' and `end` < '2025-01-03 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:40:26] Production.INFO: count ==4164 [2025-01-03 15:40:28] Production.ERROR: pbx CDR StartTime 2025-01-03 12:40:06 - End Time 2025-01-03 15:40:06 [2025-01-03 15:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166534', 'tblTempUsageDetail_20' ) start [2025-01-03 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166534', 'tblTempUsageDetail_20' ) end [2025-01-03 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166534', 'tblTempVendorCDR_20' ) start [2025-01-03 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166534', 'tblTempVendorCDR_20' ) end [2025-01-03 15:40:28] Production.INFO: ProcessCDR(1,14166534,1,1,2) [2025-01-03 15:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166534', 'tblTempUsageDetail_20' ) start [2025-01-03 15:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166534', 'tblTempUsageDetail_20' ) end [2025-01-03 15:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:40:33] Production.INFO: ==9657== Releasing lock... [2025-01-03 15:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:40:33] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:41:04 [end_date_ymd] => 2025-01-03 15:41:04 [RateCDR] => 1 ) [2025-01-03 15:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:41:04' and `end` < '2025-01-03 15:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:41:19] Production.INFO: count ==4175 [2025-01-03 15:41:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:41:04 - End Time 2025-01-03 15:41:04 [2025-01-03 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166539', 'tblTempUsageDetail_20' ) start [2025-01-03 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166539', 'tblTempUsageDetail_20' ) end [2025-01-03 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166539', 'tblTempVendorCDR_20' ) start [2025-01-03 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166539', 'tblTempVendorCDR_20' ) end [2025-01-03 15:41:21] Production.INFO: ProcessCDR(1,14166539,1,1,2) [2025-01-03 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166539', 'tblTempUsageDetail_20' ) start [2025-01-03 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166539', 'tblTempUsageDetail_20' ) end [2025-01-03 15:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:41:25] Production.INFO: ==9743== Releasing lock... [2025-01-03 15:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:41:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:42:05 [end_date_ymd] => 2025-01-03 15:42:05 [RateCDR] => 1 ) [2025-01-03 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:42:05' and `end` < '2025-01-03 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:42:25] Production.INFO: count ==4183 [2025-01-03 15:42:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:42:05 - End Time 2025-01-03 15:42:05 [2025-01-03 15:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166544', 'tblTempUsageDetail_20' ) start [2025-01-03 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166544', 'tblTempUsageDetail_20' ) end [2025-01-03 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166544', 'tblTempVendorCDR_20' ) start [2025-01-03 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166544', 'tblTempVendorCDR_20' ) end [2025-01-03 15:42:27] Production.INFO: ProcessCDR(1,14166544,1,1,2) [2025-01-03 15:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166544', 'tblTempUsageDetail_20' ) start [2025-01-03 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166544', 'tblTempUsageDetail_20' ) end [2025-01-03 15:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:42:31] Production.INFO: ==9852== Releasing lock... [2025-01-03 15:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:42:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:43:05 [end_date_ymd] => 2025-01-03 15:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:43:05' and `end` < '2025-01-03 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-01-03 15:43:25] Production.INFO: count ==4176 [2025-01-03 15:43:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:43:05 - End Time 2025-01-03 15:43:05 [2025-01-03 15:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166549', 'tblTempUsageDetail_20' ) start [2025-01-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166549', 'tblTempUsageDetail_20' ) end [2025-01-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166549', 'tblTempVendorCDR_20' ) start [2025-01-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166549', 'tblTempVendorCDR_20' ) end [2025-01-03 15:43:27] Production.INFO: ProcessCDR(1,14166549,1,1,2) [2025-01-03 15:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166549', 'tblTempUsageDetail_20' ) start [2025-01-03 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166549', 'tblTempUsageDetail_20' ) end [2025-01-03 15:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:43:30] Production.INFO: ==9963== Releasing lock... [2025-01-03 15:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:43:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-03 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:44:04 [end_date_ymd] => 2025-01-03 15:44:04 [RateCDR] => 1 ) [2025-01-03 15:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:44:04' and `end` < '2025-01-03 15:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:44:25] Production.INFO: count ==4184 [2025-01-03 15:44:26] Production.ERROR: pbx CDR StartTime 2025-01-03 12:44:04 - End Time 2025-01-03 15:44:04 [2025-01-03 15:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166554', 'tblTempUsageDetail_20' ) start [2025-01-03 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166554', 'tblTempUsageDetail_20' ) end [2025-01-03 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166554', 'tblTempVendorCDR_20' ) start [2025-01-03 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166554', 'tblTempVendorCDR_20' ) end [2025-01-03 15:44:26] Production.INFO: ProcessCDR(1,14166554,1,1,2) [2025-01-03 15:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166554', 'tblTempUsageDetail_20' ) start [2025-01-03 15:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166554', 'tblTempUsageDetail_20' ) end [2025-01-03 15:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:44:31] Production.INFO: ==10084== Releasing lock... [2025-01-03 15:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:44:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:45:05 [end_date_ymd] => 2025-01-03 15:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:45:05' and `end` < '2025-01-03 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-01-03 15:45:26] Production.INFO: count ==4167 [2025-01-03 15:45:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:45:05 - End Time 2025-01-03 15:45:05 [2025-01-03 15:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166559', 'tblTempUsageDetail_20' ) start [2025-01-03 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166559', 'tblTempUsageDetail_20' ) end [2025-01-03 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166559', 'tblTempVendorCDR_20' ) start [2025-01-03 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166559', 'tblTempVendorCDR_20' ) end [2025-01-03 15:45:27] Production.INFO: ProcessCDR(1,14166559,1,1,2) [2025-01-03 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166559', 'tblTempUsageDetail_20' ) start [2025-01-03 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166559', 'tblTempUsageDetail_20' ) end [2025-01-03 15:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:45:31] Production.INFO: ==10170== Releasing lock... [2025-01-03 15:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:45:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:46:05 [end_date_ymd] => 2025-01-03 15:46:05 [RateCDR] => 1 ) [2025-01-03 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:46:05' and `end` < '2025-01-03 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:46:25] Production.INFO: count ==4133 [2025-01-03 15:46:27] Production.ERROR: pbx CDR StartTime 2025-01-03 12:46:05 - End Time 2025-01-03 15:46:05 [2025-01-03 15:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166564', 'tblTempUsageDetail_20' ) start [2025-01-03 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166564', 'tblTempUsageDetail_20' ) end [2025-01-03 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166564', 'tblTempVendorCDR_20' ) start [2025-01-03 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166564', 'tblTempVendorCDR_20' ) end [2025-01-03 15:46:27] Production.INFO: ProcessCDR(1,14166564,1,1,2) [2025-01-03 15:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166564', 'tblTempUsageDetail_20' ) start [2025-01-03 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166564', 'tblTempUsageDetail_20' ) end [2025-01-03 15:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:46:32] Production.INFO: ==10252== Releasing lock... [2025-01-03 15:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:46:32] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:47:05 [end_date_ymd] => 2025-01-03 15:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:47:05' and `end` < '2025-01-03 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-01-03 15:47:23] Production.INFO: count ==4096 [2025-01-03 15:47:24] Production.ERROR: pbx CDR StartTime 2025-01-03 12:47:05 - End Time 2025-01-03 15:47:05 [2025-01-03 15:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166569', 'tblTempUsageDetail_20' ) start [2025-01-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166569', 'tblTempUsageDetail_20' ) end [2025-01-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166569', 'tblTempVendorCDR_20' ) start [2025-01-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166569', 'tblTempVendorCDR_20' ) end [2025-01-03 15:47:24] Production.INFO: ProcessCDR(1,14166569,1,1,2) [2025-01-03 15:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166569', 'tblTempUsageDetail_20' ) start [2025-01-03 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166569', 'tblTempUsageDetail_20' ) end [2025-01-03 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:47:29] Production.INFO: ==10335== Releasing lock... [2025-01-03 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:47:29] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:48:05 [end_date_ymd] => 2025-01-03 15:48:05 [RateCDR] => 1 ) [2025-01-03 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:48:05' and `end` < '2025-01-03 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:48:20] Production.INFO: count ==4091 [2025-01-03 15:48:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:48:05 - End Time 2025-01-03 15:48:05 [2025-01-03 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166574', 'tblTempUsageDetail_20' ) start [2025-01-03 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166574', 'tblTempUsageDetail_20' ) end [2025-01-03 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166574', 'tblTempVendorCDR_20' ) start [2025-01-03 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166574', 'tblTempVendorCDR_20' ) end [2025-01-03 15:48:21] Production.INFO: ProcessCDR(1,14166574,1,1,2) [2025-01-03 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166574', 'tblTempUsageDetail_20' ) start [2025-01-03 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166574', 'tblTempUsageDetail_20' ) end [2025-01-03 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:48:26] Production.INFO: ==10432== Releasing lock... [2025-01-03 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:48:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:49:05 [end_date_ymd] => 2025-01-03 15:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:49:05' and `end` < '2025-01-03 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-01-03 15:49:24] Production.INFO: count ==4083 [2025-01-03 15:49:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:49:05 - End Time 2025-01-03 15:49:05 [2025-01-03 15:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166579', 'tblTempUsageDetail_20' ) start [2025-01-03 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166579', 'tblTempUsageDetail_20' ) end [2025-01-03 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166579', 'tblTempVendorCDR_20' ) start [2025-01-03 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166579', 'tblTempVendorCDR_20' ) end [2025-01-03 15:49:25] Production.INFO: ProcessCDR(1,14166579,1,1,2) [2025-01-03 15:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166579', 'tblTempUsageDetail_20' ) start [2025-01-03 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166579', 'tblTempUsageDetail_20' ) end [2025-01-03 15:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:49:30] Production.INFO: ==10521== Releasing lock... [2025-01-03 15:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:49:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:50:05 [end_date_ymd] => 2025-01-03 15:50:05 [RateCDR] => 1 ) [2025-01-03 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:50:05' and `end` < '2025-01-03 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:50:21] Production.INFO: count ==4059 [2025-01-03 15:50:23] Production.ERROR: pbx CDR StartTime 2025-01-03 12:50:05 - End Time 2025-01-03 15:50:05 [2025-01-03 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166584', 'tblTempUsageDetail_20' ) start [2025-01-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166584', 'tblTempUsageDetail_20' ) end [2025-01-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166584', 'tblTempVendorCDR_20' ) start [2025-01-03 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166584', 'tblTempVendorCDR_20' ) end [2025-01-03 15:50:23] Production.INFO: ProcessCDR(1,14166584,1,1,2) [2025-01-03 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166584', 'tblTempUsageDetail_20' ) start [2025-01-03 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166584', 'tblTempUsageDetail_20' ) end [2025-01-03 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:50:28] Production.INFO: ==10598== Releasing lock... [2025-01-03 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:50:28] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:51:05 [end_date_ymd] => 2025-01-03 15:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:51:05' and `end` < '2025-01-03 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-01-03 15:51:25] Production.INFO: count ==4062 [2025-01-03 15:51:26] Production.ERROR: pbx CDR StartTime 2025-01-03 12:51:05 - End Time 2025-01-03 15:51:05 [2025-01-03 15:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166590', 'tblTempUsageDetail_20' ) start [2025-01-03 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166590', 'tblTempUsageDetail_20' ) end [2025-01-03 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166590', 'tblTempVendorCDR_20' ) start [2025-01-03 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166590', 'tblTempVendorCDR_20' ) end [2025-01-03 15:51:27] Production.INFO: ProcessCDR(1,14166590,1,1,2) [2025-01-03 15:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166590', 'tblTempUsageDetail_20' ) start [2025-01-03 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166590', 'tblTempUsageDetail_20' ) end [2025-01-03 15:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:51:31] Production.INFO: ==10673== Releasing lock... [2025-01-03 15:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:51:31] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:52:05 [end_date_ymd] => 2025-01-03 15:52:05 [RateCDR] => 1 ) [2025-01-03 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:52:05' and `end` < '2025-01-03 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:52:29] Production.INFO: count ==4060 [2025-01-03 15:52:30] Production.ERROR: pbx CDR StartTime 2025-01-03 12:52:05 - End Time 2025-01-03 15:52:05 [2025-01-03 15:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166595', 'tblTempUsageDetail_20' ) start [2025-01-03 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166595', 'tblTempUsageDetail_20' ) end [2025-01-03 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166595', 'tblTempVendorCDR_20' ) start [2025-01-03 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166595', 'tblTempVendorCDR_20' ) end [2025-01-03 15:52:30] Production.INFO: ProcessCDR(1,14166595,1,1,2) [2025-01-03 15:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166595', 'tblTempUsageDetail_20' ) start [2025-01-03 15:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166595', 'tblTempUsageDetail_20' ) end [2025-01-03 15:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:52:35] Production.INFO: ==10745== Releasing lock... [2025-01-03 15:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:52:35] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:53:05 [end_date_ymd] => 2025-01-03 15:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:53:05' and `end` < '2025-01-03 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-01-03 15:53:23] Production.INFO: count ==4054 [2025-01-03 15:53:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:53:05 - End Time 2025-01-03 15:53:05 [2025-01-03 15:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166600', 'tblTempUsageDetail_20' ) start [2025-01-03 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166600', 'tblTempUsageDetail_20' ) end [2025-01-03 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166600', 'tblTempVendorCDR_20' ) start [2025-01-03 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166600', 'tblTempVendorCDR_20' ) end [2025-01-03 15:53:25] Production.INFO: ProcessCDR(1,14166600,1,1,2) [2025-01-03 15:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166600', 'tblTempUsageDetail_20' ) start [2025-01-03 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166600', 'tblTempUsageDetail_20' ) end [2025-01-03 15:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:53:29] Production.INFO: ==10819== Releasing lock... [2025-01-03 15:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:53:29] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:54:05 [end_date_ymd] => 2025-01-03 15:54:05 [RateCDR] => 1 ) [2025-01-03 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:54:05' and `end` < '2025-01-03 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:54:18] Production.INFO: count ==4040 [2025-01-03 15:54:20] Production.ERROR: pbx CDR StartTime 2025-01-03 12:54:05 - End Time 2025-01-03 15:54:05 [2025-01-03 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166605', 'tblTempUsageDetail_20' ) start [2025-01-03 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166605', 'tblTempUsageDetail_20' ) end [2025-01-03 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166605', 'tblTempVendorCDR_20' ) start [2025-01-03 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166605', 'tblTempVendorCDR_20' ) end [2025-01-03 15:54:20] Production.INFO: ProcessCDR(1,14166605,1,1,2) [2025-01-03 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166605', 'tblTempUsageDetail_20' ) start [2025-01-03 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166605', 'tblTempUsageDetail_20' ) end [2025-01-03 15:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:54:24] Production.INFO: ==10888== Releasing lock... [2025-01-03 15:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:54:24] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:55:05 [end_date_ymd] => 2025-01-03 15:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:55:05' and `end` < '2025-01-03 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-01-03 15:55:19] Production.INFO: count ==4060 [2025-01-03 15:55:21] Production.ERROR: pbx CDR StartTime 2025-01-03 12:55:05 - End Time 2025-01-03 15:55:05 [2025-01-03 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166610', 'tblTempUsageDetail_20' ) start [2025-01-03 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166610', 'tblTempUsageDetail_20' ) end [2025-01-03 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166610', 'tblTempVendorCDR_20' ) start [2025-01-03 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166610', 'tblTempVendorCDR_20' ) end [2025-01-03 15:55:21] Production.INFO: ProcessCDR(1,14166610,1,1,2) [2025-01-03 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166610', 'tblTempUsageDetail_20' ) start [2025-01-03 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166610', 'tblTempUsageDetail_20' ) end [2025-01-03 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:55:26] Production.INFO: ==10961== Releasing lock... [2025-01-03 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:55:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:56:04 [end_date_ymd] => 2025-01-03 15:56:04 [RateCDR] => 1 ) [2025-01-03 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:56:04' and `end` < '2025-01-03 15:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:56:25] Production.INFO: count ==4090 [2025-01-03 15:56:26] Production.ERROR: pbx CDR StartTime 2025-01-03 12:56:04 - End Time 2025-01-03 15:56:04 [2025-01-03 15:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166615', 'tblTempUsageDetail_20' ) start [2025-01-03 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166615', 'tblTempUsageDetail_20' ) end [2025-01-03 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166615', 'tblTempVendorCDR_20' ) start [2025-01-03 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166615', 'tblTempVendorCDR_20' ) end [2025-01-03 15:56:26] Production.INFO: ProcessCDR(1,14166615,1,1,2) [2025-01-03 15:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166615', 'tblTempUsageDetail_20' ) start [2025-01-03 15:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166615', 'tblTempUsageDetail_20' ) end [2025-01-03 15:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:56:31] Production.INFO: ==11033== Releasing lock... [2025-01-03 15:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:56:31] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:57:05 [end_date_ymd] => 2025-01-03 15:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:57:05' and `end` < '2025-01-03 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-01-03 15:57:27] Production.INFO: count ==4111 [2025-01-03 15:57:28] Production.ERROR: pbx CDR StartTime 2025-01-03 12:57:05 - End Time 2025-01-03 15:57:05 [2025-01-03 15:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166620', 'tblTempUsageDetail_20' ) start [2025-01-03 15:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166620', 'tblTempUsageDetail_20' ) end [2025-01-03 15:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166620', 'tblTempVendorCDR_20' ) start [2025-01-03 15:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166620', 'tblTempVendorCDR_20' ) end [2025-01-03 15:57:28] Production.INFO: ProcessCDR(1,14166620,1,1,2) [2025-01-03 15:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166620', 'tblTempUsageDetail_20' ) start [2025-01-03 15:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166620', 'tblTempUsageDetail_20' ) end [2025-01-03 15:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:57:33] Production.INFO: ==11110== Releasing lock... [2025-01-03 15:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:57:33] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:58:04 [end_date_ymd] => 2025-01-03 15:58:04 [RateCDR] => 1 ) [2025-01-03 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 12:58:04' and `end` < '2025-01-03 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 15:58:23] Production.INFO: count ==4137 [2025-01-03 15:58:25] Production.ERROR: pbx CDR StartTime 2025-01-03 12:58:04 - End Time 2025-01-03 15:58:04 [2025-01-03 15:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166625', 'tblTempUsageDetail_20' ) start [2025-01-03 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166625', 'tblTempUsageDetail_20' ) end [2025-01-03 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166625', 'tblTempVendorCDR_20' ) start [2025-01-03 15:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166625', 'tblTempVendorCDR_20' ) end [2025-01-03 15:58:25] Production.INFO: ProcessCDR(1,14166625,1,1,2) [2025-01-03 15:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166625', 'tblTempUsageDetail_20' ) start [2025-01-03 15:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166625', 'tblTempUsageDetail_20' ) end [2025-01-03 15:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:58:30] Production.INFO: ==11185== Releasing lock... [2025-01-03 15:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:58:30] Production.INFO: 59 MB #Memory Used# [2025-01-03 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 12:59:05 [end_date_ymd] => 2025-01-03 15:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 12:59:05' and `end` < '2025-01-03 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-01-03 15:59:31] Production.INFO: count ==4142 [2025-01-03 15:59:33] Production.ERROR: pbx CDR StartTime 2025-01-03 12:59:05 - End Time 2025-01-03 15:59:05 [2025-01-03 15:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166630', 'tblTempUsageDetail_20' ) start [2025-01-03 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166630', 'tblTempUsageDetail_20' ) end [2025-01-03 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166630', 'tblTempVendorCDR_20' ) start [2025-01-03 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166630', 'tblTempVendorCDR_20' ) end [2025-01-03 15:59:33] Production.INFO: ProcessCDR(1,14166630,1,1,2) [2025-01-03 15:59:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 15:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:59:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 15:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166630', 'tblTempUsageDetail_20' ) start [2025-01-03 15:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166630', 'tblTempUsageDetail_20' ) end [2025-01-03 15:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 15:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 15:59:36] Production.INFO: ==11264== Releasing lock... [2025-01-03 15:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 15:59:36] Production.INFO: 59 MB #Memory Used# [2025-01-03 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:00:06 [end_date_ymd] => 2025-01-03 16:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:00:06' and `end` < '2025-01-03 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-01-03 16:00:31] Production.INFO: count ==4156 [2025-01-03 16:00:32] Production.ERROR: pbx CDR StartTime 2025-01-03 13:00:06 - End Time 2025-01-03 16:00:06 [2025-01-03 16:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166636', 'tblTempUsageDetail_20' ) start [2025-01-03 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166636', 'tblTempUsageDetail_20' ) end [2025-01-03 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166636', 'tblTempVendorCDR_20' ) start [2025-01-03 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166636', 'tblTempVendorCDR_20' ) end [2025-01-03 16:00:33] Production.INFO: ProcessCDR(1,14166636,1,1,2) [2025-01-03 16:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166636', 'tblTempUsageDetail_20' ) start [2025-01-03 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166636', 'tblTempUsageDetail_20' ) end [2025-01-03 16:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:00:37] Production.INFO: ==11338== Releasing lock... [2025-01-03 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:00:37] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:01:05 [end_date_ymd] => 2025-01-03 16:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:01:05' and `end` < '2025-01-03 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-01-03 16:01:29] Production.INFO: count ==4177 [2025-01-03 16:01:31] Production.ERROR: pbx CDR StartTime 2025-01-03 13:01:05 - End Time 2025-01-03 16:01:05 [2025-01-03 16:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166641', 'tblTempUsageDetail_20' ) start [2025-01-03 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166641', 'tblTempUsageDetail_20' ) end [2025-01-03 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166641', 'tblTempVendorCDR_20' ) start [2025-01-03 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166641', 'tblTempVendorCDR_20' ) end [2025-01-03 16:01:31] Production.INFO: ProcessCDR(1,14166641,1,1,2) [2025-01-03 16:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166641', 'tblTempUsageDetail_20' ) start [2025-01-03 16:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166641', 'tblTempUsageDetail_20' ) end [2025-01-03 16:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:01:36] Production.INFO: ==11422== Releasing lock... [2025-01-03 16:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:01:36] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:02:05 [end_date_ymd] => 2025-01-03 16:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:02:05' and `end` < '2025-01-03 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-01-03 16:02:25] Production.INFO: count ==4174 [2025-01-03 16:02:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:02:05 - End Time 2025-01-03 16:02:05 [2025-01-03 16:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166646', 'tblTempUsageDetail_20' ) start [2025-01-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166646', 'tblTempUsageDetail_20' ) end [2025-01-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166646', 'tblTempVendorCDR_20' ) start [2025-01-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166646', 'tblTempVendorCDR_20' ) end [2025-01-03 16:02:27] Production.INFO: ProcessCDR(1,14166646,1,1,2) [2025-01-03 16:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166646', 'tblTempUsageDetail_20' ) start [2025-01-03 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166646', 'tblTempUsageDetail_20' ) end [2025-01-03 16:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:02:31] Production.INFO: ==11499== Releasing lock... [2025-01-03 16:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:02:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:03:05 [end_date_ymd] => 2025-01-03 16:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:03:05' and `end` < '2025-01-03 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-01-03 16:03:27] Production.INFO: count ==4172 [2025-01-03 16:03:29] Production.ERROR: pbx CDR StartTime 2025-01-03 13:03:05 - End Time 2025-01-03 16:03:05 [2025-01-03 16:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166651', 'tblTempUsageDetail_20' ) start [2025-01-03 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166651', 'tblTempUsageDetail_20' ) end [2025-01-03 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166651', 'tblTempVendorCDR_20' ) start [2025-01-03 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166651', 'tblTempVendorCDR_20' ) end [2025-01-03 16:03:29] Production.INFO: ProcessCDR(1,14166651,1,1,2) [2025-01-03 16:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166651', 'tblTempUsageDetail_20' ) start [2025-01-03 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166651', 'tblTempUsageDetail_20' ) end [2025-01-03 16:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:03:34] Production.INFO: ==11571== Releasing lock... [2025-01-03 16:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:03:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:04:05 [end_date_ymd] => 2025-01-03 16:04:05 [RateCDR] => 1 ) [2025-01-03 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:04:05' and `end` < '2025-01-03 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:04:19] Production.INFO: count ==4169 [2025-01-03 16:04:21] Production.ERROR: pbx CDR StartTime 2025-01-03 13:04:05 - End Time 2025-01-03 16:04:05 [2025-01-03 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166656', 'tblTempUsageDetail_20' ) start [2025-01-03 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166656', 'tblTempUsageDetail_20' ) end [2025-01-03 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166656', 'tblTempVendorCDR_20' ) start [2025-01-03 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166656', 'tblTempVendorCDR_20' ) end [2025-01-03 16:04:21] Production.INFO: ProcessCDR(1,14166656,1,1,2) [2025-01-03 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166656', 'tblTempUsageDetail_20' ) start [2025-01-03 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166656', 'tblTempUsageDetail_20' ) end [2025-01-03 16:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:04:25] Production.INFO: ==11681== Releasing lock... [2025-01-03 16:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:04:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:05:04 [end_date_ymd] => 2025-01-03 16:05:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:05:04' and `end` < '2025-01-03 16: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-01-03 16:05:21] Production.INFO: count ==4176 [2025-01-03 16:05:23] Production.ERROR: pbx CDR StartTime 2025-01-03 13:05:04 - End Time 2025-01-03 16:05:04 [2025-01-03 16:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166661', 'tblTempUsageDetail_20' ) start [2025-01-03 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166661', 'tblTempUsageDetail_20' ) end [2025-01-03 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166661', 'tblTempVendorCDR_20' ) start [2025-01-03 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166661', 'tblTempVendorCDR_20' ) end [2025-01-03 16:05:23] Production.INFO: ProcessCDR(1,14166661,1,1,2) [2025-01-03 16:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166661', 'tblTempUsageDetail_20' ) start [2025-01-03 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166661', 'tblTempUsageDetail_20' ) end [2025-01-03 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:05:27] Production.INFO: ==11753== Releasing lock... [2025-01-03 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:05:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:06:05 [end_date_ymd] => 2025-01-03 16:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:06:05' and `end` < '2025-01-03 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-01-03 16:06:25] Production.INFO: count ==4165 [2025-01-03 16:06:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:06:05 - End Time 2025-01-03 16:06:05 [2025-01-03 16:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166666', 'tblTempUsageDetail_20' ) start [2025-01-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166666', 'tblTempUsageDetail_20' ) end [2025-01-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166666', 'tblTempVendorCDR_20' ) start [2025-01-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166666', 'tblTempVendorCDR_20' ) end [2025-01-03 16:06:26] Production.INFO: ProcessCDR(1,14166666,1,1,2) [2025-01-03 16:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166666', 'tblTempUsageDetail_20' ) start [2025-01-03 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166666', 'tblTempUsageDetail_20' ) end [2025-01-03 16:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:06:31] Production.INFO: ==11827== Releasing lock... [2025-01-03 16:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:06:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:07:04 [end_date_ymd] => 2025-01-03 16:07:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:07:04' and `end` < '2025-01-03 16: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-01-03 16:07:21] Production.INFO: count ==4169 [2025-01-03 16:07:22] Production.ERROR: pbx CDR StartTime 2025-01-03 13:07:04 - End Time 2025-01-03 16:07:04 [2025-01-03 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166671', 'tblTempUsageDetail_20' ) start [2025-01-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166671', 'tblTempUsageDetail_20' ) end [2025-01-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166671', 'tblTempVendorCDR_20' ) start [2025-01-03 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166671', 'tblTempVendorCDR_20' ) end [2025-01-03 16:07:22] Production.INFO: ProcessCDR(1,14166671,1,1,2) [2025-01-03 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166671', 'tblTempUsageDetail_20' ) start [2025-01-03 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166671', 'tblTempUsageDetail_20' ) end [2025-01-03 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:07:27] Production.INFO: ==11905== Releasing lock... [2025-01-03 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:07:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:08:05 [end_date_ymd] => 2025-01-03 16:08:05 [RateCDR] => 1 ) [2025-01-03 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:08:05' and `end` < '2025-01-03 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:08:25] Production.INFO: count ==4165 [2025-01-03 16:08:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:08:05 - End Time 2025-01-03 16:08:05 [2025-01-03 16:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166676', 'tblTempUsageDetail_20' ) start [2025-01-03 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166676', 'tblTempUsageDetail_20' ) end [2025-01-03 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166676', 'tblTempVendorCDR_20' ) start [2025-01-03 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166676', 'tblTempVendorCDR_20' ) end [2025-01-03 16:08:26] Production.INFO: ProcessCDR(1,14166676,1,1,2) [2025-01-03 16:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166676', 'tblTempUsageDetail_20' ) start [2025-01-03 16:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166676', 'tblTempUsageDetail_20' ) end [2025-01-03 16:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:08:31] Production.INFO: ==11983== Releasing lock... [2025-01-03 16:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:08:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-03 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:09:05 [end_date_ymd] => 2025-01-03 16:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:09:05' and `end` < '2025-01-03 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-01-03 16:09:24] Production.INFO: count ==4140 [2025-01-03 16:09:25] Production.ERROR: pbx CDR StartTime 2025-01-03 13:09:05 - End Time 2025-01-03 16:09:05 [2025-01-03 16:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166681', 'tblTempUsageDetail_20' ) start [2025-01-03 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166681', 'tblTempUsageDetail_20' ) end [2025-01-03 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166681', 'tblTempVendorCDR_20' ) start [2025-01-03 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166681', 'tblTempVendorCDR_20' ) end [2025-01-03 16:09:25] Production.INFO: ProcessCDR(1,14166681,1,1,2) [2025-01-03 16:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166681', 'tblTempUsageDetail_20' ) start [2025-01-03 16:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166681', 'tblTempUsageDetail_20' ) end [2025-01-03 16:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:09:30] Production.INFO: ==12063== Releasing lock... [2025-01-03 16:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:09:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:10:05 [end_date_ymd] => 2025-01-03 16:10:05 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:10:05' and `end` < '2025-01-03 16: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-01-03 16:10:36] Production.INFO: count ==4145 [2025-01-03 16:10:37] Production.ERROR: pbx CDR StartTime 2025-01-03 13:10:05 - End Time 2025-01-03 16:10:05 [2025-01-03 16:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166687', 'tblTempUsageDetail_20' ) start [2025-01-03 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166687', 'tblTempUsageDetail_20' ) end [2025-01-03 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166687', 'tblTempVendorCDR_20' ) start [2025-01-03 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166687', 'tblTempVendorCDR_20' ) end [2025-01-03 16:10:37] Production.INFO: ProcessCDR(1,14166687,1,1,2) [2025-01-03 16:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166687', 'tblTempUsageDetail_20' ) start [2025-01-03 16:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166687', 'tblTempUsageDetail_20' ) end [2025-01-03 16:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:10:42] Production.INFO: ==12151== Releasing lock... [2025-01-03 16:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:10:42] Production.INFO: 59 MB #Memory Used# [2025-01-03 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:11:05 [end_date_ymd] => 2025-01-03 16:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:11:05' and `end` < '2025-01-03 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-01-03 16:11:24] Production.INFO: count ==4169 [2025-01-03 16:11:25] Production.ERROR: pbx CDR StartTime 2025-01-03 13:11:05 - End Time 2025-01-03 16:11:05 [2025-01-03 16:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166692', 'tblTempUsageDetail_20' ) start [2025-01-03 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166692', 'tblTempUsageDetail_20' ) end [2025-01-03 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166692', 'tblTempVendorCDR_20' ) start [2025-01-03 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166692', 'tblTempVendorCDR_20' ) end [2025-01-03 16:11:26] Production.INFO: ProcessCDR(1,14166692,1,1,2) [2025-01-03 16:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166692', 'tblTempUsageDetail_20' ) start [2025-01-03 16:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166692', 'tblTempUsageDetail_20' ) end [2025-01-03 16:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:11:30] Production.INFO: ==12234== Releasing lock... [2025-01-03 16:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:11:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:12:05 [end_date_ymd] => 2025-01-03 16:12:05 [RateCDR] => 1 ) [2025-01-03 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:12:05' and `end` < '2025-01-03 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:12:20] Production.INFO: count ==4163 [2025-01-03 16:12:21] Production.ERROR: pbx CDR StartTime 2025-01-03 13:12:05 - End Time 2025-01-03 16:12:05 [2025-01-03 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166697', 'tblTempUsageDetail_20' ) start [2025-01-03 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166697', 'tblTempUsageDetail_20' ) end [2025-01-03 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166697', 'tblTempVendorCDR_20' ) start [2025-01-03 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166697', 'tblTempVendorCDR_20' ) end [2025-01-03 16:12:21] Production.INFO: ProcessCDR(1,14166697,1,1,2) [2025-01-03 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166697', 'tblTempUsageDetail_20' ) start [2025-01-03 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166697', 'tblTempUsageDetail_20' ) end [2025-01-03 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:12:26] Production.INFO: ==12308== Releasing lock... [2025-01-03 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:12:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:13:05 [end_date_ymd] => 2025-01-03 16:13:05 [RateCDR] => 1 ) [2025-01-03 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:13:05' and `end` < '2025-01-03 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:13:21] Production.INFO: count ==4146 [2025-01-03 16:13:23] Production.ERROR: pbx CDR StartTime 2025-01-03 13:13:05 - End Time 2025-01-03 16:13:05 [2025-01-03 16:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166702', 'tblTempUsageDetail_20' ) start [2025-01-03 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166702', 'tblTempUsageDetail_20' ) end [2025-01-03 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166702', 'tblTempVendorCDR_20' ) start [2025-01-03 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166702', 'tblTempVendorCDR_20' ) end [2025-01-03 16:13:23] Production.INFO: ProcessCDR(1,14166702,1,1,2) [2025-01-03 16:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166702', 'tblTempUsageDetail_20' ) start [2025-01-03 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166702', 'tblTempUsageDetail_20' ) end [2025-01-03 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:13:28] Production.INFO: ==12390== Releasing lock... [2025-01-03 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:13:28] Production.INFO: 59 MB #Memory Used# [2025-01-03 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:14:04 [end_date_ymd] => 2025-01-03 16:14:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:14:04' and `end` < '2025-01-03 16: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-01-03 16:14:20] Production.INFO: count ==4157 [2025-01-03 16:14:21] Production.ERROR: pbx CDR StartTime 2025-01-03 13:14:04 - End Time 2025-01-03 16:14:04 [2025-01-03 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166707', 'tblTempUsageDetail_20' ) start [2025-01-03 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166707', 'tblTempUsageDetail_20' ) end [2025-01-03 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166707', 'tblTempVendorCDR_20' ) start [2025-01-03 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166707', 'tblTempVendorCDR_20' ) end [2025-01-03 16:14:21] Production.INFO: ProcessCDR(1,14166707,1,1,2) [2025-01-03 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166707', 'tblTempUsageDetail_20' ) start [2025-01-03 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166707', 'tblTempUsageDetail_20' ) end [2025-01-03 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:14:26] Production.INFO: ==12468== Releasing lock... [2025-01-03 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:14:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:15:05 [end_date_ymd] => 2025-01-03 16:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:15:05' and `end` < '2025-01-03 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-01-03 16:15:20] Production.INFO: count ==4155 [2025-01-03 16:15:22] Production.ERROR: pbx CDR StartTime 2025-01-03 13:15:05 - End Time 2025-01-03 16:15:05 [2025-01-03 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166712', 'tblTempUsageDetail_20' ) start [2025-01-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166712', 'tblTempUsageDetail_20' ) end [2025-01-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166712', 'tblTempVendorCDR_20' ) start [2025-01-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166712', 'tblTempVendorCDR_20' ) end [2025-01-03 16:15:22] Production.INFO: ProcessCDR(1,14166712,1,1,2) [2025-01-03 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166712', 'tblTempUsageDetail_20' ) start [2025-01-03 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166712', 'tblTempUsageDetail_20' ) end [2025-01-03 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:15:26] Production.INFO: ==12554== Releasing lock... [2025-01-03 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:15:26] Production.INFO: 59 MB #Memory Used# [2025-01-03 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:16:06 [end_date_ymd] => 2025-01-03 16:16:06 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:16:06' and `end` < '2025-01-03 16: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-01-03 16:16:19] Production.INFO: count ==4161 [2025-01-03 16:16:21] Production.ERROR: pbx CDR StartTime 2025-01-03 13:16:06 - End Time 2025-01-03 16:16:06 [2025-01-03 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166717', 'tblTempUsageDetail_20' ) start [2025-01-03 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166717', 'tblTempUsageDetail_20' ) end [2025-01-03 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166717', 'tblTempVendorCDR_20' ) start [2025-01-03 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166717', 'tblTempVendorCDR_20' ) end [2025-01-03 16:16:21] Production.INFO: ProcessCDR(1,14166717,1,1,2) [2025-01-03 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166717', 'tblTempUsageDetail_20' ) start [2025-01-03 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166717', 'tblTempUsageDetail_20' ) end [2025-01-03 16:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:16:25] Production.INFO: ==12636== Releasing lock... [2025-01-03 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:16:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-03 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:17:05 [end_date_ymd] => 2025-01-03 16:17:05 [RateCDR] => 1 ) [2025-01-03 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:17:05' and `end` < '2025-01-03 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:17:19] Production.INFO: count ==4145 [2025-01-03 16:17:21] Production.ERROR: pbx CDR StartTime 2025-01-03 13:17:05 - End Time 2025-01-03 16:17:05 [2025-01-03 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166722', 'tblTempUsageDetail_20' ) start [2025-01-03 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166722', 'tblTempUsageDetail_20' ) end [2025-01-03 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166722', 'tblTempVendorCDR_20' ) start [2025-01-03 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166722', 'tblTempVendorCDR_20' ) end [2025-01-03 16:17:21] Production.INFO: ProcessCDR(1,14166722,1,1,2) [2025-01-03 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166722', 'tblTempUsageDetail_20' ) start [2025-01-03 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166722', 'tblTempUsageDetail_20' ) end [2025-01-03 16:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:17:25] Production.INFO: ==12715== Releasing lock... [2025-01-03 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:17:25] Production.INFO: 59 MB #Memory Used# [2025-01-03 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:18:06 [end_date_ymd] => 2025-01-03 16:18:06 [RateCDR] => 1 ) [2025-01-03 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:18:06' and `end` < '2025-01-03 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:18:27] Production.INFO: count ==4131 [2025-01-03 16:18:29] Production.ERROR: pbx CDR StartTime 2025-01-03 13:18:06 - End Time 2025-01-03 16:18:06 [2025-01-03 16:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166727', 'tblTempUsageDetail_20' ) start [2025-01-03 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166727', 'tblTempUsageDetail_20' ) end [2025-01-03 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166727', 'tblTempVendorCDR_20' ) start [2025-01-03 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166727', 'tblTempVendorCDR_20' ) end [2025-01-03 16:18:29] Production.INFO: ProcessCDR(1,14166727,1,1,2) [2025-01-03 16:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166727', 'tblTempUsageDetail_20' ) start [2025-01-03 16:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166727', 'tblTempUsageDetail_20' ) end [2025-01-03 16:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:18:34] Production.INFO: ==12806== Releasing lock... [2025-01-03 16:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:18:34] Production.INFO: 59 MB #Memory Used# [2025-01-03 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:19:05 [end_date_ymd] => 2025-01-03 16:19:05 [RateCDR] => 1 ) [2025-01-03 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:19:05' and `end` < '2025-01-03 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:19:30] Production.INFO: count ==4109 [2025-01-03 16:19:31] Production.ERROR: pbx CDR StartTime 2025-01-03 13:19:05 - End Time 2025-01-03 16:19:05 [2025-01-03 16:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166732', 'tblTempUsageDetail_20' ) start [2025-01-03 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166732', 'tblTempUsageDetail_20' ) end [2025-01-03 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166732', 'tblTempVendorCDR_20' ) start [2025-01-03 16:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166732', 'tblTempVendorCDR_20' ) end [2025-01-03 16:19:31] Production.INFO: ProcessCDR(1,14166732,1,1,2) [2025-01-03 16:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166732', 'tblTempUsageDetail_20' ) start [2025-01-03 16:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166732', 'tblTempUsageDetail_20' ) end [2025-01-03 16:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:19:36] Production.INFO: ==12883== Releasing lock... [2025-01-03 16:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:19:36] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:20:06 [end_date_ymd] => 2025-01-03 16:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:20:06' and `end` < '2025-01-03 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-01-03 16:20:33] Production.INFO: count ==4105 [2025-01-03 16:20:35] Production.ERROR: pbx CDR StartTime 2025-01-03 13:20:06 - End Time 2025-01-03 16:20:06 [2025-01-03 16:20:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166738', 'tblTempUsageDetail_20' ) start [2025-01-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166738', 'tblTempUsageDetail_20' ) end [2025-01-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166738', 'tblTempVendorCDR_20' ) start [2025-01-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166738', 'tblTempVendorCDR_20' ) end [2025-01-03 16:20:35] Production.INFO: ProcessCDR(1,14166738,1,1,2) [2025-01-03 16:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166738', 'tblTempUsageDetail_20' ) start [2025-01-03 16:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166738', 'tblTempUsageDetail_20' ) end [2025-01-03 16:20:40] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:20:40] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:20:40] Production.INFO: ==13008== Releasing lock... [2025-01-03 16:20:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:20:40] Production.INFO: 58.75 MB #Memory Used# [2025-01-03 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:21:05 [end_date_ymd] => 2025-01-03 16:21:05 [RateCDR] => 1 ) [2025-01-03 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:21:05' and `end` < '2025-01-03 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:21:27] Production.INFO: count ==4073 [2025-01-03 16:21:28] Production.ERROR: pbx CDR StartTime 2025-01-03 13:21:05 - End Time 2025-01-03 16:21:05 [2025-01-03 16:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166743', 'tblTempUsageDetail_20' ) start [2025-01-03 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166743', 'tblTempUsageDetail_20' ) end [2025-01-03 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166743', 'tblTempVendorCDR_20' ) start [2025-01-03 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166743', 'tblTempVendorCDR_20' ) end [2025-01-03 16:21:29] Production.INFO: ProcessCDR(1,14166743,1,1,2) [2025-01-03 16:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166743', 'tblTempUsageDetail_20' ) start [2025-01-03 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166743', 'tblTempUsageDetail_20' ) end [2025-01-03 16:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:21:33] Production.INFO: ==13090== Releasing lock... [2025-01-03 16:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:21:33] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:22:05 [end_date_ymd] => 2025-01-03 16:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:22:05' and `end` < '2025-01-03 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-01-03 16:22:35] Production.INFO: count ==4062 [2025-01-03 16:22:36] Production.ERROR: pbx CDR StartTime 2025-01-03 13:22:05 - End Time 2025-01-03 16:22:05 [2025-01-03 16:22:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166748', 'tblTempUsageDetail_20' ) start [2025-01-03 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166748', 'tblTempUsageDetail_20' ) end [2025-01-03 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166748', 'tblTempVendorCDR_20' ) start [2025-01-03 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166748', 'tblTempVendorCDR_20' ) end [2025-01-03 16:22:36] Production.INFO: ProcessCDR(1,14166748,1,1,2) [2025-01-03 16:22:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:22:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:22:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:22:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166748', 'tblTempUsageDetail_20' ) start [2025-01-03 16:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166748', 'tblTempUsageDetail_20' ) end [2025-01-03 16:22:41] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:22:41] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:22:41] Production.INFO: ==13160== Releasing lock... [2025-01-03 16:22:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:22:41] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:23:04 [end_date_ymd] => 2025-01-03 16:23:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:23:04' and `end` < '2025-01-03 16: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-01-03 16:23:29] Production.INFO: count ==4057 [2025-01-03 16:23:31] Production.ERROR: pbx CDR StartTime 2025-01-03 13:23:04 - End Time 2025-01-03 16:23:04 [2025-01-03 16:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166753', 'tblTempUsageDetail_20' ) start [2025-01-03 16:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166753', 'tblTempUsageDetail_20' ) end [2025-01-03 16:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166753', 'tblTempVendorCDR_20' ) start [2025-01-03 16:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166753', 'tblTempVendorCDR_20' ) end [2025-01-03 16:23:31] Production.INFO: ProcessCDR(1,14166753,1,1,2) [2025-01-03 16:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166753', 'tblTempUsageDetail_20' ) start [2025-01-03 16:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166753', 'tblTempUsageDetail_20' ) end [2025-01-03 16:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:23:36] Production.INFO: ==13233== Releasing lock... [2025-01-03 16:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:23:36] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:24:05 [end_date_ymd] => 2025-01-03 16:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:24:05' and `end` < '2025-01-03 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-01-03 16:24:32] Production.INFO: count ==4058 [2025-01-03 16:24:33] Production.ERROR: pbx CDR StartTime 2025-01-03 13:24:05 - End Time 2025-01-03 16:24:05 [2025-01-03 16:24:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166758', 'tblTempUsageDetail_20' ) start [2025-01-03 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166758', 'tblTempUsageDetail_20' ) end [2025-01-03 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166758', 'tblTempVendorCDR_20' ) start [2025-01-03 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166758', 'tblTempVendorCDR_20' ) end [2025-01-03 16:24:33] Production.INFO: ProcessCDR(1,14166758,1,1,2) [2025-01-03 16:24:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:24:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:24:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:24:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166758', 'tblTempUsageDetail_20' ) start [2025-01-03 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166758', 'tblTempUsageDetail_20' ) end [2025-01-03 16:24:38] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:24:39] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:24:39] Production.INFO: ==13303== Releasing lock... [2025-01-03 16:24:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:24:39] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:25:04 [end_date_ymd] => 2025-01-03 16:25:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:25:04' and `end` < '2025-01-03 16: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-01-03 16:25:26] Production.INFO: count ==4050 [2025-01-03 16:25:28] Production.ERROR: pbx CDR StartTime 2025-01-03 13:25:04 - End Time 2025-01-03 16:25:04 [2025-01-03 16:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166763', 'tblTempUsageDetail_20' ) start [2025-01-03 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166763', 'tblTempUsageDetail_20' ) end [2025-01-03 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166763', 'tblTempVendorCDR_20' ) start [2025-01-03 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166763', 'tblTempVendorCDR_20' ) end [2025-01-03 16:25:28] Production.INFO: ProcessCDR(1,14166763,1,1,2) [2025-01-03 16:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166763', 'tblTempUsageDetail_20' ) start [2025-01-03 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166763', 'tblTempUsageDetail_20' ) end [2025-01-03 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:25:33] Production.INFO: ==13373== Releasing lock... [2025-01-03 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:25:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:26:05 [end_date_ymd] => 2025-01-03 16:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:26:05' and `end` < '2025-01-03 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-01-03 16:26:24] Production.INFO: count ==4026 [2025-01-03 16:26:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:26:05 - End Time 2025-01-03 16:26:05 [2025-01-03 16:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166768', 'tblTempUsageDetail_20' ) start [2025-01-03 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166768', 'tblTempUsageDetail_20' ) end [2025-01-03 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166768', 'tblTempVendorCDR_20' ) start [2025-01-03 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166768', 'tblTempVendorCDR_20' ) end [2025-01-03 16:26:26] Production.INFO: ProcessCDR(1,14166768,1,1,2) [2025-01-03 16:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166768', 'tblTempUsageDetail_20' ) start [2025-01-03 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166768', 'tblTempUsageDetail_20' ) end [2025-01-03 16:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:26:31] Production.INFO: ==13444== Releasing lock... [2025-01-03 16:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:26:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:27:05 [end_date_ymd] => 2025-01-03 16:27:05 [RateCDR] => 1 ) [2025-01-03 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:27:05' and `end` < '2025-01-03 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:27:19] Production.INFO: count ==4003 [2025-01-03 16:27:20] Production.ERROR: pbx CDR StartTime 2025-01-03 13:27:05 - End Time 2025-01-03 16:27:05 [2025-01-03 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166773', 'tblTempUsageDetail_20' ) start [2025-01-03 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166773', 'tblTempUsageDetail_20' ) end [2025-01-03 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166773', 'tblTempVendorCDR_20' ) start [2025-01-03 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166773', 'tblTempVendorCDR_20' ) end [2025-01-03 16:27:20] Production.INFO: ProcessCDR(1,14166773,1,1,2) [2025-01-03 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166773', 'tblTempUsageDetail_20' ) start [2025-01-03 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166773', 'tblTempUsageDetail_20' ) end [2025-01-03 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:27:25] Production.INFO: ==13522== Releasing lock... [2025-01-03 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:27:25] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:28:05 [end_date_ymd] => 2025-01-03 16:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:28:05' and `end` < '2025-01-03 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-01-03 16:28:26] Production.INFO: count ==3985 [2025-01-03 16:28:28] Production.ERROR: pbx CDR StartTime 2025-01-03 13:28:05 - End Time 2025-01-03 16:28:05 [2025-01-03 16:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166778', 'tblTempUsageDetail_20' ) start [2025-01-03 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166778', 'tblTempUsageDetail_20' ) end [2025-01-03 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166778', 'tblTempVendorCDR_20' ) start [2025-01-03 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166778', 'tblTempVendorCDR_20' ) end [2025-01-03 16:28:28] Production.INFO: ProcessCDR(1,14166778,1,1,2) [2025-01-03 16:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166778', 'tblTempUsageDetail_20' ) start [2025-01-03 16:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166778', 'tblTempUsageDetail_20' ) end [2025-01-03 16:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:28:33] Production.INFO: ==13596== Releasing lock... [2025-01-03 16:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:28:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:29:05 [end_date_ymd] => 2025-01-03 16:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:29:05' and `end` < '2025-01-03 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-01-03 16:29:26] Production.INFO: count ==3971 [2025-01-03 16:29:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:29:05 - End Time 2025-01-03 16:29:05 [2025-01-03 16:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166783', 'tblTempUsageDetail_20' ) start [2025-01-03 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166783', 'tblTempUsageDetail_20' ) end [2025-01-03 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166783', 'tblTempVendorCDR_20' ) start [2025-01-03 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166783', 'tblTempVendorCDR_20' ) end [2025-01-03 16:29:28] Production.INFO: ProcessCDR(1,14166783,1,1,2) [2025-01-03 16:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166783', 'tblTempUsageDetail_20' ) start [2025-01-03 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166783', 'tblTempUsageDetail_20' ) end [2025-01-03 16:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:29:32] Production.INFO: ==13666== Releasing lock... [2025-01-03 16:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:29:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:30:06 [end_date_ymd] => 2025-01-03 16:30:06 [RateCDR] => 1 ) [2025-01-03 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:30:06' and `end` < '2025-01-03 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:30:28] Production.INFO: count ==3977 [2025-01-03 16:30:30] Production.ERROR: pbx CDR StartTime 2025-01-03 13:30:06 - End Time 2025-01-03 16:30:06 [2025-01-03 16:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166789', 'tblTempUsageDetail_20' ) start [2025-01-03 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166789', 'tblTempUsageDetail_20' ) end [2025-01-03 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166789', 'tblTempVendorCDR_20' ) start [2025-01-03 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166789', 'tblTempVendorCDR_20' ) end [2025-01-03 16:30:30] Production.INFO: ProcessCDR(1,14166789,1,1,2) [2025-01-03 16:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166789', 'tblTempUsageDetail_20' ) start [2025-01-03 16:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166789', 'tblTempUsageDetail_20' ) end [2025-01-03 16:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:30:35] Production.INFO: ==13743== Releasing lock... [2025-01-03 16:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:30:35] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:31:05 [end_date_ymd] => 2025-01-03 16:31:05 [RateCDR] => 1 ) [2025-01-03 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:31:05' and `end` < '2025-01-03 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:31:29] Production.INFO: count ==3993 [2025-01-03 16:31:31] Production.ERROR: pbx CDR StartTime 2025-01-03 13:31:05 - End Time 2025-01-03 16:31:05 [2025-01-03 16:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166794', 'tblTempUsageDetail_20' ) start [2025-01-03 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166794', 'tblTempUsageDetail_20' ) end [2025-01-03 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166794', 'tblTempVendorCDR_20' ) start [2025-01-03 16:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166794', 'tblTempVendorCDR_20' ) end [2025-01-03 16:31:31] Production.INFO: ProcessCDR(1,14166794,1,1,2) [2025-01-03 16:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166794', 'tblTempUsageDetail_20' ) start [2025-01-03 16:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166794', 'tblTempUsageDetail_20' ) end [2025-01-03 16:31:36] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:31:36] Production.INFO: ==13817== Releasing lock... [2025-01-03 16:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:31:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:32:05 [end_date_ymd] => 2025-01-03 16:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:32:05' and `end` < '2025-01-03 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-01-03 16:32:28] Production.INFO: count ==4013 [2025-01-03 16:32:29] Production.ERROR: pbx CDR StartTime 2025-01-03 13:32:05 - End Time 2025-01-03 16:32:05 [2025-01-03 16:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166799', 'tblTempUsageDetail_20' ) start [2025-01-03 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166799', 'tblTempUsageDetail_20' ) end [2025-01-03 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166799', 'tblTempVendorCDR_20' ) start [2025-01-03 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166799', 'tblTempVendorCDR_20' ) end [2025-01-03 16:32:29] Production.INFO: ProcessCDR(1,14166799,1,1,2) [2025-01-03 16:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166799', 'tblTempUsageDetail_20' ) start [2025-01-03 16:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166799', 'tblTempUsageDetail_20' ) end [2025-01-03 16:32:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:32:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:32:34] Production.INFO: ==13886== Releasing lock... [2025-01-03 16:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:32:34] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:33:04 [end_date_ymd] => 2025-01-03 16:33:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:33:04' and `end` < '2025-01-03 16: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-01-03 16:33:23] Production.INFO: count ==4002 [2025-01-03 16:33:25] Production.ERROR: pbx CDR StartTime 2025-01-03 13:33:04 - End Time 2025-01-03 16:33:04 [2025-01-03 16:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166804', 'tblTempUsageDetail_20' ) start [2025-01-03 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166804', 'tblTempUsageDetail_20' ) end [2025-01-03 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166804', 'tblTempVendorCDR_20' ) start [2025-01-03 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166804', 'tblTempVendorCDR_20' ) end [2025-01-03 16:33:25] Production.INFO: ProcessCDR(1,14166804,1,1,2) [2025-01-03 16:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166804', 'tblTempUsageDetail_20' ) start [2025-01-03 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166804', 'tblTempUsageDetail_20' ) end [2025-01-03 16:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:33:30] Production.INFO: ==13957== Releasing lock... [2025-01-03 16:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:33:30] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:34:05 [end_date_ymd] => 2025-01-03 16:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:34:05' and `end` < '2025-01-03 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-01-03 16:34:24] Production.INFO: count ==4000 [2025-01-03 16:34:25] Production.ERROR: pbx CDR StartTime 2025-01-03 13:34:05 - End Time 2025-01-03 16:34:05 [2025-01-03 16:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166809', 'tblTempUsageDetail_20' ) start [2025-01-03 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166809', 'tblTempUsageDetail_20' ) end [2025-01-03 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166809', 'tblTempVendorCDR_20' ) start [2025-01-03 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166809', 'tblTempVendorCDR_20' ) end [2025-01-03 16:34:25] Production.INFO: ProcessCDR(1,14166809,1,1,2) [2025-01-03 16:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166809', 'tblTempUsageDetail_20' ) start [2025-01-03 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166809', 'tblTempUsageDetail_20' ) end [2025-01-03 16:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:34:30] Production.INFO: ==14031== Releasing lock... [2025-01-03 16:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:34:30] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:35:05 [end_date_ymd] => 2025-01-03 16:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:35:05' and `end` < '2025-01-03 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-01-03 16:35:30] Production.INFO: count ==3998 [2025-01-03 16:35:31] Production.ERROR: pbx CDR StartTime 2025-01-03 13:35:05 - End Time 2025-01-03 16:35:05 [2025-01-03 16:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166811', 'tblTempUsageDetail_20' ) start [2025-01-03 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166811', 'tblTempUsageDetail_20' ) end [2025-01-03 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166811', 'tblTempVendorCDR_20' ) start [2025-01-03 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166811', 'tblTempVendorCDR_20' ) end [2025-01-03 16:35:31] Production.INFO: ProcessCDR(1,14166811,1,1,2) [2025-01-03 16:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166811', 'tblTempUsageDetail_20' ) start [2025-01-03 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166811', 'tblTempUsageDetail_20' ) end [2025-01-03 16:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:35:36] Production.INFO: ==14142== Releasing lock... [2025-01-03 16:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:35:36] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:36:05 [end_date_ymd] => 2025-01-03 16:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:36:05' and `end` < '2025-01-03 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-01-03 16:36:24] Production.INFO: count ==4003 [2025-01-03 16:36:25] Production.ERROR: pbx CDR StartTime 2025-01-03 13:36:05 - End Time 2025-01-03 16:36:05 [2025-01-03 16:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166819', 'tblTempUsageDetail_20' ) start [2025-01-03 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166819', 'tblTempUsageDetail_20' ) end [2025-01-03 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166819', 'tblTempVendorCDR_20' ) start [2025-01-03 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166819', 'tblTempVendorCDR_20' ) end [2025-01-03 16:36:25] Production.INFO: ProcessCDR(1,14166819,1,1,2) [2025-01-03 16:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166819', 'tblTempUsageDetail_20' ) start [2025-01-03 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166819', 'tblTempUsageDetail_20' ) end [2025-01-03 16:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:36:30] Production.INFO: ==14215== Releasing lock... [2025-01-03 16:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:36:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:37:05 [end_date_ymd] => 2025-01-03 16:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:37:05' and `end` < '2025-01-03 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-01-03 16:37:26] Production.INFO: count ==3996 [2025-01-03 16:37:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:37:05 - End Time 2025-01-03 16:37:05 [2025-01-03 16:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166824', 'tblTempUsageDetail_20' ) start [2025-01-03 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166824', 'tblTempUsageDetail_20' ) end [2025-01-03 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166824', 'tblTempVendorCDR_20' ) start [2025-01-03 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166824', 'tblTempVendorCDR_20' ) end [2025-01-03 16:37:27] Production.INFO: ProcessCDR(1,14166824,1,1,2) [2025-01-03 16:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166824', 'tblTempUsageDetail_20' ) start [2025-01-03 16:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166824', 'tblTempUsageDetail_20' ) end [2025-01-03 16:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:37:32] Production.INFO: ==14292== Releasing lock... [2025-01-03 16:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:37:32] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:38:05 [end_date_ymd] => 2025-01-03 16:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:38:05' and `end` < '2025-01-03 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-01-03 16:38:20] Production.INFO: count ==4004 [2025-01-03 16:38:21] Production.ERROR: pbx CDR StartTime 2025-01-03 13:38:05 - End Time 2025-01-03 16:38:05 [2025-01-03 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166829', 'tblTempUsageDetail_20' ) start [2025-01-03 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166829', 'tblTempUsageDetail_20' ) end [2025-01-03 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166829', 'tblTempVendorCDR_20' ) start [2025-01-03 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166829', 'tblTempVendorCDR_20' ) end [2025-01-03 16:38:21] Production.INFO: ProcessCDR(1,14166829,1,1,2) [2025-01-03 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166829', 'tblTempUsageDetail_20' ) start [2025-01-03 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166829', 'tblTempUsageDetail_20' ) end [2025-01-03 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:38:26] Production.INFO: ==14369== Releasing lock... [2025-01-03 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:38:26] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:39:05 [end_date_ymd] => 2025-01-03 16:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:39:05' and `end` < '2025-01-03 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-01-03 16:39:24] Production.INFO: count ==4012 [2025-01-03 16:39:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:39:05 - End Time 2025-01-03 16:39:05 [2025-01-03 16:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166834', 'tblTempUsageDetail_20' ) start [2025-01-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166834', 'tblTempUsageDetail_20' ) end [2025-01-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166834', 'tblTempVendorCDR_20' ) start [2025-01-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166834', 'tblTempVendorCDR_20' ) end [2025-01-03 16:39:26] Production.INFO: ProcessCDR(1,14166834,1,1,2) [2025-01-03 16:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166834', 'tblTempUsageDetail_20' ) start [2025-01-03 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166834', 'tblTempUsageDetail_20' ) end [2025-01-03 16:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:39:31] Production.INFO: ==14448== Releasing lock... [2025-01-03 16:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:39:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:40:05 [end_date_ymd] => 2025-01-03 16:40:05 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:40:05' and `end` < '2025-01-03 16: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-01-03 16:40:25] Production.INFO: count ==4015 [2025-01-03 16:40:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:40:05 - End Time 2025-01-03 16:40:05 [2025-01-03 16:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166840', 'tblTempUsageDetail_20' ) start [2025-01-03 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166840', 'tblTempUsageDetail_20' ) end [2025-01-03 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166840', 'tblTempVendorCDR_20' ) start [2025-01-03 16:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166840', 'tblTempVendorCDR_20' ) end [2025-01-03 16:40:26] Production.INFO: ProcessCDR(1,14166840,1,1,2) [2025-01-03 16:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166840', 'tblTempUsageDetail_20' ) start [2025-01-03 16:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166840', 'tblTempUsageDetail_20' ) end [2025-01-03 16:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:40:31] Production.INFO: ==14527== Releasing lock... [2025-01-03 16:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:40:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:41:05 [end_date_ymd] => 2025-01-03 16:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:41:05' and `end` < '2025-01-03 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-01-03 16:41:25] Production.INFO: count ==3982 [2025-01-03 16:41:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:41:05 - End Time 2025-01-03 16:41:05 [2025-01-03 16:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166845', 'tblTempUsageDetail_20' ) start [2025-01-03 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166845', 'tblTempUsageDetail_20' ) end [2025-01-03 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166845', 'tblTempVendorCDR_20' ) start [2025-01-03 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166845', 'tblTempVendorCDR_20' ) end [2025-01-03 16:41:26] Production.INFO: ProcessCDR(1,14166845,1,1,2) [2025-01-03 16:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166845', 'tblTempUsageDetail_20' ) start [2025-01-03 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166845', 'tblTempUsageDetail_20' ) end [2025-01-03 16:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:41:31] Production.INFO: ==14612== Releasing lock... [2025-01-03 16:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:41:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:42:05 [end_date_ymd] => 2025-01-03 16:42:05 [RateCDR] => 1 ) [2025-01-03 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:42:05' and `end` < '2025-01-03 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:42:19] Production.INFO: count ==3979 [2025-01-03 16:42:20] Production.ERROR: pbx CDR StartTime 2025-01-03 13:42:05 - End Time 2025-01-03 16:42:05 [2025-01-03 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166850', 'tblTempUsageDetail_20' ) start [2025-01-03 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166850', 'tblTempUsageDetail_20' ) end [2025-01-03 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166850', 'tblTempVendorCDR_20' ) start [2025-01-03 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166850', 'tblTempVendorCDR_20' ) end [2025-01-03 16:42:20] Production.INFO: ProcessCDR(1,14166850,1,1,2) [2025-01-03 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166850', 'tblTempUsageDetail_20' ) start [2025-01-03 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166850', 'tblTempUsageDetail_20' ) end [2025-01-03 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:42:25] Production.INFO: ==14694== Releasing lock... [2025-01-03 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:42:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:43:05 [end_date_ymd] => 2025-01-03 16:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:43:05' and `end` < '2025-01-03 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-01-03 16:43:26] Production.INFO: count ==3982 [2025-01-03 16:43:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:43:05 - End Time 2025-01-03 16:43:05 [2025-01-03 16:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166855', 'tblTempUsageDetail_20' ) start [2025-01-03 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166855', 'tblTempUsageDetail_20' ) end [2025-01-03 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166855', 'tblTempVendorCDR_20' ) start [2025-01-03 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166855', 'tblTempVendorCDR_20' ) end [2025-01-03 16:43:28] Production.INFO: ProcessCDR(1,14166855,1,1,2) [2025-01-03 16:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166855', 'tblTempUsageDetail_20' ) start [2025-01-03 16:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166855', 'tblTempUsageDetail_20' ) end [2025-01-03 16:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:43:32] Production.INFO: ==14774== Releasing lock... [2025-01-03 16:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:43:32] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:44:05 [end_date_ymd] => 2025-01-03 16:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:44:05' and `end` < '2025-01-03 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-01-03 16:44:26] Production.INFO: count ==3995 [2025-01-03 16:44:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:44:05 - End Time 2025-01-03 16:44:05 [2025-01-03 16:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166860', 'tblTempUsageDetail_20' ) start [2025-01-03 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166860', 'tblTempUsageDetail_20' ) end [2025-01-03 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166860', 'tblTempVendorCDR_20' ) start [2025-01-03 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166860', 'tblTempVendorCDR_20' ) end [2025-01-03 16:44:27] Production.INFO: ProcessCDR(1,14166860,1,1,2) [2025-01-03 16:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166860', 'tblTempUsageDetail_20' ) start [2025-01-03 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166860', 'tblTempUsageDetail_20' ) end [2025-01-03 16:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:44:32] Production.INFO: ==14852== Releasing lock... [2025-01-03 16:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:44:32] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:45:05 [end_date_ymd] => 2025-01-03 16:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:45:05' and `end` < '2025-01-03 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-01-03 16:45:25] Production.INFO: count ==3981 [2025-01-03 16:45:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:45:05 - End Time 2025-01-03 16:45:05 [2025-01-03 16:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166865', 'tblTempUsageDetail_20' ) start [2025-01-03 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166865', 'tblTempUsageDetail_20' ) end [2025-01-03 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166865', 'tblTempVendorCDR_20' ) start [2025-01-03 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166865', 'tblTempVendorCDR_20' ) end [2025-01-03 16:45:27] Production.INFO: ProcessCDR(1,14166865,1,1,2) [2025-01-03 16:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166865', 'tblTempUsageDetail_20' ) start [2025-01-03 16:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166865', 'tblTempUsageDetail_20' ) end [2025-01-03 16:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:45:31] Production.INFO: ==14932== Releasing lock... [2025-01-03 16:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:45:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:46:05 [end_date_ymd] => 2025-01-03 16:46:05 [RateCDR] => 1 ) [2025-01-03 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:46:05' and `end` < '2025-01-03 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:46:27] Production.INFO: count ==3988 [2025-01-03 16:46:28] Production.ERROR: pbx CDR StartTime 2025-01-03 13:46:05 - End Time 2025-01-03 16:46:05 [2025-01-03 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166870', 'tblTempUsageDetail_20' ) start [2025-01-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166870', 'tblTempUsageDetail_20' ) end [2025-01-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166870', 'tblTempVendorCDR_20' ) start [2025-01-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166870', 'tblTempVendorCDR_20' ) end [2025-01-03 16:46:28] Production.INFO: ProcessCDR(1,14166870,1,1,2) [2025-01-03 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166870', 'tblTempUsageDetail_20' ) start [2025-01-03 16:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166870', 'tblTempUsageDetail_20' ) end [2025-01-03 16:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:46:33] Production.INFO: ==15009== Releasing lock... [2025-01-03 16:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:46:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:47:05 [end_date_ymd] => 2025-01-03 16:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:47:05' and `end` < '2025-01-03 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-01-03 16:47:28] Production.INFO: count ==3994 [2025-01-03 16:47:30] Production.ERROR: pbx CDR StartTime 2025-01-03 13:47:05 - End Time 2025-01-03 16:47:05 [2025-01-03 16:47:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166875', 'tblTempUsageDetail_20' ) start [2025-01-03 16:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166875', 'tblTempUsageDetail_20' ) end [2025-01-03 16:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166875', 'tblTempVendorCDR_20' ) start [2025-01-03 16:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166875', 'tblTempVendorCDR_20' ) end [2025-01-03 16:47:30] Production.INFO: ProcessCDR(1,14166875,1,1,2) [2025-01-03 16:47:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166875', 'tblTempUsageDetail_20' ) start [2025-01-03 16:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166875', 'tblTempUsageDetail_20' ) end [2025-01-03 16:47:35] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:47:35] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:47:35] Production.INFO: ==15085== Releasing lock... [2025-01-03 16:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:47:35] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:48:04 [end_date_ymd] => 2025-01-03 16:48:04 [RateCDR] => 1 ) [2025-01-03 16: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-01-03 13:48:04' and `end` < '2025-01-03 16: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-01-03 16:48:24] Production.INFO: count ==4010 [2025-01-03 16:48:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:48:04 - End Time 2025-01-03 16:48:04 [2025-01-03 16:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166880', 'tblTempUsageDetail_20' ) start [2025-01-03 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166880', 'tblTempUsageDetail_20' ) end [2025-01-03 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166880', 'tblTempVendorCDR_20' ) start [2025-01-03 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166880', 'tblTempVendorCDR_20' ) end [2025-01-03 16:48:26] Production.INFO: ProcessCDR(1,14166880,1,1,2) [2025-01-03 16:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166880', 'tblTempUsageDetail_20' ) start [2025-01-03 16:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166880', 'tblTempUsageDetail_20' ) end [2025-01-03 16:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:48:31] Production.INFO: ==15161== Releasing lock... [2025-01-03 16:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:48:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:49:05 [end_date_ymd] => 2025-01-03 16:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:49:05' and `end` < '2025-01-03 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-01-03 16:49:26] Production.INFO: count ==4020 [2025-01-03 16:49:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:49:05 - End Time 2025-01-03 16:49:05 [2025-01-03 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166885', 'tblTempUsageDetail_20' ) start [2025-01-03 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166885', 'tblTempUsageDetail_20' ) end [2025-01-03 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166885', 'tblTempVendorCDR_20' ) start [2025-01-03 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166885', 'tblTempVendorCDR_20' ) end [2025-01-03 16:49:27] Production.INFO: ProcessCDR(1,14166885,1,1,2) [2025-01-03 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166885', 'tblTempUsageDetail_20' ) start [2025-01-03 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166885', 'tblTempUsageDetail_20' ) end [2025-01-03 16:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:49:32] Production.INFO: ==15240== Releasing lock... [2025-01-03 16:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:49:32] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:50:05 [end_date_ymd] => 2025-01-03 16:50:05 [RateCDR] => 1 ) [2025-01-03 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:50:05' and `end` < '2025-01-03 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:50:25] Production.INFO: count ==4027 [2025-01-03 16:50:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:50:05 - End Time 2025-01-03 16:50:05 [2025-01-03 16:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166891', 'tblTempUsageDetail_20' ) start [2025-01-03 16:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166891', 'tblTempUsageDetail_20' ) end [2025-01-03 16:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166891', 'tblTempVendorCDR_20' ) start [2025-01-03 16:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166891', 'tblTempVendorCDR_20' ) end [2025-01-03 16:50:27] Production.INFO: ProcessCDR(1,14166891,1,1,2) [2025-01-03 16:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166891', 'tblTempUsageDetail_20' ) start [2025-01-03 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166891', 'tblTempUsageDetail_20' ) end [2025-01-03 16:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:50:31] Production.INFO: ==15318== Releasing lock... [2025-01-03 16:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:50:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:51:05 [end_date_ymd] => 2025-01-03 16:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:51:05' and `end` < '2025-01-03 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-01-03 16:51:26] Production.INFO: count ==4056 [2025-01-03 16:51:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:51:05 - End Time 2025-01-03 16:51:05 [2025-01-03 16:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166896', 'tblTempUsageDetail_20' ) start [2025-01-03 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166896', 'tblTempUsageDetail_20' ) end [2025-01-03 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166896', 'tblTempVendorCDR_20' ) start [2025-01-03 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166896', 'tblTempVendorCDR_20' ) end [2025-01-03 16:51:27] Production.INFO: ProcessCDR(1,14166896,1,1,2) [2025-01-03 16:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166896', 'tblTempUsageDetail_20' ) start [2025-01-03 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166896', 'tblTempUsageDetail_20' ) end [2025-01-03 16:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:51:32] Production.INFO: ==15437== Releasing lock... [2025-01-03 16:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:51:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:52:05 [end_date_ymd] => 2025-01-03 16:52:05 [RateCDR] => 1 ) [2025-01-03 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:52:05' and `end` < '2025-01-03 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:52:29] Production.INFO: count ==4046 [2025-01-03 16:52:30] Production.ERROR: pbx CDR StartTime 2025-01-03 13:52:05 - End Time 2025-01-03 16:52:05 [2025-01-03 16:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166901', 'tblTempUsageDetail_20' ) start [2025-01-03 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166901', 'tblTempUsageDetail_20' ) end [2025-01-03 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166901', 'tblTempVendorCDR_20' ) start [2025-01-03 16:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166901', 'tblTempVendorCDR_20' ) end [2025-01-03 16:52:31] Production.INFO: ProcessCDR(1,14166901,1,1,2) [2025-01-03 16:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166901', 'tblTempUsageDetail_20' ) start [2025-01-03 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166901', 'tblTempUsageDetail_20' ) end [2025-01-03 16:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:52:34] Production.INFO: ==15516== Releasing lock... [2025-01-03 16:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:52:34] Production.INFO: 58.5 MB #Memory Used# [2025-01-03 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:53:05 [end_date_ymd] => 2025-01-03 16:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:53:05' and `end` < '2025-01-03 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-01-03 16:53:27] Production.INFO: count ==4042 [2025-01-03 16:53:29] Production.ERROR: pbx CDR StartTime 2025-01-03 13:53:05 - End Time 2025-01-03 16:53:05 [2025-01-03 16:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166906', 'tblTempUsageDetail_20' ) start [2025-01-03 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166906', 'tblTempUsageDetail_20' ) end [2025-01-03 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166906', 'tblTempVendorCDR_20' ) start [2025-01-03 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166906', 'tblTempVendorCDR_20' ) end [2025-01-03 16:53:29] Production.INFO: ProcessCDR(1,14166906,1,1,2) [2025-01-03 16:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166906', 'tblTempUsageDetail_20' ) start [2025-01-03 16:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166906', 'tblTempUsageDetail_20' ) end [2025-01-03 16:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:53:33] Production.INFO: ==15594== Releasing lock... [2025-01-03 16:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:53:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:54:05 [end_date_ymd] => 2025-01-03 16:54:05 [RateCDR] => 1 ) [2025-01-03 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 13:54:05' and `end` < '2025-01-03 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 16:54:25] Production.INFO: count ==4021 [2025-01-03 16:54:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:54:05 - End Time 2025-01-03 16:54:05 [2025-01-03 16:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166911', 'tblTempUsageDetail_20' ) start [2025-01-03 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166911', 'tblTempUsageDetail_20' ) end [2025-01-03 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166911', 'tblTempVendorCDR_20' ) start [2025-01-03 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166911', 'tblTempVendorCDR_20' ) end [2025-01-03 16:54:26] Production.INFO: ProcessCDR(1,14166911,1,1,2) [2025-01-03 16:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166911', 'tblTempUsageDetail_20' ) start [2025-01-03 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166911', 'tblTempUsageDetail_20' ) end [2025-01-03 16:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:54:31] Production.INFO: ==15673== Releasing lock... [2025-01-03 16:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:54:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:55:05 [end_date_ymd] => 2025-01-03 16:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:55:05' and `end` < '2025-01-03 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-01-03 16:55:27] Production.INFO: count ==4007 [2025-01-03 16:55:29] Production.ERROR: pbx CDR StartTime 2025-01-03 13:55:05 - End Time 2025-01-03 16:55:05 [2025-01-03 16:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166916', 'tblTempUsageDetail_20' ) start [2025-01-03 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166916', 'tblTempUsageDetail_20' ) end [2025-01-03 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166916', 'tblTempVendorCDR_20' ) start [2025-01-03 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166916', 'tblTempVendorCDR_20' ) end [2025-01-03 16:55:29] Production.INFO: ProcessCDR(1,14166916,1,1,2) [2025-01-03 16:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166916', 'tblTempUsageDetail_20' ) start [2025-01-03 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166916', 'tblTempUsageDetail_20' ) end [2025-01-03 16:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:55:34] Production.INFO: ==15768== Releasing lock... [2025-01-03 16:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:55:34] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:56:06 [end_date_ymd] => 2025-01-03 16:56:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:56:06' and `end` < '2025-01-03 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-01-03 16:56:24] Production.INFO: count ==4015 [2025-01-03 16:56:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:56:06 - End Time 2025-01-03 16:56:06 [2025-01-03 16:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166921', 'tblTempUsageDetail_20' ) start [2025-01-03 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166921', 'tblTempUsageDetail_20' ) end [2025-01-03 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166921', 'tblTempVendorCDR_20' ) start [2025-01-03 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166921', 'tblTempVendorCDR_20' ) end [2025-01-03 16:56:26] Production.INFO: ProcessCDR(1,14166921,1,1,2) [2025-01-03 16:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166921', 'tblTempUsageDetail_20' ) start [2025-01-03 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166921', 'tblTempUsageDetail_20' ) end [2025-01-03 16:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:56:31] Production.INFO: ==15860== Releasing lock... [2025-01-03 16:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:56:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:57:05 [end_date_ymd] => 2025-01-03 16:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:57:05' and `end` < '2025-01-03 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-01-03 16:57:25] Production.INFO: count ==4018 [2025-01-03 16:57:27] Production.ERROR: pbx CDR StartTime 2025-01-03 13:57:05 - End Time 2025-01-03 16:57:05 [2025-01-03 16:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166926', 'tblTempUsageDetail_20' ) start [2025-01-03 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166926', 'tblTempUsageDetail_20' ) end [2025-01-03 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166926', 'tblTempVendorCDR_20' ) start [2025-01-03 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166926', 'tblTempVendorCDR_20' ) end [2025-01-03 16:57:27] Production.INFO: ProcessCDR(1,14166926,1,1,2) [2025-01-03 16:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166926', 'tblTempUsageDetail_20' ) start [2025-01-03 16:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166926', 'tblTempUsageDetail_20' ) end [2025-01-03 16:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:57:31] Production.INFO: ==15953== Releasing lock... [2025-01-03 16:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:57:31] Production.INFO: 58 MB #Memory Used# [2025-01-03 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:58:05 [end_date_ymd] => 2025-01-03 16:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:58:05' and `end` < '2025-01-03 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-01-03 16:58:24] Production.INFO: count ==4031 [2025-01-03 16:58:26] Production.ERROR: pbx CDR StartTime 2025-01-03 13:58:05 - End Time 2025-01-03 16:58:05 [2025-01-03 16:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166931', 'tblTempUsageDetail_20' ) start [2025-01-03 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166931', 'tblTempUsageDetail_20' ) end [2025-01-03 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166931', 'tblTempVendorCDR_20' ) start [2025-01-03 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166931', 'tblTempVendorCDR_20' ) end [2025-01-03 16:58:26] Production.INFO: ProcessCDR(1,14166931,1,1,2) [2025-01-03 16:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166931', 'tblTempUsageDetail_20' ) start [2025-01-03 16:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166931', 'tblTempUsageDetail_20' ) end [2025-01-03 16:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:58:30] Production.INFO: ==16044== Releasing lock... [2025-01-03 16:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:58:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 13:59:05 [end_date_ymd] => 2025-01-03 16:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 13:59:05' and `end` < '2025-01-03 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-01-03 16:59:23] Production.INFO: count ==4026 [2025-01-03 16:59:25] Production.ERROR: pbx CDR StartTime 2025-01-03 13:59:05 - End Time 2025-01-03 16:59:05 [2025-01-03 16:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166936', 'tblTempUsageDetail_20' ) start [2025-01-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166936', 'tblTempUsageDetail_20' ) end [2025-01-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166936', 'tblTempVendorCDR_20' ) start [2025-01-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166936', 'tblTempVendorCDR_20' ) end [2025-01-03 16:59:25] Production.INFO: ProcessCDR(1,14166936,1,1,2) [2025-01-03 16:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 16:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166936', 'tblTempUsageDetail_20' ) start [2025-01-03 16:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166936', 'tblTempUsageDetail_20' ) end [2025-01-03 16:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 16:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 16:59:30] Production.INFO: ==16134== Releasing lock... [2025-01-03 16:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 16:59:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:00:06 [end_date_ymd] => 2025-01-03 17:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:00:06' and `end` < '2025-01-03 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-01-03 17:00:21] Production.INFO: count ==4009 [2025-01-03 17:00:23] Production.ERROR: pbx CDR StartTime 2025-01-03 14:00:06 - End Time 2025-01-03 17:00:06 [2025-01-03 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166942', 'tblTempUsageDetail_20' ) start [2025-01-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166942', 'tblTempUsageDetail_20' ) end [2025-01-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166942', 'tblTempVendorCDR_20' ) start [2025-01-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166942', 'tblTempVendorCDR_20' ) end [2025-01-03 17:00:23] Production.INFO: ProcessCDR(1,14166942,1,1,2) [2025-01-03 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166942', 'tblTempUsageDetail_20' ) start [2025-01-03 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166942', 'tblTempUsageDetail_20' ) end [2025-01-03 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:00:28] Production.INFO: ==16216== Releasing lock... [2025-01-03 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:00:28] Production.INFO: 58 MB #Memory Used# [2025-01-03 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:01:05 [end_date_ymd] => 2025-01-03 17:01:05 [RateCDR] => 1 ) [2025-01-03 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:01:05' and `end` < '2025-01-03 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:01:21] Production.INFO: count ==4022 [2025-01-03 17:01:22] Production.ERROR: pbx CDR StartTime 2025-01-03 14:01:05 - End Time 2025-01-03 17:01:05 [2025-01-03 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166947', 'tblTempUsageDetail_20' ) start [2025-01-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166947', 'tblTempUsageDetail_20' ) end [2025-01-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166947', 'tblTempVendorCDR_20' ) start [2025-01-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166947', 'tblTempVendorCDR_20' ) end [2025-01-03 17:01:22] Production.INFO: ProcessCDR(1,14166947,1,1,2) [2025-01-03 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166947', 'tblTempUsageDetail_20' ) start [2025-01-03 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166947', 'tblTempUsageDetail_20' ) end [2025-01-03 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:01:25] Production.INFO: ==16307== Releasing lock... [2025-01-03 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:01:25] Production.INFO: 58 MB #Memory Used# [2025-01-03 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:02:05 [end_date_ymd] => 2025-01-03 17:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:02:05' and `end` < '2025-01-03 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-01-03 17:02:23] Production.INFO: count ==4033 [2025-01-03 17:02:25] Production.ERROR: pbx CDR StartTime 2025-01-03 14:02:05 - End Time 2025-01-03 17:02:05 [2025-01-03 17:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166952', 'tblTempUsageDetail_20' ) start [2025-01-03 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166952', 'tblTempUsageDetail_20' ) end [2025-01-03 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166952', 'tblTempVendorCDR_20' ) start [2025-01-03 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166952', 'tblTempVendorCDR_20' ) end [2025-01-03 17:02:25] Production.INFO: ProcessCDR(1,14166952,1,1,2) [2025-01-03 17:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166952', 'tblTempUsageDetail_20' ) start [2025-01-03 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166952', 'tblTempUsageDetail_20' ) end [2025-01-03 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:02:28] Production.INFO: ==16384== Releasing lock... [2025-01-03 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:02:28] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:03:04 [end_date_ymd] => 2025-01-03 17:03:04 [RateCDR] => 1 ) [2025-01-03 17: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-01-03 14:03:04' and `end` < '2025-01-03 17: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-01-03 17:03:20] Production.INFO: count ==4018 [2025-01-03 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:03:04 - End Time 2025-01-03 17:03:04 [2025-01-03 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166957', 'tblTempUsageDetail_20' ) start [2025-01-03 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166957', 'tblTempUsageDetail_20' ) end [2025-01-03 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166957', 'tblTempVendorCDR_20' ) start [2025-01-03 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166957', 'tblTempVendorCDR_20' ) end [2025-01-03 17:03:21] Production.INFO: ProcessCDR(1,14166957,1,1,2) [2025-01-03 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166957', 'tblTempUsageDetail_20' ) start [2025-01-03 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166957', 'tblTempUsageDetail_20' ) end [2025-01-03 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:03:26] Production.INFO: ==16459== Releasing lock... [2025-01-03 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:03:26] Production.INFO: 58 MB #Memory Used# [2025-01-03 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:04:04 [end_date_ymd] => 2025-01-03 17:04:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:04:04' and `end` < '2025-01-03 17:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:04:20] Production.INFO: count ==4011 [2025-01-03 17:04:22] Production.ERROR: pbx CDR StartTime 2025-01-03 14:04:04 - End Time 2025-01-03 17:04:04 [2025-01-03 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166962', 'tblTempUsageDetail_20' ) start [2025-01-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166962', 'tblTempUsageDetail_20' ) end [2025-01-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166962', 'tblTempVendorCDR_20' ) start [2025-01-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166962', 'tblTempVendorCDR_20' ) end [2025-01-03 17:04:22] Production.INFO: ProcessCDR(1,14166962,1,1,2) [2025-01-03 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166962', 'tblTempUsageDetail_20' ) start [2025-01-03 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166962', 'tblTempUsageDetail_20' ) end [2025-01-03 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:04:27] Production.INFO: ==16533== Releasing lock... [2025-01-03 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:04:27] Production.INFO: 58 MB #Memory Used# [2025-01-03 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:05:04 [end_date_ymd] => 2025-01-03 17:05:04 [RateCDR] => 1 ) [2025-01-03 17: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-01-03 14:05:04' and `end` < '2025-01-03 17: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-01-03 17:05:23] Production.INFO: count ==4006 [2025-01-03 17:05:25] Production.ERROR: pbx CDR StartTime 2025-01-03 14:05:04 - End Time 2025-01-03 17:05:04 [2025-01-03 17:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166967', 'tblTempUsageDetail_20' ) start [2025-01-03 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166967', 'tblTempUsageDetail_20' ) end [2025-01-03 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166967', 'tblTempVendorCDR_20' ) start [2025-01-03 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166967', 'tblTempVendorCDR_20' ) end [2025-01-03 17:05:25] Production.INFO: ProcessCDR(1,14166967,1,1,2) [2025-01-03 17:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166967', 'tblTempUsageDetail_20' ) start [2025-01-03 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166967', 'tblTempUsageDetail_20' ) end [2025-01-03 17:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:05:29] Production.INFO: ==16610== Releasing lock... [2025-01-03 17:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:05:29] Production.INFO: 58 MB #Memory Used# [2025-01-03 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:06:05 [end_date_ymd] => 2025-01-03 17:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:06:05' and `end` < '2025-01-03 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-01-03 17:06:18] Production.INFO: count ==4006 [2025-01-03 17:06:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:06:05 - End Time 2025-01-03 17:06:05 [2025-01-03 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166972', 'tblTempUsageDetail_20' ) start [2025-01-03 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166972', 'tblTempUsageDetail_20' ) end [2025-01-03 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166972', 'tblTempVendorCDR_20' ) start [2025-01-03 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166972', 'tblTempVendorCDR_20' ) end [2025-01-03 17:06:20] Production.INFO: ProcessCDR(1,14166972,1,1,2) [2025-01-03 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166972', 'tblTempUsageDetail_20' ) start [2025-01-03 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166972', 'tblTempUsageDetail_20' ) end [2025-01-03 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:06:25] Production.INFO: ==16688== Releasing lock... [2025-01-03 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:06:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-03 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:07:05 [end_date_ymd] => 2025-01-03 17:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:07:05' and `end` < '2025-01-03 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-01-03 17:07:24] Production.INFO: count ==3988 [2025-01-03 17:07:26] Production.ERROR: pbx CDR StartTime 2025-01-03 14:07:05 - End Time 2025-01-03 17:07:05 [2025-01-03 17:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166977', 'tblTempUsageDetail_20' ) start [2025-01-03 17:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166977', 'tblTempUsageDetail_20' ) end [2025-01-03 17:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166977', 'tblTempVendorCDR_20' ) start [2025-01-03 17:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166977', 'tblTempVendorCDR_20' ) end [2025-01-03 17:07:26] Production.INFO: ProcessCDR(1,14166977,1,1,2) [2025-01-03 17:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166977', 'tblTempUsageDetail_20' ) start [2025-01-03 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166977', 'tblTempUsageDetail_20' ) end [2025-01-03 17:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:07:30] Production.INFO: ==16800== Releasing lock... [2025-01-03 17:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:07:30] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:08:05 [end_date_ymd] => 2025-01-03 17:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:08:05' and `end` < '2025-01-03 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-01-03 17:08:22] Production.INFO: count ==3977 [2025-01-03 17:08:23] Production.ERROR: pbx CDR StartTime 2025-01-03 14:08:05 - End Time 2025-01-03 17:08:05 [2025-01-03 17:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166982', 'tblTempUsageDetail_20' ) start [2025-01-03 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166982', 'tblTempUsageDetail_20' ) end [2025-01-03 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166982', 'tblTempVendorCDR_20' ) start [2025-01-03 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166982', 'tblTempVendorCDR_20' ) end [2025-01-03 17:08:23] Production.INFO: ProcessCDR(1,14166982,1,1,2) [2025-01-03 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166982', 'tblTempUsageDetail_20' ) start [2025-01-03 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166982', 'tblTempUsageDetail_20' ) end [2025-01-03 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:08:28] Production.INFO: ==16875== Releasing lock... [2025-01-03 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:08:28] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:09:05 [end_date_ymd] => 2025-01-03 17:09:05 [RateCDR] => 1 ) [2025-01-03 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:09:05' and `end` < '2025-01-03 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:09:20] Production.INFO: count ==3970 [2025-01-03 17:09:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:09:05 - End Time 2025-01-03 17:09:05 [2025-01-03 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166987', 'tblTempUsageDetail_20' ) start [2025-01-03 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166987', 'tblTempUsageDetail_20' ) end [2025-01-03 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166987', 'tblTempVendorCDR_20' ) start [2025-01-03 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166987', 'tblTempVendorCDR_20' ) end [2025-01-03 17:09:21] Production.INFO: ProcessCDR(1,14166987,1,1,2) [2025-01-03 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166987', 'tblTempUsageDetail_20' ) start [2025-01-03 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166987', 'tblTempUsageDetail_20' ) end [2025-01-03 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:09:25] Production.INFO: ==16948== Releasing lock... [2025-01-03 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:09:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:10:05 [end_date_ymd] => 2025-01-03 17:10:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:10:05' and `end` < '2025-01-03 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-01-03 17:10:20] Production.INFO: count ==3971 [2025-01-03 17:10:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:10:05 - End Time 2025-01-03 17:10:05 [2025-01-03 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166993', 'tblTempUsageDetail_20' ) start [2025-01-03 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166993', 'tblTempUsageDetail_20' ) end [2025-01-03 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166993', 'tblTempVendorCDR_20' ) start [2025-01-03 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166993', 'tblTempVendorCDR_20' ) end [2025-01-03 17:10:21] Production.INFO: ProcessCDR(1,14166993,1,1,2) [2025-01-03 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166993', 'tblTempUsageDetail_20' ) start [2025-01-03 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166993', 'tblTempUsageDetail_20' ) end [2025-01-03 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:10:26] Production.INFO: ==17022== Releasing lock... [2025-01-03 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:10:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:11:05 [end_date_ymd] => 2025-01-03 17:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:11:05' and `end` < '2025-01-03 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-01-03 17:11:21] Production.INFO: count ==3989 [2025-01-03 17:11:23] Production.ERROR: pbx CDR StartTime 2025-01-03 14:11:05 - End Time 2025-01-03 17:11:05 [2025-01-03 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166998', 'tblTempUsageDetail_20' ) start [2025-01-03 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14166998', 'tblTempUsageDetail_20' ) end [2025-01-03 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166998', 'tblTempVendorCDR_20' ) start [2025-01-03 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14166998', 'tblTempVendorCDR_20' ) end [2025-01-03 17:11:23] Production.INFO: ProcessCDR(1,14166998,1,1,2) [2025-01-03 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14166998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14166998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14166998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14166998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166998', 'tblTempUsageDetail_20' ) start [2025-01-03 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14166998', 'tblTempUsageDetail_20' ) end [2025-01-03 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:11:28] Production.INFO: ==17094== Releasing lock... [2025-01-03 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:11:28] Production.INFO: 58 MB #Memory Used# [2025-01-03 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:12:05 [end_date_ymd] => 2025-01-03 17:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:12:05' and `end` < '2025-01-03 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-01-03 17:12:18] Production.INFO: count ==3981 [2025-01-03 17:12:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:12:05 - End Time 2025-01-03 17:12:05 [2025-01-03 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167003', 'tblTempUsageDetail_20' ) start [2025-01-03 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167003', 'tblTempUsageDetail_20' ) end [2025-01-03 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167003', 'tblTempVendorCDR_20' ) start [2025-01-03 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167003', 'tblTempVendorCDR_20' ) end [2025-01-03 17:12:20] Production.INFO: ProcessCDR(1,14167003,1,1,2) [2025-01-03 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167003', 'tblTempUsageDetail_20' ) start [2025-01-03 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167003', 'tblTempUsageDetail_20' ) end [2025-01-03 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:12:25] Production.INFO: ==17163== Releasing lock... [2025-01-03 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:12:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:13:05 [end_date_ymd] => 2025-01-03 17:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:13:05' and `end` < '2025-01-03 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-01-03 17:13:19] Production.INFO: count ==3979 [2025-01-03 17:13:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:13:05 - End Time 2025-01-03 17:13:05 [2025-01-03 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167008', 'tblTempUsageDetail_20' ) start [2025-01-03 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167008', 'tblTempUsageDetail_20' ) end [2025-01-03 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167008', 'tblTempVendorCDR_20' ) start [2025-01-03 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167008', 'tblTempVendorCDR_20' ) end [2025-01-03 17:13:20] Production.INFO: ProcessCDR(1,14167008,1,1,2) [2025-01-03 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167008', 'tblTempUsageDetail_20' ) start [2025-01-03 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167008', 'tblTempUsageDetail_20' ) end [2025-01-03 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:13:25] Production.INFO: ==17235== Releasing lock... [2025-01-03 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:13:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:14:05 [end_date_ymd] => 2025-01-03 17:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:14:05' and `end` < '2025-01-03 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-01-03 17:14:18] Production.INFO: count ==3970 [2025-01-03 17:14:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:14:05 - End Time 2025-01-03 17:14:05 [2025-01-03 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167013', 'tblTempUsageDetail_20' ) start [2025-01-03 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167013', 'tblTempUsageDetail_20' ) end [2025-01-03 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167013', 'tblTempVendorCDR_20' ) start [2025-01-03 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167013', 'tblTempVendorCDR_20' ) end [2025-01-03 17:14:20] Production.INFO: ProcessCDR(1,14167013,1,1,2) [2025-01-03 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167013', 'tblTempUsageDetail_20' ) start [2025-01-03 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167013', 'tblTempUsageDetail_20' ) end [2025-01-03 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:14:24] Production.INFO: ==17307== Releasing lock... [2025-01-03 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:14:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:15:05 [end_date_ymd] => 2025-01-03 17:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:15:05' and `end` < '2025-01-03 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-01-03 17:15:19] Production.INFO: count ==3954 [2025-01-03 17:15:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:15:05 - End Time 2025-01-03 17:15:05 [2025-01-03 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167018', 'tblTempUsageDetail_20' ) start [2025-01-03 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167018', 'tblTempUsageDetail_20' ) end [2025-01-03 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167018', 'tblTempVendorCDR_20' ) start [2025-01-03 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167018', 'tblTempVendorCDR_20' ) end [2025-01-03 17:15:20] Production.INFO: ProcessCDR(1,14167018,1,1,2) [2025-01-03 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167018', 'tblTempUsageDetail_20' ) start [2025-01-03 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167018', 'tblTempUsageDetail_20' ) end [2025-01-03 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:15:25] Production.INFO: ==17380== Releasing lock... [2025-01-03 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:15:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:16:04 [end_date_ymd] => 2025-01-03 17:16:04 [RateCDR] => 1 ) [2025-01-03 17: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-01-03 14:16:04' and `end` < '2025-01-03 17: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-01-03 17:16:20] Production.INFO: count ==3952 [2025-01-03 17:16:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:16:04 - End Time 2025-01-03 17:16:04 [2025-01-03 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167023', 'tblTempUsageDetail_20' ) start [2025-01-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167023', 'tblTempUsageDetail_20' ) end [2025-01-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167023', 'tblTempVendorCDR_20' ) start [2025-01-03 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167023', 'tblTempVendorCDR_20' ) end [2025-01-03 17:16:21] Production.INFO: ProcessCDR(1,14167023,1,1,2) [2025-01-03 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167023', 'tblTempUsageDetail_20' ) start [2025-01-03 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167023', 'tblTempUsageDetail_20' ) end [2025-01-03 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:16:26] Production.INFO: ==17450== Releasing lock... [2025-01-03 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:16:26] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:17:05 [end_date_ymd] => 2025-01-03 17:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:17:05' and `end` < '2025-01-03 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-01-03 17:17:20] Production.INFO: count ==3945 [2025-01-03 17:17:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:17:05 - End Time 2025-01-03 17:17:05 [2025-01-03 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167028', 'tblTempUsageDetail_20' ) start [2025-01-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167028', 'tblTempUsageDetail_20' ) end [2025-01-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167028', 'tblTempVendorCDR_20' ) start [2025-01-03 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167028', 'tblTempVendorCDR_20' ) end [2025-01-03 17:17:21] Production.INFO: ProcessCDR(1,14167028,1,1,2) [2025-01-03 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167028', 'tblTempUsageDetail_20' ) start [2025-01-03 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167028', 'tblTempUsageDetail_20' ) end [2025-01-03 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:17:25] Production.INFO: ==17521== Releasing lock... [2025-01-03 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:17:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:18:05 [end_date_ymd] => 2025-01-03 17:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:18:05' and `end` < '2025-01-03 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:18:20] Production.INFO: count ==3938 [2025-01-03 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:18:05 - End Time 2025-01-03 17:18:05 [2025-01-03 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167033', 'tblTempUsageDetail_20' ) start [2025-01-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167033', 'tblTempUsageDetail_20' ) end [2025-01-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167033', 'tblTempVendorCDR_20' ) start [2025-01-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167033', 'tblTempVendorCDR_20' ) end [2025-01-03 17:18:21] Production.INFO: ProcessCDR(1,14167033,1,1,2) [2025-01-03 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167033', 'tblTempUsageDetail_20' ) start [2025-01-03 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167033', 'tblTempUsageDetail_20' ) end [2025-01-03 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:18:26] Production.INFO: ==17594== Releasing lock... [2025-01-03 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:18:26] Production.INFO: 57.5 MB #Memory Used# [2025-01-03 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:19:05 [end_date_ymd] => 2025-01-03 17:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:19:05' and `end` < '2025-01-03 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-01-03 17:19:18] Production.INFO: count ==3923 [2025-01-03 17:19:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:19:05 - End Time 2025-01-03 17:19:05 [2025-01-03 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167038', 'tblTempUsageDetail_20' ) start [2025-01-03 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167038', 'tblTempUsageDetail_20' ) end [2025-01-03 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167038', 'tblTempVendorCDR_20' ) start [2025-01-03 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167038', 'tblTempVendorCDR_20' ) end [2025-01-03 17:19:20] Production.INFO: ProcessCDR(1,14167038,1,1,2) [2025-01-03 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167038', 'tblTempUsageDetail_20' ) start [2025-01-03 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167038', 'tblTempUsageDetail_20' ) end [2025-01-03 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:19:23] Production.INFO: ==17664== Releasing lock... [2025-01-03 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:19:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:20:06 [end_date_ymd] => 2025-01-03 17:20:06 [RateCDR] => 1 ) [2025-01-03 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:20:06' and `end` < '2025-01-03 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:20:19] Production.INFO: count ==3906 [2025-01-03 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:20:06 - End Time 2025-01-03 17:20:06 [2025-01-03 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167044', 'tblTempUsageDetail_20' ) start [2025-01-03 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167044', 'tblTempUsageDetail_20' ) end [2025-01-03 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167044', 'tblTempVendorCDR_20' ) start [2025-01-03 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167044', 'tblTempVendorCDR_20' ) end [2025-01-03 17:20:21] Production.INFO: ProcessCDR(1,14167044,1,1,2) [2025-01-03 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167044', 'tblTempUsageDetail_20' ) start [2025-01-03 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167044', 'tblTempUsageDetail_20' ) end [2025-01-03 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:20:24] Production.INFO: ==17739== Releasing lock... [2025-01-03 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:20:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-03 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:21:05 [end_date_ymd] => 2025-01-03 17:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:21:05' and `end` < '2025-01-03 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-01-03 17:21:21] Production.INFO: count ==3858 [2025-01-03 17:21:22] Production.ERROR: pbx CDR StartTime 2025-01-03 14:21:05 - End Time 2025-01-03 17:21:05 [2025-01-03 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167049', 'tblTempUsageDetail_20' ) start [2025-01-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167049', 'tblTempUsageDetail_20' ) end [2025-01-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167049', 'tblTempVendorCDR_20' ) start [2025-01-03 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167049', 'tblTempVendorCDR_20' ) end [2025-01-03 17:21:22] Production.INFO: ProcessCDR(1,14167049,1,1,2) [2025-01-03 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167049', 'tblTempUsageDetail_20' ) start [2025-01-03 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167049', 'tblTempUsageDetail_20' ) end [2025-01-03 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:21:26] Production.INFO: ==17816== Releasing lock... [2025-01-03 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:21:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-03 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:22:05 [end_date_ymd] => 2025-01-03 17:22:05 [RateCDR] => 1 ) [2025-01-03 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:22:05' and `end` < '2025-01-03 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:22:19] Production.INFO: count ==3848 [2025-01-03 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:22:05 - End Time 2025-01-03 17:22:05 [2025-01-03 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167054', 'tblTempUsageDetail_20' ) start [2025-01-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167054', 'tblTempUsageDetail_20' ) end [2025-01-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167054', 'tblTempVendorCDR_20' ) start [2025-01-03 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167054', 'tblTempVendorCDR_20' ) end [2025-01-03 17:22:20] Production.INFO: ProcessCDR(1,14167054,1,1,2) [2025-01-03 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167054', 'tblTempUsageDetail_20' ) start [2025-01-03 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167054', 'tblTempUsageDetail_20' ) end [2025-01-03 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:22:25] Production.INFO: ==17925== Releasing lock... [2025-01-03 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:22:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-03 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:23:04 [end_date_ymd] => 2025-01-03 17:23:04 [RateCDR] => 1 ) [2025-01-03 17: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-01-03 14:23:04' and `end` < '2025-01-03 17: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-01-03 17:23:18] Production.INFO: count ==3837 [2025-01-03 17:23:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:23:04 - End Time 2025-01-03 17:23:04 [2025-01-03 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167059', 'tblTempUsageDetail_20' ) start [2025-01-03 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167059', 'tblTempUsageDetail_20' ) end [2025-01-03 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167059', 'tblTempVendorCDR_20' ) start [2025-01-03 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167059', 'tblTempVendorCDR_20' ) end [2025-01-03 17:23:19] Production.INFO: ProcessCDR(1,14167059,1,1,2) [2025-01-03 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167059', 'tblTempUsageDetail_20' ) start [2025-01-03 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167059', 'tblTempUsageDetail_20' ) end [2025-01-03 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:23:23] Production.INFO: ==17996== Releasing lock... [2025-01-03 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:23:23] Production.INFO: 56.75 MB #Memory Used# [2025-01-03 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:24:05 [end_date_ymd] => 2025-01-03 17:24:05 [RateCDR] => 1 ) [2025-01-03 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:24:05' and `end` < '2025-01-03 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:24:19] Production.INFO: count ==3815 [2025-01-03 17:24:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:24:05 - End Time 2025-01-03 17:24:05 [2025-01-03 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167064', 'tblTempUsageDetail_20' ) start [2025-01-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167064', 'tblTempUsageDetail_20' ) end [2025-01-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167064', 'tblTempVendorCDR_20' ) start [2025-01-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167064', 'tblTempVendorCDR_20' ) end [2025-01-03 17:24:21] Production.INFO: ProcessCDR(1,14167064,1,1,2) [2025-01-03 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167064', 'tblTempUsageDetail_20' ) start [2025-01-03 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167064', 'tblTempUsageDetail_20' ) end [2025-01-03 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:24:26] Production.INFO: ==18071== Releasing lock... [2025-01-03 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:24:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-03 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:25:04 [end_date_ymd] => 2025-01-03 17:25:04 [RateCDR] => 1 ) [2025-01-03 17: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-01-03 14:25:04' and `end` < '2025-01-03 17: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-01-03 17:25:18] Production.INFO: count ==3819 [2025-01-03 17:25:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:25:04 - End Time 2025-01-03 17:25:04 [2025-01-03 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167069', 'tblTempUsageDetail_20' ) start [2025-01-03 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167069', 'tblTempUsageDetail_20' ) end [2025-01-03 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167069', 'tblTempVendorCDR_20' ) start [2025-01-03 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167069', 'tblTempVendorCDR_20' ) end [2025-01-03 17:25:19] Production.INFO: ProcessCDR(1,14167069,1,1,2) [2025-01-03 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167069', 'tblTempUsageDetail_20' ) start [2025-01-03 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167069', 'tblTempUsageDetail_20' ) end [2025-01-03 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:25:24] Production.INFO: ==18140== Releasing lock... [2025-01-03 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:25:24] Production.INFO: 56.75 MB #Memory Used# [2025-01-03 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:26:15 [end_date_ymd] => 2025-01-03 17:26:15 [RateCDR] => 1 ) [2025-01-03 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:26:15' and `end` < '2025-01-03 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:26:32] Production.INFO: count ==3811 [2025-01-03 17:27:41] Production.ERROR: pbx CDR StartTime 2025-01-03 14:26:15 - End Time 2025-01-03 17:26:15 [2025-01-03 17:27:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167074', 'tblTempUsageDetail_20' ) start [2025-01-03 17:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167074', 'tblTempUsageDetail_20' ) end [2025-01-03 17:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167074', 'tblTempVendorCDR_20' ) start [2025-01-03 17:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167074', 'tblTempVendorCDR_20' ) end [2025-01-03 17:27:42] Production.INFO: ProcessCDR(1,14167074,1,1,2) [2025-01-03 17:27:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:27:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:27:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167074', 'tblTempUsageDetail_20' ) start [2025-01-03 17:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167074', 'tblTempUsageDetail_20' ) end [2025-01-03 17:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:28:28] Production.INFO: ==18218== Releasing lock... [2025-01-03 17:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:28:28] Production.INFO: 56.75 MB #Memory Used# [2025-01-03 17:29:22] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:29:22 [end_date_ymd] => 2025-01-03 17:29:22 [RateCDR] => 1 ) [2025-01-03 17:29:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:29:22' and `end` < '2025-01-03 17:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:29:42] Production.INFO: count ==3770 [2025-01-03 17:30:40] Production.ERROR: pbx CDR StartTime 2025-01-03 14:29:22 - End Time 2025-01-03 17:29:22 [2025-01-03 17:30:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167085', 'tblTempUsageDetail_20' ) start [2025-01-03 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167085', 'tblTempUsageDetail_20' ) end [2025-01-03 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167085', 'tblTempVendorCDR_20' ) start [2025-01-03 17:30:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167085', 'tblTempVendorCDR_20' ) end [2025-01-03 17:30:43] Production.INFO: ProcessCDR(1,14167085,1,1,2) [2025-01-03 17:30:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:30:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:30:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167085', 'tblTempUsageDetail_20' ) start [2025-01-03 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167085', 'tblTempUsageDetail_20' ) end [2025-01-03 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:31:33] Production.INFO: ==18423== Releasing lock... [2025-01-03 17:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:31:33] Production.INFO: 56.25 MB #Memory Used# [2025-01-03 17:32:25] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:32:25 [end_date_ymd] => 2025-01-03 17:32:25 [RateCDR] => 1 ) [2025-01-03 17:32:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:32:25' and `end` < '2025-01-03 17:32:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:32:45] Production.INFO: count ==3759 [2025-01-03 17:33:27] Production.ERROR: pbx CDR StartTime 2025-01-03 14:32:25 - End Time 2025-01-03 17:32:25 [2025-01-03 17:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167097', 'tblTempUsageDetail_20' ) start [2025-01-03 17:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167097', 'tblTempUsageDetail_20' ) end [2025-01-03 17:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167097', 'tblTempVendorCDR_20' ) start [2025-01-03 17:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167097', 'tblTempVendorCDR_20' ) end [2025-01-03 17:33:32] Production.INFO: ProcessCDR(1,14167097,1,1,2) [2025-01-03 17:33:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:33:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:33:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167097', 'tblTempUsageDetail_20' ) start [2025-01-03 17:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167097', 'tblTempUsageDetail_20' ) end [2025-01-03 17:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:34:20] Production.INFO: ==18627== Releasing lock... [2025-01-03 17:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:34:20] Production.INFO: 56.25 MB #Memory Used# [2025-01-03 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:35:05 [end_date_ymd] => 2025-01-03 17:35:05 [RateCDR] => 1 ) [2025-01-03 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:35:05' and `end` < '2025-01-03 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:35:19] Production.INFO: count ==3735 [2025-01-03 17:35:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:35:05 - End Time 2025-01-03 17:35:05 [2025-01-03 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167108', 'tblTempUsageDetail_20' ) start [2025-01-03 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167108', 'tblTempUsageDetail_20' ) end [2025-01-03 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167108', 'tblTempVendorCDR_20' ) start [2025-01-03 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167108', 'tblTempVendorCDR_20' ) end [2025-01-03 17:35:20] Production.INFO: ProcessCDR(1,14167108,1,1,2) [2025-01-03 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167108', 'tblTempUsageDetail_20' ) start [2025-01-03 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167108', 'tblTempUsageDetail_20' ) end [2025-01-03 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:35:25] Production.INFO: ==18834== Releasing lock... [2025-01-03 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:35:25] Production.INFO: 57 MB #Memory Used# [2025-01-03 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:36:05 [end_date_ymd] => 2025-01-03 17:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:36:05' and `end` < '2025-01-03 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-01-03 17:36:19] Production.INFO: count ==3731 [2025-01-03 17:36:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:36:05 - End Time 2025-01-03 17:36:05 [2025-01-03 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167113', 'tblTempUsageDetail_20' ) start [2025-01-03 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167113', 'tblTempUsageDetail_20' ) end [2025-01-03 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167113', 'tblTempVendorCDR_20' ) start [2025-01-03 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167113', 'tblTempVendorCDR_20' ) end [2025-01-03 17:36:20] Production.INFO: ProcessCDR(1,14167113,1,1,2) [2025-01-03 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167113', 'tblTempUsageDetail_20' ) start [2025-01-03 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167113', 'tblTempUsageDetail_20' ) end [2025-01-03 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:36:25] Production.INFO: ==18908== Releasing lock... [2025-01-03 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:36:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-03 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:37:05 [end_date_ymd] => 2025-01-03 17:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:37:05' and `end` < '2025-01-03 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-01-03 17:37:19] Production.INFO: count ==3719 [2025-01-03 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:37:05 - End Time 2025-01-03 17:37:05 [2025-01-03 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167118', 'tblTempUsageDetail_20' ) start [2025-01-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167118', 'tblTempUsageDetail_20' ) end [2025-01-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167118', 'tblTempVendorCDR_20' ) start [2025-01-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167118', 'tblTempVendorCDR_20' ) end [2025-01-03 17:37:21] Production.INFO: ProcessCDR(1,14167118,1,1,2) [2025-01-03 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167118', 'tblTempUsageDetail_20' ) start [2025-01-03 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167118', 'tblTempUsageDetail_20' ) end [2025-01-03 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:37:25] Production.INFO: ==18988== Releasing lock... [2025-01-03 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:37:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-03 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:38:06 [end_date_ymd] => 2025-01-03 17:38:06 [RateCDR] => 1 ) [2025-01-03 17:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:38:06' and `end` < '2025-01-03 17:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:38:20] Production.INFO: count ==3708 [2025-01-03 17:38:22] Production.ERROR: pbx CDR StartTime 2025-01-03 14:38:06 - End Time 2025-01-03 17:38:06 [2025-01-03 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167123', 'tblTempUsageDetail_20' ) start [2025-01-03 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167123', 'tblTempUsageDetail_20' ) end [2025-01-03 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167123', 'tblTempVendorCDR_20' ) start [2025-01-03 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167123', 'tblTempVendorCDR_20' ) end [2025-01-03 17:38:22] Production.INFO: ProcessCDR(1,14167123,1,1,2) [2025-01-03 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167123', 'tblTempUsageDetail_20' ) start [2025-01-03 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167123', 'tblTempUsageDetail_20' ) end [2025-01-03 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:38:27] Production.INFO: ==19104== Releasing lock... [2025-01-03 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:38:27] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:39:05 [end_date_ymd] => 2025-01-03 17:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:39:05' and `end` < '2025-01-03 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-01-03 17:39:19] Production.INFO: count ==3694 [2025-01-03 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:39:05 - End Time 2025-01-03 17:39:05 [2025-01-03 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167128', 'tblTempUsageDetail_20' ) start [2025-01-03 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167128', 'tblTempUsageDetail_20' ) end [2025-01-03 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167128', 'tblTempVendorCDR_20' ) start [2025-01-03 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167128', 'tblTempVendorCDR_20' ) end [2025-01-03 17:39:20] Production.INFO: ProcessCDR(1,14167128,1,1,2) [2025-01-03 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167128', 'tblTempUsageDetail_20' ) start [2025-01-03 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167128', 'tblTempUsageDetail_20' ) end [2025-01-03 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:39:23] Production.INFO: ==19178== Releasing lock... [2025-01-03 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:39:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:40:05 [end_date_ymd] => 2025-01-03 17:40:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:40:05' and `end` < '2025-01-03 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-01-03 17:40:19] Production.INFO: count ==3670 [2025-01-03 17:40:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:40:05 - End Time 2025-01-03 17:40:05 [2025-01-03 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167133', 'tblTempUsageDetail_20' ) start [2025-01-03 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167133', 'tblTempUsageDetail_20' ) end [2025-01-03 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167133', 'tblTempVendorCDR_20' ) start [2025-01-03 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167133', 'tblTempVendorCDR_20' ) end [2025-01-03 17:40:20] Production.INFO: ProcessCDR(1,14167133,1,1,2) [2025-01-03 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167133', 'tblTempUsageDetail_20' ) start [2025-01-03 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167133', 'tblTempUsageDetail_20' ) end [2025-01-03 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:40:25] Production.INFO: ==19256== Releasing lock... [2025-01-03 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:40:25] Production.INFO: 56.5 MB #Memory Used# [2025-01-03 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:41:05 [end_date_ymd] => 2025-01-03 17:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:41:05' and `end` < '2025-01-03 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-01-03 17:41:21] Production.INFO: count ==3692 [2025-01-03 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-03 14:41:05 - End Time 2025-01-03 17:41:05 [2025-01-03 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167139', 'tblTempUsageDetail_20' ) start [2025-01-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167139', 'tblTempUsageDetail_20' ) end [2025-01-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167139', 'tblTempVendorCDR_20' ) start [2025-01-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167139', 'tblTempVendorCDR_20' ) end [2025-01-03 17:41:22] Production.INFO: ProcessCDR(1,14167139,1,1,2) [2025-01-03 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167139', 'tblTempUsageDetail_20' ) start [2025-01-03 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167139', 'tblTempUsageDetail_20' ) end [2025-01-03 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:41:27] Production.INFO: ==19334== Releasing lock... [2025-01-03 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:41:27] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:42:05 [end_date_ymd] => 2025-01-03 17:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:42:05' and `end` < '2025-01-03 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-01-03 17:42:18] Production.INFO: count ==3684 [2025-01-03 17:42:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:42:05 - End Time 2025-01-03 17:42:05 [2025-01-03 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167144', 'tblTempUsageDetail_20' ) start [2025-01-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167144', 'tblTempUsageDetail_20' ) end [2025-01-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167144', 'tblTempVendorCDR_20' ) start [2025-01-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167144', 'tblTempVendorCDR_20' ) end [2025-01-03 17:42:20] Production.INFO: ProcessCDR(1,14167144,1,1,2) [2025-01-03 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167144', 'tblTempUsageDetail_20' ) start [2025-01-03 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167144', 'tblTempUsageDetail_20' ) end [2025-01-03 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:42:24] Production.INFO: ==19411== Releasing lock... [2025-01-03 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:42:24] Production.INFO: 56 MB #Memory Used# [2025-01-03 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:43:04 [end_date_ymd] => 2025-01-03 17:43:04 [RateCDR] => 1 ) [2025-01-03 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:43:04' and `end` < '2025-01-03 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:43:18] Production.INFO: count ==3684 [2025-01-03 17:43:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:43:04 - End Time 2025-01-03 17:43:04 [2025-01-03 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167149', 'tblTempUsageDetail_20' ) start [2025-01-03 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167149', 'tblTempUsageDetail_20' ) end [2025-01-03 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167149', 'tblTempVendorCDR_20' ) start [2025-01-03 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167149', 'tblTempVendorCDR_20' ) end [2025-01-03 17:43:19] Production.INFO: ProcessCDR(1,14167149,1,1,2) [2025-01-03 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167149', 'tblTempUsageDetail_20' ) start [2025-01-03 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167149', 'tblTempUsageDetail_20' ) end [2025-01-03 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:43:24] Production.INFO: ==19484== Releasing lock... [2025-01-03 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:43:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:44:05 [end_date_ymd] => 2025-01-03 17:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:44:05' and `end` < '2025-01-03 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-01-03 17:44:20] Production.INFO: count ==3678 [2025-01-03 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-03 14:44:05 - End Time 2025-01-03 17:44:05 [2025-01-03 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167154', 'tblTempUsageDetail_20' ) start [2025-01-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167154', 'tblTempUsageDetail_20' ) end [2025-01-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167154', 'tblTempVendorCDR_20' ) start [2025-01-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167154', 'tblTempVendorCDR_20' ) end [2025-01-03 17:44:21] Production.INFO: ProcessCDR(1,14167154,1,1,2) [2025-01-03 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167154', 'tblTempUsageDetail_20' ) start [2025-01-03 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167154', 'tblTempUsageDetail_20' ) end [2025-01-03 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:44:24] Production.INFO: ==19562== Releasing lock... [2025-01-03 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:44:24] Production.INFO: 56 MB #Memory Used# [2025-01-03 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:45:06 [end_date_ymd] => 2025-01-03 17:45:06 [RateCDR] => 1 ) [2025-01-03 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:45:06' and `end` < '2025-01-03 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:45:19] Production.INFO: count ==3652 [2025-01-03 17:45:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:45:06 - End Time 2025-01-03 17:45:06 [2025-01-03 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167159', 'tblTempUsageDetail_20' ) start [2025-01-03 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167159', 'tblTempUsageDetail_20' ) end [2025-01-03 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167159', 'tblTempVendorCDR_20' ) start [2025-01-03 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167159', 'tblTempVendorCDR_20' ) end [2025-01-03 17:45:20] Production.INFO: ProcessCDR(1,14167159,1,1,2) [2025-01-03 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167159', 'tblTempUsageDetail_20' ) start [2025-01-03 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167159', 'tblTempUsageDetail_20' ) end [2025-01-03 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:45:25] Production.INFO: ==19640== Releasing lock... [2025-01-03 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:45:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:46:05 [end_date_ymd] => 2025-01-03 17:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:46:05' and `end` < '2025-01-03 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-01-03 17:46:19] Production.INFO: count ==3619 [2025-01-03 17:46:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:46:05 - End Time 2025-01-03 17:46:05 [2025-01-03 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167164', 'tblTempUsageDetail_20' ) start [2025-01-03 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167164', 'tblTempUsageDetail_20' ) end [2025-01-03 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167164', 'tblTempVendorCDR_20' ) start [2025-01-03 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167164', 'tblTempVendorCDR_20' ) end [2025-01-03 17:46:20] Production.INFO: ProcessCDR(1,14167164,1,1,2) [2025-01-03 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167164', 'tblTempUsageDetail_20' ) start [2025-01-03 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167164', 'tblTempUsageDetail_20' ) end [2025-01-03 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:46:24] Production.INFO: ==19715== Releasing lock... [2025-01-03 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:46:24] Production.INFO: 56 MB #Memory Used# [2025-01-03 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:47:05 [end_date_ymd] => 2025-01-03 17:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:47:05' and `end` < '2025-01-03 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-01-03 17:47:19] Production.INFO: count ==3607 [2025-01-03 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:47:05 - End Time 2025-01-03 17:47:05 [2025-01-03 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167169', 'tblTempUsageDetail_20' ) start [2025-01-03 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167169', 'tblTempUsageDetail_20' ) end [2025-01-03 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167169', 'tblTempVendorCDR_20' ) start [2025-01-03 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167169', 'tblTempVendorCDR_20' ) end [2025-01-03 17:47:20] Production.INFO: ProcessCDR(1,14167169,1,1,2) [2025-01-03 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167169', 'tblTempUsageDetail_20' ) start [2025-01-03 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167169', 'tblTempUsageDetail_20' ) end [2025-01-03 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:47:24] Production.INFO: ==19791== Releasing lock... [2025-01-03 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:47:24] Production.INFO: 55 MB #Memory Used# [2025-01-03 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:48:05 [end_date_ymd] => 2025-01-03 17:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:48:05' and `end` < '2025-01-03 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-01-03 17:48:18] Production.INFO: count ==3604 [2025-01-03 17:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:48:05 - End Time 2025-01-03 17:48:05 [2025-01-03 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167174', 'tblTempUsageDetail_20' ) start [2025-01-03 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167174', 'tblTempUsageDetail_20' ) end [2025-01-03 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167174', 'tblTempVendorCDR_20' ) start [2025-01-03 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167174', 'tblTempVendorCDR_20' ) end [2025-01-03 17:48:19] Production.INFO: ProcessCDR(1,14167174,1,1,2) [2025-01-03 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167174', 'tblTempUsageDetail_20' ) start [2025-01-03 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167174', 'tblTempUsageDetail_20' ) end [2025-01-03 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:48:24] Production.INFO: ==19872== Releasing lock... [2025-01-03 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:48:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:49:05 [end_date_ymd] => 2025-01-03 17:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:49:05' and `end` < '2025-01-03 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-01-03 17:49:19] Production.INFO: count ==3595 [2025-01-03 17:49:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:49:05 - End Time 2025-01-03 17:49:05 [2025-01-03 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167179', 'tblTempUsageDetail_20' ) start [2025-01-03 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167179', 'tblTempUsageDetail_20' ) end [2025-01-03 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167179', 'tblTempVendorCDR_20' ) start [2025-01-03 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167179', 'tblTempVendorCDR_20' ) end [2025-01-03 17:49:20] Production.INFO: ProcessCDR(1,14167179,1,1,2) [2025-01-03 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167179', 'tblTempUsageDetail_20' ) start [2025-01-03 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167179', 'tblTempUsageDetail_20' ) end [2025-01-03 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:49:23] Production.INFO: ==19949== Releasing lock... [2025-01-03 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:49:23] Production.INFO: 56 MB #Memory Used# [2025-01-03 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:50:05 [end_date_ymd] => 2025-01-03 17:50:05 [RateCDR] => 1 ) [2025-01-03 17: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-01-03 14:50:05' and `end` < '2025-01-03 17: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-01-03 17:50:18] Production.INFO: count ==3581 [2025-01-03 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:50:05 - End Time 2025-01-03 17:50:05 [2025-01-03 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167184', 'tblTempUsageDetail_20' ) start [2025-01-03 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167184', 'tblTempUsageDetail_20' ) end [2025-01-03 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167184', 'tblTempVendorCDR_20' ) start [2025-01-03 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167184', 'tblTempVendorCDR_20' ) end [2025-01-03 17:50:20] Production.INFO: ProcessCDR(1,14167184,1,1,2) [2025-01-03 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167184', 'tblTempUsageDetail_20' ) start [2025-01-03 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167184', 'tblTempUsageDetail_20' ) end [2025-01-03 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:50:23] Production.INFO: ==20030== Releasing lock... [2025-01-03 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:50:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:51:05 [end_date_ymd] => 2025-01-03 17:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:51:05' and `end` < '2025-01-03 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-01-03 17:51:18] Production.INFO: count ==3567 [2025-01-03 17:51:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:51:05 - End Time 2025-01-03 17:51:05 [2025-01-03 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167190', 'tblTempUsageDetail_20' ) start [2025-01-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167190', 'tblTempUsageDetail_20' ) end [2025-01-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167190', 'tblTempVendorCDR_20' ) start [2025-01-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167190', 'tblTempVendorCDR_20' ) end [2025-01-03 17:51:20] Production.INFO: ProcessCDR(1,14167190,1,1,2) [2025-01-03 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167190', 'tblTempUsageDetail_20' ) start [2025-01-03 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167190', 'tblTempUsageDetail_20' ) end [2025-01-03 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:51:24] Production.INFO: ==20108== Releasing lock... [2025-01-03 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:51:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:52:06 [end_date_ymd] => 2025-01-03 17:52:06 [RateCDR] => 1 ) [2025-01-03 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:52:06' and `end` < '2025-01-03 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:52:24] Production.INFO: count ==3556 [2025-01-03 17:52:25] Production.ERROR: pbx CDR StartTime 2025-01-03 14:52:06 - End Time 2025-01-03 17:52:06 [2025-01-03 17:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167195', 'tblTempUsageDetail_20' ) start [2025-01-03 17:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167195', 'tblTempUsageDetail_20' ) end [2025-01-03 17:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167195', 'tblTempVendorCDR_20' ) start [2025-01-03 17:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167195', 'tblTempVendorCDR_20' ) end [2025-01-03 17:52:25] Production.INFO: ProcessCDR(1,14167195,1,1,2) [2025-01-03 17:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167195', 'tblTempUsageDetail_20' ) start [2025-01-03 17:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167195', 'tblTempUsageDetail_20' ) end [2025-01-03 17:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:52:30] Production.INFO: ==20187== Releasing lock... [2025-01-03 17:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:52:30] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:53:05 [end_date_ymd] => 2025-01-03 17:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:53:05' and `end` < '2025-01-03 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-01-03 17:53:21] Production.INFO: count ==3576 [2025-01-03 17:53:23] Production.ERROR: pbx CDR StartTime 2025-01-03 14:53:05 - End Time 2025-01-03 17:53:05 [2025-01-03 17:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167200', 'tblTempUsageDetail_20' ) start [2025-01-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167200', 'tblTempUsageDetail_20' ) end [2025-01-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167200', 'tblTempVendorCDR_20' ) start [2025-01-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167200', 'tblTempVendorCDR_20' ) end [2025-01-03 17:53:23] Production.INFO: ProcessCDR(1,14167200,1,1,2) [2025-01-03 17:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167200', 'tblTempUsageDetail_20' ) start [2025-01-03 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167200', 'tblTempUsageDetail_20' ) end [2025-01-03 17:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:53:28] Production.INFO: ==20303== Releasing lock... [2025-01-03 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:53:28] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:54:05 [end_date_ymd] => 2025-01-03 17:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:54:05' and `end` < '2025-01-03 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-01-03 17:54:19] Production.INFO: count ==3569 [2025-01-03 17:54:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:54:05 - End Time 2025-01-03 17:54:05 [2025-01-03 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167205', 'tblTempUsageDetail_20' ) start [2025-01-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167205', 'tblTempUsageDetail_20' ) end [2025-01-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167205', 'tblTempVendorCDR_20' ) start [2025-01-03 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167205', 'tblTempVendorCDR_20' ) end [2025-01-03 17:54:20] Production.INFO: ProcessCDR(1,14167205,1,1,2) [2025-01-03 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167205', 'tblTempUsageDetail_20' ) start [2025-01-03 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167205', 'tblTempUsageDetail_20' ) end [2025-01-03 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:54:24] Production.INFO: ==20380== Releasing lock... [2025-01-03 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:54:24] Production.INFO: 56 MB #Memory Used# [2025-01-03 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:55:05 [end_date_ymd] => 2025-01-03 17:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:55:05' and `end` < '2025-01-03 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-01-03 17:55:18] Production.INFO: count ==3577 [2025-01-03 17:55:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:55:05 - End Time 2025-01-03 17:55:05 [2025-01-03 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167210', 'tblTempUsageDetail_20' ) start [2025-01-03 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167210', 'tblTempUsageDetail_20' ) end [2025-01-03 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167210', 'tblTempVendorCDR_20' ) start [2025-01-03 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167210', 'tblTempVendorCDR_20' ) end [2025-01-03 17:55:19] Production.INFO: ProcessCDR(1,14167210,1,1,2) [2025-01-03 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167210', 'tblTempUsageDetail_20' ) start [2025-01-03 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167210', 'tblTempUsageDetail_20' ) end [2025-01-03 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:55:24] Production.INFO: ==20458== Releasing lock... [2025-01-03 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:55:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:56:05 [end_date_ymd] => 2025-01-03 17:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:56:05' and `end` < '2025-01-03 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-01-03 17:56:18] Production.INFO: count ==3588 [2025-01-03 17:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:56:05 - End Time 2025-01-03 17:56:05 [2025-01-03 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167215', 'tblTempUsageDetail_20' ) start [2025-01-03 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167215', 'tblTempUsageDetail_20' ) end [2025-01-03 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167215', 'tblTempVendorCDR_20' ) start [2025-01-03 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167215', 'tblTempVendorCDR_20' ) end [2025-01-03 17:56:19] Production.INFO: ProcessCDR(1,14167215,1,1,2) [2025-01-03 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167215', 'tblTempUsageDetail_20' ) start [2025-01-03 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167215', 'tblTempUsageDetail_20' ) end [2025-01-03 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:56:23] Production.INFO: ==20535== Releasing lock... [2025-01-03 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:56:23] Production.INFO: 56 MB #Memory Used# [2025-01-03 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:57:04 [end_date_ymd] => 2025-01-03 17:57:04 [RateCDR] => 1 ) [2025-01-03 17:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:57:04' and `end` < '2025-01-03 17:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:57:19] Production.INFO: count ==3587 [2025-01-03 17:57:20] Production.ERROR: pbx CDR StartTime 2025-01-03 14:57:04 - End Time 2025-01-03 17:57:04 [2025-01-03 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167220', 'tblTempUsageDetail_20' ) start [2025-01-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167220', 'tblTempUsageDetail_20' ) end [2025-01-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167220', 'tblTempVendorCDR_20' ) start [2025-01-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167220', 'tblTempVendorCDR_20' ) end [2025-01-03 17:57:20] Production.INFO: ProcessCDR(1,14167220,1,1,2) [2025-01-03 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167220', 'tblTempUsageDetail_20' ) start [2025-01-03 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167220', 'tblTempUsageDetail_20' ) end [2025-01-03 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:57:24] Production.INFO: ==20613== Releasing lock... [2025-01-03 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:57:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:58:05 [end_date_ymd] => 2025-01-03 17:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 14:58:05' and `end` < '2025-01-03 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-01-03 17:58:18] Production.INFO: count ==3578 [2025-01-03 17:58:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:58:05 - End Time 2025-01-03 17:58:05 [2025-01-03 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167225', 'tblTempUsageDetail_20' ) start [2025-01-03 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167225', 'tblTempUsageDetail_20' ) end [2025-01-03 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167225', 'tblTempVendorCDR_20' ) start [2025-01-03 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167225', 'tblTempVendorCDR_20' ) end [2025-01-03 17:58:19] Production.INFO: ProcessCDR(1,14167225,1,1,2) [2025-01-03 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167225', 'tblTempUsageDetail_20' ) start [2025-01-03 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167225', 'tblTempUsageDetail_20' ) end [2025-01-03 17:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:58:23] Production.INFO: ==20689== Releasing lock... [2025-01-03 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:58:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 14:59:05 [end_date_ymd] => 2025-01-03 17:59:05 [RateCDR] => 1 ) [2025-01-03 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 14:59:05' and `end` < '2025-01-03 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 17:59:18] Production.INFO: count ==3579 [2025-01-03 17:59:19] Production.ERROR: pbx CDR StartTime 2025-01-03 14:59:05 - End Time 2025-01-03 17:59:05 [2025-01-03 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167230', 'tblTempUsageDetail_20' ) start [2025-01-03 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167230', 'tblTempUsageDetail_20' ) end [2025-01-03 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167230', 'tblTempVendorCDR_20' ) start [2025-01-03 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167230', 'tblTempVendorCDR_20' ) end [2025-01-03 17:59:19] Production.INFO: ProcessCDR(1,14167230,1,1,2) [2025-01-03 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167230', 'tblTempUsageDetail_20' ) start [2025-01-03 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167230', 'tblTempUsageDetail_20' ) end [2025-01-03 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 17:59:22] Production.INFO: ==20760== Releasing lock... [2025-01-03 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 17:59:22] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:00:06 [end_date_ymd] => 2025-01-03 18:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:00:06' and `end` < '2025-01-03 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-01-03 18:00:19] Production.INFO: count ==3571 [2025-01-03 18:00:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:00:06 - End Time 2025-01-03 18:00:06 [2025-01-03 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167236', 'tblTempUsageDetail_20' ) start [2025-01-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167236', 'tblTempUsageDetail_20' ) end [2025-01-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167236', 'tblTempVendorCDR_20' ) start [2025-01-03 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167236', 'tblTempVendorCDR_20' ) end [2025-01-03 18:00:21] Production.INFO: ProcessCDR(1,14167236,1,1,2) [2025-01-03 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167236', 'tblTempUsageDetail_20' ) start [2025-01-03 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167236', 'tblTempUsageDetail_20' ) end [2025-01-03 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:00:25] Production.INFO: ==20840== Releasing lock... [2025-01-03 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:00:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:01:05 [end_date_ymd] => 2025-01-03 18:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:01:05' and `end` < '2025-01-03 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-01-03 18:01:23] Production.INFO: count ==3581 [2025-01-03 18:01:25] Production.ERROR: pbx CDR StartTime 2025-01-03 15:01:05 - End Time 2025-01-03 18:01:05 [2025-01-03 18:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167241', 'tblTempUsageDetail_20' ) start [2025-01-03 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167241', 'tblTempUsageDetail_20' ) end [2025-01-03 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167241', 'tblTempVendorCDR_20' ) start [2025-01-03 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167241', 'tblTempVendorCDR_20' ) end [2025-01-03 18:01:25] Production.INFO: ProcessCDR(1,14167241,1,1,2) [2025-01-03 18:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167241', 'tblTempUsageDetail_20' ) start [2025-01-03 18:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167241', 'tblTempUsageDetail_20' ) end [2025-01-03 18:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:01:29] Production.INFO: ==20927== Releasing lock... [2025-01-03 18:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:01:29] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:02:05 [end_date_ymd] => 2025-01-03 18:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:02:05' and `end` < '2025-01-03 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-01-03 18:02:23] Production.INFO: count ==3586 [2025-01-03 18:02:24] Production.ERROR: pbx CDR StartTime 2025-01-03 15:02:05 - End Time 2025-01-03 18:02:05 [2025-01-03 18:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167246', 'tblTempUsageDetail_20' ) start [2025-01-03 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167246', 'tblTempUsageDetail_20' ) end [2025-01-03 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167246', 'tblTempVendorCDR_20' ) start [2025-01-03 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167246', 'tblTempVendorCDR_20' ) end [2025-01-03 18:02:24] Production.INFO: ProcessCDR(1,14167246,1,1,2) [2025-01-03 18:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167246', 'tblTempUsageDetail_20' ) start [2025-01-03 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167246', 'tblTempUsageDetail_20' ) end [2025-01-03 18:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:02:29] Production.INFO: ==21009== Releasing lock... [2025-01-03 18:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:02:29] Production.INFO: 55 MB #Memory Used# [2025-01-03 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:03:05 [end_date_ymd] => 2025-01-03 18:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:03:05' and `end` < '2025-01-03 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-01-03 18:03:19] Production.INFO: count ==3582 [2025-01-03 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:03:05 - End Time 2025-01-03 18:03:05 [2025-01-03 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167251', 'tblTempUsageDetail_20' ) start [2025-01-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167251', 'tblTempUsageDetail_20' ) end [2025-01-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167251', 'tblTempVendorCDR_20' ) start [2025-01-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167251', 'tblTempVendorCDR_20' ) end [2025-01-03 18:03:21] Production.INFO: ProcessCDR(1,14167251,1,1,2) [2025-01-03 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167251', 'tblTempUsageDetail_20' ) start [2025-01-03 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167251', 'tblTempUsageDetail_20' ) end [2025-01-03 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:03:25] Production.INFO: ==21088== Releasing lock... [2025-01-03 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:03:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:04:05 [end_date_ymd] => 2025-01-03 18:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:04:05' and `end` < '2025-01-03 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-01-03 18:04:18] Production.INFO: count ==3568 [2025-01-03 18:04:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:04:05 - End Time 2025-01-03 18:04:05 [2025-01-03 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167256', 'tblTempUsageDetail_20' ) start [2025-01-03 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167256', 'tblTempUsageDetail_20' ) end [2025-01-03 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167256', 'tblTempVendorCDR_20' ) start [2025-01-03 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167256', 'tblTempVendorCDR_20' ) end [2025-01-03 18:04:20] Production.INFO: ProcessCDR(1,14167256,1,1,2) [2025-01-03 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167256', 'tblTempUsageDetail_20' ) start [2025-01-03 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167256', 'tblTempUsageDetail_20' ) end [2025-01-03 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:04:23] Production.INFO: ==21160== Releasing lock... [2025-01-03 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:04:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:05:05 [end_date_ymd] => 2025-01-03 18:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:05:05' and `end` < '2025-01-03 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-01-03 18:05:21] Production.INFO: count ==3566 [2025-01-03 18:05:23] Production.ERROR: pbx CDR StartTime 2025-01-03 15:05:05 - End Time 2025-01-03 18:05:05 [2025-01-03 18:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167261', 'tblTempUsageDetail_20' ) start [2025-01-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167261', 'tblTempUsageDetail_20' ) end [2025-01-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167261', 'tblTempVendorCDR_20' ) start [2025-01-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167261', 'tblTempVendorCDR_20' ) end [2025-01-03 18:05:23] Production.INFO: ProcessCDR(1,14167261,1,1,2) [2025-01-03 18:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167261', 'tblTempUsageDetail_20' ) start [2025-01-03 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167261', 'tblTempUsageDetail_20' ) end [2025-01-03 18:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:05:28] Production.INFO: ==21232== Releasing lock... [2025-01-03 18:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:05:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-03 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:06:05 [end_date_ymd] => 2025-01-03 18:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:06:05' and `end` < '2025-01-03 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-01-03 18:06:19] Production.INFO: count ==3561 [2025-01-03 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:06:05 - End Time 2025-01-03 18:06:05 [2025-01-03 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167266', 'tblTempUsageDetail_20' ) start [2025-01-03 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167266', 'tblTempUsageDetail_20' ) end [2025-01-03 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167266', 'tblTempVendorCDR_20' ) start [2025-01-03 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167266', 'tblTempVendorCDR_20' ) end [2025-01-03 18:06:20] Production.INFO: ProcessCDR(1,14167266,1,1,2) [2025-01-03 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167266', 'tblTempUsageDetail_20' ) start [2025-01-03 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167266', 'tblTempUsageDetail_20' ) end [2025-01-03 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:06:25] Production.INFO: ==21312== Releasing lock... [2025-01-03 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:06:25] Production.INFO: 55 MB #Memory Used# [2025-01-03 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:07:05 [end_date_ymd] => 2025-01-03 18:07:05 [RateCDR] => 1 ) [2025-01-03 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:07:05' and `end` < '2025-01-03 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:07:18] Production.INFO: count ==3556 [2025-01-03 18:07:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:07:05 - End Time 2025-01-03 18:07:05 [2025-01-03 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167271', 'tblTempUsageDetail_20' ) start [2025-01-03 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167271', 'tblTempUsageDetail_20' ) end [2025-01-03 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167271', 'tblTempVendorCDR_20' ) start [2025-01-03 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167271', 'tblTempVendorCDR_20' ) end [2025-01-03 18:07:19] Production.INFO: ProcessCDR(1,14167271,1,1,2) [2025-01-03 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167271', 'tblTempUsageDetail_20' ) start [2025-01-03 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167271', 'tblTempUsageDetail_20' ) end [2025-01-03 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:07:24] Production.INFO: ==21389== Releasing lock... [2025-01-03 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:07:24] Production.INFO: 55 MB #Memory Used# [2025-01-03 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:08:05 [end_date_ymd] => 2025-01-03 18:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:08:05' and `end` < '2025-01-03 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-01-03 18:08:26] Production.INFO: count ==3535 [2025-01-03 18:08:27] Production.ERROR: pbx CDR StartTime 2025-01-03 15:08:05 - End Time 2025-01-03 18:08:05 [2025-01-03 18:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167276', 'tblTempUsageDetail_20' ) start [2025-01-03 18:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167276', 'tblTempUsageDetail_20' ) end [2025-01-03 18:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167276', 'tblTempVendorCDR_20' ) start [2025-01-03 18:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167276', 'tblTempVendorCDR_20' ) end [2025-01-03 18:08:27] Production.INFO: ProcessCDR(1,14167276,1,1,2) [2025-01-03 18:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167276', 'tblTempUsageDetail_20' ) start [2025-01-03 18:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167276', 'tblTempUsageDetail_20' ) end [2025-01-03 18:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:08:31] Production.INFO: ==21467== Releasing lock... [2025-01-03 18:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:08:31] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:09:05 [end_date_ymd] => 2025-01-03 18:09:05 [RateCDR] => 1 ) [2025-01-03 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:09:05' and `end` < '2025-01-03 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-01-03 18:09:18] Production.INFO: count ==3525 [2025-01-03 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:09:05 - End Time 2025-01-03 18:09:05 [2025-01-03 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167281', 'tblTempUsageDetail_20' ) start [2025-01-03 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167281', 'tblTempUsageDetail_20' ) end [2025-01-03 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167281', 'tblTempVendorCDR_20' ) start [2025-01-03 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167281', 'tblTempVendorCDR_20' ) end [2025-01-03 18:09:19] Production.INFO: ProcessCDR(1,14167281,1,1,2) [2025-01-03 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167281', 'tblTempUsageDetail_20' ) start [2025-01-03 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167281', 'tblTempUsageDetail_20' ) end [2025-01-03 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:09:23] Production.INFO: ==21582== Releasing lock... [2025-01-03 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:09:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:10:05 [end_date_ymd] => 2025-01-03 18:10:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:10:05' and `end` < '2025-01-03 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-01-03 18:10:19] Production.INFO: count ==3516 [2025-01-03 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:10:05 - End Time 2025-01-03 18:10:05 [2025-01-03 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167287', 'tblTempUsageDetail_20' ) start [2025-01-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167287', 'tblTempUsageDetail_20' ) end [2025-01-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167287', 'tblTempVendorCDR_20' ) start [2025-01-03 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167287', 'tblTempVendorCDR_20' ) end [2025-01-03 18:10:20] Production.INFO: ProcessCDR(1,14167287,1,1,2) [2025-01-03 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167287', 'tblTempUsageDetail_20' ) start [2025-01-03 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167287', 'tblTempUsageDetail_20' ) end [2025-01-03 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:10:25] Production.INFO: ==21661== Releasing lock... [2025-01-03 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:10:25] Production.INFO: 54.25 MB #Memory Used# [2025-01-03 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:11:05 [end_date_ymd] => 2025-01-03 18:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:11:05' and `end` < '2025-01-03 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-01-03 18:11:22] Production.INFO: count ==3567 [2025-01-03 18:11:23] Production.ERROR: pbx CDR StartTime 2025-01-03 15:11:05 - End Time 2025-01-03 18:11:05 [2025-01-03 18:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167292', 'tblTempUsageDetail_20' ) start [2025-01-03 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167292', 'tblTempUsageDetail_20' ) end [2025-01-03 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167292', 'tblTempVendorCDR_20' ) start [2025-01-03 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167292', 'tblTempVendorCDR_20' ) end [2025-01-03 18:11:23] Production.INFO: ProcessCDR(1,14167292,1,1,2) [2025-01-03 18:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167292', 'tblTempUsageDetail_20' ) start [2025-01-03 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167292', 'tblTempUsageDetail_20' ) end [2025-01-03 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:11:27] Production.INFO: ==21735== Releasing lock... [2025-01-03 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:11:27] Production.INFO: 55.5 MB #Memory Used# [2025-01-03 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:12:04 [end_date_ymd] => 2025-01-03 18:12:04 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:12:04' and `end` < '2025-01-03 18: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-01-03 18:12:20] Production.INFO: count ==3546 [2025-01-03 18:12:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:12:04 - End Time 2025-01-03 18:12:04 [2025-01-03 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167297', 'tblTempUsageDetail_20' ) start [2025-01-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167297', 'tblTempUsageDetail_20' ) end [2025-01-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167297', 'tblTempVendorCDR_20' ) start [2025-01-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167297', 'tblTempVendorCDR_20' ) end [2025-01-03 18:12:21] Production.INFO: ProcessCDR(1,14167297,1,1,2) [2025-01-03 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167297', 'tblTempUsageDetail_20' ) start [2025-01-03 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167297', 'tblTempUsageDetail_20' ) end [2025-01-03 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:12:24] Production.INFO: ==21808== Releasing lock... [2025-01-03 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:12:24] Production.INFO: 55 MB #Memory Used# [2025-01-03 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:13:05 [end_date_ymd] => 2025-01-03 18:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:13:05' and `end` < '2025-01-03 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-01-03 18:13:20] Production.INFO: count ==3543 [2025-01-03 18:13:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:13:05 - End Time 2025-01-03 18:13:05 [2025-01-03 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167302', 'tblTempUsageDetail_20' ) start [2025-01-03 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167302', 'tblTempUsageDetail_20' ) end [2025-01-03 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167302', 'tblTempVendorCDR_20' ) start [2025-01-03 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167302', 'tblTempVendorCDR_20' ) end [2025-01-03 18:13:21] Production.INFO: ProcessCDR(1,14167302,1,1,2) [2025-01-03 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167302', 'tblTempUsageDetail_20' ) start [2025-01-03 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167302', 'tblTempUsageDetail_20' ) end [2025-01-03 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:13:24] Production.INFO: ==21886== Releasing lock... [2025-01-03 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:13:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-03 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:14:06 [end_date_ymd] => 2025-01-03 18:14:06 [RateCDR] => 1 ) [2025-01-03 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:14:06' and `end` < '2025-01-03 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:14:20] Production.INFO: count ==3541 [2025-01-03 18:14:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:14:06 - End Time 2025-01-03 18:14:06 [2025-01-03 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167307', 'tblTempUsageDetail_20' ) start [2025-01-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167307', 'tblTempUsageDetail_20' ) end [2025-01-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167307', 'tblTempVendorCDR_20' ) start [2025-01-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167307', 'tblTempVendorCDR_20' ) end [2025-01-03 18:14:21] Production.INFO: ProcessCDR(1,14167307,1,1,2) [2025-01-03 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167307', 'tblTempUsageDetail_20' ) start [2025-01-03 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167307', 'tblTempUsageDetail_20' ) end [2025-01-03 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:14:25] Production.INFO: ==21961== Releasing lock... [2025-01-03 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:14:25] Production.INFO: 54.5 MB #Memory Used# [2025-01-03 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:15:04 [end_date_ymd] => 2025-01-03 18:15:04 [RateCDR] => 1 ) [2025-01-03 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:15:04' and `end` < '2025-01-03 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:15:18] Production.INFO: count ==3533 [2025-01-03 18:15:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:15:04 - End Time 2025-01-03 18:15:04 [2025-01-03 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167312', 'tblTempUsageDetail_20' ) start [2025-01-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167312', 'tblTempUsageDetail_20' ) end [2025-01-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167312', 'tblTempVendorCDR_20' ) start [2025-01-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167312', 'tblTempVendorCDR_20' ) end [2025-01-03 18:15:19] Production.INFO: ProcessCDR(1,14167312,1,1,2) [2025-01-03 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167312', 'tblTempUsageDetail_20' ) start [2025-01-03 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167312', 'tblTempUsageDetail_20' ) end [2025-01-03 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:15:22] Production.INFO: ==22035== Releasing lock... [2025-01-03 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:15:22] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:16:05 [end_date_ymd] => 2025-01-03 18:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:16:05' and `end` < '2025-01-03 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-01-03 18:16:19] Production.INFO: count ==3516 [2025-01-03 18:16:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:16:05 - End Time 2025-01-03 18:16:05 [2025-01-03 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167317', 'tblTempUsageDetail_20' ) start [2025-01-03 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167317', 'tblTempUsageDetail_20' ) end [2025-01-03 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167317', 'tblTempVendorCDR_20' ) start [2025-01-03 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167317', 'tblTempVendorCDR_20' ) end [2025-01-03 18:16:20] Production.INFO: ProcessCDR(1,14167317,1,1,2) [2025-01-03 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167317', 'tblTempUsageDetail_20' ) start [2025-01-03 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167317', 'tblTempUsageDetail_20' ) end [2025-01-03 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:16:23] Production.INFO: ==22108== Releasing lock... [2025-01-03 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:16:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-03 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:17:05 [end_date_ymd] => 2025-01-03 18:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:17:05' and `end` < '2025-01-03 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-01-03 18:17:19] Production.INFO: count ==3505 [2025-01-03 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:17:05 - End Time 2025-01-03 18:17:05 [2025-01-03 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167322', 'tblTempUsageDetail_20' ) start [2025-01-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167322', 'tblTempUsageDetail_20' ) end [2025-01-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167322', 'tblTempVendorCDR_20' ) start [2025-01-03 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167322', 'tblTempVendorCDR_20' ) end [2025-01-03 18:17:20] Production.INFO: ProcessCDR(1,14167322,1,1,2) [2025-01-03 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167322', 'tblTempUsageDetail_20' ) start [2025-01-03 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167322', 'tblTempUsageDetail_20' ) end [2025-01-03 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:17:24] Production.INFO: ==22180== Releasing lock... [2025-01-03 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:17:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-03 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:18:05 [end_date_ymd] => 2025-01-03 18:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:18:05' and `end` < '2025-01-03 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-01-03 18:18:20] Production.INFO: count ==3494 [2025-01-03 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:18:05 - End Time 2025-01-03 18:18:05 [2025-01-03 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167327', 'tblTempUsageDetail_20' ) start [2025-01-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167327', 'tblTempUsageDetail_20' ) end [2025-01-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167327', 'tblTempVendorCDR_20' ) start [2025-01-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167327', 'tblTempVendorCDR_20' ) end [2025-01-03 18:18:21] Production.INFO: ProcessCDR(1,14167327,1,1,2) [2025-01-03 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167327', 'tblTempUsageDetail_20' ) start [2025-01-03 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167327', 'tblTempUsageDetail_20' ) end [2025-01-03 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:18:25] Production.INFO: ==22254== Releasing lock... [2025-01-03 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:18:25] Production.INFO: 54 MB #Memory Used# [2025-01-03 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:19:05 [end_date_ymd] => 2025-01-03 18:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:19:05' and `end` < '2025-01-03 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-01-03 18:19:18] Production.INFO: count ==3493 [2025-01-03 18:19:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:19:05 - End Time 2025-01-03 18:19:05 [2025-01-03 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167332', 'tblTempUsageDetail_20' ) start [2025-01-03 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167332', 'tblTempUsageDetail_20' ) end [2025-01-03 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167332', 'tblTempVendorCDR_20' ) start [2025-01-03 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167332', 'tblTempVendorCDR_20' ) end [2025-01-03 18:19:19] Production.INFO: ProcessCDR(1,14167332,1,1,2) [2025-01-03 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167332', 'tblTempUsageDetail_20' ) start [2025-01-03 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167332', 'tblTempUsageDetail_20' ) end [2025-01-03 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:19:22] Production.INFO: ==22323== Releasing lock... [2025-01-03 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:19:22] Production.INFO: 54 MB #Memory Used# [2025-01-03 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:20:05 [end_date_ymd] => 2025-01-03 18:20:05 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:20:05' and `end` < '2025-01-03 18: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-01-03 18:20:19] Production.INFO: count ==3478 [2025-01-03 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:20:05 - End Time 2025-01-03 18:20:05 [2025-01-03 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167337', 'tblTempUsageDetail_20' ) start [2025-01-03 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167337', 'tblTempUsageDetail_20' ) end [2025-01-03 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167337', 'tblTempVendorCDR_20' ) start [2025-01-03 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167337', 'tblTempVendorCDR_20' ) end [2025-01-03 18:20:20] Production.INFO: ProcessCDR(1,14167337,1,1,2) [2025-01-03 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167337', 'tblTempUsageDetail_20' ) start [2025-01-03 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167337', 'tblTempUsageDetail_20' ) end [2025-01-03 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:20:23] Production.INFO: ==22399== Releasing lock... [2025-01-03 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:20:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-03 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:21:05 [end_date_ymd] => 2025-01-03 18:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:21:05' and `end` < '2025-01-03 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-01-03 18:21:20] Production.INFO: count ==3455 [2025-01-03 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:21:05 - End Time 2025-01-03 18:21:05 [2025-01-03 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167343', 'tblTempUsageDetail_20' ) start [2025-01-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167343', 'tblTempUsageDetail_20' ) end [2025-01-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167343', 'tblTempVendorCDR_20' ) start [2025-01-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167343', 'tblTempVendorCDR_20' ) end [2025-01-03 18:21:21] Production.INFO: ProcessCDR(1,14167343,1,1,2) [2025-01-03 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167343', 'tblTempUsageDetail_20' ) start [2025-01-03 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167343', 'tblTempUsageDetail_20' ) end [2025-01-03 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:21:24] Production.INFO: ==22476== Releasing lock... [2025-01-03 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:21:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-03 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:22:05 [end_date_ymd] => 2025-01-03 18:22:05 [RateCDR] => 1 ) [2025-01-03 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:22:05' and `end` < '2025-01-03 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:22:19] Production.INFO: count ==3440 [2025-01-03 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:22:05 - End Time 2025-01-03 18:22:05 [2025-01-03 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167348', 'tblTempUsageDetail_20' ) start [2025-01-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167348', 'tblTempUsageDetail_20' ) end [2025-01-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167348', 'tblTempVendorCDR_20' ) start [2025-01-03 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167348', 'tblTempVendorCDR_20' ) end [2025-01-03 18:22:20] Production.INFO: ProcessCDR(1,14167348,1,1,2) [2025-01-03 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167348', 'tblTempUsageDetail_20' ) start [2025-01-03 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167348', 'tblTempUsageDetail_20' ) end [2025-01-03 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:22:24] Production.INFO: ==22546== Releasing lock... [2025-01-03 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:22:24] Production.INFO: 54 MB #Memory Used# [2025-01-03 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:23:05 [end_date_ymd] => 2025-01-03 18:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:23:05' and `end` < '2025-01-03 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-01-03 18:23:19] Production.INFO: count ==3430 [2025-01-03 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:23:05 - End Time 2025-01-03 18:23:05 [2025-01-03 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167353', 'tblTempUsageDetail_20' ) start [2025-01-03 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167353', 'tblTempUsageDetail_20' ) end [2025-01-03 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167353', 'tblTempVendorCDR_20' ) start [2025-01-03 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167353', 'tblTempVendorCDR_20' ) end [2025-01-03 18:23:21] Production.INFO: ProcessCDR(1,14167353,1,1,2) [2025-01-03 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167353', 'tblTempUsageDetail_20' ) start [2025-01-03 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167353', 'tblTempUsageDetail_20' ) end [2025-01-03 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:23:25] Production.INFO: ==22617== Releasing lock... [2025-01-03 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:23:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-03 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:24:05 [end_date_ymd] => 2025-01-03 18:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:24:05' and `end` < '2025-01-03 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-01-03 18:24:18] Production.INFO: count ==3424 [2025-01-03 18:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:24:05 - End Time 2025-01-03 18:24:05 [2025-01-03 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167358', 'tblTempUsageDetail_20' ) start [2025-01-03 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167358', 'tblTempUsageDetail_20' ) end [2025-01-03 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167358', 'tblTempVendorCDR_20' ) start [2025-01-03 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167358', 'tblTempVendorCDR_20' ) end [2025-01-03 18:24:19] Production.INFO: ProcessCDR(1,14167358,1,1,2) [2025-01-03 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167358', 'tblTempUsageDetail_20' ) start [2025-01-03 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167358', 'tblTempUsageDetail_20' ) end [2025-01-03 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:24:24] Production.INFO: ==22690== Releasing lock... [2025-01-03 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:24:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:25:05 [end_date_ymd] => 2025-01-03 18:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:25:05' and `end` < '2025-01-03 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-01-03 18:25:18] Production.INFO: count ==3411 [2025-01-03 18:25:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:25:05 - End Time 2025-01-03 18:25:05 [2025-01-03 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167363', 'tblTempUsageDetail_20' ) start [2025-01-03 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167363', 'tblTempUsageDetail_20' ) end [2025-01-03 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167363', 'tblTempVendorCDR_20' ) start [2025-01-03 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167363', 'tblTempVendorCDR_20' ) end [2025-01-03 18:25:19] Production.INFO: ProcessCDR(1,14167363,1,1,2) [2025-01-03 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167363', 'tblTempUsageDetail_20' ) start [2025-01-03 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167363', 'tblTempUsageDetail_20' ) end [2025-01-03 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:25:22] Production.INFO: ==22799== Releasing lock... [2025-01-03 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:25:22] Production.INFO: 54 MB #Memory Used# [2025-01-03 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:26:05 [end_date_ymd] => 2025-01-03 18:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:26:05' and `end` < '2025-01-03 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-01-03 18:26:18] Production.INFO: count ==3403 [2025-01-03 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:26:05 - End Time 2025-01-03 18:26:05 [2025-01-03 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167368', 'tblTempUsageDetail_20' ) start [2025-01-03 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167368', 'tblTempUsageDetail_20' ) end [2025-01-03 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167368', 'tblTempVendorCDR_20' ) start [2025-01-03 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167368', 'tblTempVendorCDR_20' ) end [2025-01-03 18:26:19] Production.INFO: ProcessCDR(1,14167368,1,1,2) [2025-01-03 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167368', 'tblTempUsageDetail_20' ) start [2025-01-03 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167368', 'tblTempUsageDetail_20' ) end [2025-01-03 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:26:24] Production.INFO: ==22868== Releasing lock... [2025-01-03 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:26:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-03 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:27:04 [end_date_ymd] => 2025-01-03 18:27:04 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:27:04' and `end` < '2025-01-03 18: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-01-03 18:27:18] Production.INFO: count ==3392 [2025-01-03 18:27:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:27:04 - End Time 2025-01-03 18:27:04 [2025-01-03 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167373', 'tblTempUsageDetail_20' ) start [2025-01-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167373', 'tblTempUsageDetail_20' ) end [2025-01-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167373', 'tblTempVendorCDR_20' ) start [2025-01-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167373', 'tblTempVendorCDR_20' ) end [2025-01-03 18:27:19] Production.INFO: ProcessCDR(1,14167373,1,1,2) [2025-01-03 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167373', 'tblTempUsageDetail_20' ) start [2025-01-03 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167373', 'tblTempUsageDetail_20' ) end [2025-01-03 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:27:23] Production.INFO: ==22938== Releasing lock... [2025-01-03 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:27:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-03 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:28:05 [end_date_ymd] => 2025-01-03 18:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:28:05' and `end` < '2025-01-03 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-01-03 18:28:18] Production.INFO: count ==3378 [2025-01-03 18:28:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:28:05 - End Time 2025-01-03 18:28:05 [2025-01-03 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167378', 'tblTempUsageDetail_20' ) start [2025-01-03 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167378', 'tblTempUsageDetail_20' ) end [2025-01-03 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167378', 'tblTempVendorCDR_20' ) start [2025-01-03 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167378', 'tblTempVendorCDR_20' ) end [2025-01-03 18:28:19] Production.INFO: ProcessCDR(1,14167378,1,1,2) [2025-01-03 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167378', 'tblTempUsageDetail_20' ) start [2025-01-03 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167378', 'tblTempUsageDetail_20' ) end [2025-01-03 18:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:28:22] Production.INFO: ==23008== Releasing lock... [2025-01-03 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:28:22] Production.INFO: 53.5 MB #Memory Used# [2025-01-03 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:29:04 [end_date_ymd] => 2025-01-03 18:29:04 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:29:04' and `end` < '2025-01-03 18: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-01-03 18:29:24] Production.INFO: count ==3372 [2025-01-03 18:29:24] Production.ERROR: pbx CDR StartTime 2025-01-03 15:29:04 - End Time 2025-01-03 18:29:04 [2025-01-03 18:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167383', 'tblTempUsageDetail_20' ) start [2025-01-03 18:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167383', 'tblTempUsageDetail_20' ) end [2025-01-03 18:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167383', 'tblTempVendorCDR_20' ) start [2025-01-03 18:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167383', 'tblTempVendorCDR_20' ) end [2025-01-03 18:29:25] Production.INFO: ProcessCDR(1,14167383,1,1,2) [2025-01-03 18:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167383', 'tblTempUsageDetail_20' ) start [2025-01-03 18:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167383', 'tblTempUsageDetail_20' ) end [2025-01-03 18:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:29:29] Production.INFO: ==23082== Releasing lock... [2025-01-03 18:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:29:29] Production.INFO: 53.25 MB #Memory Used# [2025-01-03 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:30:05 [end_date_ymd] => 2025-01-03 18:30:05 [RateCDR] => 1 ) [2025-01-03 18:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:30:05' and `end` < '2025-01-03 18:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:30:19] Production.INFO: count ==3368 [2025-01-03 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:30:05 - End Time 2025-01-03 18:30:05 [2025-01-03 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167389', 'tblTempUsageDetail_20' ) start [2025-01-03 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167389', 'tblTempUsageDetail_20' ) end [2025-01-03 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167389', 'tblTempVendorCDR_20' ) start [2025-01-03 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167389', 'tblTempVendorCDR_20' ) end [2025-01-03 18:30:20] Production.INFO: ProcessCDR(1,14167389,1,1,2) [2025-01-03 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167389', 'tblTempUsageDetail_20' ) start [2025-01-03 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167389', 'tblTempUsageDetail_20' ) end [2025-01-03 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:30:23] Production.INFO: ==23156== Releasing lock... [2025-01-03 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:30:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-03 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:31:06 [end_date_ymd] => 2025-01-03 18:31:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:31:06' and `end` < '2025-01-03 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-01-03 18:31:19] Production.INFO: count ==3344 [2025-01-03 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:31:06 - End Time 2025-01-03 18:31:06 [2025-01-03 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167394', 'tblTempUsageDetail_20' ) start [2025-01-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167394', 'tblTempUsageDetail_20' ) end [2025-01-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167394', 'tblTempVendorCDR_20' ) start [2025-01-03 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167394', 'tblTempVendorCDR_20' ) end [2025-01-03 18:31:20] Production.INFO: ProcessCDR(1,14167394,1,1,2) [2025-01-03 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167394', 'tblTempUsageDetail_20' ) start [2025-01-03 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167394', 'tblTempUsageDetail_20' ) end [2025-01-03 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:31:25] Production.INFO: ==23231== Releasing lock... [2025-01-03 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:31:25] Production.INFO: 53.5 MB #Memory Used# [2025-01-03 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:32:05 [end_date_ymd] => 2025-01-03 18:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:32:05' and `end` < '2025-01-03 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-01-03 18:32:18] Production.INFO: count ==3328 [2025-01-03 18:32:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:32:05 - End Time 2025-01-03 18:32:05 [2025-01-03 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167399', 'tblTempUsageDetail_20' ) start [2025-01-03 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167399', 'tblTempUsageDetail_20' ) end [2025-01-03 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167399', 'tblTempVendorCDR_20' ) start [2025-01-03 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167399', 'tblTempVendorCDR_20' ) end [2025-01-03 18:32:19] Production.INFO: ProcessCDR(1,14167399,1,1,2) [2025-01-03 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167399', 'tblTempUsageDetail_20' ) start [2025-01-03 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167399', 'tblTempUsageDetail_20' ) end [2025-01-03 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:32:24] Production.INFO: ==23300== Releasing lock... [2025-01-03 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:32:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-03 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:33:05 [end_date_ymd] => 2025-01-03 18:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:33:05' and `end` < '2025-01-03 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-01-03 18:33:18] Production.INFO: count ==3316 [2025-01-03 18:33:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:33:05 - End Time 2025-01-03 18:33:05 [2025-01-03 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167404', 'tblTempUsageDetail_20' ) start [2025-01-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167404', 'tblTempUsageDetail_20' ) end [2025-01-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167404', 'tblTempVendorCDR_20' ) start [2025-01-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167404', 'tblTempVendorCDR_20' ) end [2025-01-03 18:33:19] Production.INFO: ProcessCDR(1,14167404,1,1,2) [2025-01-03 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167404', 'tblTempUsageDetail_20' ) start [2025-01-03 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167404', 'tblTempUsageDetail_20' ) end [2025-01-03 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:33:23] Production.INFO: ==23373== Releasing lock... [2025-01-03 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:33:23] Production.INFO: 52.75 MB #Memory Used# [2025-01-03 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:34:04 [end_date_ymd] => 2025-01-03 18:34:04 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:34:04' and `end` < '2025-01-03 18: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-01-03 18:34:18] Production.INFO: count ==3300 [2025-01-03 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:34:04 - End Time 2025-01-03 18:34:04 [2025-01-03 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167409', 'tblTempUsageDetail_20' ) start [2025-01-03 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167409', 'tblTempUsageDetail_20' ) end [2025-01-03 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167409', 'tblTempVendorCDR_20' ) start [2025-01-03 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167409', 'tblTempVendorCDR_20' ) end [2025-01-03 18:34:19] Production.INFO: ProcessCDR(1,14167409,1,1,2) [2025-01-03 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167409', 'tblTempUsageDetail_20' ) start [2025-01-03 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167409', 'tblTempUsageDetail_20' ) end [2025-01-03 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:34:22] Production.INFO: ==23445== Releasing lock... [2025-01-03 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:34:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-03 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:35:06 [end_date_ymd] => 2025-01-03 18:35:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:35:06' and `end` < '2025-01-03 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-01-03 18:35:19] Production.INFO: count ==3285 [2025-01-03 18:35:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:35:06 - End Time 2025-01-03 18:35:06 [2025-01-03 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167414', 'tblTempUsageDetail_20' ) start [2025-01-03 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167414', 'tblTempUsageDetail_20' ) end [2025-01-03 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167414', 'tblTempVendorCDR_20' ) start [2025-01-03 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167414', 'tblTempVendorCDR_20' ) end [2025-01-03 18:35:20] Production.INFO: ProcessCDR(1,14167414,1,1,2) [2025-01-03 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167414', 'tblTempUsageDetail_20' ) start [2025-01-03 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167414', 'tblTempUsageDetail_20' ) end [2025-01-03 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:35:23] Production.INFO: ==23522== Releasing lock... [2025-01-03 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:35:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-03 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:36:05 [end_date_ymd] => 2025-01-03 18:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:36:05' and `end` < '2025-01-03 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-01-03 18:36:19] Production.INFO: count ==3280 [2025-01-03 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:36:05 - End Time 2025-01-03 18:36:05 [2025-01-03 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167419', 'tblTempUsageDetail_20' ) start [2025-01-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167419', 'tblTempUsageDetail_20' ) end [2025-01-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167419', 'tblTempVendorCDR_20' ) start [2025-01-03 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167419', 'tblTempVendorCDR_20' ) end [2025-01-03 18:36:20] Production.INFO: ProcessCDR(1,14167419,1,1,2) [2025-01-03 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167419', 'tblTempUsageDetail_20' ) start [2025-01-03 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167419', 'tblTempUsageDetail_20' ) end [2025-01-03 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:36:24] Production.INFO: ==23594== Releasing lock... [2025-01-03 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:36:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-03 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:37:06 [end_date_ymd] => 2025-01-03 18:37:06 [RateCDR] => 1 ) [2025-01-03 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:37:06' and `end` < '2025-01-03 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:37:19] Production.INFO: count ==3267 [2025-01-03 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:37:06 - End Time 2025-01-03 18:37:06 [2025-01-03 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167424', 'tblTempUsageDetail_20' ) start [2025-01-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167424', 'tblTempUsageDetail_20' ) end [2025-01-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167424', 'tblTempVendorCDR_20' ) start [2025-01-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167424', 'tblTempVendorCDR_20' ) end [2025-01-03 18:37:20] Production.INFO: ProcessCDR(1,14167424,1,1,2) [2025-01-03 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167424', 'tblTempUsageDetail_20' ) start [2025-01-03 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167424', 'tblTempUsageDetail_20' ) end [2025-01-03 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:37:25] Production.INFO: ==23665== Releasing lock... [2025-01-03 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:37:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-03 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:38:05 [end_date_ymd] => 2025-01-03 18:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:38:05' and `end` < '2025-01-03 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-01-03 18:38:18] Production.INFO: count ==3245 [2025-01-03 18:38:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:38:05 - End Time 2025-01-03 18:38:05 [2025-01-03 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167429', 'tblTempUsageDetail_20' ) start [2025-01-03 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167429', 'tblTempUsageDetail_20' ) end [2025-01-03 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167429', 'tblTempVendorCDR_20' ) start [2025-01-03 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167429', 'tblTempVendorCDR_20' ) end [2025-01-03 18:38:19] Production.INFO: ProcessCDR(1,14167429,1,1,2) [2025-01-03 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167429', 'tblTempUsageDetail_20' ) start [2025-01-03 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167429', 'tblTempUsageDetail_20' ) end [2025-01-03 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:38:23] Production.INFO: ==23738== Releasing lock... [2025-01-03 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:38:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-03 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:39:05 [end_date_ymd] => 2025-01-03 18:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:39:05' and `end` < '2025-01-03 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-01-03 18:39:18] Production.INFO: count ==3236 [2025-01-03 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:39:05 - End Time 2025-01-03 18:39:05 [2025-01-03 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167434', 'tblTempUsageDetail_20' ) start [2025-01-03 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167434', 'tblTempUsageDetail_20' ) end [2025-01-03 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167434', 'tblTempVendorCDR_20' ) start [2025-01-03 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167434', 'tblTempVendorCDR_20' ) end [2025-01-03 18:39:19] Production.INFO: ProcessCDR(1,14167434,1,1,2) [2025-01-03 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167434', 'tblTempUsageDetail_20' ) start [2025-01-03 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167434', 'tblTempUsageDetail_20' ) end [2025-01-03 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:39:24] Production.INFO: ==23811== Releasing lock... [2025-01-03 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:39:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-03 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:40:05 [end_date_ymd] => 2025-01-03 18:40:05 [RateCDR] => 1 ) [2025-01-03 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:40:05' and `end` < '2025-01-03 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:40:18] Production.INFO: count ==3224 [2025-01-03 18:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:40:05 - End Time 2025-01-03 18:40:05 [2025-01-03 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167439', 'tblTempUsageDetail_20' ) start [2025-01-03 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167439', 'tblTempUsageDetail_20' ) end [2025-01-03 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167439', 'tblTempVendorCDR_20' ) start [2025-01-03 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167439', 'tblTempVendorCDR_20' ) end [2025-01-03 18:40:19] Production.INFO: ProcessCDR(1,14167439,1,1,2) [2025-01-03 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167439', 'tblTempUsageDetail_20' ) start [2025-01-03 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167439', 'tblTempUsageDetail_20' ) end [2025-01-03 18:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:40:22] Production.INFO: ==23924== Releasing lock... [2025-01-03 18:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:40:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-03 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:41:05 [end_date_ymd] => 2025-01-03 18:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:41:05' and `end` < '2025-01-03 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-01-03 18:41:18] Production.INFO: count ==3187 [2025-01-03 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:41:05 - End Time 2025-01-03 18:41:05 [2025-01-03 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167445', 'tblTempUsageDetail_20' ) start [2025-01-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167445', 'tblTempUsageDetail_20' ) end [2025-01-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167445', 'tblTempVendorCDR_20' ) start [2025-01-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167445', 'tblTempVendorCDR_20' ) end [2025-01-03 18:41:19] Production.INFO: ProcessCDR(1,14167445,1,1,2) [2025-01-03 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167445', 'tblTempUsageDetail_20' ) start [2025-01-03 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167445', 'tblTempUsageDetail_20' ) end [2025-01-03 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:41:23] Production.INFO: ==23997== Releasing lock... [2025-01-03 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:41:23] Production.INFO: 52 MB #Memory Used# [2025-01-03 18:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:42:04 [end_date_ymd] => 2025-01-03 18:42:04 [RateCDR] => 1 ) [2025-01-03 18:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:42:04' and `end` < '2025-01-03 18:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:42:18] Production.INFO: count ==3170 [2025-01-03 18:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 15:42:04 - End Time 2025-01-03 18:42:04 [2025-01-03 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167450', 'tblTempUsageDetail_20' ) start [2025-01-03 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167450', 'tblTempUsageDetail_20' ) end [2025-01-03 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167450', 'tblTempVendorCDR_20' ) start [2025-01-03 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167450', 'tblTempVendorCDR_20' ) end [2025-01-03 18:42:19] Production.INFO: ProcessCDR(1,14167450,1,1,2) [2025-01-03 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167450', 'tblTempUsageDetail_20' ) start [2025-01-03 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167450', 'tblTempUsageDetail_20' ) end [2025-01-03 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:42:23] Production.INFO: ==24069== Releasing lock... [2025-01-03 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:42:23] Production.INFO: 52 MB #Memory Used# [2025-01-03 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:43:04 [end_date_ymd] => 2025-01-03 18:43:04 [RateCDR] => 1 ) [2025-01-03 18:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:43:04' and `end` < '2025-01-03 18:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:43:17] Production.INFO: count ==3164 [2025-01-03 18:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 15:43:04 - End Time 2025-01-03 18:43:04 [2025-01-03 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167455', 'tblTempUsageDetail_20' ) start [2025-01-03 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167455', 'tblTempUsageDetail_20' ) end [2025-01-03 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167455', 'tblTempVendorCDR_20' ) start [2025-01-03 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167455', 'tblTempVendorCDR_20' ) end [2025-01-03 18:43:18] Production.INFO: ProcessCDR(1,14167455,1,1,2) [2025-01-03 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167455', 'tblTempUsageDetail_20' ) start [2025-01-03 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167455', 'tblTempUsageDetail_20' ) end [2025-01-03 18:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:43:21] Production.INFO: ==24140== Releasing lock... [2025-01-03 18:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:43:21] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:44:05 [end_date_ymd] => 2025-01-03 18:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:44:05' and `end` < '2025-01-03 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-01-03 18:44:18] Production.INFO: count ==3154 [2025-01-03 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:44:05 - End Time 2025-01-03 18:44:05 [2025-01-03 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167460', 'tblTempUsageDetail_20' ) start [2025-01-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167460', 'tblTempUsageDetail_20' ) end [2025-01-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167460', 'tblTempVendorCDR_20' ) start [2025-01-03 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167460', 'tblTempVendorCDR_20' ) end [2025-01-03 18:44:19] Production.INFO: ProcessCDR(1,14167460,1,1,2) [2025-01-03 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167460', 'tblTempUsageDetail_20' ) start [2025-01-03 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167460', 'tblTempUsageDetail_20' ) end [2025-01-03 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:44:22] Production.INFO: ==24211== Releasing lock... [2025-01-03 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:44:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:45:05 [end_date_ymd] => 2025-01-03 18:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:45:05' and `end` < '2025-01-03 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-01-03 18:45:18] Production.INFO: count ==3150 [2025-01-03 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:45:05 - End Time 2025-01-03 18:45:05 [2025-01-03 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167465', 'tblTempUsageDetail_20' ) start [2025-01-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167465', 'tblTempUsageDetail_20' ) end [2025-01-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167465', 'tblTempVendorCDR_20' ) start [2025-01-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167465', 'tblTempVendorCDR_20' ) end [2025-01-03 18:45:19] Production.INFO: ProcessCDR(1,14167465,1,1,2) [2025-01-03 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167465', 'tblTempUsageDetail_20' ) start [2025-01-03 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167465', 'tblTempUsageDetail_20' ) end [2025-01-03 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:45:22] Production.INFO: ==24285== Releasing lock... [2025-01-03 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:45:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:46:05 [end_date_ymd] => 2025-01-03 18:46:05 [RateCDR] => 1 ) [2025-01-03 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:46:05' and `end` < '2025-01-03 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:46:20] Production.INFO: count ==3156 [2025-01-03 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:46:05 - End Time 2025-01-03 18:46:05 [2025-01-03 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167470', 'tblTempUsageDetail_20' ) start [2025-01-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167470', 'tblTempUsageDetail_20' ) end [2025-01-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167470', 'tblTempVendorCDR_20' ) start [2025-01-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167470', 'tblTempVendorCDR_20' ) end [2025-01-03 18:46:20] Production.INFO: ProcessCDR(1,14167470,1,1,2) [2025-01-03 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167470', 'tblTempUsageDetail_20' ) start [2025-01-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167470', 'tblTempUsageDetail_20' ) end [2025-01-03 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:46:24] Production.INFO: ==24384== Releasing lock... [2025-01-03 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:46:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-03 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:47:04 [end_date_ymd] => 2025-01-03 18:47:04 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:47:04' and `end` < '2025-01-03 18: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-01-03 18:47:19] Production.INFO: count ==3131 [2025-01-03 18:47:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:47:04 - End Time 2025-01-03 18:47:04 [2025-01-03 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167475', 'tblTempUsageDetail_20' ) start [2025-01-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167475', 'tblTempUsageDetail_20' ) end [2025-01-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167475', 'tblTempVendorCDR_20' ) start [2025-01-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167475', 'tblTempVendorCDR_20' ) end [2025-01-03 18:47:20] Production.INFO: ProcessCDR(1,14167475,1,1,2) [2025-01-03 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167475', 'tblTempUsageDetail_20' ) start [2025-01-03 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167475', 'tblTempUsageDetail_20' ) end [2025-01-03 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:47:24] Production.INFO: ==24546== Releasing lock... [2025-01-03 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:47:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:48:05 [end_date_ymd] => 2025-01-03 18:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:48:05' and `end` < '2025-01-03 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-01-03 18:48:19] Production.INFO: count ==3125 [2025-01-03 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:48:05 - End Time 2025-01-03 18:48:05 [2025-01-03 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167480', 'tblTempUsageDetail_20' ) start [2025-01-03 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167480', 'tblTempUsageDetail_20' ) end [2025-01-03 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167480', 'tblTempVendorCDR_20' ) start [2025-01-03 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167480', 'tblTempVendorCDR_20' ) end [2025-01-03 18:48:20] Production.INFO: ProcessCDR(1,14167480,1,1,2) [2025-01-03 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167480', 'tblTempUsageDetail_20' ) start [2025-01-03 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167480', 'tblTempUsageDetail_20' ) end [2025-01-03 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:48:25] Production.INFO: ==24619== Releasing lock... [2025-01-03 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:48:25] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:49:04 [end_date_ymd] => 2025-01-03 18:49:04 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:49:04' and `end` < '2025-01-03 18: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-01-03 18:49:18] Production.INFO: count ==3116 [2025-01-03 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:49:04 - End Time 2025-01-03 18:49:04 [2025-01-03 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167485', 'tblTempUsageDetail_20' ) start [2025-01-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167485', 'tblTempUsageDetail_20' ) end [2025-01-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167485', 'tblTempVendorCDR_20' ) start [2025-01-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167485', 'tblTempVendorCDR_20' ) end [2025-01-03 18:49:19] Production.INFO: ProcessCDR(1,14167485,1,1,2) [2025-01-03 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167485', 'tblTempUsageDetail_20' ) start [2025-01-03 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167485', 'tblTempUsageDetail_20' ) end [2025-01-03 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:49:22] Production.INFO: ==24691== Releasing lock... [2025-01-03 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:49:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-03 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:50:06 [end_date_ymd] => 2025-01-03 18:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:50:06' and `end` < '2025-01-03 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-01-03 18:50:21] Production.INFO: count ==3091 [2025-01-03 18:50:21] Production.ERROR: pbx CDR StartTime 2025-01-03 15:50:06 - End Time 2025-01-03 18:50:06 [2025-01-03 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167491', 'tblTempUsageDetail_20' ) start [2025-01-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167491', 'tblTempUsageDetail_20' ) end [2025-01-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167491', 'tblTempVendorCDR_20' ) start [2025-01-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167491', 'tblTempVendorCDR_20' ) end [2025-01-03 18:50:21] Production.INFO: ProcessCDR(1,14167491,1,1,2) [2025-01-03 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167491', 'tblTempUsageDetail_20' ) start [2025-01-03 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167491', 'tblTempUsageDetail_20' ) end [2025-01-03 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:50:25] Production.INFO: ==24767== Releasing lock... [2025-01-03 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:50:25] Production.INFO: 52 MB #Memory Used# [2025-01-03 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:51:04 [end_date_ymd] => 2025-01-03 18:51:04 [RateCDR] => 1 ) [2025-01-03 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:51:04' and `end` < '2025-01-03 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:51:18] Production.INFO: count ==3046 [2025-01-03 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:51:04 - End Time 2025-01-03 18:51:04 [2025-01-03 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167496', 'tblTempUsageDetail_20' ) start [2025-01-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167496', 'tblTempUsageDetail_20' ) end [2025-01-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167496', 'tblTempVendorCDR_20' ) start [2025-01-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167496', 'tblTempVendorCDR_20' ) end [2025-01-03 18:51:19] Production.INFO: ProcessCDR(1,14167496,1,1,2) [2025-01-03 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167496', 'tblTempUsageDetail_20' ) start [2025-01-03 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167496', 'tblTempUsageDetail_20' ) end [2025-01-03 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:51:22] Production.INFO: ==24838== Releasing lock... [2025-01-03 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:51:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-03 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:52:05 [end_date_ymd] => 2025-01-03 18:52:05 [RateCDR] => 1 ) [2025-01-03 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:52:05' and `end` < '2025-01-03 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:52:19] Production.INFO: count ==3028 [2025-01-03 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:52:05 - End Time 2025-01-03 18:52:05 [2025-01-03 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167501', 'tblTempUsageDetail_20' ) start [2025-01-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167501', 'tblTempUsageDetail_20' ) end [2025-01-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167501', 'tblTempVendorCDR_20' ) start [2025-01-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167501', 'tblTempVendorCDR_20' ) end [2025-01-03 18:52:19] Production.INFO: ProcessCDR(1,14167501,1,1,2) [2025-01-03 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167501', 'tblTempUsageDetail_20' ) start [2025-01-03 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167501', 'tblTempUsageDetail_20' ) end [2025-01-03 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:52:23] Production.INFO: ==24912== Releasing lock... [2025-01-03 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:52:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-03 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:53:05 [end_date_ymd] => 2025-01-03 18:53:05 [RateCDR] => 1 ) [2025-01-03 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:53:05' and `end` < '2025-01-03 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:53:19] Production.INFO: count ==3022 [2025-01-03 18:53:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:53:05 - End Time 2025-01-03 18:53:05 [2025-01-03 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167506', 'tblTempUsageDetail_20' ) start [2025-01-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167506', 'tblTempUsageDetail_20' ) end [2025-01-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167506', 'tblTempVendorCDR_20' ) start [2025-01-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167506', 'tblTempVendorCDR_20' ) end [2025-01-03 18:53:20] Production.INFO: ProcessCDR(1,14167506,1,1,2) [2025-01-03 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167506', 'tblTempUsageDetail_20' ) start [2025-01-03 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167506', 'tblTempUsageDetail_20' ) end [2025-01-03 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:53:23] Production.INFO: ==24984== Releasing lock... [2025-01-03 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:53:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-03 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:54:05 [end_date_ymd] => 2025-01-03 18:54:05 [RateCDR] => 1 ) [2025-01-03 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:54:05' and `end` < '2025-01-03 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:54:18] Production.INFO: count ==3015 [2025-01-03 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:54:05 - End Time 2025-01-03 18:54:05 [2025-01-03 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167511', 'tblTempUsageDetail_20' ) start [2025-01-03 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167511', 'tblTempUsageDetail_20' ) end [2025-01-03 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167511', 'tblTempVendorCDR_20' ) start [2025-01-03 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167511', 'tblTempVendorCDR_20' ) end [2025-01-03 18:54:19] Production.INFO: ProcessCDR(1,14167511,1,1,2) [2025-01-03 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167511', 'tblTempUsageDetail_20' ) start [2025-01-03 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167511', 'tblTempUsageDetail_20' ) end [2025-01-03 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:54:22] Production.INFO: ==25053== Releasing lock... [2025-01-03 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:54:22] Production.INFO: 50.5 MB #Memory Used# [2025-01-03 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:55:06 [end_date_ymd] => 2025-01-03 18:55:06 [RateCDR] => 1 ) [2025-01-03 18: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-01-03 15:55:06' and `end` < '2025-01-03 18: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-01-03 18:55:19] Production.INFO: count ==2981 [2025-01-03 18:55:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:55:06 - End Time 2025-01-03 18:55:06 [2025-01-03 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167516', 'tblTempUsageDetail_20' ) start [2025-01-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167516', 'tblTempUsageDetail_20' ) end [2025-01-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167516', 'tblTempVendorCDR_20' ) start [2025-01-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167516', 'tblTempVendorCDR_20' ) end [2025-01-03 18:55:20] Production.INFO: ProcessCDR(1,14167516,1,1,2) [2025-01-03 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167516', 'tblTempUsageDetail_20' ) start [2025-01-03 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167516', 'tblTempUsageDetail_20' ) end [2025-01-03 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:55:23] Production.INFO: ==25128== Releasing lock... [2025-01-03 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:55:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-03 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:56:06 [end_date_ymd] => 2025-01-03 18:56:06 [RateCDR] => 1 ) [2025-01-03 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:56:06' and `end` < '2025-01-03 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:56:19] Production.INFO: count ==2928 [2025-01-03 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:56:06 - End Time 2025-01-03 18:56:06 [2025-01-03 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167521', 'tblTempUsageDetail_20' ) start [2025-01-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167521', 'tblTempUsageDetail_20' ) end [2025-01-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167521', 'tblTempVendorCDR_20' ) start [2025-01-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167521', 'tblTempVendorCDR_20' ) end [2025-01-03 18:56:20] Production.INFO: ProcessCDR(1,14167521,1,1,2) [2025-01-03 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167521', 'tblTempUsageDetail_20' ) start [2025-01-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167521', 'tblTempUsageDetail_20' ) end [2025-01-03 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:56:24] Production.INFO: ==25239== Releasing lock... [2025-01-03 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:56:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-03 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:57:04 [end_date_ymd] => 2025-01-03 18:57:04 [RateCDR] => 1 ) [2025-01-03 18:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:57:04' and `end` < '2025-01-03 18:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:57:19] Production.INFO: count ==2894 [2025-01-03 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:57:04 - End Time 2025-01-03 18:57:04 [2025-01-03 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167526', 'tblTempUsageDetail_20' ) start [2025-01-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167526', 'tblTempUsageDetail_20' ) end [2025-01-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167526', 'tblTempVendorCDR_20' ) start [2025-01-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167526', 'tblTempVendorCDR_20' ) end [2025-01-03 18:57:20] Production.INFO: ProcessCDR(1,14167526,1,1,2) [2025-01-03 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167526', 'tblTempUsageDetail_20' ) start [2025-01-03 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167526', 'tblTempUsageDetail_20' ) end [2025-01-03 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:57:23] Production.INFO: ==25309== Releasing lock... [2025-01-03 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:57:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-03 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:58:05 [end_date_ymd] => 2025-01-03 18:58:05 [RateCDR] => 1 ) [2025-01-03 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 15:58:05' and `end` < '2025-01-03 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 18:58:19] Production.INFO: count ==2870 [2025-01-03 18:58:20] Production.ERROR: pbx CDR StartTime 2025-01-03 15:58:05 - End Time 2025-01-03 18:58:05 [2025-01-03 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167531', 'tblTempUsageDetail_20' ) start [2025-01-03 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167531', 'tblTempUsageDetail_20' ) end [2025-01-03 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167531', 'tblTempVendorCDR_20' ) start [2025-01-03 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167531', 'tblTempVendorCDR_20' ) end [2025-01-03 18:58:20] Production.INFO: ProcessCDR(1,14167531,1,1,2) [2025-01-03 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167531', 'tblTempUsageDetail_20' ) start [2025-01-03 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167531', 'tblTempUsageDetail_20' ) end [2025-01-03 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:58:23] Production.INFO: ==25382== Releasing lock... [2025-01-03 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:58:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-03 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 15:59:05 [end_date_ymd] => 2025-01-03 18:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 15:59:05' and `end` < '2025-01-03 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-01-03 18:59:18] Production.INFO: count ==2862 [2025-01-03 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-03 15:59:05 - End Time 2025-01-03 18:59:05 [2025-01-03 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167536', 'tblTempUsageDetail_20' ) start [2025-01-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167536', 'tblTempUsageDetail_20' ) end [2025-01-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167536', 'tblTempVendorCDR_20' ) start [2025-01-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167536', 'tblTempVendorCDR_20' ) end [2025-01-03 18:59:19] Production.INFO: ProcessCDR(1,14167536,1,1,2) [2025-01-03 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167536', 'tblTempUsageDetail_20' ) start [2025-01-03 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167536', 'tblTempUsageDetail_20' ) end [2025-01-03 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 18:59:24] Production.INFO: ==25456== Releasing lock... [2025-01-03 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 18:59:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-03 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:00:05 [end_date_ymd] => 2025-01-03 19:00:05 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:00:05' and `end` < '2025-01-03 19: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-01-03 19:00:19] Production.INFO: count ==2852 [2025-01-03 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:00:05 - End Time 2025-01-03 19:00:05 [2025-01-03 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167542', 'tblTempUsageDetail_20' ) start [2025-01-03 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167542', 'tblTempUsageDetail_20' ) end [2025-01-03 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167542', 'tblTempVendorCDR_20' ) start [2025-01-03 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167542', 'tblTempVendorCDR_20' ) end [2025-01-03 19:00:19] Production.INFO: ProcessCDR(1,14167542,1,1,2) [2025-01-03 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167542', 'tblTempUsageDetail_20' ) start [2025-01-03 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167542', 'tblTempUsageDetail_20' ) end [2025-01-03 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:00:23] Production.INFO: ==25527== Releasing lock... [2025-01-03 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:00:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-03 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:01:05 [end_date_ymd] => 2025-01-03 19:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:01:05' and `end` < '2025-01-03 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-01-03 19:01:18] Production.INFO: count ==2818 [2025-01-03 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:01:05 - End Time 2025-01-03 19:01:05 [2025-01-03 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167547', 'tblTempUsageDetail_20' ) start [2025-01-03 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167547', 'tblTempUsageDetail_20' ) end [2025-01-03 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167547', 'tblTempVendorCDR_20' ) start [2025-01-03 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167547', 'tblTempVendorCDR_20' ) end [2025-01-03 19:01:19] Production.INFO: ProcessCDR(1,14167547,1,1,2) [2025-01-03 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167547', 'tblTempUsageDetail_20' ) start [2025-01-03 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167547', 'tblTempUsageDetail_20' ) end [2025-01-03 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:01:24] Production.INFO: ==25611== Releasing lock... [2025-01-03 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:01:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-03 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:02:05 [end_date_ymd] => 2025-01-03 19:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:02:05' and `end` < '2025-01-03 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-01-03 19:02:18] Production.INFO: count ==2799 [2025-01-03 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:02:05 - End Time 2025-01-03 19:02:05 [2025-01-03 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167552', 'tblTempUsageDetail_20' ) start [2025-01-03 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167552', 'tblTempUsageDetail_20' ) end [2025-01-03 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167552', 'tblTempVendorCDR_20' ) start [2025-01-03 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167552', 'tblTempVendorCDR_20' ) end [2025-01-03 19:02:19] Production.INFO: ProcessCDR(1,14167552,1,1,2) [2025-01-03 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167552', 'tblTempUsageDetail_20' ) start [2025-01-03 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167552', 'tblTempUsageDetail_20' ) end [2025-01-03 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:02:24] Production.INFO: ==25757== Releasing lock... [2025-01-03 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:02:24] Production.INFO: 49 MB #Memory Used# [2025-01-03 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:03:05 [end_date_ymd] => 2025-01-03 19:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:03:05' and `end` < '2025-01-03 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-01-03 19:03:19] Production.INFO: count ==2797 [2025-01-03 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:03:05 - End Time 2025-01-03 19:03:05 [2025-01-03 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167557', 'tblTempUsageDetail_20' ) start [2025-01-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167557', 'tblTempUsageDetail_20' ) end [2025-01-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167557', 'tblTempVendorCDR_20' ) start [2025-01-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167557', 'tblTempVendorCDR_20' ) end [2025-01-03 19:03:20] Production.INFO: ProcessCDR(1,14167557,1,1,2) [2025-01-03 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167557', 'tblTempUsageDetail_20' ) start [2025-01-03 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167557', 'tblTempUsageDetail_20' ) end [2025-01-03 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:03:23] Production.INFO: ==25830== Releasing lock... [2025-01-03 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:03:23] Production.INFO: 49 MB #Memory Used# [2025-01-03 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:04:05 [end_date_ymd] => 2025-01-03 19:04:05 [RateCDR] => 1 ) [2025-01-03 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:04:05' and `end` < '2025-01-03 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:04:18] Production.INFO: count ==2797 [2025-01-03 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:04:05 - End Time 2025-01-03 19:04:05 [2025-01-03 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167562', 'tblTempUsageDetail_20' ) start [2025-01-03 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167562', 'tblTempUsageDetail_20' ) end [2025-01-03 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167562', 'tblTempVendorCDR_20' ) start [2025-01-03 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167562', 'tblTempVendorCDR_20' ) end [2025-01-03 19:04:19] Production.INFO: ProcessCDR(1,14167562,1,1,2) [2025-01-03 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167562', 'tblTempUsageDetail_20' ) start [2025-01-03 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167562', 'tblTempUsageDetail_20' ) end [2025-01-03 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:04:22] Production.INFO: ==25907== Releasing lock... [2025-01-03 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:04:22] Production.INFO: 49 MB #Memory Used# [2025-01-03 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:05:05 [end_date_ymd] => 2025-01-03 19:05:05 [RateCDR] => 1 ) [2025-01-03 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:05:05' and `end` < '2025-01-03 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:05:19] Production.INFO: count ==2788 [2025-01-03 19:05:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:05:05 - End Time 2025-01-03 19:05:05 [2025-01-03 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167567', 'tblTempUsageDetail_20' ) start [2025-01-03 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167567', 'tblTempUsageDetail_20' ) end [2025-01-03 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167567', 'tblTempVendorCDR_20' ) start [2025-01-03 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167567', 'tblTempVendorCDR_20' ) end [2025-01-03 19:05:20] Production.INFO: ProcessCDR(1,14167567,1,1,2) [2025-01-03 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167567', 'tblTempUsageDetail_20' ) start [2025-01-03 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167567', 'tblTempUsageDetail_20' ) end [2025-01-03 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:05:23] Production.INFO: ==26055== Releasing lock... [2025-01-03 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:05:23] Production.INFO: 49 MB #Memory Used# [2025-01-03 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:06:04 [end_date_ymd] => 2025-01-03 19:06:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:06:04' and `end` < '2025-01-03 19: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-01-03 19:06:19] Production.INFO: count ==2781 [2025-01-03 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:06:04 - End Time 2025-01-03 19:06:04 [2025-01-03 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167572', 'tblTempUsageDetail_20' ) start [2025-01-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167572', 'tblTempUsageDetail_20' ) end [2025-01-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167572', 'tblTempVendorCDR_20' ) start [2025-01-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167572', 'tblTempVendorCDR_20' ) end [2025-01-03 19:06:20] Production.INFO: ProcessCDR(1,14167572,1,1,2) [2025-01-03 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167572', 'tblTempUsageDetail_20' ) start [2025-01-03 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167572', 'tblTempUsageDetail_20' ) end [2025-01-03 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:06:23] Production.INFO: ==26129== Releasing lock... [2025-01-03 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:06:23] Production.INFO: 49 MB #Memory Used# [2025-01-03 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:07:05 [end_date_ymd] => 2025-01-03 19:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:07:05' and `end` < '2025-01-03 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-01-03 19:07:18] Production.INFO: count ==2775 [2025-01-03 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:07:05 - End Time 2025-01-03 19:07:05 [2025-01-03 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167577', 'tblTempUsageDetail_20' ) start [2025-01-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167577', 'tblTempUsageDetail_20' ) end [2025-01-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167577', 'tblTempVendorCDR_20' ) start [2025-01-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167577', 'tblTempVendorCDR_20' ) end [2025-01-03 19:07:19] Production.INFO: ProcessCDR(1,14167577,1,1,2) [2025-01-03 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167577', 'tblTempUsageDetail_20' ) start [2025-01-03 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167577', 'tblTempUsageDetail_20' ) end [2025-01-03 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:07:22] Production.INFO: ==26200== Releasing lock... [2025-01-03 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:07:22] Production.INFO: 49 MB #Memory Used# [2025-01-03 19:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:08:04 [end_date_ymd] => 2025-01-03 19:08:04 [RateCDR] => 1 ) [2025-01-03 19:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:08:04' and `end` < '2025-01-03 19:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:08:18] Production.INFO: count ==2768 [2025-01-03 19:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:08:04 - End Time 2025-01-03 19:08:04 [2025-01-03 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167582', 'tblTempUsageDetail_20' ) start [2025-01-03 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167582', 'tblTempUsageDetail_20' ) end [2025-01-03 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167582', 'tblTempVendorCDR_20' ) start [2025-01-03 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167582', 'tblTempVendorCDR_20' ) end [2025-01-03 19:08:18] Production.INFO: ProcessCDR(1,14167582,1,1,2) [2025-01-03 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167582', 'tblTempUsageDetail_20' ) start [2025-01-03 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167582', 'tblTempUsageDetail_20' ) end [2025-01-03 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:08:23] Production.INFO: ==26309== Releasing lock... [2025-01-03 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:08:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-03 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:09:06 [end_date_ymd] => 2025-01-03 19:09:06 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:09:06' and `end` < '2025-01-03 19: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-01-03 19:09:19] Production.INFO: count ==2748 [2025-01-03 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:09:06 - End Time 2025-01-03 19:09:06 [2025-01-03 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167587', 'tblTempUsageDetail_20' ) start [2025-01-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167587', 'tblTempUsageDetail_20' ) end [2025-01-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167587', 'tblTempVendorCDR_20' ) start [2025-01-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167587', 'tblTempVendorCDR_20' ) end [2025-01-03 19:09:19] Production.INFO: ProcessCDR(1,14167587,1,1,2) [2025-01-03 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167587', 'tblTempUsageDetail_20' ) start [2025-01-03 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167587', 'tblTempUsageDetail_20' ) end [2025-01-03 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:09:24] Production.INFO: ==26422== Releasing lock... [2025-01-03 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:09:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-03 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:10:05 [end_date_ymd] => 2025-01-03 19:10:05 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:10:05' and `end` < '2025-01-03 19: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-01-03 19:10:20] Production.INFO: count ==2742 [2025-01-03 19:10:21] Production.ERROR: pbx CDR StartTime 2025-01-03 16:10:05 - End Time 2025-01-03 19:10:05 [2025-01-03 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167593', 'tblTempUsageDetail_20' ) start [2025-01-03 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167593', 'tblTempUsageDetail_20' ) end [2025-01-03 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167593', 'tblTempVendorCDR_20' ) start [2025-01-03 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167593', 'tblTempVendorCDR_20' ) end [2025-01-03 19:10:21] Production.INFO: ProcessCDR(1,14167593,1,1,2) [2025-01-03 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167593', 'tblTempUsageDetail_20' ) start [2025-01-03 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167593', 'tblTempUsageDetail_20' ) end [2025-01-03 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:10:24] Production.INFO: ==26494== Releasing lock... [2025-01-03 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:10:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-03 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:11:05 [end_date_ymd] => 2025-01-03 19:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:11:05' and `end` < '2025-01-03 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-01-03 19:11:18] Production.INFO: count ==2687 [2025-01-03 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:11:05 - End Time 2025-01-03 19:11:05 [2025-01-03 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167598', 'tblTempUsageDetail_20' ) start [2025-01-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167598', 'tblTempUsageDetail_20' ) end [2025-01-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167598', 'tblTempVendorCDR_20' ) start [2025-01-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167598', 'tblTempVendorCDR_20' ) end [2025-01-03 19:11:19] Production.INFO: ProcessCDR(1,14167598,1,1,2) [2025-01-03 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167598', 'tblTempUsageDetail_20' ) start [2025-01-03 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167598', 'tblTempUsageDetail_20' ) end [2025-01-03 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:11:22] Production.INFO: ==26605== Releasing lock... [2025-01-03 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:11:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-03 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:12:05 [end_date_ymd] => 2025-01-03 19:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:12:05' and `end` < '2025-01-03 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-01-03 19:12:19] Production.INFO: count ==2682 [2025-01-03 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:12:05 - End Time 2025-01-03 19:12:05 [2025-01-03 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167603', 'tblTempUsageDetail_20' ) start [2025-01-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167603', 'tblTempUsageDetail_20' ) end [2025-01-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167603', 'tblTempVendorCDR_20' ) start [2025-01-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167603', 'tblTempVendorCDR_20' ) end [2025-01-03 19:12:19] Production.INFO: ProcessCDR(1,14167603,1,1,2) [2025-01-03 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167603', 'tblTempUsageDetail_20' ) start [2025-01-03 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167603', 'tblTempUsageDetail_20' ) end [2025-01-03 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:12:23] Production.INFO: ==26756== Releasing lock... [2025-01-03 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:12:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-03 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:13:04 [end_date_ymd] => 2025-01-03 19:13:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:13:04' and `end` < '2025-01-03 19: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-01-03 19:13:18] Production.INFO: count ==2678 [2025-01-03 19:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:13:04 - End Time 2025-01-03 19:13:04 [2025-01-03 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167608', 'tblTempUsageDetail_20' ) start [2025-01-03 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167608', 'tblTempUsageDetail_20' ) end [2025-01-03 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167608', 'tblTempVendorCDR_20' ) start [2025-01-03 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167608', 'tblTempVendorCDR_20' ) end [2025-01-03 19:13:18] Production.INFO: ProcessCDR(1,14167608,1,1,2) [2025-01-03 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167608', 'tblTempUsageDetail_20' ) start [2025-01-03 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167608', 'tblTempUsageDetail_20' ) end [2025-01-03 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:13:21] Production.INFO: ==26830== Releasing lock... [2025-01-03 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:13:21] Production.INFO: 48.25 MB #Memory Used# [2025-01-03 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:14:06 [end_date_ymd] => 2025-01-03 19:14:06 [RateCDR] => 1 ) [2025-01-03 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:14:06' and `end` < '2025-01-03 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:14:20] Production.INFO: count ==2672 [2025-01-03 19:14:21] Production.ERROR: pbx CDR StartTime 2025-01-03 16:14:06 - End Time 2025-01-03 19:14:06 [2025-01-03 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167613', 'tblTempUsageDetail_20' ) start [2025-01-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167613', 'tblTempUsageDetail_20' ) end [2025-01-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167613', 'tblTempVendorCDR_20' ) start [2025-01-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167613', 'tblTempVendorCDR_20' ) end [2025-01-03 19:14:21] Production.INFO: ProcessCDR(1,14167613,1,1,2) [2025-01-03 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167613', 'tblTempUsageDetail_20' ) start [2025-01-03 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167613', 'tblTempUsageDetail_20' ) end [2025-01-03 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:14:24] Production.INFO: ==26901== Releasing lock... [2025-01-03 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:14:24] Production.INFO: 48 MB #Memory Used# [2025-01-03 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:15:05 [end_date_ymd] => 2025-01-03 19:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:15:05' and `end` < '2025-01-03 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-01-03 19:15:18] Production.INFO: count ==2667 [2025-01-03 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:15:05 - End Time 2025-01-03 19:15:05 [2025-01-03 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167616', 'tblTempUsageDetail_20' ) start [2025-01-03 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167616', 'tblTempUsageDetail_20' ) end [2025-01-03 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167616', 'tblTempVendorCDR_20' ) start [2025-01-03 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167616', 'tblTempVendorCDR_20' ) end [2025-01-03 19:15:19] Production.INFO: ProcessCDR(1,14167616,1,1,2) [2025-01-03 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167616', 'tblTempUsageDetail_20' ) start [2025-01-03 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167616', 'tblTempUsageDetail_20' ) end [2025-01-03 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:15:22] Production.INFO: ==27048== Releasing lock... [2025-01-03 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:15:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-03 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:16:04 [end_date_ymd] => 2025-01-03 19:16:04 [RateCDR] => 1 ) [2025-01-03 19:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:16:04' and `end` < '2025-01-03 19:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:16:18] Production.INFO: count ==2661 [2025-01-03 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:16:04 - End Time 2025-01-03 19:16:04 [2025-01-03 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167623', 'tblTempUsageDetail_20' ) start [2025-01-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167623', 'tblTempUsageDetail_20' ) end [2025-01-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167623', 'tblTempVendorCDR_20' ) start [2025-01-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167623', 'tblTempVendorCDR_20' ) end [2025-01-03 19:16:19] Production.INFO: ProcessCDR(1,14167623,1,1,2) [2025-01-03 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167623', 'tblTempUsageDetail_20' ) start [2025-01-03 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167623', 'tblTempUsageDetail_20' ) end [2025-01-03 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:16:22] Production.INFO: ==27118== Releasing lock... [2025-01-03 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:16:22] Production.INFO: 48 MB #Memory Used# [2025-01-03 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:17:05 [end_date_ymd] => 2025-01-03 19:17:05 [RateCDR] => 1 ) [2025-01-03 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:17:05' and `end` < '2025-01-03 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:17:18] Production.INFO: count ==2658 [2025-01-03 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:17:05 - End Time 2025-01-03 19:17:05 [2025-01-03 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167628', 'tblTempUsageDetail_20' ) start [2025-01-03 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167628', 'tblTempUsageDetail_20' ) end [2025-01-03 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167628', 'tblTempVendorCDR_20' ) start [2025-01-03 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167628', 'tblTempVendorCDR_20' ) end [2025-01-03 19:17:19] Production.INFO: ProcessCDR(1,14167628,1,1,2) [2025-01-03 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167628', 'tblTempUsageDetail_20' ) start [2025-01-03 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167628', 'tblTempUsageDetail_20' ) end [2025-01-03 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:17:22] Production.INFO: ==27192== Releasing lock... [2025-01-03 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:17:22] Production.INFO: 48 MB #Memory Used# [2025-01-03 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:18:05 [end_date_ymd] => 2025-01-03 19:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:18:05' and `end` < '2025-01-03 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-01-03 19:18:18] Production.INFO: count ==2650 [2025-01-03 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:18:05 - End Time 2025-01-03 19:18:05 [2025-01-03 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167633', 'tblTempUsageDetail_20' ) start [2025-01-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167633', 'tblTempUsageDetail_20' ) end [2025-01-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167633', 'tblTempVendorCDR_20' ) start [2025-01-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167633', 'tblTempVendorCDR_20' ) end [2025-01-03 19:18:19] Production.INFO: ProcessCDR(1,14167633,1,1,2) [2025-01-03 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167633', 'tblTempUsageDetail_20' ) start [2025-01-03 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167633', 'tblTempUsageDetail_20' ) end [2025-01-03 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:18:23] Production.INFO: ==27268== Releasing lock... [2025-01-03 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:18:23] Production.INFO: 48 MB #Memory Used# [2025-01-03 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:19:05 [end_date_ymd] => 2025-01-03 19:19:05 [RateCDR] => 1 ) [2025-01-03 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:19:05' and `end` < '2025-01-03 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:19:18] Production.INFO: count ==2645 [2025-01-03 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:19:05 - End Time 2025-01-03 19:19:05 [2025-01-03 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167638', 'tblTempUsageDetail_20' ) start [2025-01-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167638', 'tblTempUsageDetail_20' ) end [2025-01-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167638', 'tblTempVendorCDR_20' ) start [2025-01-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167638', 'tblTempVendorCDR_20' ) end [2025-01-03 19:19:19] Production.INFO: ProcessCDR(1,14167638,1,1,2) [2025-01-03 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167638', 'tblTempUsageDetail_20' ) start [2025-01-03 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167638', 'tblTempUsageDetail_20' ) end [2025-01-03 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:19:22] Production.INFO: ==27338== Releasing lock... [2025-01-03 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:19:22] Production.INFO: 48 MB #Memory Used# [2025-01-03 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:20:06 [end_date_ymd] => 2025-01-03 19:20:06 [RateCDR] => 1 ) [2025-01-03 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:20:06' and `end` < '2025-01-03 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:20:19] Production.INFO: count ==2633 [2025-01-03 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:20:06 - End Time 2025-01-03 19:20:06 [2025-01-03 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167643', 'tblTempUsageDetail_20' ) start [2025-01-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167643', 'tblTempUsageDetail_20' ) end [2025-01-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167643', 'tblTempVendorCDR_20' ) start [2025-01-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167643', 'tblTempVendorCDR_20' ) end [2025-01-03 19:20:20] Production.INFO: ProcessCDR(1,14167643,1,1,2) [2025-01-03 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167643', 'tblTempUsageDetail_20' ) start [2025-01-03 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167643', 'tblTempUsageDetail_20' ) end [2025-01-03 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:20:23] Production.INFO: ==27411== Releasing lock... [2025-01-03 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:20:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-03 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:21:04 [end_date_ymd] => 2025-01-03 19:21:04 [RateCDR] => 1 ) [2025-01-03 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:21:04' and `end` < '2025-01-03 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:21:18] Production.INFO: count ==2613 [2025-01-03 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:21:04 - End Time 2025-01-03 19:21:04 [2025-01-03 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167649', 'tblTempUsageDetail_20' ) start [2025-01-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167649', 'tblTempUsageDetail_20' ) end [2025-01-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167649', 'tblTempVendorCDR_20' ) start [2025-01-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167649', 'tblTempVendorCDR_20' ) end [2025-01-03 19:21:19] Production.INFO: ProcessCDR(1,14167649,1,1,2) [2025-01-03 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167649', 'tblTempUsageDetail_20' ) start [2025-01-03 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167649', 'tblTempUsageDetail_20' ) end [2025-01-03 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:21:23] Production.INFO: ==27488== Releasing lock... [2025-01-03 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:21:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-03 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:22:05 [end_date_ymd] => 2025-01-03 19:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:22:05' and `end` < '2025-01-03 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-01-03 19:22:19] Production.INFO: count ==2603 [2025-01-03 19:22:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:22:05 - End Time 2025-01-03 19:22:05 [2025-01-03 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167654', 'tblTempUsageDetail_20' ) start [2025-01-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167654', 'tblTempUsageDetail_20' ) end [2025-01-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167654', 'tblTempVendorCDR_20' ) start [2025-01-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167654', 'tblTempVendorCDR_20' ) end [2025-01-03 19:22:20] Production.INFO: ProcessCDR(1,14167654,1,1,2) [2025-01-03 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167654', 'tblTempUsageDetail_20' ) start [2025-01-03 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167654', 'tblTempUsageDetail_20' ) end [2025-01-03 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:22:23] Production.INFO: ==27559== Releasing lock... [2025-01-03 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:22:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-03 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:23:04 [end_date_ymd] => 2025-01-03 19:23:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:23:04' and `end` < '2025-01-03 19: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-01-03 19:23:18] Production.INFO: count ==2599 [2025-01-03 19:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:23:04 - End Time 2025-01-03 19:23:04 [2025-01-03 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167659', 'tblTempUsageDetail_20' ) start [2025-01-03 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167659', 'tblTempUsageDetail_20' ) end [2025-01-03 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167659', 'tblTempVendorCDR_20' ) start [2025-01-03 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167659', 'tblTempVendorCDR_20' ) end [2025-01-03 19:23:18] Production.INFO: ProcessCDR(1,14167659,1,1,2) [2025-01-03 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167659', 'tblTempUsageDetail_20' ) start [2025-01-03 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167659', 'tblTempUsageDetail_20' ) end [2025-01-03 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:23:22] Production.INFO: ==27633== Releasing lock... [2025-01-03 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:23:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:24:06 [end_date_ymd] => 2025-01-03 19:24:06 [RateCDR] => 1 ) [2025-01-03 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:24:06' and `end` < '2025-01-03 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:24:19] Production.INFO: count ==2566 [2025-01-03 19:24:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:24:06 - End Time 2025-01-03 19:24:06 [2025-01-03 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167664', 'tblTempUsageDetail_20' ) start [2025-01-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167664', 'tblTempUsageDetail_20' ) end [2025-01-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167664', 'tblTempVendorCDR_20' ) start [2025-01-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167664', 'tblTempVendorCDR_20' ) end [2025-01-03 19:24:20] Production.INFO: ProcessCDR(1,14167664,1,1,2) [2025-01-03 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167664', 'tblTempUsageDetail_20' ) start [2025-01-03 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167664', 'tblTempUsageDetail_20' ) end [2025-01-03 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:24:25] Production.INFO: ==27704== Releasing lock... [2025-01-03 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:24:25] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:25:04 [end_date_ymd] => 2025-01-03 19:25:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:25:04' and `end` < '2025-01-03 19: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-01-03 19:25:18] Production.INFO: count ==2558 [2025-01-03 19:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:25:04 - End Time 2025-01-03 19:25:04 [2025-01-03 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167669', 'tblTempUsageDetail_20' ) start [2025-01-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167669', 'tblTempUsageDetail_20' ) end [2025-01-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167669', 'tblTempVendorCDR_20' ) start [2025-01-03 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167669', 'tblTempVendorCDR_20' ) end [2025-01-03 19:25:18] Production.INFO: ProcessCDR(1,14167669,1,1,2) [2025-01-03 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167669', 'tblTempUsageDetail_20' ) start [2025-01-03 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167669', 'tblTempUsageDetail_20' ) end [2025-01-03 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:25:23] Production.INFO: ==27774== Releasing lock... [2025-01-03 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:25:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:26:06 [end_date_ymd] => 2025-01-03 19:26:06 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:26:06' and `end` < '2025-01-03 19: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-01-03 19:26:19] Production.INFO: count ==2555 [2025-01-03 19:26:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:26:06 - End Time 2025-01-03 19:26:06 [2025-01-03 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167674', 'tblTempUsageDetail_20' ) start [2025-01-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167674', 'tblTempUsageDetail_20' ) end [2025-01-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167674', 'tblTempVendorCDR_20' ) start [2025-01-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167674', 'tblTempVendorCDR_20' ) end [2025-01-03 19:26:20] Production.INFO: ProcessCDR(1,14167674,1,1,2) [2025-01-03 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167674', 'tblTempUsageDetail_20' ) start [2025-01-03 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167674', 'tblTempUsageDetail_20' ) end [2025-01-03 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:26:23] Production.INFO: ==27845== Releasing lock... [2025-01-03 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:26:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:27:04 [end_date_ymd] => 2025-01-03 19:27:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:27:04' and `end` < '2025-01-03 19: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-01-03 19:27:17] Production.INFO: count ==2530 [2025-01-03 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:27:04 - End Time 2025-01-03 19:27:04 [2025-01-03 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167679', 'tblTempUsageDetail_20' ) start [2025-01-03 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167679', 'tblTempUsageDetail_20' ) end [2025-01-03 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167679', 'tblTempVendorCDR_20' ) start [2025-01-03 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167679', 'tblTempVendorCDR_20' ) end [2025-01-03 19:27:18] Production.INFO: ProcessCDR(1,14167679,1,1,2) [2025-01-03 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167679', 'tblTempUsageDetail_20' ) start [2025-01-03 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167679', 'tblTempUsageDetail_20' ) end [2025-01-03 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:27:22] Production.INFO: ==27954== Releasing lock... [2025-01-03 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:27:22] Production.INFO: 47 MB #Memory Used# [2025-01-03 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:28:05 [end_date_ymd] => 2025-01-03 19:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:28:05' and `end` < '2025-01-03 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-01-03 19:28:18] Production.INFO: count ==2523 [2025-01-03 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:28:05 - End Time 2025-01-03 19:28:05 [2025-01-03 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167684', 'tblTempUsageDetail_20' ) start [2025-01-03 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167684', 'tblTempUsageDetail_20' ) end [2025-01-03 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167684', 'tblTempVendorCDR_20' ) start [2025-01-03 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167684', 'tblTempVendorCDR_20' ) end [2025-01-03 19:28:19] Production.INFO: ProcessCDR(1,14167684,1,1,2) [2025-01-03 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167684', 'tblTempUsageDetail_20' ) start [2025-01-03 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167684', 'tblTempUsageDetail_20' ) end [2025-01-03 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:28:22] Production.INFO: ==28027== Releasing lock... [2025-01-03 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:28:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-03 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:29:04 [end_date_ymd] => 2025-01-03 19:29:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:29:04' and `end` < '2025-01-03 19: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-01-03 19:29:18] Production.INFO: count ==2516 [2025-01-03 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:29:04 - End Time 2025-01-03 19:29:04 [2025-01-03 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167689', 'tblTempUsageDetail_20' ) start [2025-01-03 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167689', 'tblTempUsageDetail_20' ) end [2025-01-03 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167689', 'tblTempVendorCDR_20' ) start [2025-01-03 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167689', 'tblTempVendorCDR_20' ) end [2025-01-03 19:29:18] Production.INFO: ProcessCDR(1,14167689,1,1,2) [2025-01-03 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167689', 'tblTempUsageDetail_20' ) start [2025-01-03 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167689', 'tblTempUsageDetail_20' ) end [2025-01-03 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:29:21] Production.INFO: ==28098== Releasing lock... [2025-01-03 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:29:21] Production.INFO: 47 MB #Memory Used# [2025-01-03 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:30:06 [end_date_ymd] => 2025-01-03 19:30:06 [RateCDR] => 1 ) [2025-01-03 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:30:06' and `end` < '2025-01-03 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:30:19] Production.INFO: count ==2506 [2025-01-03 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:30:06 - End Time 2025-01-03 19:30:06 [2025-01-03 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167694', 'tblTempUsageDetail_20' ) start [2025-01-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167694', 'tblTempUsageDetail_20' ) end [2025-01-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167694', 'tblTempVendorCDR_20' ) start [2025-01-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167694', 'tblTempVendorCDR_20' ) end [2025-01-03 19:30:19] Production.INFO: ProcessCDR(1,14167694,1,1,2) [2025-01-03 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167694', 'tblTempUsageDetail_20' ) start [2025-01-03 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167694', 'tblTempUsageDetail_20' ) end [2025-01-03 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:30:23] Production.INFO: ==28171== Releasing lock... [2025-01-03 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:30:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-03 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:31:04 [end_date_ymd] => 2025-01-03 19:31:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:31:04' and `end` < '2025-01-03 19: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-01-03 19:31:19] Production.INFO: count ==2440 [2025-01-03 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:31:04 - End Time 2025-01-03 19:31:04 [2025-01-03 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167700', 'tblTempUsageDetail_20' ) start [2025-01-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167700', 'tblTempUsageDetail_20' ) end [2025-01-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167700', 'tblTempVendorCDR_20' ) start [2025-01-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167700', 'tblTempVendorCDR_20' ) end [2025-01-03 19:31:19] Production.INFO: ProcessCDR(1,14167700,1,1,2) [2025-01-03 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167700', 'tblTempUsageDetail_20' ) start [2025-01-03 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167700', 'tblTempUsageDetail_20' ) end [2025-01-03 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:31:23] Production.INFO: ==28248== Releasing lock... [2025-01-03 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:31:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:32:05 [end_date_ymd] => 2025-01-03 19:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:32:05' and `end` < '2025-01-03 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-01-03 19:32:19] Production.INFO: count ==2424 [2025-01-03 19:32:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:32:05 - End Time 2025-01-03 19:32:05 [2025-01-03 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167705', 'tblTempUsageDetail_20' ) start [2025-01-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167705', 'tblTempUsageDetail_20' ) end [2025-01-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167705', 'tblTempVendorCDR_20' ) start [2025-01-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167705', 'tblTempVendorCDR_20' ) end [2025-01-03 19:32:20] Production.INFO: ProcessCDR(1,14167705,1,1,2) [2025-01-03 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167705', 'tblTempUsageDetail_20' ) start [2025-01-03 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167705', 'tblTempUsageDetail_20' ) end [2025-01-03 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:32:23] Production.INFO: ==28324== Releasing lock... [2025-01-03 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:32:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:33:04 [end_date_ymd] => 2025-01-03 19:33:04 [RateCDR] => 1 ) [2025-01-03 19:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:33:04' and `end` < '2025-01-03 19:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:33:17] Production.INFO: count ==2409 [2025-01-03 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:33:04 - End Time 2025-01-03 19:33:04 [2025-01-03 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167710', 'tblTempUsageDetail_20' ) start [2025-01-03 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167710', 'tblTempUsageDetail_20' ) end [2025-01-03 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167710', 'tblTempVendorCDR_20' ) start [2025-01-03 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167710', 'tblTempVendorCDR_20' ) end [2025-01-03 19:33:18] Production.INFO: ProcessCDR(1,14167710,1,1,2) [2025-01-03 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167710', 'tblTempUsageDetail_20' ) start [2025-01-03 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167710', 'tblTempUsageDetail_20' ) end [2025-01-03 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:33:21] Production.INFO: ==28394== Releasing lock... [2025-01-03 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:33:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:34:05 [end_date_ymd] => 2025-01-03 19:34:05 [RateCDR] => 1 ) [2025-01-03 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:34:05' and `end` < '2025-01-03 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:34:18] Production.INFO: count ==2405 [2025-01-03 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:34:05 - End Time 2025-01-03 19:34:05 [2025-01-03 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167715', 'tblTempUsageDetail_20' ) start [2025-01-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167715', 'tblTempUsageDetail_20' ) end [2025-01-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167715', 'tblTempVendorCDR_20' ) start [2025-01-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167715', 'tblTempVendorCDR_20' ) end [2025-01-03 19:34:19] Production.INFO: ProcessCDR(1,14167715,1,1,2) [2025-01-03 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167715', 'tblTempUsageDetail_20' ) start [2025-01-03 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167715', 'tblTempUsageDetail_20' ) end [2025-01-03 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:34:22] Production.INFO: ==28464== Releasing lock... [2025-01-03 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:34:22] Production.INFO: 46 MB #Memory Used# [2025-01-03 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:35:04 [end_date_ymd] => 2025-01-03 19:35:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:35:04' and `end` < '2025-01-03 19: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-01-03 19:35:20] Production.INFO: count ==2398 [2025-01-03 19:35:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:35:04 - End Time 2025-01-03 19:35:04 [2025-01-03 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167720', 'tblTempUsageDetail_20' ) start [2025-01-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167720', 'tblTempUsageDetail_20' ) end [2025-01-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167720', 'tblTempVendorCDR_20' ) start [2025-01-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167720', 'tblTempVendorCDR_20' ) end [2025-01-03 19:35:20] Production.INFO: ProcessCDR(1,14167720,1,1,2) [2025-01-03 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167720', 'tblTempUsageDetail_20' ) start [2025-01-03 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167720', 'tblTempUsageDetail_20' ) end [2025-01-03 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:35:23] Production.INFO: ==28536== Releasing lock... [2025-01-03 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:35:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-03 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:36:05 [end_date_ymd] => 2025-01-03 19:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:36:05' and `end` < '2025-01-03 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-01-03 19:36:18] Production.INFO: count ==2387 [2025-01-03 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:36:05 - End Time 2025-01-03 19:36:05 [2025-01-03 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167725', 'tblTempUsageDetail_20' ) start [2025-01-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167725', 'tblTempUsageDetail_20' ) end [2025-01-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167725', 'tblTempVendorCDR_20' ) start [2025-01-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167725', 'tblTempVendorCDR_20' ) end [2025-01-03 19:36:19] Production.INFO: ProcessCDR(1,14167725,1,1,2) [2025-01-03 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167725', 'tblTempUsageDetail_20' ) start [2025-01-03 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167725', 'tblTempUsageDetail_20' ) end [2025-01-03 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:36:22] Production.INFO: ==28609== Releasing lock... [2025-01-03 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:36:22] Production.INFO: 46 MB #Memory Used# [2025-01-03 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:37:05 [end_date_ymd] => 2025-01-03 19:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:37:05' and `end` < '2025-01-03 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-01-03 19:37:18] Production.INFO: count ==2375 [2025-01-03 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:37:05 - End Time 2025-01-03 19:37:05 [2025-01-03 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167730', 'tblTempUsageDetail_20' ) start [2025-01-03 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167730', 'tblTempUsageDetail_20' ) end [2025-01-03 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167730', 'tblTempVendorCDR_20' ) start [2025-01-03 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167730', 'tblTempVendorCDR_20' ) end [2025-01-03 19:37:19] Production.INFO: ProcessCDR(1,14167730,1,1,2) [2025-01-03 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167730', 'tblTempUsageDetail_20' ) start [2025-01-03 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167730', 'tblTempUsageDetail_20' ) end [2025-01-03 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:37:22] Production.INFO: ==28681== Releasing lock... [2025-01-03 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:37:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-03 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:38:04 [end_date_ymd] => 2025-01-03 19:38:04 [RateCDR] => 1 ) [2025-01-03 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:38:04' and `end` < '2025-01-03 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:38:18] Production.INFO: count ==2348 [2025-01-03 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:38:04 - End Time 2025-01-03 19:38:04 [2025-01-03 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167735', 'tblTempUsageDetail_20' ) start [2025-01-03 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167735', 'tblTempUsageDetail_20' ) end [2025-01-03 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167735', 'tblTempVendorCDR_20' ) start [2025-01-03 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167735', 'tblTempVendorCDR_20' ) end [2025-01-03 19:38:18] Production.INFO: ProcessCDR(1,14167735,1,1,2) [2025-01-03 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167735', 'tblTempUsageDetail_20' ) start [2025-01-03 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167735', 'tblTempUsageDetail_20' ) end [2025-01-03 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:38:21] Production.INFO: ==28752== Releasing lock... [2025-01-03 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:38:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-03 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:39:05 [end_date_ymd] => 2025-01-03 19:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:39:05' and `end` < '2025-01-03 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-01-03 19:39:18] Production.INFO: count ==2322 [2025-01-03 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:39:05 - End Time 2025-01-03 19:39:05 [2025-01-03 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167740', 'tblTempUsageDetail_20' ) start [2025-01-03 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167740', 'tblTempUsageDetail_20' ) end [2025-01-03 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167740', 'tblTempVendorCDR_20' ) start [2025-01-03 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167740', 'tblTempVendorCDR_20' ) end [2025-01-03 19:39:18] Production.INFO: ProcessCDR(1,14167740,1,1,2) [2025-01-03 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167740', 'tblTempUsageDetail_20' ) start [2025-01-03 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167740', 'tblTempUsageDetail_20' ) end [2025-01-03 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:39:22] Production.INFO: ==28821== Releasing lock... [2025-01-03 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:39:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-03 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:40:05 [end_date_ymd] => 2025-01-03 19:40:05 [RateCDR] => 1 ) [2025-01-03 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:40:05' and `end` < '2025-01-03 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:40:18] Production.INFO: count ==2311 [2025-01-03 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:40:05 - End Time 2025-01-03 19:40:05 [2025-01-03 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167745', 'tblTempUsageDetail_20' ) start [2025-01-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167745', 'tblTempUsageDetail_20' ) end [2025-01-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167745', 'tblTempVendorCDR_20' ) start [2025-01-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167745', 'tblTempVendorCDR_20' ) end [2025-01-03 19:40:19] Production.INFO: ProcessCDR(1,14167745,1,1,2) [2025-01-03 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167745', 'tblTempUsageDetail_20' ) start [2025-01-03 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167745', 'tblTempUsageDetail_20' ) end [2025-01-03 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:40:22] Production.INFO: ==28895== Releasing lock... [2025-01-03 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:40:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-03 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:41:05 [end_date_ymd] => 2025-01-03 19:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:41:05' and `end` < '2025-01-03 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-01-03 19:41:20] Production.INFO: count ==2276 [2025-01-03 19:41:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:41:05 - End Time 2025-01-03 19:41:05 [2025-01-03 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167751', 'tblTempUsageDetail_20' ) start [2025-01-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167751', 'tblTempUsageDetail_20' ) end [2025-01-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167751', 'tblTempVendorCDR_20' ) start [2025-01-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167751', 'tblTempVendorCDR_20' ) end [2025-01-03 19:41:20] Production.INFO: ProcessCDR(1,14167751,1,1,2) [2025-01-03 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167751', 'tblTempUsageDetail_20' ) start [2025-01-03 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167751', 'tblTempUsageDetail_20' ) end [2025-01-03 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:41:25] Production.INFO: ==28969== Releasing lock... [2025-01-03 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:41:25] Production.INFO: 45.25 MB #Memory Used# [2025-01-03 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:42:04 [end_date_ymd] => 2025-01-03 19:42:04 [RateCDR] => 1 ) [2025-01-03 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:42:04' and `end` < '2025-01-03 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:42:19] Production.INFO: count ==2272 [2025-01-03 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:42:04 - End Time 2025-01-03 19:42:04 [2025-01-03 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167756', 'tblTempUsageDetail_20' ) start [2025-01-03 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167756', 'tblTempUsageDetail_20' ) end [2025-01-03 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167756', 'tblTempVendorCDR_20' ) start [2025-01-03 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167756', 'tblTempVendorCDR_20' ) end [2025-01-03 19:42:19] Production.INFO: ProcessCDR(1,14167756,1,1,2) [2025-01-03 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167756', 'tblTempUsageDetail_20' ) start [2025-01-03 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167756', 'tblTempUsageDetail_20' ) end [2025-01-03 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:42:22] Production.INFO: ==29041== Releasing lock... [2025-01-03 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:42:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-03 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:43:05 [end_date_ymd] => 2025-01-03 19:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:43:05' and `end` < '2025-01-03 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-01-03 19:43:20] Production.INFO: count ==2252 [2025-01-03 19:43:21] Production.ERROR: pbx CDR StartTime 2025-01-03 16:43:05 - End Time 2025-01-03 19:43:05 [2025-01-03 19:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167761', 'tblTempUsageDetail_20' ) start [2025-01-03 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167761', 'tblTempUsageDetail_20' ) end [2025-01-03 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167761', 'tblTempVendorCDR_20' ) start [2025-01-03 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167761', 'tblTempVendorCDR_20' ) end [2025-01-03 19:43:21] Production.INFO: ProcessCDR(1,14167761,1,1,2) [2025-01-03 19:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167761', 'tblTempUsageDetail_20' ) start [2025-01-03 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167761', 'tblTempUsageDetail_20' ) end [2025-01-03 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:43:24] Production.INFO: ==29156== Releasing lock... [2025-01-03 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:43:24] Production.INFO: 45 MB #Memory Used# [2025-01-03 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:44:04 [end_date_ymd] => 2025-01-03 19:44:04 [RateCDR] => 1 ) [2025-01-03 19:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:44:04' and `end` < '2025-01-03 19:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:44:18] Production.INFO: count ==2244 [2025-01-03 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:44:04 - End Time 2025-01-03 19:44:04 [2025-01-03 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167766', 'tblTempUsageDetail_20' ) start [2025-01-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167766', 'tblTempUsageDetail_20' ) end [2025-01-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167766', 'tblTempVendorCDR_20' ) start [2025-01-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167766', 'tblTempVendorCDR_20' ) end [2025-01-03 19:44:18] Production.INFO: ProcessCDR(1,14167766,1,1,2) [2025-01-03 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167766', 'tblTempUsageDetail_20' ) start [2025-01-03 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167766', 'tblTempUsageDetail_20' ) end [2025-01-03 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:44:23] Production.INFO: ==29226== Releasing lock... [2025-01-03 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:44:23] Production.INFO: 45 MB #Memory Used# [2025-01-03 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:45:05 [end_date_ymd] => 2025-01-03 19:45:05 [RateCDR] => 1 ) [2025-01-03 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:45:05' and `end` < '2025-01-03 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:45:18] Production.INFO: count ==2228 [2025-01-03 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:45:05 - End Time 2025-01-03 19:45:05 [2025-01-03 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167771', 'tblTempUsageDetail_20' ) start [2025-01-03 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167771', 'tblTempUsageDetail_20' ) end [2025-01-03 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167771', 'tblTempVendorCDR_20' ) start [2025-01-03 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167771', 'tblTempVendorCDR_20' ) end [2025-01-03 19:45:18] Production.INFO: ProcessCDR(1,14167771,1,1,2) [2025-01-03 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167771', 'tblTempUsageDetail_20' ) start [2025-01-03 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167771', 'tblTempUsageDetail_20' ) end [2025-01-03 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:45:23] Production.INFO: ==29298== Releasing lock... [2025-01-03 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:45:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-03 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:46:04 [end_date_ymd] => 2025-01-03 19:46:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:46:04' and `end` < '2025-01-03 19: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-01-03 19:46:17] Production.INFO: count ==2220 [2025-01-03 19:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:46:04 - End Time 2025-01-03 19:46:04 [2025-01-03 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167776', 'tblTempUsageDetail_20' ) start [2025-01-03 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167776', 'tblTempUsageDetail_20' ) end [2025-01-03 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167776', 'tblTempVendorCDR_20' ) start [2025-01-03 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167776', 'tblTempVendorCDR_20' ) end [2025-01-03 19:46:18] Production.INFO: ProcessCDR(1,14167776,1,1,2) [2025-01-03 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167776', 'tblTempUsageDetail_20' ) start [2025-01-03 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167776', 'tblTempUsageDetail_20' ) end [2025-01-03 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:46:21] Production.INFO: ==29371== Releasing lock... [2025-01-03 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:46:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-03 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:47:05 [end_date_ymd] => 2025-01-03 19:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:47:05' and `end` < '2025-01-03 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-01-03 19:47:18] Production.INFO: count ==2208 [2025-01-03 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:47:05 - End Time 2025-01-03 19:47:05 [2025-01-03 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167781', 'tblTempUsageDetail_20' ) start [2025-01-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167781', 'tblTempUsageDetail_20' ) end [2025-01-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167781', 'tblTempVendorCDR_20' ) start [2025-01-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167781', 'tblTempVendorCDR_20' ) end [2025-01-03 19:47:19] Production.INFO: ProcessCDR(1,14167781,1,1,2) [2025-01-03 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167781', 'tblTempUsageDetail_20' ) start [2025-01-03 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167781', 'tblTempUsageDetail_20' ) end [2025-01-03 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:47:22] Production.INFO: ==29442== Releasing lock... [2025-01-03 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:47:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-03 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:48:05 [end_date_ymd] => 2025-01-03 19:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:48:05' and `end` < '2025-01-03 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-01-03 19:48:19] Production.INFO: count ==2187 [2025-01-03 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:48:05 - End Time 2025-01-03 19:48:05 [2025-01-03 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167786', 'tblTempUsageDetail_20' ) start [2025-01-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167786', 'tblTempUsageDetail_20' ) end [2025-01-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167786', 'tblTempVendorCDR_20' ) start [2025-01-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167786', 'tblTempVendorCDR_20' ) end [2025-01-03 19:48:19] Production.INFO: ProcessCDR(1,14167786,1,1,2) [2025-01-03 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167786', 'tblTempUsageDetail_20' ) start [2025-01-03 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167786', 'tblTempUsageDetail_20' ) end [2025-01-03 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:48:22] Production.INFO: ==29513== Releasing lock... [2025-01-03 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:48:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-03 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:49:05 [end_date_ymd] => 2025-01-03 19:49:05 [RateCDR] => 1 ) [2025-01-03 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:49:05' and `end` < '2025-01-03 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-01-03 19:49:18] Production.INFO: count ==2175 [2025-01-03 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:49:05 - End Time 2025-01-03 19:49:05 [2025-01-03 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167791', 'tblTempUsageDetail_20' ) start [2025-01-03 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167791', 'tblTempUsageDetail_20' ) end [2025-01-03 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167791', 'tblTempVendorCDR_20' ) start [2025-01-03 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167791', 'tblTempVendorCDR_20' ) end [2025-01-03 19:49:19] Production.INFO: ProcessCDR(1,14167791,1,1,2) [2025-01-03 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167791', 'tblTempUsageDetail_20' ) start [2025-01-03 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167791', 'tblTempUsageDetail_20' ) end [2025-01-03 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:49:22] Production.INFO: ==29588== Releasing lock... [2025-01-03 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:49:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-03 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:50:05 [end_date_ymd] => 2025-01-03 19:50:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:50:05' and `end` < '2025-01-03 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-01-03 19:50:18] Production.INFO: count ==2168 [2025-01-03 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:50:05 - End Time 2025-01-03 19:50:05 [2025-01-03 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167796', 'tblTempUsageDetail_20' ) start [2025-01-03 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167796', 'tblTempUsageDetail_20' ) end [2025-01-03 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167796', 'tblTempVendorCDR_20' ) start [2025-01-03 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167796', 'tblTempVendorCDR_20' ) end [2025-01-03 19:50:19] Production.INFO: ProcessCDR(1,14167796,1,1,2) [2025-01-03 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167796', 'tblTempUsageDetail_20' ) start [2025-01-03 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167796', 'tblTempUsageDetail_20' ) end [2025-01-03 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:50:22] Production.INFO: ==29661== Releasing lock... [2025-01-03 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:50:22] Production.INFO: 44 MB #Memory Used# [2025-01-03 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:51:05 [end_date_ymd] => 2025-01-03 19:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:51:05' and `end` < '2025-01-03 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-01-03 19:51:18] Production.INFO: count ==2120 [2025-01-03 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:51:05 - End Time 2025-01-03 19:51:05 [2025-01-03 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167802', 'tblTempUsageDetail_20' ) start [2025-01-03 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167802', 'tblTempUsageDetail_20' ) end [2025-01-03 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167802', 'tblTempVendorCDR_20' ) start [2025-01-03 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167802', 'tblTempVendorCDR_20' ) end [2025-01-03 19:51:19] Production.INFO: ProcessCDR(1,14167802,1,1,2) [2025-01-03 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167802', 'tblTempUsageDetail_20' ) start [2025-01-03 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167802', 'tblTempUsageDetail_20' ) end [2025-01-03 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:51:23] Production.INFO: ==29734== Releasing lock... [2025-01-03 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:51:23] Production.INFO: 44 MB #Memory Used# [2025-01-03 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:52:05 [end_date_ymd] => 2025-01-03 19:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:52:05' and `end` < '2025-01-03 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-01-03 19:52:18] Production.INFO: count ==2118 [2025-01-03 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 16:52:05 - End Time 2025-01-03 19:52:05 [2025-01-03 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167807', 'tblTempUsageDetail_20' ) start [2025-01-03 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167807', 'tblTempUsageDetail_20' ) end [2025-01-03 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167807', 'tblTempVendorCDR_20' ) start [2025-01-03 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167807', 'tblTempVendorCDR_20' ) end [2025-01-03 19:52:19] Production.INFO: ProcessCDR(1,14167807,1,1,2) [2025-01-03 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167807', 'tblTempUsageDetail_20' ) start [2025-01-03 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167807', 'tblTempUsageDetail_20' ) end [2025-01-03 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:52:22] Production.INFO: ==29804== Releasing lock... [2025-01-03 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:52:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-03 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:53:04 [end_date_ymd] => 2025-01-03 19:53:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:53:04' and `end` < '2025-01-03 19: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-01-03 19:53:17] Production.INFO: count ==2090 [2025-01-03 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:53:04 - End Time 2025-01-03 19:53:04 [2025-01-03 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167812', 'tblTempUsageDetail_20' ) start [2025-01-03 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167812', 'tblTempUsageDetail_20' ) end [2025-01-03 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167812', 'tblTempVendorCDR_20' ) start [2025-01-03 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167812', 'tblTempVendorCDR_20' ) end [2025-01-03 19:53:18] Production.INFO: ProcessCDR(1,14167812,1,1,2) [2025-01-03 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167812', 'tblTempUsageDetail_20' ) start [2025-01-03 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167812', 'tblTempUsageDetail_20' ) end [2025-01-03 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:53:22] Production.INFO: ==29873== Releasing lock... [2025-01-03 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:53:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-03 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:54:05 [end_date_ymd] => 2025-01-03 19:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:54:05' and `end` < '2025-01-03 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-01-03 19:54:19] Production.INFO: count ==2089 [2025-01-03 19:54:20] Production.ERROR: pbx CDR StartTime 2025-01-03 16:54:05 - End Time 2025-01-03 19:54:05 [2025-01-03 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167817', 'tblTempUsageDetail_20' ) start [2025-01-03 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167817', 'tblTempUsageDetail_20' ) end [2025-01-03 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167817', 'tblTempVendorCDR_20' ) start [2025-01-03 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167817', 'tblTempVendorCDR_20' ) end [2025-01-03 19:54:20] Production.INFO: ProcessCDR(1,14167817,1,1,2) [2025-01-03 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167817', 'tblTempUsageDetail_20' ) start [2025-01-03 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167817', 'tblTempUsageDetail_20' ) end [2025-01-03 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:54:23] Production.INFO: ==29944== Releasing lock... [2025-01-03 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:54:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-03 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:55:05 [end_date_ymd] => 2025-01-03 19:55:05 [RateCDR] => 1 ) [2025-01-03 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 16:55:05' and `end` < '2025-01-03 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 19:55:17] Production.INFO: count ==2079 [2025-01-03 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:55:05 - End Time 2025-01-03 19:55:05 [2025-01-03 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167822', 'tblTempUsageDetail_20' ) start [2025-01-03 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167822', 'tblTempUsageDetail_20' ) end [2025-01-03 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167822', 'tblTempVendorCDR_20' ) start [2025-01-03 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167822', 'tblTempVendorCDR_20' ) end [2025-01-03 19:55:18] Production.INFO: ProcessCDR(1,14167822,1,1,2) [2025-01-03 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167822', 'tblTempUsageDetail_20' ) start [2025-01-03 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167822', 'tblTempUsageDetail_20' ) end [2025-01-03 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:55:21] Production.INFO: ==30014== Releasing lock... [2025-01-03 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:55:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-03 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:56:05 [end_date_ymd] => 2025-01-03 19:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:56:05' and `end` < '2025-01-03 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-01-03 19:56:18] Production.INFO: count ==2047 [2025-01-03 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:56:05 - End Time 2025-01-03 19:56:05 [2025-01-03 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167827', 'tblTempUsageDetail_20' ) start [2025-01-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167827', 'tblTempUsageDetail_20' ) end [2025-01-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167827', 'tblTempVendorCDR_20' ) start [2025-01-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167827', 'tblTempVendorCDR_20' ) end [2025-01-03 19:56:18] Production.INFO: ProcessCDR(1,14167827,1,1,2) [2025-01-03 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167827', 'tblTempUsageDetail_20' ) start [2025-01-03 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167827', 'tblTempUsageDetail_20' ) end [2025-01-03 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:56:21] Production.INFO: ==30089== Releasing lock... [2025-01-03 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:56:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-03 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:57:05 [end_date_ymd] => 2025-01-03 19:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:57:05' and `end` < '2025-01-03 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-01-03 19:57:18] Production.INFO: count ==2036 [2025-01-03 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:57:05 - End Time 2025-01-03 19:57:05 [2025-01-03 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167832', 'tblTempUsageDetail_20' ) start [2025-01-03 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167832', 'tblTempUsageDetail_20' ) end [2025-01-03 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167832', 'tblTempVendorCDR_20' ) start [2025-01-03 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167832', 'tblTempVendorCDR_20' ) end [2025-01-03 19:57:18] Production.INFO: ProcessCDR(1,14167832,1,1,2) [2025-01-03 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167832', 'tblTempUsageDetail_20' ) start [2025-01-03 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167832', 'tblTempUsageDetail_20' ) end [2025-01-03 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:57:21] Production.INFO: ==30159== Releasing lock... [2025-01-03 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:57:21] Production.INFO: 43 MB #Memory Used# [2025-01-03 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:58:05 [end_date_ymd] => 2025-01-03 19:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 16:58:05' and `end` < '2025-01-03 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-01-03 19:58:18] Production.INFO: count ==2018 [2025-01-03 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:58:05 - End Time 2025-01-03 19:58:05 [2025-01-03 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167837', 'tblTempUsageDetail_20' ) start [2025-01-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167837', 'tblTempUsageDetail_20' ) end [2025-01-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167837', 'tblTempVendorCDR_20' ) start [2025-01-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167837', 'tblTempVendorCDR_20' ) end [2025-01-03 19:58:18] Production.INFO: ProcessCDR(1,14167837,1,1,2) [2025-01-03 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167837', 'tblTempUsageDetail_20' ) start [2025-01-03 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167837', 'tblTempUsageDetail_20' ) end [2025-01-03 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:58:21] Production.INFO: ==30271== Releasing lock... [2025-01-03 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:58:21] Production.INFO: 43 MB #Memory Used# [2025-01-03 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 16:59:04 [end_date_ymd] => 2025-01-03 19:59:04 [RateCDR] => 1 ) [2025-01-03 19: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-01-03 16:59:04' and `end` < '2025-01-03 19: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-01-03 19:59:17] Production.INFO: count ==2012 [2025-01-03 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 16:59:04 - End Time 2025-01-03 19:59:04 [2025-01-03 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167842', 'tblTempUsageDetail_20' ) start [2025-01-03 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167842', 'tblTempUsageDetail_20' ) end [2025-01-03 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167842', 'tblTempVendorCDR_20' ) start [2025-01-03 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167842', 'tblTempVendorCDR_20' ) end [2025-01-03 19:59:18] Production.INFO: ProcessCDR(1,14167842,1,1,2) [2025-01-03 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167842', 'tblTempUsageDetail_20' ) start [2025-01-03 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167842', 'tblTempUsageDetail_20' ) end [2025-01-03 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 19:59:21] Production.INFO: ==30345== Releasing lock... [2025-01-03 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 19:59:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-03 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:00:06 [end_date_ymd] => 2025-01-03 20:00:06 [RateCDR] => 1 ) [2025-01-03 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:00:06' and `end` < '2025-01-03 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:00:19] Production.INFO: count ==2006 [2025-01-03 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:00:06 - End Time 2025-01-03 20:00:06 [2025-01-03 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167848', 'tblTempUsageDetail_20' ) start [2025-01-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167848', 'tblTempUsageDetail_20' ) end [2025-01-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167848', 'tblTempVendorCDR_20' ) start [2025-01-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167848', 'tblTempVendorCDR_20' ) end [2025-01-03 20:00:19] Production.INFO: ProcessCDR(1,14167848,1,1,2) [2025-01-03 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167848', 'tblTempUsageDetail_20' ) start [2025-01-03 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167848', 'tblTempUsageDetail_20' ) end [2025-01-03 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:00:24] Production.INFO: ==30426== Releasing lock... [2025-01-03 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:00:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-03 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:01:04 [end_date_ymd] => 2025-01-03 20:01:04 [RateCDR] => 1 ) [2025-01-03 20: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-01-03 17:01:04' and `end` < '2025-01-03 20: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-01-03 20:01:17] Production.INFO: count ==1953 [2025-01-03 20:01:17] Production.ERROR: pbx CDR StartTime 2025-01-03 17:01:04 - End Time 2025-01-03 20:01:04 [2025-01-03 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167853', 'tblTempUsageDetail_20' ) start [2025-01-03 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167853', 'tblTempUsageDetail_20' ) end [2025-01-03 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167853', 'tblTempVendorCDR_20' ) start [2025-01-03 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167853', 'tblTempVendorCDR_20' ) end [2025-01-03 20:01:17] Production.INFO: ProcessCDR(1,14167853,1,1,2) [2025-01-03 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167853', 'tblTempUsageDetail_20' ) start [2025-01-03 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167853', 'tblTempUsageDetail_20' ) end [2025-01-03 20:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:01:20] Production.INFO: ==30553== Releasing lock... [2025-01-03 20:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:01:20] Production.INFO: 42.75 MB #Memory Used# [2025-01-03 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:02:05 [end_date_ymd] => 2025-01-03 20:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:02:05' and `end` < '2025-01-03 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-01-03 20:02:18] Production.INFO: count ==1934 [2025-01-03 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:02:05 - End Time 2025-01-03 20:02:05 [2025-01-03 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167858', 'tblTempUsageDetail_20' ) start [2025-01-03 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167858', 'tblTempUsageDetail_20' ) end [2025-01-03 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167858', 'tblTempVendorCDR_20' ) start [2025-01-03 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167858', 'tblTempVendorCDR_20' ) end [2025-01-03 20:02:18] Production.INFO: ProcessCDR(1,14167858,1,1,2) [2025-01-03 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167858', 'tblTempUsageDetail_20' ) start [2025-01-03 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167858', 'tblTempUsageDetail_20' ) end [2025-01-03 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:02:21] Production.INFO: ==30628== Releasing lock... [2025-01-03 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:02:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:03:05 [end_date_ymd] => 2025-01-03 20:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:03:05' and `end` < '2025-01-03 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-01-03 20:03:18] Production.INFO: count ==1934 [2025-01-03 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:03:05 - End Time 2025-01-03 20:03:05 [2025-01-03 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167863', 'tblTempUsageDetail_20' ) start [2025-01-03 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167863', 'tblTempUsageDetail_20' ) end [2025-01-03 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167863', 'tblTempVendorCDR_20' ) start [2025-01-03 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167863', 'tblTempVendorCDR_20' ) end [2025-01-03 20:03:18] Production.INFO: ProcessCDR(1,14167863,1,1,2) [2025-01-03 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167863', 'tblTempUsageDetail_20' ) start [2025-01-03 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167863', 'tblTempUsageDetail_20' ) end [2025-01-03 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:03:21] Production.INFO: ==30705== Releasing lock... [2025-01-03 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:03:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:04:05 [end_date_ymd] => 2025-01-03 20:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:04:05' and `end` < '2025-01-03 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-01-03 20:04:18] Production.INFO: count ==1929 [2025-01-03 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:04:05 - End Time 2025-01-03 20:04:05 [2025-01-03 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167868', 'tblTempUsageDetail_20' ) start [2025-01-03 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167868', 'tblTempUsageDetail_20' ) end [2025-01-03 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167868', 'tblTempVendorCDR_20' ) start [2025-01-03 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167868', 'tblTempVendorCDR_20' ) end [2025-01-03 20:04:18] Production.INFO: ProcessCDR(1,14167868,1,1,2) [2025-01-03 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167868', 'tblTempUsageDetail_20' ) start [2025-01-03 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167868', 'tblTempUsageDetail_20' ) end [2025-01-03 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:04:23] Production.INFO: ==30784== Releasing lock... [2025-01-03 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:04:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:05:04 [end_date_ymd] => 2025-01-03 20:05:04 [RateCDR] => 1 ) [2025-01-03 20: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-01-03 17:05:04' and `end` < '2025-01-03 20: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-01-03 20:05:17] Production.INFO: count ==1924 [2025-01-03 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:05:04 - End Time 2025-01-03 20:05:04 [2025-01-03 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167873', 'tblTempUsageDetail_20' ) start [2025-01-03 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167873', 'tblTempUsageDetail_20' ) end [2025-01-03 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167873', 'tblTempVendorCDR_20' ) start [2025-01-03 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167873', 'tblTempVendorCDR_20' ) end [2025-01-03 20:05:18] Production.INFO: ProcessCDR(1,14167873,1,1,2) [2025-01-03 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167873', 'tblTempUsageDetail_20' ) start [2025-01-03 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167873', 'tblTempUsageDetail_20' ) end [2025-01-03 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:05:22] Production.INFO: ==30866== Releasing lock... [2025-01-03 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:05:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:06:05 [end_date_ymd] => 2025-01-03 20:06:05 [RateCDR] => 1 ) [2025-01-03 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:06:05' and `end` < '2025-01-03 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:06:18] Production.INFO: count ==1920 [2025-01-03 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:06:05 - End Time 2025-01-03 20:06:05 [2025-01-03 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167878', 'tblTempUsageDetail_20' ) start [2025-01-03 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167878', 'tblTempUsageDetail_20' ) end [2025-01-03 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167878', 'tblTempVendorCDR_20' ) start [2025-01-03 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167878', 'tblTempVendorCDR_20' ) end [2025-01-03 20:06:19] Production.INFO: ProcessCDR(1,14167878,1,1,2) [2025-01-03 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167878', 'tblTempUsageDetail_20' ) start [2025-01-03 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167878', 'tblTempUsageDetail_20' ) end [2025-01-03 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:06:22] Production.INFO: ==30955== Releasing lock... [2025-01-03 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:06:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-03 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:07:04 [end_date_ymd] => 2025-01-03 20:07:04 [RateCDR] => 1 ) [2025-01-03 20: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-01-03 17:07:04' and `end` < '2025-01-03 20: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-01-03 20:07:17] Production.INFO: count ==1912 [2025-01-03 20:07:17] Production.ERROR: pbx CDR StartTime 2025-01-03 17:07:04 - End Time 2025-01-03 20:07:04 [2025-01-03 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167883', 'tblTempUsageDetail_20' ) start [2025-01-03 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167883', 'tblTempUsageDetail_20' ) end [2025-01-03 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167883', 'tblTempVendorCDR_20' ) start [2025-01-03 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167883', 'tblTempVendorCDR_20' ) end [2025-01-03 20:07:17] Production.INFO: ProcessCDR(1,14167883,1,1,2) [2025-01-03 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167883', 'tblTempUsageDetail_20' ) start [2025-01-03 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167883', 'tblTempUsageDetail_20' ) end [2025-01-03 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:07:22] Production.INFO: ==31031== Releasing lock... [2025-01-03 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:07:22] Production.INFO: 42 MB #Memory Used# [2025-01-03 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:08:05 [end_date_ymd] => 2025-01-03 20:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:08:05' and `end` < '2025-01-03 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-01-03 20:08:19] Production.INFO: count ==1913 [2025-01-03 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:08:05 - End Time 2025-01-03 20:08:05 [2025-01-03 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167888', 'tblTempUsageDetail_20' ) start [2025-01-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167888', 'tblTempUsageDetail_20' ) end [2025-01-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167888', 'tblTempVendorCDR_20' ) start [2025-01-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167888', 'tblTempVendorCDR_20' ) end [2025-01-03 20:08:19] Production.INFO: ProcessCDR(1,14167888,1,1,2) [2025-01-03 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167888', 'tblTempUsageDetail_20' ) start [2025-01-03 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167888', 'tblTempUsageDetail_20' ) end [2025-01-03 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:08:23] Production.INFO: ==31113== Releasing lock... [2025-01-03 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:08:23] Production.INFO: 42 MB #Memory Used# [2025-01-03 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:09:04 [end_date_ymd] => 2025-01-03 20:09:04 [RateCDR] => 1 ) [2025-01-03 20:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:09:04' and `end` < '2025-01-03 20:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:09:17] Production.INFO: count ==1909 [2025-01-03 20:09:17] Production.ERROR: pbx CDR StartTime 2025-01-03 17:09:04 - End Time 2025-01-03 20:09:04 [2025-01-03 20:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167893', 'tblTempUsageDetail_20' ) start [2025-01-03 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167893', 'tblTempUsageDetail_20' ) end [2025-01-03 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167893', 'tblTempVendorCDR_20' ) start [2025-01-03 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167893', 'tblTempVendorCDR_20' ) end [2025-01-03 20:09:18] Production.INFO: ProcessCDR(1,14167893,1,1,2) [2025-01-03 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167893', 'tblTempUsageDetail_20' ) start [2025-01-03 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167893', 'tblTempUsageDetail_20' ) end [2025-01-03 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:09:21] Production.INFO: ==31185== Releasing lock... [2025-01-03 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:09:21] Production.INFO: 42 MB #Memory Used# [2025-01-03 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:10:06 [end_date_ymd] => 2025-01-03 20:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:10:06' and `end` < '2025-01-03 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-01-03 20:10:19] Production.INFO: count ==1878 [2025-01-03 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:10:06 - End Time 2025-01-03 20:10:06 [2025-01-03 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167899', 'tblTempUsageDetail_20' ) start [2025-01-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167899', 'tblTempUsageDetail_20' ) end [2025-01-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167899', 'tblTempVendorCDR_20' ) start [2025-01-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167899', 'tblTempVendorCDR_20' ) end [2025-01-03 20:10:19] Production.INFO: ProcessCDR(1,14167899,1,1,2) [2025-01-03 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167899', 'tblTempUsageDetail_20' ) start [2025-01-03 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167899', 'tblTempUsageDetail_20' ) end [2025-01-03 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:10:22] Production.INFO: ==31272== Releasing lock... [2025-01-03 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:10:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-03 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:11:06 [end_date_ymd] => 2025-01-03 20:11:06 [RateCDR] => 1 ) [2025-01-03 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:11:06' and `end` < '2025-01-03 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:11:19] Production.INFO: count ==1821 [2025-01-03 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:11:06 - End Time 2025-01-03 20:11:06 [2025-01-03 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167904', 'tblTempUsageDetail_20' ) start [2025-01-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167904', 'tblTempUsageDetail_20' ) end [2025-01-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167904', 'tblTempVendorCDR_20' ) start [2025-01-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167904', 'tblTempVendorCDR_20' ) end [2025-01-03 20:11:19] Production.INFO: ProcessCDR(1,14167904,1,1,2) [2025-01-03 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167904', 'tblTempUsageDetail_20' ) start [2025-01-03 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167904', 'tblTempUsageDetail_20' ) end [2025-01-03 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:11:22] Production.INFO: ==31350== Releasing lock... [2025-01-03 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-03 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:12:05 [end_date_ymd] => 2025-01-03 20:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:12:05' and `end` < '2025-01-03 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-01-03 20:12:19] Production.INFO: count ==1812 [2025-01-03 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:12:05 - End Time 2025-01-03 20:12:05 [2025-01-03 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167909', 'tblTempUsageDetail_20' ) start [2025-01-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167909', 'tblTempUsageDetail_20' ) end [2025-01-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167909', 'tblTempVendorCDR_20' ) start [2025-01-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167909', 'tblTempVendorCDR_20' ) end [2025-01-03 20:12:19] Production.INFO: ProcessCDR(1,14167909,1,1,2) [2025-01-03 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167909', 'tblTempUsageDetail_20' ) start [2025-01-03 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167909', 'tblTempUsageDetail_20' ) end [2025-01-03 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:12:22] Production.INFO: ==31424== Releasing lock... [2025-01-03 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-03 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:13:05 [end_date_ymd] => 2025-01-03 20:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:13:05' and `end` < '2025-01-03 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-01-03 20:13:18] Production.INFO: count ==1806 [2025-01-03 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:13:05 - End Time 2025-01-03 20:13:05 [2025-01-03 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167914', 'tblTempUsageDetail_20' ) start [2025-01-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167914', 'tblTempUsageDetail_20' ) end [2025-01-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167914', 'tblTempVendorCDR_20' ) start [2025-01-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167914', 'tblTempVendorCDR_20' ) end [2025-01-03 20:13:18] Production.INFO: ProcessCDR(1,14167914,1,1,2) [2025-01-03 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167914', 'tblTempUsageDetail_20' ) start [2025-01-03 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167914', 'tblTempUsageDetail_20' ) end [2025-01-03 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:13:23] Production.INFO: ==31504== Releasing lock... [2025-01-03 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:13:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-03 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:14:05 [end_date_ymd] => 2025-01-03 20:14:05 [RateCDR] => 1 ) [2025-01-03 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:14:05' and `end` < '2025-01-03 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:14:17] Production.INFO: count ==1805 [2025-01-03 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:14:05 - End Time 2025-01-03 20:14:05 [2025-01-03 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167919', 'tblTempUsageDetail_20' ) start [2025-01-03 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167919', 'tblTempUsageDetail_20' ) end [2025-01-03 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167919', 'tblTempVendorCDR_20' ) start [2025-01-03 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167919', 'tblTempVendorCDR_20' ) end [2025-01-03 20:14:18] Production.INFO: ProcessCDR(1,14167919,1,1,2) [2025-01-03 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167919', 'tblTempUsageDetail_20' ) start [2025-01-03 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167919', 'tblTempUsageDetail_20' ) end [2025-01-03 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:14:21] Production.INFO: ==31616== Releasing lock... [2025-01-03 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:14:21] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:15:05 [end_date_ymd] => 2025-01-03 20:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:15:05' and `end` < '2025-01-03 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-01-03 20:15:20] Production.INFO: count ==1802 [2025-01-03 20:15:20] Production.ERROR: pbx CDR StartTime 2025-01-03 17:15:05 - End Time 2025-01-03 20:15:05 [2025-01-03 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167924', 'tblTempUsageDetail_20' ) start [2025-01-03 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167924', 'tblTempUsageDetail_20' ) end [2025-01-03 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167924', 'tblTempVendorCDR_20' ) start [2025-01-03 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167924', 'tblTempVendorCDR_20' ) end [2025-01-03 20:15:20] Production.INFO: ProcessCDR(1,14167924,1,1,2) [2025-01-03 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167924', 'tblTempUsageDetail_20' ) start [2025-01-03 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167924', 'tblTempUsageDetail_20' ) end [2025-01-03 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:15:23] Production.INFO: ==31697== Releasing lock... [2025-01-03 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:15:23] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:16:05 [end_date_ymd] => 2025-01-03 20:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:16:05' and `end` < '2025-01-03 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-01-03 20:16:18] Production.INFO: count ==1803 [2025-01-03 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:16:05 - End Time 2025-01-03 20:16:05 [2025-01-03 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167929', 'tblTempUsageDetail_20' ) start [2025-01-03 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167929', 'tblTempUsageDetail_20' ) end [2025-01-03 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167929', 'tblTempVendorCDR_20' ) start [2025-01-03 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167929', 'tblTempVendorCDR_20' ) end [2025-01-03 20:16:18] Production.INFO: ProcessCDR(1,14167929,1,1,2) [2025-01-03 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167929', 'tblTempUsageDetail_20' ) start [2025-01-03 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167929', 'tblTempUsageDetail_20' ) end [2025-01-03 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:16:23] Production.INFO: ==31779== Releasing lock... [2025-01-03 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:16:23] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:17:05 [end_date_ymd] => 2025-01-03 20:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:17:05' and `end` < '2025-01-03 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-01-03 20:17:18] Production.INFO: count ==1800 [2025-01-03 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:17:05 - End Time 2025-01-03 20:17:05 [2025-01-03 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167934', 'tblTempUsageDetail_20' ) start [2025-01-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167934', 'tblTempUsageDetail_20' ) end [2025-01-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167934', 'tblTempVendorCDR_20' ) start [2025-01-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167934', 'tblTempVendorCDR_20' ) end [2025-01-03 20:17:19] Production.INFO: ProcessCDR(1,14167934,1,1,2) [2025-01-03 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167934', 'tblTempUsageDetail_20' ) start [2025-01-03 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167934', 'tblTempUsageDetail_20' ) end [2025-01-03 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:17:22] Production.INFO: ==31860== Releasing lock... [2025-01-03 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:17:22] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:18:04 [end_date_ymd] => 2025-01-03 20:18:04 [RateCDR] => 1 ) [2025-01-03 20:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:18:04' and `end` < '2025-01-03 20:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:18:17] Production.INFO: count ==1793 [2025-01-03 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:18:04 - End Time 2025-01-03 20:18:04 [2025-01-03 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167939', 'tblTempUsageDetail_20' ) start [2025-01-03 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167939', 'tblTempUsageDetail_20' ) end [2025-01-03 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167939', 'tblTempVendorCDR_20' ) start [2025-01-03 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167939', 'tblTempVendorCDR_20' ) end [2025-01-03 20:18:18] Production.INFO: ProcessCDR(1,14167939,1,1,2) [2025-01-03 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167939', 'tblTempUsageDetail_20' ) start [2025-01-03 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167939', 'tblTempUsageDetail_20' ) end [2025-01-03 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:18:22] Production.INFO: ==31943== Releasing lock... [2025-01-03 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:18:22] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:19:05 [end_date_ymd] => 2025-01-03 20:19:05 [RateCDR] => 1 ) [2025-01-03 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:19:05' and `end` < '2025-01-03 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:19:18] Production.INFO: count ==1791 [2025-01-03 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:19:05 - End Time 2025-01-03 20:19:05 [2025-01-03 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167944', 'tblTempUsageDetail_20' ) start [2025-01-03 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167944', 'tblTempUsageDetail_20' ) end [2025-01-03 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167944', 'tblTempVendorCDR_20' ) start [2025-01-03 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167944', 'tblTempVendorCDR_20' ) end [2025-01-03 20:19:18] Production.INFO: ProcessCDR(1,14167944,1,1,2) [2025-01-03 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167944', 'tblTempUsageDetail_20' ) start [2025-01-03 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167944', 'tblTempUsageDetail_20' ) end [2025-01-03 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:19:21] Production.INFO: ==32028== Releasing lock... [2025-01-03 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:19:21] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:20:05 [end_date_ymd] => 2025-01-03 20:20:05 [RateCDR] => 1 ) [2025-01-03 20: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-01-03 17:20:05' and `end` < '2025-01-03 20: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-01-03 20:20:18] Production.INFO: count ==1785 [2025-01-03 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:20:05 - End Time 2025-01-03 20:20:05 [2025-01-03 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167949', 'tblTempUsageDetail_20' ) start [2025-01-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167949', 'tblTempUsageDetail_20' ) end [2025-01-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167949', 'tblTempVendorCDR_20' ) start [2025-01-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167949', 'tblTempVendorCDR_20' ) end [2025-01-03 20:20:19] Production.INFO: ProcessCDR(1,14167949,1,1,2) [2025-01-03 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167949', 'tblTempUsageDetail_20' ) start [2025-01-03 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167949', 'tblTempUsageDetail_20' ) end [2025-01-03 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:20:23] Production.INFO: ==32112== Releasing lock... [2025-01-03 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:20:23] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:21:05 [end_date_ymd] => 2025-01-03 20:21:05 [RateCDR] => 1 ) [2025-01-03 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:21:05' and `end` < '2025-01-03 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:21:19] Production.INFO: count ==1803 [2025-01-03 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:21:05 - End Time 2025-01-03 20:21:05 [2025-01-03 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167955', 'tblTempUsageDetail_20' ) start [2025-01-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167955', 'tblTempUsageDetail_20' ) end [2025-01-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167955', 'tblTempVendorCDR_20' ) start [2025-01-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167955', 'tblTempVendorCDR_20' ) end [2025-01-03 20:21:19] Production.INFO: ProcessCDR(1,14167955,1,1,2) [2025-01-03 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167955', 'tblTempUsageDetail_20' ) start [2025-01-03 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167955', 'tblTempUsageDetail_20' ) end [2025-01-03 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:21:22] Production.INFO: ==32188== Releasing lock... [2025-01-03 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:21:22] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:22:04 [end_date_ymd] => 2025-01-03 20:22:04 [RateCDR] => 1 ) [2025-01-03 20:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:22:04' and `end` < '2025-01-03 20:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:22:18] Production.INFO: count ==1800 [2025-01-03 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:22:04 - End Time 2025-01-03 20:22:04 [2025-01-03 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167960', 'tblTempUsageDetail_20' ) start [2025-01-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167960', 'tblTempUsageDetail_20' ) end [2025-01-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167960', 'tblTempVendorCDR_20' ) start [2025-01-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167960', 'tblTempVendorCDR_20' ) end [2025-01-03 20:22:18] Production.INFO: ProcessCDR(1,14167960,1,1,2) [2025-01-03 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167960', 'tblTempUsageDetail_20' ) start [2025-01-03 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167960', 'tblTempUsageDetail_20' ) end [2025-01-03 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:22:21] Production.INFO: ==32265== Releasing lock... [2025-01-03 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:22:21] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:23:05 [end_date_ymd] => 2025-01-03 20:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:23:05' and `end` < '2025-01-03 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-01-03 20:23:18] Production.INFO: count ==1800 [2025-01-03 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:23:05 - End Time 2025-01-03 20:23:05 [2025-01-03 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167965', 'tblTempUsageDetail_20' ) start [2025-01-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167965', 'tblTempUsageDetail_20' ) end [2025-01-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167965', 'tblTempVendorCDR_20' ) start [2025-01-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167965', 'tblTempVendorCDR_20' ) end [2025-01-03 20:23:19] Production.INFO: ProcessCDR(1,14167965,1,1,2) [2025-01-03 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167965', 'tblTempUsageDetail_20' ) start [2025-01-03 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167965', 'tblTempUsageDetail_20' ) end [2025-01-03 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:23:22] Production.INFO: ==32362== Releasing lock... [2025-01-03 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:23:22] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:24:05 [end_date_ymd] => 2025-01-03 20:24:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:24:05' and `end` < '2025-01-03 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-01-03 20:24:18] Production.INFO: count ==1798 [2025-01-03 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:24:05 - End Time 2025-01-03 20:24:05 [2025-01-03 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167970', 'tblTempUsageDetail_20' ) start [2025-01-03 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167970', 'tblTempUsageDetail_20' ) end [2025-01-03 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167970', 'tblTempVendorCDR_20' ) start [2025-01-03 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167970', 'tblTempVendorCDR_20' ) end [2025-01-03 20:24:18] Production.INFO: ProcessCDR(1,14167970,1,1,2) [2025-01-03 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167970', 'tblTempUsageDetail_20' ) start [2025-01-03 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167970', 'tblTempUsageDetail_20' ) end [2025-01-03 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:24:21] Production.INFO: ==32438== Releasing lock... [2025-01-03 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:24:21] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:25:05 [end_date_ymd] => 2025-01-03 20:25:05 [RateCDR] => 1 ) [2025-01-03 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:25:05' and `end` < '2025-01-03 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:25:18] Production.INFO: count ==1780 [2025-01-03 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:25:05 - End Time 2025-01-03 20:25:05 [2025-01-03 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167975', 'tblTempUsageDetail_20' ) start [2025-01-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167975', 'tblTempUsageDetail_20' ) end [2025-01-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167975', 'tblTempVendorCDR_20' ) start [2025-01-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167975', 'tblTempVendorCDR_20' ) end [2025-01-03 20:25:18] Production.INFO: ProcessCDR(1,14167975,1,1,2) [2025-01-03 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167975', 'tblTempUsageDetail_20' ) start [2025-01-03 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167975', 'tblTempUsageDetail_20' ) end [2025-01-03 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:25:21] Production.INFO: ==32515== Releasing lock... [2025-01-03 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:25:21] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:26:05 [end_date_ymd] => 2025-01-03 20:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:26:05' and `end` < '2025-01-03 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-01-03 20:26:18] Production.INFO: count ==1770 [2025-01-03 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:26:05 - End Time 2025-01-03 20:26:05 [2025-01-03 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167980', 'tblTempUsageDetail_20' ) start [2025-01-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167980', 'tblTempUsageDetail_20' ) end [2025-01-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167980', 'tblTempVendorCDR_20' ) start [2025-01-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167980', 'tblTempVendorCDR_20' ) end [2025-01-03 20:26:18] Production.INFO: ProcessCDR(1,14167980,1,1,2) [2025-01-03 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167980', 'tblTempUsageDetail_20' ) start [2025-01-03 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167980', 'tblTempUsageDetail_20' ) end [2025-01-03 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:26:21] Production.INFO: ==32595== Releasing lock... [2025-01-03 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:26:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-03 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:27:05 [end_date_ymd] => 2025-01-03 20:27:05 [RateCDR] => 1 ) [2025-01-03 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:27:05' and `end` < '2025-01-03 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:27:21] Production.INFO: count ==1762 [2025-01-03 20:27:21] Production.ERROR: pbx CDR StartTime 2025-01-03 17:27:05 - End Time 2025-01-03 20:27:05 [2025-01-03 20:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167985', 'tblTempUsageDetail_20' ) start [2025-01-03 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167985', 'tblTempUsageDetail_20' ) end [2025-01-03 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167985', 'tblTempVendorCDR_20' ) start [2025-01-03 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167985', 'tblTempVendorCDR_20' ) end [2025-01-03 20:27:21] Production.INFO: ProcessCDR(1,14167985,1,1,2) [2025-01-03 20:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167985', 'tblTempUsageDetail_20' ) start [2025-01-03 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167985', 'tblTempUsageDetail_20' ) end [2025-01-03 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:27:24] Production.INFO: ==32672== Releasing lock... [2025-01-03 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:27:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-03 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:28:05 [end_date_ymd] => 2025-01-03 20:28:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:28:05' and `end` < '2025-01-03 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-01-03 20:28:18] Production.INFO: count ==1759 [2025-01-03 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:28:05 - End Time 2025-01-03 20:28:05 [2025-01-03 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167990', 'tblTempUsageDetail_20' ) start [2025-01-03 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167990', 'tblTempUsageDetail_20' ) end [2025-01-03 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167990', 'tblTempVendorCDR_20' ) start [2025-01-03 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167990', 'tblTempVendorCDR_20' ) end [2025-01-03 20:28:18] Production.INFO: ProcessCDR(1,14167990,1,1,2) [2025-01-03 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167990', 'tblTempUsageDetail_20' ) start [2025-01-03 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167990', 'tblTempUsageDetail_20' ) end [2025-01-03 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:28:21] Production.INFO: ==32748== Releasing lock... [2025-01-03 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:28:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-03 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:29:05 [end_date_ymd] => 2025-01-03 20:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:29:05' and `end` < '2025-01-03 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-01-03 20:29:19] Production.INFO: count ==1766 [2025-01-03 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:29:05 - End Time 2025-01-03 20:29:05 [2025-01-03 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167995', 'tblTempUsageDetail_20' ) start [2025-01-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14167995', 'tblTempUsageDetail_20' ) end [2025-01-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167995', 'tblTempVendorCDR_20' ) start [2025-01-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14167995', 'tblTempVendorCDR_20' ) end [2025-01-03 20:29:19] Production.INFO: ProcessCDR(1,14167995,1,1,2) [2025-01-03 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14167995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14167995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14167995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14167995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167995', 'tblTempUsageDetail_20' ) start [2025-01-03 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14167995', 'tblTempUsageDetail_20' ) end [2025-01-03 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:29:22] Production.INFO: ==423== Releasing lock... [2025-01-03 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-03 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:30:05 [end_date_ymd] => 2025-01-03 20:30:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:30:05' and `end` < '2025-01-03 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-01-03 20:30:18] Production.INFO: count ==1763 [2025-01-03 20:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:30:05 - End Time 2025-01-03 20:30:05 [2025-01-03 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168000', 'tblTempUsageDetail_20' ) start [2025-01-03 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168000', 'tblTempUsageDetail_20' ) end [2025-01-03 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168000', 'tblTempVendorCDR_20' ) start [2025-01-03 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168000', 'tblTempVendorCDR_20' ) end [2025-01-03 20:30:18] Production.INFO: ProcessCDR(1,14168000,1,1,2) [2025-01-03 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168000', 'tblTempUsageDetail_20' ) start [2025-01-03 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168000', 'tblTempUsageDetail_20' ) end [2025-01-03 20:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:30:21] Production.INFO: ==502== Releasing lock... [2025-01-03 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:30:21] Production.INFO: 41 MB #Memory Used# [2025-01-03 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:31:05 [end_date_ymd] => 2025-01-03 20:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:31:05' and `end` < '2025-01-03 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-01-03 20:31:19] Production.INFO: count ==1727 [2025-01-03 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:31:05 - End Time 2025-01-03 20:31:05 [2025-01-03 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168006', 'tblTempUsageDetail_20' ) start [2025-01-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168006', 'tblTempUsageDetail_20' ) end [2025-01-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168006', 'tblTempVendorCDR_20' ) start [2025-01-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168006', 'tblTempVendorCDR_20' ) end [2025-01-03 20:31:19] Production.INFO: ProcessCDR(1,14168006,1,1,2) [2025-01-03 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168006', 'tblTempUsageDetail_20' ) start [2025-01-03 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168006', 'tblTempUsageDetail_20' ) end [2025-01-03 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:31:22] Production.INFO: ==582== Releasing lock... [2025-01-03 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:31:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:32:05 [end_date_ymd] => 2025-01-03 20:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:32:05' and `end` < '2025-01-03 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-01-03 20:32:18] Production.INFO: count ==1721 [2025-01-03 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:32:05 - End Time 2025-01-03 20:32:05 [2025-01-03 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168011', 'tblTempUsageDetail_20' ) start [2025-01-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168011', 'tblTempUsageDetail_20' ) end [2025-01-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168011', 'tblTempVendorCDR_20' ) start [2025-01-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168011', 'tblTempVendorCDR_20' ) end [2025-01-03 20:32:19] Production.INFO: ProcessCDR(1,14168011,1,1,2) [2025-01-03 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168011', 'tblTempUsageDetail_20' ) start [2025-01-03 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168011', 'tblTempUsageDetail_20' ) end [2025-01-03 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:32:22] Production.INFO: ==683== Releasing lock... [2025-01-03 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:32:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:33:06 [end_date_ymd] => 2025-01-03 20:33:06 [RateCDR] => 1 ) [2025-01-03 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:33:06' and `end` < '2025-01-03 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:33:20] Production.INFO: count ==1720 [2025-01-03 20:33:20] Production.ERROR: pbx CDR StartTime 2025-01-03 17:33:06 - End Time 2025-01-03 20:33:06 [2025-01-03 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168016', 'tblTempUsageDetail_20' ) start [2025-01-03 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168016', 'tblTempUsageDetail_20' ) end [2025-01-03 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168016', 'tblTempVendorCDR_20' ) start [2025-01-03 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168016', 'tblTempVendorCDR_20' ) end [2025-01-03 20:33:20] Production.INFO: ProcessCDR(1,14168016,1,1,2) [2025-01-03 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168016', 'tblTempUsageDetail_20' ) start [2025-01-03 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168016', 'tblTempUsageDetail_20' ) end [2025-01-03 20:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:33:25] Production.INFO: ==775== Releasing lock... [2025-01-03 20:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:33:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:34:05 [end_date_ymd] => 2025-01-03 20:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:34:05' and `end` < '2025-01-03 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-01-03 20:34:17] Production.INFO: count ==1717 [2025-01-03 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:34:05 - End Time 2025-01-03 20:34:05 [2025-01-03 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168021', 'tblTempUsageDetail_20' ) start [2025-01-03 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168021', 'tblTempUsageDetail_20' ) end [2025-01-03 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168021', 'tblTempVendorCDR_20' ) start [2025-01-03 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168021', 'tblTempVendorCDR_20' ) end [2025-01-03 20:34:18] Production.INFO: ProcessCDR(1,14168021,1,1,2) [2025-01-03 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168021', 'tblTempUsageDetail_20' ) start [2025-01-03 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168021', 'tblTempUsageDetail_20' ) end [2025-01-03 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:34:22] Production.INFO: ==855== Releasing lock... [2025-01-03 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:35:05 [end_date_ymd] => 2025-01-03 20:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:35:05' and `end` < '2025-01-03 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-01-03 20:35:19] Production.INFO: count ==1716 [2025-01-03 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:35:05 - End Time 2025-01-03 20:35:05 [2025-01-03 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168026', 'tblTempUsageDetail_20' ) start [2025-01-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168026', 'tblTempUsageDetail_20' ) end [2025-01-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168026', 'tblTempVendorCDR_20' ) start [2025-01-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168026', 'tblTempVendorCDR_20' ) end [2025-01-03 20:35:19] Production.INFO: ProcessCDR(1,14168026,1,1,2) [2025-01-03 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168026', 'tblTempUsageDetail_20' ) start [2025-01-03 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168026', 'tblTempUsageDetail_20' ) end [2025-01-03 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:35:22] Production.INFO: ==927== Releasing lock... [2025-01-03 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:36:05 [end_date_ymd] => 2025-01-03 20:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:36:05' and `end` < '2025-01-03 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-01-03 20:36:19] Production.INFO: count ==1714 [2025-01-03 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:36:05 - End Time 2025-01-03 20:36:05 [2025-01-03 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168031', 'tblTempUsageDetail_20' ) start [2025-01-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168031', 'tblTempUsageDetail_20' ) end [2025-01-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168031', 'tblTempVendorCDR_20' ) start [2025-01-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168031', 'tblTempVendorCDR_20' ) end [2025-01-03 20:36:19] Production.INFO: ProcessCDR(1,14168031,1,1,2) [2025-01-03 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168031', 'tblTempUsageDetail_20' ) start [2025-01-03 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168031', 'tblTempUsageDetail_20' ) end [2025-01-03 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:36:22] Production.INFO: ==1005== Releasing lock... [2025-01-03 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:37:05 [end_date_ymd] => 2025-01-03 20:37:05 [RateCDR] => 1 ) [2025-01-03 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:37:05' and `end` < '2025-01-03 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:37:19] Production.INFO: count ==1710 [2025-01-03 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:37:05 - End Time 2025-01-03 20:37:05 [2025-01-03 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168036', 'tblTempUsageDetail_20' ) start [2025-01-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168036', 'tblTempUsageDetail_20' ) end [2025-01-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168036', 'tblTempVendorCDR_20' ) start [2025-01-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168036', 'tblTempVendorCDR_20' ) end [2025-01-03 20:37:19] Production.INFO: ProcessCDR(1,14168036,1,1,2) [2025-01-03 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168036', 'tblTempUsageDetail_20' ) start [2025-01-03 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168036', 'tblTempUsageDetail_20' ) end [2025-01-03 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:37:24] Production.INFO: ==1084== Releasing lock... [2025-01-03 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:37:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:38:05 [end_date_ymd] => 2025-01-03 20:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:38:05' and `end` < '2025-01-03 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-01-03 20:38:18] Production.INFO: count ==1710 [2025-01-03 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:38:05 - End Time 2025-01-03 20:38:05 [2025-01-03 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168041', 'tblTempUsageDetail_20' ) start [2025-01-03 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168041', 'tblTempUsageDetail_20' ) end [2025-01-03 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168041', 'tblTempVendorCDR_20' ) start [2025-01-03 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168041', 'tblTempVendorCDR_20' ) end [2025-01-03 20:38:18] Production.INFO: ProcessCDR(1,14168041,1,1,2) [2025-01-03 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168041', 'tblTempUsageDetail_20' ) start [2025-01-03 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168041', 'tblTempUsageDetail_20' ) end [2025-01-03 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:38:23] Production.INFO: ==1167== Releasing lock... [2025-01-03 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:38:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:39:05 [end_date_ymd] => 2025-01-03 20:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:39:05' and `end` < '2025-01-03 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-01-03 20:39:18] Production.INFO: count ==1707 [2025-01-03 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:39:05 - End Time 2025-01-03 20:39:05 [2025-01-03 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168046', 'tblTempUsageDetail_20' ) start [2025-01-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168046', 'tblTempUsageDetail_20' ) end [2025-01-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168046', 'tblTempVendorCDR_20' ) start [2025-01-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168046', 'tblTempVendorCDR_20' ) end [2025-01-03 20:39:18] Production.INFO: ProcessCDR(1,14168046,1,1,2) [2025-01-03 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168046', 'tblTempUsageDetail_20' ) start [2025-01-03 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168046', 'tblTempUsageDetail_20' ) end [2025-01-03 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:39:23] Production.INFO: ==1259== Releasing lock... [2025-01-03 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-03 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:40:06 [end_date_ymd] => 2025-01-03 20:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:40:06' and `end` < '2025-01-03 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-01-03 20:40:19] Production.INFO: count ==1693 [2025-01-03 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:40:06 - End Time 2025-01-03 20:40:06 [2025-01-03 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168052', 'tblTempUsageDetail_20' ) start [2025-01-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168052', 'tblTempUsageDetail_20' ) end [2025-01-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168052', 'tblTempVendorCDR_20' ) start [2025-01-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168052', 'tblTempVendorCDR_20' ) end [2025-01-03 20:40:19] Production.INFO: ProcessCDR(1,14168052,1,1,2) [2025-01-03 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168052', 'tblTempUsageDetail_20' ) start [2025-01-03 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168052', 'tblTempUsageDetail_20' ) end [2025-01-03 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:40:22] Production.INFO: ==1337== Releasing lock... [2025-01-03 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-03 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:41:04 [end_date_ymd] => 2025-01-03 20:41:04 [RateCDR] => 1 ) [2025-01-03 20:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:41:04' and `end` < '2025-01-03 20:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:41:17] Production.INFO: count ==1612 [2025-01-03 20:41:17] Production.ERROR: pbx CDR StartTime 2025-01-03 17:41:04 - End Time 2025-01-03 20:41:04 [2025-01-03 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168057', 'tblTempUsageDetail_20' ) start [2025-01-03 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168057', 'tblTempUsageDetail_20' ) end [2025-01-03 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168057', 'tblTempVendorCDR_20' ) start [2025-01-03 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168057', 'tblTempVendorCDR_20' ) end [2025-01-03 20:41:17] Production.INFO: ProcessCDR(1,14168057,1,1,2) [2025-01-03 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168057', 'tblTempUsageDetail_20' ) start [2025-01-03 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168057', 'tblTempUsageDetail_20' ) end [2025-01-03 20:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:41:20] Production.INFO: ==1412== Releasing lock... [2025-01-03 20:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:41:20] Production.INFO: 39.75 MB #Memory Used# [2025-01-03 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:42:05 [end_date_ymd] => 2025-01-03 20:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:42:05' and `end` < '2025-01-03 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-01-03 20:42:19] Production.INFO: count ==1608 [2025-01-03 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:42:05 - End Time 2025-01-03 20:42:05 [2025-01-03 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168062', 'tblTempUsageDetail_20' ) start [2025-01-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168062', 'tblTempUsageDetail_20' ) end [2025-01-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168062', 'tblTempVendorCDR_20' ) start [2025-01-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168062', 'tblTempVendorCDR_20' ) end [2025-01-03 20:42:19] Production.INFO: ProcessCDR(1,14168062,1,1,2) [2025-01-03 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168062', 'tblTempUsageDetail_20' ) start [2025-01-03 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168062', 'tblTempUsageDetail_20' ) end [2025-01-03 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:42:22] Production.INFO: ==1485== Releasing lock... [2025-01-03 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:42:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:43:05 [end_date_ymd] => 2025-01-03 20:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:43:05' and `end` < '2025-01-03 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-01-03 20:43:18] Production.INFO: count ==1604 [2025-01-03 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:43:05 - End Time 2025-01-03 20:43:05 [2025-01-03 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168067', 'tblTempUsageDetail_20' ) start [2025-01-03 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168067', 'tblTempUsageDetail_20' ) end [2025-01-03 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168067', 'tblTempVendorCDR_20' ) start [2025-01-03 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168067', 'tblTempVendorCDR_20' ) end [2025-01-03 20:43:18] Production.INFO: ProcessCDR(1,14168067,1,1,2) [2025-01-03 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168067', 'tblTempUsageDetail_20' ) start [2025-01-03 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168067', 'tblTempUsageDetail_20' ) end [2025-01-03 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:43:21] Production.INFO: ==1595== Releasing lock... [2025-01-03 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:43:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:44:05 [end_date_ymd] => 2025-01-03 20:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:44:05' and `end` < '2025-01-03 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-01-03 20:44:19] Production.INFO: count ==1601 [2025-01-03 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:44:05 - End Time 2025-01-03 20:44:05 [2025-01-03 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168072', 'tblTempUsageDetail_20' ) start [2025-01-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168072', 'tblTempUsageDetail_20' ) end [2025-01-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168072', 'tblTempVendorCDR_20' ) start [2025-01-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168072', 'tblTempVendorCDR_20' ) end [2025-01-03 20:44:19] Production.INFO: ProcessCDR(1,14168072,1,1,2) [2025-01-03 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168072', 'tblTempUsageDetail_20' ) start [2025-01-03 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168072', 'tblTempUsageDetail_20' ) end [2025-01-03 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:44:22] Production.INFO: ==1671== Releasing lock... [2025-01-03 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:44:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:45:04 [end_date_ymd] => 2025-01-03 20:45:04 [RateCDR] => 1 ) [2025-01-03 20:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:45:04' and `end` < '2025-01-03 20:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:45:17] Production.INFO: count ==1606 [2025-01-03 20:45:17] Production.ERROR: pbx CDR StartTime 2025-01-03 17:45:04 - End Time 2025-01-03 20:45:04 [2025-01-03 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168077', 'tblTempUsageDetail_20' ) start [2025-01-03 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168077', 'tblTempUsageDetail_20' ) end [2025-01-03 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168077', 'tblTempVendorCDR_20' ) start [2025-01-03 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168077', 'tblTempVendorCDR_20' ) end [2025-01-03 20:45:17] Production.INFO: ProcessCDR(1,14168077,1,1,2) [2025-01-03 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168077', 'tblTempUsageDetail_20' ) start [2025-01-03 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168077', 'tblTempUsageDetail_20' ) end [2025-01-03 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:45:21] Production.INFO: ==1780== Releasing lock... [2025-01-03 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:45:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:46:05 [end_date_ymd] => 2025-01-03 20:46:05 [RateCDR] => 1 ) [2025-01-03 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:46:05' and `end` < '2025-01-03 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:46:19] Production.INFO: count ==1598 [2025-01-03 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:46:05 - End Time 2025-01-03 20:46:05 [2025-01-03 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168082', 'tblTempUsageDetail_20' ) start [2025-01-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168082', 'tblTempUsageDetail_20' ) end [2025-01-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168082', 'tblTempVendorCDR_20' ) start [2025-01-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168082', 'tblTempVendorCDR_20' ) end [2025-01-03 20:46:19] Production.INFO: ProcessCDR(1,14168082,1,1,2) [2025-01-03 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168082', 'tblTempUsageDetail_20' ) start [2025-01-03 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168082', 'tblTempUsageDetail_20' ) end [2025-01-03 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:46:23] Production.INFO: ==1859== Releasing lock... [2025-01-03 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:46:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:47:05 [end_date_ymd] => 2025-01-03 20:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:47:05' and `end` < '2025-01-03 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-01-03 20:47:18] Production.INFO: count ==1600 [2025-01-03 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:47:05 - End Time 2025-01-03 20:47:05 [2025-01-03 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168087', 'tblTempUsageDetail_20' ) start [2025-01-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168087', 'tblTempUsageDetail_20' ) end [2025-01-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168087', 'tblTempVendorCDR_20' ) start [2025-01-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168087', 'tblTempVendorCDR_20' ) end [2025-01-03 20:47:18] Production.INFO: ProcessCDR(1,14168087,1,1,2) [2025-01-03 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168087', 'tblTempUsageDetail_20' ) start [2025-01-03 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168087', 'tblTempUsageDetail_20' ) end [2025-01-03 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:47:21] Production.INFO: ==1929== Releasing lock... [2025-01-03 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:47:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:48:05 [end_date_ymd] => 2025-01-03 20:48:05 [RateCDR] => 1 ) [2025-01-03 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:48:05' and `end` < '2025-01-03 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:48:19] Production.INFO: count ==1598 [2025-01-03 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:48:05 - End Time 2025-01-03 20:48:05 [2025-01-03 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168092', 'tblTempUsageDetail_20' ) start [2025-01-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168092', 'tblTempUsageDetail_20' ) end [2025-01-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168092', 'tblTempVendorCDR_20' ) start [2025-01-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168092', 'tblTempVendorCDR_20' ) end [2025-01-03 20:48:19] Production.INFO: ProcessCDR(1,14168092,1,1,2) [2025-01-03 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168092', 'tblTempUsageDetail_20' ) start [2025-01-03 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168092', 'tblTempUsageDetail_20' ) end [2025-01-03 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:48:22] Production.INFO: ==2001== Releasing lock... [2025-01-03 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:49:05 [end_date_ymd] => 2025-01-03 20:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:49:05' and `end` < '2025-01-03 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-01-03 20:49:18] Production.INFO: count ==1599 [2025-01-03 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:49:05 - End Time 2025-01-03 20:49:05 [2025-01-03 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168097', 'tblTempUsageDetail_20' ) start [2025-01-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168097', 'tblTempUsageDetail_20' ) end [2025-01-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168097', 'tblTempVendorCDR_20' ) start [2025-01-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168097', 'tblTempVendorCDR_20' ) end [2025-01-03 20:49:18] Production.INFO: ProcessCDR(1,14168097,1,1,2) [2025-01-03 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168097', 'tblTempUsageDetail_20' ) start [2025-01-03 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168097', 'tblTempUsageDetail_20' ) end [2025-01-03 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:49:21] Production.INFO: ==2075== Releasing lock... [2025-01-03 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-03 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:50:06 [end_date_ymd] => 2025-01-03 20:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:50:06' and `end` < '2025-01-03 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-01-03 20:50:18] Production.INFO: count ==1596 [2025-01-03 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:50:06 - End Time 2025-01-03 20:50:06 [2025-01-03 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168103', 'tblTempUsageDetail_20' ) start [2025-01-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168103', 'tblTempUsageDetail_20' ) end [2025-01-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168103', 'tblTempVendorCDR_20' ) start [2025-01-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168103', 'tblTempVendorCDR_20' ) end [2025-01-03 20:50:19] Production.INFO: ProcessCDR(1,14168103,1,1,2) [2025-01-03 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168103', 'tblTempUsageDetail_20' ) start [2025-01-03 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168103', 'tblTempUsageDetail_20' ) end [2025-01-03 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:50:22] Production.INFO: ==2146== Releasing lock... [2025-01-03 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-03 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:51:05 [end_date_ymd] => 2025-01-03 20:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:51:05' and `end` < '2025-01-03 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-01-03 20:51:19] Production.INFO: count ==1536 [2025-01-03 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:51:05 - End Time 2025-01-03 20:51:05 [2025-01-03 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168108', 'tblTempUsageDetail_20' ) start [2025-01-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168108', 'tblTempUsageDetail_20' ) end [2025-01-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168108', 'tblTempVendorCDR_20' ) start [2025-01-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168108', 'tblTempVendorCDR_20' ) end [2025-01-03 20:51:19] Production.INFO: ProcessCDR(1,14168108,1,1,2) [2025-01-03 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168108', 'tblTempUsageDetail_20' ) start [2025-01-03 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168108', 'tblTempUsageDetail_20' ) end [2025-01-03 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:51:22] Production.INFO: ==2221== Releasing lock... [2025-01-03 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:51:22] Production.INFO: 39 MB #Memory Used# [2025-01-03 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:52:04 [end_date_ymd] => 2025-01-03 20:52:04 [RateCDR] => 1 ) [2025-01-03 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:52:04' and `end` < '2025-01-03 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:52:18] Production.INFO: count ==1532 [2025-01-03 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:52:04 - End Time 2025-01-03 20:52:04 [2025-01-03 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168113', 'tblTempUsageDetail_20' ) start [2025-01-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168113', 'tblTempUsageDetail_20' ) end [2025-01-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168113', 'tblTempVendorCDR_20' ) start [2025-01-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168113', 'tblTempVendorCDR_20' ) end [2025-01-03 20:52:18] Production.INFO: ProcessCDR(1,14168113,1,1,2) [2025-01-03 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168113', 'tblTempUsageDetail_20' ) start [2025-01-03 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168113', 'tblTempUsageDetail_20' ) end [2025-01-03 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:52:21] Production.INFO: ==2292== Releasing lock... [2025-01-03 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:52:21] Production.INFO: 39 MB #Memory Used# [2025-01-03 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:53:05 [end_date_ymd] => 2025-01-03 20:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:53:05' and `end` < '2025-01-03 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-01-03 20:53:18] Production.INFO: count ==1507 [2025-01-03 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:53:05 - End Time 2025-01-03 20:53:05 [2025-01-03 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168118', 'tblTempUsageDetail_20' ) start [2025-01-03 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168118', 'tblTempUsageDetail_20' ) end [2025-01-03 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168118', 'tblTempVendorCDR_20' ) start [2025-01-03 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168118', 'tblTempVendorCDR_20' ) end [2025-01-03 20:53:18] Production.INFO: ProcessCDR(1,14168118,1,1,2) [2025-01-03 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168118', 'tblTempUsageDetail_20' ) start [2025-01-03 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168118', 'tblTempUsageDetail_20' ) end [2025-01-03 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:53:21] Production.INFO: ==2363== Releasing lock... [2025-01-03 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:53:21] Production.INFO: 39 MB #Memory Used# [2025-01-03 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:54:05 [end_date_ymd] => 2025-01-03 20:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:54:05' and `end` < '2025-01-03 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-01-03 20:54:18] Production.INFO: count ==1497 [2025-01-03 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:54:05 - End Time 2025-01-03 20:54:05 [2025-01-03 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168123', 'tblTempUsageDetail_20' ) start [2025-01-03 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168123', 'tblTempUsageDetail_20' ) end [2025-01-03 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168123', 'tblTempVendorCDR_20' ) start [2025-01-03 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168123', 'tblTempVendorCDR_20' ) end [2025-01-03 20:54:18] Production.INFO: ProcessCDR(1,14168123,1,1,2) [2025-01-03 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168123', 'tblTempUsageDetail_20' ) start [2025-01-03 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168123', 'tblTempUsageDetail_20' ) end [2025-01-03 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:54:22] Production.INFO: ==2433== Releasing lock... [2025-01-03 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:54:22] Production.INFO: 39 MB #Memory Used# [2025-01-03 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:55:05 [end_date_ymd] => 2025-01-03 20:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:55:05' and `end` < '2025-01-03 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-01-03 20:55:19] Production.INFO: count ==1483 [2025-01-03 20:55:19] Production.ERROR: pbx CDR StartTime 2025-01-03 17:55:05 - End Time 2025-01-03 20:55:05 [2025-01-03 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168128', 'tblTempUsageDetail_20' ) start [2025-01-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168128', 'tblTempUsageDetail_20' ) end [2025-01-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168128', 'tblTempVendorCDR_20' ) start [2025-01-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168128', 'tblTempVendorCDR_20' ) end [2025-01-03 20:55:19] Production.INFO: ProcessCDR(1,14168128,1,1,2) [2025-01-03 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168128', 'tblTempUsageDetail_20' ) start [2025-01-03 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168128', 'tblTempUsageDetail_20' ) end [2025-01-03 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:55:22] Production.INFO: ==2503== Releasing lock... [2025-01-03 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:55:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-03 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:56:05 [end_date_ymd] => 2025-01-03 20:56:05 [RateCDR] => 1 ) [2025-01-03 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 17:56:05' and `end` < '2025-01-03 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 20:56:18] Production.INFO: count ==1456 [2025-01-03 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:56:05 - End Time 2025-01-03 20:56:05 [2025-01-03 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168133', 'tblTempUsageDetail_20' ) start [2025-01-03 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168133', 'tblTempUsageDetail_20' ) end [2025-01-03 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168133', 'tblTempVendorCDR_20' ) start [2025-01-03 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168133', 'tblTempVendorCDR_20' ) end [2025-01-03 20:56:18] Production.INFO: ProcessCDR(1,14168133,1,1,2) [2025-01-03 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168133', 'tblTempUsageDetail_20' ) start [2025-01-03 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168133', 'tblTempUsageDetail_20' ) end [2025-01-03 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:56:21] Production.INFO: ==2576== Releasing lock... [2025-01-03 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:56:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-03 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:57:05 [end_date_ymd] => 2025-01-03 20:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:57:05' and `end` < '2025-01-03 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-01-03 20:57:17] Production.INFO: count ==1454 [2025-01-03 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:57:05 - End Time 2025-01-03 20:57:05 [2025-01-03 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168138', 'tblTempUsageDetail_20' ) start [2025-01-03 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168138', 'tblTempUsageDetail_20' ) end [2025-01-03 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168138', 'tblTempVendorCDR_20' ) start [2025-01-03 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168138', 'tblTempVendorCDR_20' ) end [2025-01-03 20:57:18] Production.INFO: ProcessCDR(1,14168138,1,1,2) [2025-01-03 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168138', 'tblTempUsageDetail_20' ) start [2025-01-03 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168138', 'tblTempUsageDetail_20' ) end [2025-01-03 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:57:21] Production.INFO: ==2647== Releasing lock... [2025-01-03 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:57:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-03 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:58:05 [end_date_ymd] => 2025-01-03 20:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 17:58:05' and `end` < '2025-01-03 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-01-03 20:58:17] Production.INFO: count ==1440 [2025-01-03 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 17:58:05 - End Time 2025-01-03 20:58:05 [2025-01-03 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168143', 'tblTempUsageDetail_20' ) start [2025-01-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168143', 'tblTempUsageDetail_20' ) end [2025-01-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168143', 'tblTempVendorCDR_20' ) start [2025-01-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168143', 'tblTempVendorCDR_20' ) end [2025-01-03 20:58:18] Production.INFO: ProcessCDR(1,14168143,1,1,2) [2025-01-03 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168143', 'tblTempUsageDetail_20' ) start [2025-01-03 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168143', 'tblTempUsageDetail_20' ) end [2025-01-03 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:58:21] Production.INFO: ==2724== Releasing lock... [2025-01-03 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:58:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 17:59:04 [end_date_ymd] => 2025-01-03 20:59:04 [RateCDR] => 1 ) [2025-01-03 20: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-01-03 17:59:04' and `end` < '2025-01-03 20: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-01-03 20:59:17] Production.INFO: count ==1440 [2025-01-03 20:59:17] Production.ERROR: pbx CDR StartTime 2025-01-03 17:59:04 - End Time 2025-01-03 20:59:04 [2025-01-03 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168148', 'tblTempUsageDetail_20' ) start [2025-01-03 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168148', 'tblTempUsageDetail_20' ) end [2025-01-03 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168148', 'tblTempVendorCDR_20' ) start [2025-01-03 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168148', 'tblTempVendorCDR_20' ) end [2025-01-03 20:59:17] Production.INFO: ProcessCDR(1,14168148,1,1,2) [2025-01-03 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168148', 'tblTempUsageDetail_20' ) start [2025-01-03 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168148', 'tblTempUsageDetail_20' ) end [2025-01-03 20:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 20:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 20:59:20] Production.INFO: ==2796== Releasing lock... [2025-01-03 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 20:59:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-03 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:00:05 [end_date_ymd] => 2025-01-03 21:00:05 [RateCDR] => 1 ) [2025-01-03 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:00:05' and `end` < '2025-01-03 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:00:18] Production.INFO: count ==1441 [2025-01-03 21:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:00:05 - End Time 2025-01-03 21:00:05 [2025-01-03 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168154', 'tblTempUsageDetail_20' ) start [2025-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168154', 'tblTempUsageDetail_20' ) end [2025-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168154', 'tblTempVendorCDR_20' ) start [2025-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168154', 'tblTempVendorCDR_20' ) end [2025-01-03 21:00:18] Production.INFO: ProcessCDR(1,14168154,1,1,2) [2025-01-03 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168154', 'tblTempUsageDetail_20' ) start [2025-01-03 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168154', 'tblTempUsageDetail_20' ) end [2025-01-03 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:00:23] Production.INFO: ==2867== Releasing lock... [2025-01-03 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-03 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:01:05 [end_date_ymd] => 2025-01-03 21:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:01:05' and `end` < '2025-01-03 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-01-03 21:01:19] Production.INFO: count ==1380 [2025-01-03 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:01:05 - End Time 2025-01-03 21:01:05 [2025-01-03 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168159', 'tblTempUsageDetail_20' ) start [2025-01-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168159', 'tblTempUsageDetail_20' ) end [2025-01-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168159', 'tblTempVendorCDR_20' ) start [2025-01-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168159', 'tblTempVendorCDR_20' ) end [2025-01-03 21:01:19] Production.INFO: ProcessCDR(1,14168159,1,1,2) [2025-01-03 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168159', 'tblTempUsageDetail_20' ) start [2025-01-03 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168159', 'tblTempUsageDetail_20' ) end [2025-01-03 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:01:22] Production.INFO: ==2992== Releasing lock... [2025-01-03 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:01:22] Production.INFO: 38 MB #Memory Used# [2025-01-03 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:02:05 [end_date_ymd] => 2025-01-03 21:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:02:05' and `end` < '2025-01-03 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-01-03 21:02:17] Production.INFO: count ==1364 [2025-01-03 21:02:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:02:05 - End Time 2025-01-03 21:02:05 [2025-01-03 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168164', 'tblTempUsageDetail_20' ) start [2025-01-03 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168164', 'tblTempUsageDetail_20' ) end [2025-01-03 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168164', 'tblTempVendorCDR_20' ) start [2025-01-03 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168164', 'tblTempVendorCDR_20' ) end [2025-01-03 21:02:18] Production.INFO: ProcessCDR(1,14168164,1,1,2) [2025-01-03 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168164', 'tblTempUsageDetail_20' ) start [2025-01-03 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168164', 'tblTempUsageDetail_20' ) end [2025-01-03 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:02:21] Production.INFO: ==3063== Releasing lock... [2025-01-03 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:02:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:03:05 [end_date_ymd] => 2025-01-03 21:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:03:05' and `end` < '2025-01-03 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-01-03 21:03:18] Production.INFO: count ==1363 [2025-01-03 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:03:05 - End Time 2025-01-03 21:03:05 [2025-01-03 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168169', 'tblTempUsageDetail_20' ) start [2025-01-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168169', 'tblTempUsageDetail_20' ) end [2025-01-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168169', 'tblTempVendorCDR_20' ) start [2025-01-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168169', 'tblTempVendorCDR_20' ) end [2025-01-03 21:03:18] Production.INFO: ProcessCDR(1,14168169,1,1,2) [2025-01-03 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168169', 'tblTempUsageDetail_20' ) start [2025-01-03 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168169', 'tblTempUsageDetail_20' ) end [2025-01-03 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:03:21] Production.INFO: ==3136== Releasing lock... [2025-01-03 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:03:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:04:04 [end_date_ymd] => 2025-01-03 21:04:04 [RateCDR] => 1 ) [2025-01-03 21:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:04:04' and `end` < '2025-01-03 21:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:04:18] Production.INFO: count ==1364 [2025-01-03 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:04:04 - End Time 2025-01-03 21:04:04 [2025-01-03 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168174', 'tblTempUsageDetail_20' ) start [2025-01-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168174', 'tblTempUsageDetail_20' ) end [2025-01-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168174', 'tblTempVendorCDR_20' ) start [2025-01-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168174', 'tblTempVendorCDR_20' ) end [2025-01-03 21:04:18] Production.INFO: ProcessCDR(1,14168174,1,1,2) [2025-01-03 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168174', 'tblTempUsageDetail_20' ) start [2025-01-03 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168174', 'tblTempUsageDetail_20' ) end [2025-01-03 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:04:22] Production.INFO: ==3208== Releasing lock... [2025-01-03 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:04:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:05:05 [end_date_ymd] => 2025-01-03 21:05:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:05:05' and `end` < '2025-01-03 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-01-03 21:05:17] Production.INFO: count ==1365 [2025-01-03 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:05:05 - End Time 2025-01-03 21:05:05 [2025-01-03 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168179', 'tblTempUsageDetail_20' ) start [2025-01-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168179', 'tblTempUsageDetail_20' ) end [2025-01-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168179', 'tblTempVendorCDR_20' ) start [2025-01-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168179', 'tblTempVendorCDR_20' ) end [2025-01-03 21:05:18] Production.INFO: ProcessCDR(1,14168179,1,1,2) [2025-01-03 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168179', 'tblTempUsageDetail_20' ) start [2025-01-03 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168179', 'tblTempUsageDetail_20' ) end [2025-01-03 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:05:22] Production.INFO: ==3280== Releasing lock... [2025-01-03 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:05:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:06:05 [end_date_ymd] => 2025-01-03 21:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:06:05' and `end` < '2025-01-03 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-01-03 21:06:19] Production.INFO: count ==1363 [2025-01-03 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:06:05 - End Time 2025-01-03 21:06:05 [2025-01-03 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168184', 'tblTempUsageDetail_20' ) start [2025-01-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168184', 'tblTempUsageDetail_20' ) end [2025-01-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168184', 'tblTempVendorCDR_20' ) start [2025-01-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168184', 'tblTempVendorCDR_20' ) end [2025-01-03 21:06:19] Production.INFO: ProcessCDR(1,14168184,1,1,2) [2025-01-03 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168184', 'tblTempUsageDetail_20' ) start [2025-01-03 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168184', 'tblTempUsageDetail_20' ) end [2025-01-03 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:06:22] Production.INFO: ==3350== Releasing lock... [2025-01-03 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:06:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:07:05 [end_date_ymd] => 2025-01-03 21:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:07:05' and `end` < '2025-01-03 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-01-03 21:07:18] Production.INFO: count ==1361 [2025-01-03 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:07:05 - End Time 2025-01-03 21:07:05 [2025-01-03 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168189', 'tblTempUsageDetail_20' ) start [2025-01-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168189', 'tblTempUsageDetail_20' ) end [2025-01-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168189', 'tblTempVendorCDR_20' ) start [2025-01-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168189', 'tblTempVendorCDR_20' ) end [2025-01-03 21:07:18] Production.INFO: ProcessCDR(1,14168189,1,1,2) [2025-01-03 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168189', 'tblTempUsageDetail_20' ) start [2025-01-03 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168189', 'tblTempUsageDetail_20' ) end [2025-01-03 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:07:21] Production.INFO: ==3422== Releasing lock... [2025-01-03 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:08:05 [end_date_ymd] => 2025-01-03 21:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:08:05' and `end` < '2025-01-03 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-01-03 21:08:18] Production.INFO: count ==1360 [2025-01-03 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:08:05 - End Time 2025-01-03 21:08:05 [2025-01-03 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168194', 'tblTempUsageDetail_20' ) start [2025-01-03 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168194', 'tblTempUsageDetail_20' ) end [2025-01-03 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168194', 'tblTempVendorCDR_20' ) start [2025-01-03 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168194', 'tblTempVendorCDR_20' ) end [2025-01-03 21:08:18] Production.INFO: ProcessCDR(1,14168194,1,1,2) [2025-01-03 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168194', 'tblTempUsageDetail_20' ) start [2025-01-03 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168194', 'tblTempUsageDetail_20' ) end [2025-01-03 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:08:21] Production.INFO: ==3492== Releasing lock... [2025-01-03 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:09:05 [end_date_ymd] => 2025-01-03 21:09:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:09:05' and `end` < '2025-01-03 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-01-03 21:09:20] Production.INFO: count ==1357 [2025-01-03 21:09:20] Production.ERROR: pbx CDR StartTime 2025-01-03 18:09:05 - End Time 2025-01-03 21:09:05 [2025-01-03 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168199', 'tblTempUsageDetail_20' ) start [2025-01-03 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168199', 'tblTempUsageDetail_20' ) end [2025-01-03 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168199', 'tblTempVendorCDR_20' ) start [2025-01-03 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168199', 'tblTempVendorCDR_20' ) end [2025-01-03 21:09:20] Production.INFO: ProcessCDR(1,14168199,1,1,2) [2025-01-03 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168199', 'tblTempUsageDetail_20' ) start [2025-01-03 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168199', 'tblTempUsageDetail_20' ) end [2025-01-03 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:09:25] Production.INFO: ==3564== Releasing lock... [2025-01-03 21:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:09:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:10:06 [end_date_ymd] => 2025-01-03 21:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:10:06' and `end` < '2025-01-03 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-01-03 21:10:19] Production.INFO: count ==1357 [2025-01-03 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:10:06 - End Time 2025-01-03 21:10:06 [2025-01-03 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168204', 'tblTempUsageDetail_20' ) start [2025-01-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168204', 'tblTempUsageDetail_20' ) end [2025-01-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168204', 'tblTempVendorCDR_20' ) start [2025-01-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168204', 'tblTempVendorCDR_20' ) end [2025-01-03 21:10:19] Production.INFO: ProcessCDR(1,14168204,1,1,2) [2025-01-03 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168204', 'tblTempUsageDetail_20' ) start [2025-01-03 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168204', 'tblTempUsageDetail_20' ) end [2025-01-03 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:10:22] Production.INFO: ==3669== Releasing lock... [2025-01-03 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-03 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:11:04 [end_date_ymd] => 2025-01-03 21:11:04 [RateCDR] => 1 ) [2025-01-03 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:11:04' and `end` < '2025-01-03 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:11:17] Production.INFO: count ==1301 [2025-01-03 21:11:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:11:04 - End Time 2025-01-03 21:11:04 [2025-01-03 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168210', 'tblTempUsageDetail_20' ) start [2025-01-03 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168210', 'tblTempUsageDetail_20' ) end [2025-01-03 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168210', 'tblTempVendorCDR_20' ) start [2025-01-03 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168210', 'tblTempVendorCDR_20' ) end [2025-01-03 21:11:17] Production.INFO: ProcessCDR(1,14168210,1,1,2) [2025-01-03 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168210', 'tblTempUsageDetail_20' ) start [2025-01-03 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168210', 'tblTempUsageDetail_20' ) end [2025-01-03 21:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:11:20] Production.INFO: ==3770== Releasing lock... [2025-01-03 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:11:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:12:05 [end_date_ymd] => 2025-01-03 21:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:12:05' and `end` < '2025-01-03 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-01-03 21:12:18] Production.INFO: count ==1304 [2025-01-03 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:12:05 - End Time 2025-01-03 21:12:05 [2025-01-03 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168215', 'tblTempUsageDetail_20' ) start [2025-01-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168215', 'tblTempUsageDetail_20' ) end [2025-01-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168215', 'tblTempVendorCDR_20' ) start [2025-01-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168215', 'tblTempVendorCDR_20' ) end [2025-01-03 21:12:18] Production.INFO: ProcessCDR(1,14168215,1,1,2) [2025-01-03 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168215', 'tblTempUsageDetail_20' ) start [2025-01-03 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168215', 'tblTempUsageDetail_20' ) end [2025-01-03 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:12:21] Production.INFO: ==3864== Releasing lock... [2025-01-03 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-03 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:13:05 [end_date_ymd] => 2025-01-03 21:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:13:05' and `end` < '2025-01-03 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-01-03 21:13:17] Production.INFO: count ==1306 [2025-01-03 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:13:05 - End Time 2025-01-03 21:13:05 [2025-01-03 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168218', 'tblTempUsageDetail_20' ) start [2025-01-03 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168218', 'tblTempUsageDetail_20' ) end [2025-01-03 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168218', 'tblTempVendorCDR_20' ) start [2025-01-03 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168218', 'tblTempVendorCDR_20' ) end [2025-01-03 21:13:18] Production.INFO: ProcessCDR(1,14168218,1,1,2) [2025-01-03 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168218', 'tblTempUsageDetail_20' ) start [2025-01-03 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168218', 'tblTempUsageDetail_20' ) end [2025-01-03 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:13:21] Production.INFO: ==3936== Releasing lock... [2025-01-03 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:13:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:14:05 [end_date_ymd] => 2025-01-03 21:14:05 [RateCDR] => 1 ) [2025-01-03 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:14:05' and `end` < '2025-01-03 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:14:18] Production.INFO: count ==1305 [2025-01-03 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:14:05 - End Time 2025-01-03 21:14:05 [2025-01-03 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168225', 'tblTempUsageDetail_20' ) start [2025-01-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168225', 'tblTempUsageDetail_20' ) end [2025-01-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168225', 'tblTempVendorCDR_20' ) start [2025-01-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168225', 'tblTempVendorCDR_20' ) end [2025-01-03 21:14:18] Production.INFO: ProcessCDR(1,14168225,1,1,2) [2025-01-03 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168225', 'tblTempUsageDetail_20' ) start [2025-01-03 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168225', 'tblTempUsageDetail_20' ) end [2025-01-03 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:14:21] Production.INFO: ==4007== Releasing lock... [2025-01-03 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:14:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:15:04 [end_date_ymd] => 2025-01-03 21:15:04 [RateCDR] => 1 ) [2025-01-03 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:15:04' and `end` < '2025-01-03 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:15:17] Production.INFO: count ==1307 [2025-01-03 21:15:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:15:04 - End Time 2025-01-03 21:15:04 [2025-01-03 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168230', 'tblTempUsageDetail_20' ) start [2025-01-03 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168230', 'tblTempUsageDetail_20' ) end [2025-01-03 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168230', 'tblTempVendorCDR_20' ) start [2025-01-03 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168230', 'tblTempVendorCDR_20' ) end [2025-01-03 21:15:17] Production.INFO: ProcessCDR(1,14168230,1,1,2) [2025-01-03 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168230', 'tblTempUsageDetail_20' ) start [2025-01-03 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168230', 'tblTempUsageDetail_20' ) end [2025-01-03 21:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:15:20] Production.INFO: ==4078== Releasing lock... [2025-01-03 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:15:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:16:05 [end_date_ymd] => 2025-01-03 21:16:05 [RateCDR] => 1 ) [2025-01-03 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:16:05' and `end` < '2025-01-03 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:16:18] Production.INFO: count ==1302 [2025-01-03 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:16:05 - End Time 2025-01-03 21:16:05 [2025-01-03 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168235', 'tblTempUsageDetail_20' ) start [2025-01-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168235', 'tblTempUsageDetail_20' ) end [2025-01-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168235', 'tblTempVendorCDR_20' ) start [2025-01-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168235', 'tblTempVendorCDR_20' ) end [2025-01-03 21:16:18] Production.INFO: ProcessCDR(1,14168235,1,1,2) [2025-01-03 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168235', 'tblTempUsageDetail_20' ) start [2025-01-03 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168235', 'tblTempUsageDetail_20' ) end [2025-01-03 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:16:21] Production.INFO: ==4193== Releasing lock... [2025-01-03 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:16:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-03 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:17:05 [end_date_ymd] => 2025-01-03 21:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:17:05' and `end` < '2025-01-03 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-01-03 21:17:17] Production.INFO: count ==1295 [2025-01-03 21:17:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:17:05 - End Time 2025-01-03 21:17:05 [2025-01-03 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168240', 'tblTempUsageDetail_20' ) start [2025-01-03 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168240', 'tblTempUsageDetail_20' ) end [2025-01-03 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168240', 'tblTempVendorCDR_20' ) start [2025-01-03 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168240', 'tblTempVendorCDR_20' ) end [2025-01-03 21:17:18] Production.INFO: ProcessCDR(1,14168240,1,1,2) [2025-01-03 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168240', 'tblTempUsageDetail_20' ) start [2025-01-03 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168240', 'tblTempUsageDetail_20' ) end [2025-01-03 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:17:21] Production.INFO: ==4265== Releasing lock... [2025-01-03 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:17:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:18:04 [end_date_ymd] => 2025-01-03 21:18:04 [RateCDR] => 1 ) [2025-01-03 21:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:18:04' and `end` < '2025-01-03 21:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:18:18] Production.INFO: count ==1297 [2025-01-03 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:18:04 - End Time 2025-01-03 21:18:04 [2025-01-03 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168245', 'tblTempUsageDetail_20' ) start [2025-01-03 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168245', 'tblTempUsageDetail_20' ) end [2025-01-03 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168245', 'tblTempVendorCDR_20' ) start [2025-01-03 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168245', 'tblTempVendorCDR_20' ) end [2025-01-03 21:18:18] Production.INFO: ProcessCDR(1,14168245,1,1,2) [2025-01-03 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168245', 'tblTempUsageDetail_20' ) start [2025-01-03 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168245', 'tblTempUsageDetail_20' ) end [2025-01-03 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:18:21] Production.INFO: ==4335== Releasing lock... [2025-01-03 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:18:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:19:05 [end_date_ymd] => 2025-01-03 21:19:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:19:05' and `end` < '2025-01-03 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-01-03 21:19:18] Production.INFO: count ==1296 [2025-01-03 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:19:05 - End Time 2025-01-03 21:19:05 [2025-01-03 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168250', 'tblTempUsageDetail_20' ) start [2025-01-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168250', 'tblTempUsageDetail_20' ) end [2025-01-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168250', 'tblTempVendorCDR_20' ) start [2025-01-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168250', 'tblTempVendorCDR_20' ) end [2025-01-03 21:19:18] Production.INFO: ProcessCDR(1,14168250,1,1,2) [2025-01-03 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168250', 'tblTempUsageDetail_20' ) start [2025-01-03 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168250', 'tblTempUsageDetail_20' ) end [2025-01-03 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:19:21] Production.INFO: ==4406== Releasing lock... [2025-01-03 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:19:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-03 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:20:06 [end_date_ymd] => 2025-01-03 21:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:20:06' and `end` < '2025-01-03 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-01-03 21:20:18] Production.INFO: count ==1295 [2025-01-03 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:20:06 - End Time 2025-01-03 21:20:06 [2025-01-03 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168256', 'tblTempUsageDetail_20' ) start [2025-01-03 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168256', 'tblTempUsageDetail_20' ) end [2025-01-03 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168256', 'tblTempVendorCDR_20' ) start [2025-01-03 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168256', 'tblTempVendorCDR_20' ) end [2025-01-03 21:20:19] Production.INFO: ProcessCDR(1,14168256,1,1,2) [2025-01-03 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168256', 'tblTempUsageDetail_20' ) start [2025-01-03 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168256', 'tblTempUsageDetail_20' ) end [2025-01-03 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:20:22] Production.INFO: ==4477== Releasing lock... [2025-01-03 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:20:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-03 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:21:05 [end_date_ymd] => 2025-01-03 21:21:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:21:05' and `end` < '2025-01-03 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-01-03 21:21:19] Production.INFO: count ==1285 [2025-01-03 21:21:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:21:05 - End Time 2025-01-03 21:21:05 [2025-01-03 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168261', 'tblTempUsageDetail_20' ) start [2025-01-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168261', 'tblTempUsageDetail_20' ) end [2025-01-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168261', 'tblTempVendorCDR_20' ) start [2025-01-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168261', 'tblTempVendorCDR_20' ) end [2025-01-03 21:21:19] Production.INFO: ProcessCDR(1,14168261,1,1,2) [2025-01-03 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168261', 'tblTempUsageDetail_20' ) start [2025-01-03 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168261', 'tblTempUsageDetail_20' ) end [2025-01-03 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:21:23] Production.INFO: ==4550== Releasing lock... [2025-01-03 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:22:06 [end_date_ymd] => 2025-01-03 21:22:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:22:06' and `end` < '2025-01-03 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-01-03 21:22:19] Production.INFO: count ==1286 [2025-01-03 21:22:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:22:06 - End Time 2025-01-03 21:22:06 [2025-01-03 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168266', 'tblTempUsageDetail_20' ) start [2025-01-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168266', 'tblTempUsageDetail_20' ) end [2025-01-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168266', 'tblTempVendorCDR_20' ) start [2025-01-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168266', 'tblTempVendorCDR_20' ) end [2025-01-03 21:22:19] Production.INFO: ProcessCDR(1,14168266,1,1,2) [2025-01-03 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168266', 'tblTempUsageDetail_20' ) start [2025-01-03 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168266', 'tblTempUsageDetail_20' ) end [2025-01-03 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:22:22] Production.INFO: ==4629== Releasing lock... [2025-01-03 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:23:05 [end_date_ymd] => 2025-01-03 21:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:23:05' and `end` < '2025-01-03 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-01-03 21:23:17] Production.INFO: count ==1283 [2025-01-03 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:23:05 - End Time 2025-01-03 21:23:05 [2025-01-03 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168271', 'tblTempUsageDetail_20' ) start [2025-01-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168271', 'tblTempUsageDetail_20' ) end [2025-01-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168271', 'tblTempVendorCDR_20' ) start [2025-01-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168271', 'tblTempVendorCDR_20' ) end [2025-01-03 21:23:18] Production.INFO: ProcessCDR(1,14168271,1,1,2) [2025-01-03 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168271', 'tblTempUsageDetail_20' ) start [2025-01-03 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168271', 'tblTempUsageDetail_20' ) end [2025-01-03 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:23:21] Production.INFO: ==4707== Releasing lock... [2025-01-03 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:23:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:24:06 [end_date_ymd] => 2025-01-03 21:24:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:24:06' and `end` < '2025-01-03 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-01-03 21:24:19] Production.INFO: count ==1285 [2025-01-03 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:24:06 - End Time 2025-01-03 21:24:06 [2025-01-03 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168276', 'tblTempUsageDetail_20' ) start [2025-01-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168276', 'tblTempUsageDetail_20' ) end [2025-01-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168276', 'tblTempVendorCDR_20' ) start [2025-01-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168276', 'tblTempVendorCDR_20' ) end [2025-01-03 21:24:19] Production.INFO: ProcessCDR(1,14168276,1,1,2) [2025-01-03 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168276', 'tblTempUsageDetail_20' ) start [2025-01-03 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168276', 'tblTempUsageDetail_20' ) end [2025-01-03 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:24:23] Production.INFO: ==4779== Releasing lock... [2025-01-03 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:24:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:25:04 [end_date_ymd] => 2025-01-03 21:25:04 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:25:04' and `end` < '2025-01-03 21: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-01-03 21:25:17] Production.INFO: count ==1285 [2025-01-03 21:25:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:25:04 - End Time 2025-01-03 21:25:04 [2025-01-03 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168281', 'tblTempUsageDetail_20' ) start [2025-01-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168281', 'tblTempUsageDetail_20' ) end [2025-01-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168281', 'tblTempVendorCDR_20' ) start [2025-01-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168281', 'tblTempVendorCDR_20' ) end [2025-01-03 21:25:17] Production.INFO: ProcessCDR(1,14168281,1,1,2) [2025-01-03 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168281', 'tblTempUsageDetail_20' ) start [2025-01-03 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168281', 'tblTempUsageDetail_20' ) end [2025-01-03 21:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:25:20] Production.INFO: ==4851== Releasing lock... [2025-01-03 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:25:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:26:05 [end_date_ymd] => 2025-01-03 21:26:05 [RateCDR] => 1 ) [2025-01-03 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:26:05' and `end` < '2025-01-03 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:26:17] Production.INFO: count ==1283 [2025-01-03 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:26:05 - End Time 2025-01-03 21:26:05 [2025-01-03 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168285', 'tblTempUsageDetail_20' ) start [2025-01-03 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168285', 'tblTempUsageDetail_20' ) end [2025-01-03 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168285', 'tblTempVendorCDR_20' ) start [2025-01-03 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168285', 'tblTempVendorCDR_20' ) end [2025-01-03 21:26:18] Production.INFO: ProcessCDR(1,14168285,1,1,2) [2025-01-03 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168285', 'tblTempUsageDetail_20' ) start [2025-01-03 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168285', 'tblTempUsageDetail_20' ) end [2025-01-03 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:26:21] Production.INFO: ==4924== Releasing lock... [2025-01-03 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:26:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:27:04 [end_date_ymd] => 2025-01-03 21:27:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:27:04' and `end` < '2025-01-03 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-01-03 21:27:17] Production.INFO: count ==1286 [2025-01-03 21:27:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:27:04 - End Time 2025-01-03 21:27:04 [2025-01-03 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168291', 'tblTempUsageDetail_20' ) start [2025-01-03 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168291', 'tblTempUsageDetail_20' ) end [2025-01-03 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168291', 'tblTempVendorCDR_20' ) start [2025-01-03 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168291', 'tblTempVendorCDR_20' ) end [2025-01-03 21:27:17] Production.INFO: ProcessCDR(1,14168291,1,1,2) [2025-01-03 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168291', 'tblTempUsageDetail_20' ) start [2025-01-03 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168291', 'tblTempUsageDetail_20' ) end [2025-01-03 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:27:20] Production.INFO: ==4998== Releasing lock... [2025-01-03 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:27:20] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:28:04 [end_date_ymd] => 2025-01-03 21:28:04 [RateCDR] => 1 ) [2025-01-03 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:28:04' and `end` < '2025-01-03 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:28:17] Production.INFO: count ==1283 [2025-01-03 21:28:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:28:04 - End Time 2025-01-03 21:28:04 [2025-01-03 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168296', 'tblTempUsageDetail_20' ) start [2025-01-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168296', 'tblTempUsageDetail_20' ) end [2025-01-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168296', 'tblTempVendorCDR_20' ) start [2025-01-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168296', 'tblTempVendorCDR_20' ) end [2025-01-03 21:28:18] Production.INFO: ProcessCDR(1,14168296,1,1,2) [2025-01-03 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168296', 'tblTempUsageDetail_20' ) start [2025-01-03 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168296', 'tblTempUsageDetail_20' ) end [2025-01-03 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:28:21] Production.INFO: ==5070== Releasing lock... [2025-01-03 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:28:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-03 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:29:05 [end_date_ymd] => 2025-01-03 21:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:29:05' and `end` < '2025-01-03 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-01-03 21:29:18] Production.INFO: count ==1271 [2025-01-03 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:29:05 - End Time 2025-01-03 21:29:05 [2025-01-03 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168301', 'tblTempUsageDetail_20' ) start [2025-01-03 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168301', 'tblTempUsageDetail_20' ) end [2025-01-03 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168301', 'tblTempVendorCDR_20' ) start [2025-01-03 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168301', 'tblTempVendorCDR_20' ) end [2025-01-03 21:29:18] Production.INFO: ProcessCDR(1,14168301,1,1,2) [2025-01-03 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168301', 'tblTempUsageDetail_20' ) start [2025-01-03 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168301', 'tblTempUsageDetail_20' ) end [2025-01-03 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:29:21] Production.INFO: ==5148== Releasing lock... [2025-01-03 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:29:21] Production.INFO: 37 MB #Memory Used# [2025-01-03 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:30:05 [end_date_ymd] => 2025-01-03 21:30:05 [RateCDR] => 1 ) [2025-01-03 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:30:05' and `end` < '2025-01-03 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:30:19] Production.INFO: count ==1270 [2025-01-03 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:30:05 - End Time 2025-01-03 21:30:05 [2025-01-03 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168307', 'tblTempUsageDetail_20' ) start [2025-01-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168307', 'tblTempUsageDetail_20' ) end [2025-01-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168307', 'tblTempVendorCDR_20' ) start [2025-01-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168307', 'tblTempVendorCDR_20' ) end [2025-01-03 21:30:19] Production.INFO: ProcessCDR(1,14168307,1,1,2) [2025-01-03 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168307', 'tblTempUsageDetail_20' ) start [2025-01-03 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168307', 'tblTempUsageDetail_20' ) end [2025-01-03 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:30:22] Production.INFO: ==5218== Releasing lock... [2025-01-03 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:30:22] Production.INFO: 37 MB #Memory Used# [2025-01-03 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:31:05 [end_date_ymd] => 2025-01-03 21:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:31:05' and `end` < '2025-01-03 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-01-03 21:31:18] Production.INFO: count ==1240 [2025-01-03 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:31:05 - End Time 2025-01-03 21:31:05 [2025-01-03 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168312', 'tblTempUsageDetail_20' ) start [2025-01-03 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168312', 'tblTempUsageDetail_20' ) end [2025-01-03 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168312', 'tblTempVendorCDR_20' ) start [2025-01-03 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168312', 'tblTempVendorCDR_20' ) end [2025-01-03 21:31:18] Production.INFO: ProcessCDR(1,14168312,1,1,2) [2025-01-03 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168312', 'tblTempUsageDetail_20' ) start [2025-01-03 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168312', 'tblTempUsageDetail_20' ) end [2025-01-03 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:31:21] Production.INFO: ==5292== Releasing lock... [2025-01-03 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:32:05 [end_date_ymd] => 2025-01-03 21:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:32:05' and `end` < '2025-01-03 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-01-03 21:32:17] Production.INFO: count ==1238 [2025-01-03 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:32:05 - End Time 2025-01-03 21:32:05 [2025-01-03 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168317', 'tblTempUsageDetail_20' ) start [2025-01-03 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168317', 'tblTempUsageDetail_20' ) end [2025-01-03 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168317', 'tblTempVendorCDR_20' ) start [2025-01-03 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168317', 'tblTempVendorCDR_20' ) end [2025-01-03 21:32:18] Production.INFO: ProcessCDR(1,14168317,1,1,2) [2025-01-03 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168317', 'tblTempUsageDetail_20' ) start [2025-01-03 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168317', 'tblTempUsageDetail_20' ) end [2025-01-03 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:32:21] Production.INFO: ==5400== Releasing lock... [2025-01-03 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:32:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:33:05 [end_date_ymd] => 2025-01-03 21:33:05 [RateCDR] => 1 ) [2025-01-03 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:33:05' and `end` < '2025-01-03 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:33:18] Production.INFO: count ==1234 [2025-01-03 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:33:05 - End Time 2025-01-03 21:33:05 [2025-01-03 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168322', 'tblTempUsageDetail_20' ) start [2025-01-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168322', 'tblTempUsageDetail_20' ) end [2025-01-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168322', 'tblTempVendorCDR_20' ) start [2025-01-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168322', 'tblTempVendorCDR_20' ) end [2025-01-03 21:33:18] Production.INFO: ProcessCDR(1,14168322,1,1,2) [2025-01-03 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168322', 'tblTempUsageDetail_20' ) start [2025-01-03 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168322', 'tblTempUsageDetail_20' ) end [2025-01-03 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:33:21] Production.INFO: ==5470== Releasing lock... [2025-01-03 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:33:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:34:05 [end_date_ymd] => 2025-01-03 21:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:34:05' and `end` < '2025-01-03 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-01-03 21:34:18] Production.INFO: count ==1232 [2025-01-03 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:34:05 - End Time 2025-01-03 21:34:05 [2025-01-03 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168327', 'tblTempUsageDetail_20' ) start [2025-01-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168327', 'tblTempUsageDetail_20' ) end [2025-01-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168327', 'tblTempVendorCDR_20' ) start [2025-01-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168327', 'tblTempVendorCDR_20' ) end [2025-01-03 21:34:18] Production.INFO: ProcessCDR(1,14168327,1,1,2) [2025-01-03 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168327', 'tblTempUsageDetail_20' ) start [2025-01-03 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168327', 'tblTempUsageDetail_20' ) end [2025-01-03 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:34:21] Production.INFO: ==5541== Releasing lock... [2025-01-03 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:34:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:35:04 [end_date_ymd] => 2025-01-03 21:35:04 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:35:04' and `end` < '2025-01-03 21: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-01-03 21:35:17] Production.INFO: count ==1232 [2025-01-03 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:35:04 - End Time 2025-01-03 21:35:04 [2025-01-03 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168332', 'tblTempUsageDetail_20' ) start [2025-01-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168332', 'tblTempUsageDetail_20' ) end [2025-01-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168332', 'tblTempVendorCDR_20' ) start [2025-01-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168332', 'tblTempVendorCDR_20' ) end [2025-01-03 21:35:18] Production.INFO: ProcessCDR(1,14168332,1,1,2) [2025-01-03 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168332', 'tblTempUsageDetail_20' ) start [2025-01-03 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168332', 'tblTempUsageDetail_20' ) end [2025-01-03 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:35:21] Production.INFO: ==5612== Releasing lock... [2025-01-03 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:35:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:36:05 [end_date_ymd] => 2025-01-03 21:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:36:05' and `end` < '2025-01-03 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-01-03 21:36:19] Production.INFO: count ==1231 [2025-01-03 21:36:20] Production.ERROR: pbx CDR StartTime 2025-01-03 18:36:05 - End Time 2025-01-03 21:36:05 [2025-01-03 21:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168337', 'tblTempUsageDetail_20' ) start [2025-01-03 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168337', 'tblTempUsageDetail_20' ) end [2025-01-03 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168337', 'tblTempVendorCDR_20' ) start [2025-01-03 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168337', 'tblTempVendorCDR_20' ) end [2025-01-03 21:36:20] Production.INFO: ProcessCDR(1,14168337,1,1,2) [2025-01-03 21:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168337', 'tblTempUsageDetail_20' ) start [2025-01-03 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168337', 'tblTempUsageDetail_20' ) end [2025-01-03 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:36:23] Production.INFO: ==5688== Releasing lock... [2025-01-03 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:36:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:37:04 [end_date_ymd] => 2025-01-03 21:37:04 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:37:04' and `end` < '2025-01-03 21: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-01-03 21:37:17] Production.INFO: count ==1229 [2025-01-03 21:37:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:37:04 - End Time 2025-01-03 21:37:04 [2025-01-03 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168342', 'tblTempUsageDetail_20' ) start [2025-01-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168342', 'tblTempUsageDetail_20' ) end [2025-01-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168342', 'tblTempVendorCDR_20' ) start [2025-01-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168342', 'tblTempVendorCDR_20' ) end [2025-01-03 21:37:17] Production.INFO: ProcessCDR(1,14168342,1,1,2) [2025-01-03 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168342', 'tblTempUsageDetail_20' ) start [2025-01-03 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168342', 'tblTempUsageDetail_20' ) end [2025-01-03 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:37:21] Production.INFO: ==5759== Releasing lock... [2025-01-03 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:37:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:38:04 [end_date_ymd] => 2025-01-03 21:38:04 [RateCDR] => 1 ) [2025-01-03 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:38:04' and `end` < '2025-01-03 21:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:38:17] Production.INFO: count ==1225 [2025-01-03 21:38:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:38:04 - End Time 2025-01-03 21:38:04 [2025-01-03 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168347', 'tblTempUsageDetail_20' ) start [2025-01-03 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168347', 'tblTempUsageDetail_20' ) end [2025-01-03 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168347', 'tblTempVendorCDR_20' ) start [2025-01-03 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168347', 'tblTempVendorCDR_20' ) end [2025-01-03 21:38:17] Production.INFO: ProcessCDR(1,14168347,1,1,2) [2025-01-03 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168347', 'tblTempUsageDetail_20' ) start [2025-01-03 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168347', 'tblTempUsageDetail_20' ) end [2025-01-03 21:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:38:21] Production.INFO: ==5831== Releasing lock... [2025-01-03 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:38:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:39:04 [end_date_ymd] => 2025-01-03 21:39:04 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:39:04' and `end` < '2025-01-03 21: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-01-03 21:39:18] Production.INFO: count ==1226 [2025-01-03 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:39:04 - End Time 2025-01-03 21:39:04 [2025-01-03 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168352', 'tblTempUsageDetail_20' ) start [2025-01-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168352', 'tblTempUsageDetail_20' ) end [2025-01-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168352', 'tblTempVendorCDR_20' ) start [2025-01-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168352', 'tblTempVendorCDR_20' ) end [2025-01-03 21:39:18] Production.INFO: ProcessCDR(1,14168352,1,1,2) [2025-01-03 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168352', 'tblTempUsageDetail_20' ) start [2025-01-03 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168352', 'tblTempUsageDetail_20' ) end [2025-01-03 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:39:22] Production.INFO: ==5901== Releasing lock... [2025-01-03 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:40:05 [end_date_ymd] => 2025-01-03 21:40:05 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:40:05' and `end` < '2025-01-03 21: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-01-03 21:40:18] Production.INFO: count ==1231 [2025-01-03 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:40:05 - End Time 2025-01-03 21:40:05 [2025-01-03 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168357', 'tblTempUsageDetail_20' ) start [2025-01-03 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168357', 'tblTempUsageDetail_20' ) end [2025-01-03 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168357', 'tblTempVendorCDR_20' ) start [2025-01-03 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168357', 'tblTempVendorCDR_20' ) end [2025-01-03 21:40:18] Production.INFO: ProcessCDR(1,14168357,1,1,2) [2025-01-03 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168357', 'tblTempUsageDetail_20' ) start [2025-01-03 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168357', 'tblTempUsageDetail_20' ) end [2025-01-03 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:40:21] Production.INFO: ==5981== Releasing lock... [2025-01-03 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:40:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:41:05 [end_date_ymd] => 2025-01-03 21:41:05 [RateCDR] => 1 ) [2025-01-03 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:41:05' and `end` < '2025-01-03 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:41:19] Production.INFO: count ==1215 [2025-01-03 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:41:05 - End Time 2025-01-03 21:41:05 [2025-01-03 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168363', 'tblTempUsageDetail_20' ) start [2025-01-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168363', 'tblTempUsageDetail_20' ) end [2025-01-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168363', 'tblTempVendorCDR_20' ) start [2025-01-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168363', 'tblTempVendorCDR_20' ) end [2025-01-03 21:41:19] Production.INFO: ProcessCDR(1,14168363,1,1,2) [2025-01-03 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168363', 'tblTempUsageDetail_20' ) start [2025-01-03 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168363', 'tblTempUsageDetail_20' ) end [2025-01-03 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:41:22] Production.INFO: ==6062== Releasing lock... [2025-01-03 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:42:04 [end_date_ymd] => 2025-01-03 21:42:04 [RateCDR] => 1 ) [2025-01-03 21:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:42:04' and `end` < '2025-01-03 21:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:42:17] Production.INFO: count ==1212 [2025-01-03 21:42:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:42:04 - End Time 2025-01-03 21:42:04 [2025-01-03 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168368', 'tblTempUsageDetail_20' ) start [2025-01-03 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168368', 'tblTempUsageDetail_20' ) end [2025-01-03 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168368', 'tblTempVendorCDR_20' ) start [2025-01-03 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168368', 'tblTempVendorCDR_20' ) end [2025-01-03 21:42:17] Production.INFO: ProcessCDR(1,14168368,1,1,2) [2025-01-03 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168368', 'tblTempUsageDetail_20' ) start [2025-01-03 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168368', 'tblTempUsageDetail_20' ) end [2025-01-03 21:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:42:20] Production.INFO: ==6143== Releasing lock... [2025-01-03 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:42:20] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:43:05 [end_date_ymd] => 2025-01-03 21:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:43:05' and `end` < '2025-01-03 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-01-03 21:43:18] Production.INFO: count ==1212 [2025-01-03 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:43:05 - End Time 2025-01-03 21:43:05 [2025-01-03 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168373', 'tblTempUsageDetail_20' ) start [2025-01-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168373', 'tblTempUsageDetail_20' ) end [2025-01-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168373', 'tblTempVendorCDR_20' ) start [2025-01-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168373', 'tblTempVendorCDR_20' ) end [2025-01-03 21:43:18] Production.INFO: ProcessCDR(1,14168373,1,1,2) [2025-01-03 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168373', 'tblTempUsageDetail_20' ) start [2025-01-03 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168373', 'tblTempUsageDetail_20' ) end [2025-01-03 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:43:21] Production.INFO: ==6223== Releasing lock... [2025-01-03 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:44:06 [end_date_ymd] => 2025-01-03 21:44:06 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:44:06' and `end` < '2025-01-03 21: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-01-03 21:44:19] Production.INFO: count ==1212 [2025-01-03 21:44:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:44:06 - End Time 2025-01-03 21:44:06 [2025-01-03 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168378', 'tblTempUsageDetail_20' ) start [2025-01-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168378', 'tblTempUsageDetail_20' ) end [2025-01-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168378', 'tblTempVendorCDR_20' ) start [2025-01-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168378', 'tblTempVendorCDR_20' ) end [2025-01-03 21:44:19] Production.INFO: ProcessCDR(1,14168378,1,1,2) [2025-01-03 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168378', 'tblTempUsageDetail_20' ) start [2025-01-03 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168378', 'tblTempUsageDetail_20' ) end [2025-01-03 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:44:22] Production.INFO: ==6302== Releasing lock... [2025-01-03 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:44:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-03 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:45:05 [end_date_ymd] => 2025-01-03 21:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:45:05' and `end` < '2025-01-03 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-01-03 21:45:17] Production.INFO: count ==1203 [2025-01-03 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:45:05 - End Time 2025-01-03 21:45:05 [2025-01-03 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168383', 'tblTempUsageDetail_20' ) start [2025-01-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168383', 'tblTempUsageDetail_20' ) end [2025-01-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168383', 'tblTempVendorCDR_20' ) start [2025-01-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168383', 'tblTempVendorCDR_20' ) end [2025-01-03 21:45:18] Production.INFO: ProcessCDR(1,14168383,1,1,2) [2025-01-03 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168383', 'tblTempUsageDetail_20' ) start [2025-01-03 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168383', 'tblTempUsageDetail_20' ) end [2025-01-03 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:45:21] Production.INFO: ==6379== Releasing lock... [2025-01-03 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:45:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:46:04 [end_date_ymd] => 2025-01-03 21:46:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:46:04' and `end` < '2025-01-03 21: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-01-03 21:46:17] Production.INFO: count ==1195 [2025-01-03 21:46:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:46:04 - End Time 2025-01-03 21:46:04 [2025-01-03 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168388', 'tblTempUsageDetail_20' ) start [2025-01-03 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168388', 'tblTempUsageDetail_20' ) end [2025-01-03 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168388', 'tblTempVendorCDR_20' ) start [2025-01-03 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168388', 'tblTempVendorCDR_20' ) end [2025-01-03 21:46:17] Production.INFO: ProcessCDR(1,14168388,1,1,2) [2025-01-03 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168388', 'tblTempUsageDetail_20' ) start [2025-01-03 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168388', 'tblTempUsageDetail_20' ) end [2025-01-03 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:46:21] Production.INFO: ==6458== Releasing lock... [2025-01-03 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:46:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:47:06 [end_date_ymd] => 2025-01-03 21:47:06 [RateCDR] => 1 ) [2025-01-03 21:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:47:06' and `end` < '2025-01-03 21:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:47:18] Production.INFO: count ==1194 [2025-01-03 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:47:06 - End Time 2025-01-03 21:47:06 [2025-01-03 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168393', 'tblTempUsageDetail_20' ) start [2025-01-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168393', 'tblTempUsageDetail_20' ) end [2025-01-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168393', 'tblTempVendorCDR_20' ) start [2025-01-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168393', 'tblTempVendorCDR_20' ) end [2025-01-03 21:47:19] Production.INFO: ProcessCDR(1,14168393,1,1,2) [2025-01-03 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168393', 'tblTempUsageDetail_20' ) start [2025-01-03 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168393', 'tblTempUsageDetail_20' ) end [2025-01-03 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:47:22] Production.INFO: ==6573== Releasing lock... [2025-01-03 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:48:05 [end_date_ymd] => 2025-01-03 21:48:05 [RateCDR] => 1 ) [2025-01-03 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:48:05' and `end` < '2025-01-03 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:48:19] Production.INFO: count ==1196 [2025-01-03 21:48:20] Production.ERROR: pbx CDR StartTime 2025-01-03 18:48:05 - End Time 2025-01-03 21:48:05 [2025-01-03 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168398', 'tblTempUsageDetail_20' ) start [2025-01-03 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168398', 'tblTempUsageDetail_20' ) end [2025-01-03 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168398', 'tblTempVendorCDR_20' ) start [2025-01-03 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168398', 'tblTempVendorCDR_20' ) end [2025-01-03 21:48:20] Production.INFO: ProcessCDR(1,14168398,1,1,2) [2025-01-03 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168398', 'tblTempUsageDetail_20' ) start [2025-01-03 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168398', 'tblTempUsageDetail_20' ) end [2025-01-03 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:48:23] Production.INFO: ==6656== Releasing lock... [2025-01-03 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:48:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:49:06 [end_date_ymd] => 2025-01-03 21:49:06 [RateCDR] => 1 ) [2025-01-03 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:49:06' and `end` < '2025-01-03 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:49:18] Production.INFO: count ==1196 [2025-01-03 21:49:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:49:06 - End Time 2025-01-03 21:49:06 [2025-01-03 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168403', 'tblTempUsageDetail_20' ) start [2025-01-03 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168403', 'tblTempUsageDetail_20' ) end [2025-01-03 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168403', 'tblTempVendorCDR_20' ) start [2025-01-03 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168403', 'tblTempVendorCDR_20' ) end [2025-01-03 21:49:19] Production.INFO: ProcessCDR(1,14168403,1,1,2) [2025-01-03 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168403', 'tblTempUsageDetail_20' ) start [2025-01-03 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168403', 'tblTempUsageDetail_20' ) end [2025-01-03 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:49:22] Production.INFO: ==6736== Releasing lock... [2025-01-03 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:49:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:50:06 [end_date_ymd] => 2025-01-03 21:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:50:06' and `end` < '2025-01-03 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-01-03 21:50:18] Production.INFO: count ==1198 [2025-01-03 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-03 18:50:06 - End Time 2025-01-03 21:50:06 [2025-01-03 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168408', 'tblTempUsageDetail_20' ) start [2025-01-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168408', 'tblTempUsageDetail_20' ) end [2025-01-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168408', 'tblTempVendorCDR_20' ) start [2025-01-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168408', 'tblTempVendorCDR_20' ) end [2025-01-03 21:50:19] Production.INFO: ProcessCDR(1,14168408,1,1,2) [2025-01-03 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168408', 'tblTempUsageDetail_20' ) start [2025-01-03 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168408', 'tblTempUsageDetail_20' ) end [2025-01-03 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:50:22] Production.INFO: ==6818== Releasing lock... [2025-01-03 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:50:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:51:05 [end_date_ymd] => 2025-01-03 21:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:51:05' and `end` < '2025-01-03 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-01-03 21:51:18] Production.INFO: count ==1188 [2025-01-03 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:51:05 - End Time 2025-01-03 21:51:05 [2025-01-03 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168414', 'tblTempUsageDetail_20' ) start [2025-01-03 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168414', 'tblTempUsageDetail_20' ) end [2025-01-03 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168414', 'tblTempVendorCDR_20' ) start [2025-01-03 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168414', 'tblTempVendorCDR_20' ) end [2025-01-03 21:51:18] Production.INFO: ProcessCDR(1,14168414,1,1,2) [2025-01-03 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168414', 'tblTempUsageDetail_20' ) start [2025-01-03 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168414', 'tblTempUsageDetail_20' ) end [2025-01-03 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:51:22] Production.INFO: ==6901== Releasing lock... [2025-01-03 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:51:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:52:05 [end_date_ymd] => 2025-01-03 21:52:05 [RateCDR] => 1 ) [2025-01-03 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:52:05' and `end` < '2025-01-03 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:52:18] Production.INFO: count ==1190 [2025-01-03 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:52:05 - End Time 2025-01-03 21:52:05 [2025-01-03 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168419', 'tblTempUsageDetail_20' ) start [2025-01-03 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168419', 'tblTempUsageDetail_20' ) end [2025-01-03 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168419', 'tblTempVendorCDR_20' ) start [2025-01-03 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168419', 'tblTempVendorCDR_20' ) end [2025-01-03 21:52:18] Production.INFO: ProcessCDR(1,14168419,1,1,2) [2025-01-03 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168419', 'tblTempUsageDetail_20' ) start [2025-01-03 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168419', 'tblTempUsageDetail_20' ) end [2025-01-03 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:52:22] Production.INFO: ==6978== Releasing lock... [2025-01-03 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:53:05 [end_date_ymd] => 2025-01-03 21:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:53:05' and `end` < '2025-01-03 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-01-03 21:53:18] Production.INFO: count ==1190 [2025-01-03 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:53:05 - End Time 2025-01-03 21:53:05 [2025-01-03 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168424', 'tblTempUsageDetail_20' ) start [2025-01-03 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168424', 'tblTempUsageDetail_20' ) end [2025-01-03 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168424', 'tblTempVendorCDR_20' ) start [2025-01-03 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168424', 'tblTempVendorCDR_20' ) end [2025-01-03 21:53:18] Production.INFO: ProcessCDR(1,14168424,1,1,2) [2025-01-03 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168424', 'tblTempUsageDetail_20' ) start [2025-01-03 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168424', 'tblTempUsageDetail_20' ) end [2025-01-03 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:53:23] Production.INFO: ==7049== Releasing lock... [2025-01-03 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:53:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:54:05 [end_date_ymd] => 2025-01-03 21:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:54:05' and `end` < '2025-01-03 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-01-03 21:54:18] Production.INFO: count ==1192 [2025-01-03 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:54:05 - End Time 2025-01-03 21:54:05 [2025-01-03 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168429', 'tblTempUsageDetail_20' ) start [2025-01-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168429', 'tblTempUsageDetail_20' ) end [2025-01-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168429', 'tblTempVendorCDR_20' ) start [2025-01-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168429', 'tblTempVendorCDR_20' ) end [2025-01-03 21:54:18] Production.INFO: ProcessCDR(1,14168429,1,1,2) [2025-01-03 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168429', 'tblTempUsageDetail_20' ) start [2025-01-03 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168429', 'tblTempUsageDetail_20' ) end [2025-01-03 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:54:23] Production.INFO: ==7121== Releasing lock... [2025-01-03 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:54:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:55:05 [end_date_ymd] => 2025-01-03 21:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:55:05' and `end` < '2025-01-03 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-01-03 21:55:18] Production.INFO: count ==1192 [2025-01-03 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:55:05 - End Time 2025-01-03 21:55:05 [2025-01-03 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168434', 'tblTempUsageDetail_20' ) start [2025-01-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168434', 'tblTempUsageDetail_20' ) end [2025-01-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168434', 'tblTempVendorCDR_20' ) start [2025-01-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168434', 'tblTempVendorCDR_20' ) end [2025-01-03 21:55:18] Production.INFO: ProcessCDR(1,14168434,1,1,2) [2025-01-03 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168434', 'tblTempUsageDetail_20' ) start [2025-01-03 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168434', 'tblTempUsageDetail_20' ) end [2025-01-03 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:55:21] Production.INFO: ==7196== Releasing lock... [2025-01-03 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:56:05 [end_date_ymd] => 2025-01-03 21:56:05 [RateCDR] => 1 ) [2025-01-03 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 18:56:05' and `end` < '2025-01-03 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 21:56:18] Production.INFO: count ==1191 [2025-01-03 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:56:05 - End Time 2025-01-03 21:56:05 [2025-01-03 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168439', 'tblTempUsageDetail_20' ) start [2025-01-03 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168439', 'tblTempUsageDetail_20' ) end [2025-01-03 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168439', 'tblTempVendorCDR_20' ) start [2025-01-03 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168439', 'tblTempVendorCDR_20' ) end [2025-01-03 21:56:18] Production.INFO: ProcessCDR(1,14168439,1,1,2) [2025-01-03 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168439', 'tblTempUsageDetail_20' ) start [2025-01-03 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168439', 'tblTempUsageDetail_20' ) end [2025-01-03 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:56:21] Production.INFO: ==7267== Releasing lock... [2025-01-03 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:56:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:57:05 [end_date_ymd] => 2025-01-03 21:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:57:05' and `end` < '2025-01-03 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-01-03 21:57:20] Production.INFO: count ==1191 [2025-01-03 21:57:20] Production.ERROR: pbx CDR StartTime 2025-01-03 18:57:05 - End Time 2025-01-03 21:57:05 [2025-01-03 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168444', 'tblTempUsageDetail_20' ) start [2025-01-03 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168444', 'tblTempUsageDetail_20' ) end [2025-01-03 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168444', 'tblTempVendorCDR_20' ) start [2025-01-03 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168444', 'tblTempVendorCDR_20' ) end [2025-01-03 21:57:20] Production.INFO: ProcessCDR(1,14168444,1,1,2) [2025-01-03 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168444', 'tblTempUsageDetail_20' ) start [2025-01-03 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168444', 'tblTempUsageDetail_20' ) end [2025-01-03 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:57:23] Production.INFO: ==7337== Releasing lock... [2025-01-03 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:57:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:58:05 [end_date_ymd] => 2025-01-03 21:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 18:58:05' and `end` < '2025-01-03 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-01-03 21:58:18] Production.INFO: count ==1191 [2025-01-03 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 18:58:05 - End Time 2025-01-03 21:58:05 [2025-01-03 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168449', 'tblTempUsageDetail_20' ) start [2025-01-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168449', 'tblTempUsageDetail_20' ) end [2025-01-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168449', 'tblTempVendorCDR_20' ) start [2025-01-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168449', 'tblTempVendorCDR_20' ) end [2025-01-03 21:58:18] Production.INFO: ProcessCDR(1,14168449,1,1,2) [2025-01-03 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168449', 'tblTempUsageDetail_20' ) start [2025-01-03 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168449', 'tblTempUsageDetail_20' ) end [2025-01-03 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:58:21] Production.INFO: ==7407== Releasing lock... [2025-01-03 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:58:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 18:59:04 [end_date_ymd] => 2025-01-03 21:59:04 [RateCDR] => 1 ) [2025-01-03 21: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-01-03 18:59:04' and `end` < '2025-01-03 21: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-01-03 21:59:17] Production.INFO: count ==1188 [2025-01-03 21:59:17] Production.ERROR: pbx CDR StartTime 2025-01-03 18:59:04 - End Time 2025-01-03 21:59:04 [2025-01-03 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168454', 'tblTempUsageDetail_20' ) start [2025-01-03 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168454', 'tblTempUsageDetail_20' ) end [2025-01-03 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168454', 'tblTempVendorCDR_20' ) start [2025-01-03 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168454', 'tblTempVendorCDR_20' ) end [2025-01-03 21:59:17] Production.INFO: ProcessCDR(1,14168454,1,1,2) [2025-01-03 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168454', 'tblTempUsageDetail_20' ) start [2025-01-03 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168454', 'tblTempUsageDetail_20' ) end [2025-01-03 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 21:59:21] Production.INFO: ==7478== Releasing lock... [2025-01-03 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 21:59:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:00:06 [end_date_ymd] => 2025-01-03 22:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:00:06' and `end` < '2025-01-03 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-01-03 22:00:19] Production.INFO: count ==1193 [2025-01-03 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:00:06 - End Time 2025-01-03 22:00:06 [2025-01-03 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168460', 'tblTempUsageDetail_20' ) start [2025-01-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168460', 'tblTempUsageDetail_20' ) end [2025-01-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168460', 'tblTempVendorCDR_20' ) start [2025-01-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168460', 'tblTempVendorCDR_20' ) end [2025-01-03 22:00:19] Production.INFO: ProcessCDR(1,14168460,1,1,2) [2025-01-03 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168460', 'tblTempUsageDetail_20' ) start [2025-01-03 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168460', 'tblTempUsageDetail_20' ) end [2025-01-03 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:00:24] Production.INFO: ==7556== Releasing lock... [2025-01-03 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:00:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-03 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:01:06 [end_date_ymd] => 2025-01-03 22:01:06 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:01:06' and `end` < '2025-01-03 22: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-01-03 22:01:19] Production.INFO: count ==1140 [2025-01-03 22:01:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:01:06 - End Time 2025-01-03 22:01:06 [2025-01-03 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168465', 'tblTempUsageDetail_20' ) start [2025-01-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168465', 'tblTempUsageDetail_20' ) end [2025-01-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168465', 'tblTempVendorCDR_20' ) start [2025-01-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168465', 'tblTempVendorCDR_20' ) end [2025-01-03 22:01:19] Production.INFO: ProcessCDR(1,14168465,1,1,2) [2025-01-03 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168465', 'tblTempUsageDetail_20' ) start [2025-01-03 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168465', 'tblTempUsageDetail_20' ) end [2025-01-03 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:01:22] Production.INFO: ==7642== Releasing lock... [2025-01-03 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:01:22] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:02:05 [end_date_ymd] => 2025-01-03 22:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:02:05' and `end` < '2025-01-03 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-01-03 22:02:18] Production.INFO: count ==1139 [2025-01-03 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:02:05 - End Time 2025-01-03 22:02:05 [2025-01-03 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168470', 'tblTempUsageDetail_20' ) start [2025-01-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168470', 'tblTempUsageDetail_20' ) end [2025-01-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168470', 'tblTempVendorCDR_20' ) start [2025-01-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168470', 'tblTempVendorCDR_20' ) end [2025-01-03 22:02:18] Production.INFO: ProcessCDR(1,14168470,1,1,2) [2025-01-03 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168470', 'tblTempUsageDetail_20' ) start [2025-01-03 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168470', 'tblTempUsageDetail_20' ) end [2025-01-03 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:02:21] Production.INFO: ==7712== Releasing lock... [2025-01-03 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:02:21] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:03:05 [end_date_ymd] => 2025-01-03 22:03:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:03:05' and `end` < '2025-01-03 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-01-03 22:03:19] Production.INFO: count ==1138 [2025-01-03 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:03:05 - End Time 2025-01-03 22:03:05 [2025-01-03 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168475', 'tblTempUsageDetail_20' ) start [2025-01-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168475', 'tblTempUsageDetail_20' ) end [2025-01-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168475', 'tblTempVendorCDR_20' ) start [2025-01-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168475', 'tblTempVendorCDR_20' ) end [2025-01-03 22:03:19] Production.INFO: ProcessCDR(1,14168475,1,1,2) [2025-01-03 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168475', 'tblTempUsageDetail_20' ) start [2025-01-03 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168475', 'tblTempUsageDetail_20' ) end [2025-01-03 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:03:24] Production.INFO: ==7823== Releasing lock... [2025-01-03 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:03:24] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:04:05 [end_date_ymd] => 2025-01-03 22:04:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:04:05' and `end` < '2025-01-03 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-01-03 22:04:18] Production.INFO: count ==1131 [2025-01-03 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:04:05 - End Time 2025-01-03 22:04:05 [2025-01-03 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168480', 'tblTempUsageDetail_20' ) start [2025-01-03 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168480', 'tblTempUsageDetail_20' ) end [2025-01-03 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168480', 'tblTempVendorCDR_20' ) start [2025-01-03 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168480', 'tblTempVendorCDR_20' ) end [2025-01-03 22:04:18] Production.INFO: ProcessCDR(1,14168480,1,1,2) [2025-01-03 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168480', 'tblTempUsageDetail_20' ) start [2025-01-03 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168480', 'tblTempUsageDetail_20' ) end [2025-01-03 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:04:23] Production.INFO: ==7896== Releasing lock... [2025-01-03 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:04:23] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:05:06 [end_date_ymd] => 2025-01-03 22:05:06 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:05:06' and `end` < '2025-01-03 22: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-01-03 22:05:19] Production.INFO: count ==1121 [2025-01-03 22:05:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:05:06 - End Time 2025-01-03 22:05:06 [2025-01-03 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168485', 'tblTempUsageDetail_20' ) start [2025-01-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168485', 'tblTempUsageDetail_20' ) end [2025-01-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168485', 'tblTempVendorCDR_20' ) start [2025-01-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168485', 'tblTempVendorCDR_20' ) end [2025-01-03 22:05:19] Production.INFO: ProcessCDR(1,14168485,1,1,2) [2025-01-03 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168485', 'tblTempUsageDetail_20' ) start [2025-01-03 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168485', 'tblTempUsageDetail_20' ) end [2025-01-03 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:05:22] Production.INFO: ==7969== Releasing lock... [2025-01-03 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:05:22] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:06:05 [end_date_ymd] => 2025-01-03 22:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:06:05' and `end` < '2025-01-03 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-01-03 22:06:18] Production.INFO: count ==1120 [2025-01-03 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:06:05 - End Time 2025-01-03 22:06:05 [2025-01-03 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168490', 'tblTempUsageDetail_20' ) start [2025-01-03 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168490', 'tblTempUsageDetail_20' ) end [2025-01-03 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168490', 'tblTempVendorCDR_20' ) start [2025-01-03 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168490', 'tblTempVendorCDR_20' ) end [2025-01-03 22:06:18] Production.INFO: ProcessCDR(1,14168490,1,1,2) [2025-01-03 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168490', 'tblTempUsageDetail_20' ) start [2025-01-03 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168490', 'tblTempUsageDetail_20' ) end [2025-01-03 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:06:23] Production.INFO: ==8039== Releasing lock... [2025-01-03 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:06:23] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:07:05 [end_date_ymd] => 2025-01-03 22:07:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:07:05' and `end` < '2025-01-03 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-01-03 22:07:19] Production.INFO: count ==1119 [2025-01-03 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:07:05 - End Time 2025-01-03 22:07:05 [2025-01-03 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168495', 'tblTempUsageDetail_20' ) start [2025-01-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168495', 'tblTempUsageDetail_20' ) end [2025-01-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168495', 'tblTempVendorCDR_20' ) start [2025-01-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168495', 'tblTempVendorCDR_20' ) end [2025-01-03 22:07:19] Production.INFO: ProcessCDR(1,14168495,1,1,2) [2025-01-03 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168495', 'tblTempUsageDetail_20' ) start [2025-01-03 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168495', 'tblTempUsageDetail_20' ) end [2025-01-03 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:07:23] Production.INFO: ==8110== Releasing lock... [2025-01-03 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:07:23] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:08:04 [end_date_ymd] => 2025-01-03 22:08:04 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:08:04' and `end` < '2025-01-03 22: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-01-03 22:08:17] Production.INFO: count ==1117 [2025-01-03 22:08:17] Production.ERROR: pbx CDR StartTime 2025-01-03 19:08:04 - End Time 2025-01-03 22:08:04 [2025-01-03 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168497', 'tblTempUsageDetail_20' ) start [2025-01-03 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168497', 'tblTempUsageDetail_20' ) end [2025-01-03 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168497', 'tblTempVendorCDR_20' ) start [2025-01-03 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168497', 'tblTempVendorCDR_20' ) end [2025-01-03 22:08:17] Production.INFO: ProcessCDR(1,14168497,1,1,2) [2025-01-03 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168497', 'tblTempUsageDetail_20' ) start [2025-01-03 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168497', 'tblTempUsageDetail_20' ) end [2025-01-03 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:08:21] Production.INFO: ==8180== Releasing lock... [2025-01-03 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:08:21] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:09:04 [end_date_ymd] => 2025-01-03 22:09:04 [RateCDR] => 1 ) [2025-01-03 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:09:04' and `end` < '2025-01-03 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:09:18] Production.INFO: count ==1113 [2025-01-03 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:09:04 - End Time 2025-01-03 22:09:04 [2025-01-03 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168505', 'tblTempUsageDetail_20' ) start [2025-01-03 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168505', 'tblTempUsageDetail_20' ) end [2025-01-03 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168505', 'tblTempVendorCDR_20' ) start [2025-01-03 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168505', 'tblTempVendorCDR_20' ) end [2025-01-03 22:09:18] Production.INFO: ProcessCDR(1,14168505,1,1,2) [2025-01-03 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168505', 'tblTempUsageDetail_20' ) start [2025-01-03 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168505', 'tblTempUsageDetail_20' ) end [2025-01-03 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:09:21] Production.INFO: ==8255== Releasing lock... [2025-01-03 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:09:21] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:10:06 [end_date_ymd] => 2025-01-03 22:10:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:10:06' and `end` < '2025-01-03 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-01-03 22:10:19] Production.INFO: count ==1112 [2025-01-03 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:10:06 - End Time 2025-01-03 22:10:06 [2025-01-03 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168511', 'tblTempUsageDetail_20' ) start [2025-01-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168511', 'tblTempUsageDetail_20' ) end [2025-01-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168511', 'tblTempVendorCDR_20' ) start [2025-01-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168511', 'tblTempVendorCDR_20' ) end [2025-01-03 22:10:19] Production.INFO: ProcessCDR(1,14168511,1,1,2) [2025-01-03 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168511', 'tblTempUsageDetail_20' ) start [2025-01-03 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168511', 'tblTempUsageDetail_20' ) end [2025-01-03 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:10:24] Production.INFO: ==8328== Releasing lock... [2025-01-03 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:10:24] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:11:05 [end_date_ymd] => 2025-01-03 22:11:05 [RateCDR] => 1 ) [2025-01-03 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:11:05' and `end` < '2025-01-03 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:11:18] Production.INFO: count ==1077 [2025-01-03 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:11:05 - End Time 2025-01-03 22:11:05 [2025-01-03 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168516', 'tblTempUsageDetail_20' ) start [2025-01-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168516', 'tblTempUsageDetail_20' ) end [2025-01-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168516', 'tblTempVendorCDR_20' ) start [2025-01-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168516', 'tblTempVendorCDR_20' ) end [2025-01-03 22:11:19] Production.INFO: ProcessCDR(1,14168516,1,1,2) [2025-01-03 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168516', 'tblTempUsageDetail_20' ) start [2025-01-03 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168516', 'tblTempUsageDetail_20' ) end [2025-01-03 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:11:22] Production.INFO: ==8402== Releasing lock... [2025-01-03 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:12:05 [end_date_ymd] => 2025-01-03 22:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:12:05' and `end` < '2025-01-03 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-01-03 22:12:18] Production.INFO: count ==1077 [2025-01-03 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:12:05 - End Time 2025-01-03 22:12:05 [2025-01-03 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168521', 'tblTempUsageDetail_20' ) start [2025-01-03 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168521', 'tblTempUsageDetail_20' ) end [2025-01-03 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168521', 'tblTempVendorCDR_20' ) start [2025-01-03 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168521', 'tblTempVendorCDR_20' ) end [2025-01-03 22:12:18] Production.INFO: ProcessCDR(1,14168521,1,1,2) [2025-01-03 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168521', 'tblTempUsageDetail_20' ) start [2025-01-03 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168521', 'tblTempUsageDetail_20' ) end [2025-01-03 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:12:22] Production.INFO: ==8472== Releasing lock... [2025-01-03 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:12:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:13:05 [end_date_ymd] => 2025-01-03 22:13:05 [RateCDR] => 1 ) [2025-01-03 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:13:05' and `end` < '2025-01-03 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:13:18] Production.INFO: count ==1080 [2025-01-03 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:13:05 - End Time 2025-01-03 22:13:05 [2025-01-03 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168526', 'tblTempUsageDetail_20' ) start [2025-01-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168526', 'tblTempUsageDetail_20' ) end [2025-01-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168526', 'tblTempVendorCDR_20' ) start [2025-01-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168526', 'tblTempVendorCDR_20' ) end [2025-01-03 22:13:18] Production.INFO: ProcessCDR(1,14168526,1,1,2) [2025-01-03 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168526', 'tblTempUsageDetail_20' ) start [2025-01-03 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168526', 'tblTempUsageDetail_20' ) end [2025-01-03 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:13:21] Production.INFO: ==8543== Releasing lock... [2025-01-03 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:13:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:14:05 [end_date_ymd] => 2025-01-03 22:14:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:14:05' and `end` < '2025-01-03 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-01-03 22:14:18] Production.INFO: count ==1080 [2025-01-03 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:14:05 - End Time 2025-01-03 22:14:05 [2025-01-03 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168531', 'tblTempUsageDetail_20' ) start [2025-01-03 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168531', 'tblTempUsageDetail_20' ) end [2025-01-03 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168531', 'tblTempVendorCDR_20' ) start [2025-01-03 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168531', 'tblTempVendorCDR_20' ) end [2025-01-03 22:14:18] Production.INFO: ProcessCDR(1,14168531,1,1,2) [2025-01-03 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168531', 'tblTempUsageDetail_20' ) start [2025-01-03 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168531', 'tblTempUsageDetail_20' ) end [2025-01-03 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:14:21] Production.INFO: ==8616== Releasing lock... [2025-01-03 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:14:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:15:05 [end_date_ymd] => 2025-01-03 22:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:15:05' and `end` < '2025-01-03 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-01-03 22:15:18] Production.INFO: count ==1083 [2025-01-03 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:15:05 - End Time 2025-01-03 22:15:05 [2025-01-03 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168536', 'tblTempUsageDetail_20' ) start [2025-01-03 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168536', 'tblTempUsageDetail_20' ) end [2025-01-03 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168536', 'tblTempVendorCDR_20' ) start [2025-01-03 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168536', 'tblTempVendorCDR_20' ) end [2025-01-03 22:15:18] Production.INFO: ProcessCDR(1,14168536,1,1,2) [2025-01-03 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168536', 'tblTempUsageDetail_20' ) start [2025-01-03 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168536', 'tblTempUsageDetail_20' ) end [2025-01-03 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:15:21] Production.INFO: ==8686== Releasing lock... [2025-01-03 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:15:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:16:05 [end_date_ymd] => 2025-01-03 22:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:16:05' and `end` < '2025-01-03 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-01-03 22:16:18] Production.INFO: count ==1083 [2025-01-03 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:16:05 - End Time 2025-01-03 22:16:05 [2025-01-03 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168541', 'tblTempUsageDetail_20' ) start [2025-01-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168541', 'tblTempUsageDetail_20' ) end [2025-01-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168541', 'tblTempVendorCDR_20' ) start [2025-01-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168541', 'tblTempVendorCDR_20' ) end [2025-01-03 22:16:18] Production.INFO: ProcessCDR(1,14168541,1,1,2) [2025-01-03 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168541', 'tblTempUsageDetail_20' ) start [2025-01-03 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168541', 'tblTempUsageDetail_20' ) end [2025-01-03 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:16:21] Production.INFO: ==8756== Releasing lock... [2025-01-03 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:16:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:17:05 [end_date_ymd] => 2025-01-03 22:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:17:05' and `end` < '2025-01-03 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-01-03 22:17:18] Production.INFO: count ==1082 [2025-01-03 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:17:05 - End Time 2025-01-03 22:17:05 [2025-01-03 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168546', 'tblTempUsageDetail_20' ) start [2025-01-03 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168546', 'tblTempUsageDetail_20' ) end [2025-01-03 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168546', 'tblTempVendorCDR_20' ) start [2025-01-03 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168546', 'tblTempVendorCDR_20' ) end [2025-01-03 22:17:18] Production.INFO: ProcessCDR(1,14168546,1,1,2) [2025-01-03 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168546', 'tblTempUsageDetail_20' ) start [2025-01-03 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168546', 'tblTempUsageDetail_20' ) end [2025-01-03 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:17:21] Production.INFO: ==8829== Releasing lock... [2025-01-03 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:17:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:18:05 [end_date_ymd] => 2025-01-03 22:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:18:05' and `end` < '2025-01-03 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-01-03 22:18:18] Production.INFO: count ==1081 [2025-01-03 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:18:05 - End Time 2025-01-03 22:18:05 [2025-01-03 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168551', 'tblTempUsageDetail_20' ) start [2025-01-03 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168551', 'tblTempUsageDetail_20' ) end [2025-01-03 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168551', 'tblTempVendorCDR_20' ) start [2025-01-03 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168551', 'tblTempVendorCDR_20' ) end [2025-01-03 22:18:18] Production.INFO: ProcessCDR(1,14168551,1,1,2) [2025-01-03 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168551', 'tblTempUsageDetail_20' ) start [2025-01-03 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168551', 'tblTempUsageDetail_20' ) end [2025-01-03 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:18:21] Production.INFO: ==8902== Releasing lock... [2025-01-03 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:18:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:19:04 [end_date_ymd] => 2025-01-03 22:19:04 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:19:04' and `end` < '2025-01-03 22: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-01-03 22:19:17] Production.INFO: count ==1080 [2025-01-03 22:19:17] Production.ERROR: pbx CDR StartTime 2025-01-03 19:19:04 - End Time 2025-01-03 22:19:04 [2025-01-03 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168556', 'tblTempUsageDetail_20' ) start [2025-01-03 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168556', 'tblTempUsageDetail_20' ) end [2025-01-03 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168556', 'tblTempVendorCDR_20' ) start [2025-01-03 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168556', 'tblTempVendorCDR_20' ) end [2025-01-03 22:19:17] Production.INFO: ProcessCDR(1,14168556,1,1,2) [2025-01-03 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168556', 'tblTempUsageDetail_20' ) start [2025-01-03 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168556', 'tblTempUsageDetail_20' ) end [2025-01-03 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:19:20] Production.INFO: ==9014== Releasing lock... [2025-01-03 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:19:20] Production.INFO: 35.75 MB #Memory Used# [2025-01-03 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:20:06 [end_date_ymd] => 2025-01-03 22:20:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:20:06' and `end` < '2025-01-03 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-01-03 22:20:19] Production.INFO: count ==1080 [2025-01-03 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:20:06 - End Time 2025-01-03 22:20:06 [2025-01-03 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168562', 'tblTempUsageDetail_20' ) start [2025-01-03 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168562', 'tblTempUsageDetail_20' ) end [2025-01-03 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168562', 'tblTempVendorCDR_20' ) start [2025-01-03 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168562', 'tblTempVendorCDR_20' ) end [2025-01-03 22:20:19] Production.INFO: ProcessCDR(1,14168562,1,1,2) [2025-01-03 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168562', 'tblTempUsageDetail_20' ) start [2025-01-03 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168562', 'tblTempUsageDetail_20' ) end [2025-01-03 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:20:22] Production.INFO: ==9089== Releasing lock... [2025-01-03 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:20:22] Production.INFO: 36 MB #Memory Used# [2025-01-03 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:21:06 [end_date_ymd] => 2025-01-03 22:21:06 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:21:06' and `end` < '2025-01-03 22: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-01-03 22:21:20] Production.INFO: count ==1065 [2025-01-03 22:21:20] Production.ERROR: pbx CDR StartTime 2025-01-03 19:21:06 - End Time 2025-01-03 22:21:06 [2025-01-03 22:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168567', 'tblTempUsageDetail_20' ) start [2025-01-03 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168567', 'tblTempUsageDetail_20' ) end [2025-01-03 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168567', 'tblTempVendorCDR_20' ) start [2025-01-03 22:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168567', 'tblTempVendorCDR_20' ) end [2025-01-03 22:21:20] Production.INFO: ProcessCDR(1,14168567,1,1,2) [2025-01-03 22:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168567', 'tblTempUsageDetail_20' ) start [2025-01-03 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168567', 'tblTempUsageDetail_20' ) end [2025-01-03 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:21:23] Production.INFO: ==9164== Releasing lock... [2025-01-03 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:21:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:22:05 [end_date_ymd] => 2025-01-03 22:22:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:22:05' and `end` < '2025-01-03 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-01-03 22:22:18] Production.INFO: count ==1063 [2025-01-03 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:22:05 - End Time 2025-01-03 22:22:05 [2025-01-03 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168572', 'tblTempUsageDetail_20' ) start [2025-01-03 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168572', 'tblTempUsageDetail_20' ) end [2025-01-03 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168572', 'tblTempVendorCDR_20' ) start [2025-01-03 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168572', 'tblTempVendorCDR_20' ) end [2025-01-03 22:22:18] Production.INFO: ProcessCDR(1,14168572,1,1,2) [2025-01-03 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168572', 'tblTempUsageDetail_20' ) start [2025-01-03 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168572', 'tblTempUsageDetail_20' ) end [2025-01-03 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:22:21] Production.INFO: ==9233== Releasing lock... [2025-01-03 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:22:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:23:05 [end_date_ymd] => 2025-01-03 22:23:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:23:05' and `end` < '2025-01-03 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-01-03 22:23:18] Production.INFO: count ==1063 [2025-01-03 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:23:05 - End Time 2025-01-03 22:23:05 [2025-01-03 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168577', 'tblTempUsageDetail_20' ) start [2025-01-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168577', 'tblTempUsageDetail_20' ) end [2025-01-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168577', 'tblTempVendorCDR_20' ) start [2025-01-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168577', 'tblTempVendorCDR_20' ) end [2025-01-03 22:23:18] Production.INFO: ProcessCDR(1,14168577,1,1,2) [2025-01-03 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168577', 'tblTempUsageDetail_20' ) start [2025-01-03 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168577', 'tblTempUsageDetail_20' ) end [2025-01-03 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:23:21] Production.INFO: ==9307== Releasing lock... [2025-01-03 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:23:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:24:05 [end_date_ymd] => 2025-01-03 22:24:05 [RateCDR] => 1 ) [2025-01-03 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:24:05' and `end` < '2025-01-03 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:24:17] Production.INFO: count ==1060 [2025-01-03 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:24:05 - End Time 2025-01-03 22:24:05 [2025-01-03 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168582', 'tblTempUsageDetail_20' ) start [2025-01-03 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168582', 'tblTempUsageDetail_20' ) end [2025-01-03 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168582', 'tblTempVendorCDR_20' ) start [2025-01-03 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168582', 'tblTempVendorCDR_20' ) end [2025-01-03 22:24:18] Production.INFO: ProcessCDR(1,14168582,1,1,2) [2025-01-03 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168582', 'tblTempUsageDetail_20' ) start [2025-01-03 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168582', 'tblTempUsageDetail_20' ) end [2025-01-03 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:24:21] Production.INFO: ==9380== Releasing lock... [2025-01-03 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:24:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:25:05 [end_date_ymd] => 2025-01-03 22:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:25:05' and `end` < '2025-01-03 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-01-03 22:25:18] Production.INFO: count ==1059 [2025-01-03 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:25:05 - End Time 2025-01-03 22:25:05 [2025-01-03 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168587', 'tblTempUsageDetail_20' ) start [2025-01-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168587', 'tblTempUsageDetail_20' ) end [2025-01-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168587', 'tblTempVendorCDR_20' ) start [2025-01-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168587', 'tblTempVendorCDR_20' ) end [2025-01-03 22:25:18] Production.INFO: ProcessCDR(1,14168587,1,1,2) [2025-01-03 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168587', 'tblTempUsageDetail_20' ) start [2025-01-03 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168587', 'tblTempUsageDetail_20' ) end [2025-01-03 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:25:21] Production.INFO: ==9454== Releasing lock... [2025-01-03 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:25:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:26:06 [end_date_ymd] => 2025-01-03 22:26:06 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:26:06' and `end` < '2025-01-03 22: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-01-03 22:26:19] Production.INFO: count ==1059 [2025-01-03 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:26:06 - End Time 2025-01-03 22:26:06 [2025-01-03 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168592', 'tblTempUsageDetail_20' ) start [2025-01-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168592', 'tblTempUsageDetail_20' ) end [2025-01-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168592', 'tblTempVendorCDR_20' ) start [2025-01-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168592', 'tblTempVendorCDR_20' ) end [2025-01-03 22:26:19] Production.INFO: ProcessCDR(1,14168592,1,1,2) [2025-01-03 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168592', 'tblTempUsageDetail_20' ) start [2025-01-03 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168592', 'tblTempUsageDetail_20' ) end [2025-01-03 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:26:22] Production.INFO: ==9524== Releasing lock... [2025-01-03 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:26:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:27:04 [end_date_ymd] => 2025-01-03 22:27:04 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:27:04' and `end` < '2025-01-03 22: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-01-03 22:27:17] Production.INFO: count ==1057 [2025-01-03 22:27:17] Production.ERROR: pbx CDR StartTime 2025-01-03 19:27:04 - End Time 2025-01-03 22:27:04 [2025-01-03 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168597', 'tblTempUsageDetail_20' ) start [2025-01-03 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168597', 'tblTempUsageDetail_20' ) end [2025-01-03 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168597', 'tblTempVendorCDR_20' ) start [2025-01-03 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168597', 'tblTempVendorCDR_20' ) end [2025-01-03 22:27:17] Production.INFO: ProcessCDR(1,14168597,1,1,2) [2025-01-03 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168597', 'tblTempUsageDetail_20' ) start [2025-01-03 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168597', 'tblTempUsageDetail_20' ) end [2025-01-03 22:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:27:20] Production.INFO: ==9596== Releasing lock... [2025-01-03 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:27:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:28:05 [end_date_ymd] => 2025-01-03 22:28:05 [RateCDR] => 1 ) [2025-01-03 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:28:05' and `end` < '2025-01-03 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-01-03 22:28:18] Production.INFO: count ==1056 [2025-01-03 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:28:05 - End Time 2025-01-03 22:28:05 [2025-01-03 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168602', 'tblTempUsageDetail_20' ) start [2025-01-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168602', 'tblTempUsageDetail_20' ) end [2025-01-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168602', 'tblTempVendorCDR_20' ) start [2025-01-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168602', 'tblTempVendorCDR_20' ) end [2025-01-03 22:28:19] Production.INFO: ProcessCDR(1,14168602,1,1,2) [2025-01-03 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168602', 'tblTempUsageDetail_20' ) start [2025-01-03 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168602', 'tblTempUsageDetail_20' ) end [2025-01-03 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:28:22] Production.INFO: ==9668== Releasing lock... [2025-01-03 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:28:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:29:04 [end_date_ymd] => 2025-01-03 22:29:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:29:04' and `end` < '2025-01-03 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-01-03 22:29:17] Production.INFO: count ==1059 [2025-01-03 22:29:17] Production.ERROR: pbx CDR StartTime 2025-01-03 19:29:04 - End Time 2025-01-03 22:29:04 [2025-01-03 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168607', 'tblTempUsageDetail_20' ) start [2025-01-03 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168607', 'tblTempUsageDetail_20' ) end [2025-01-03 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168607', 'tblTempVendorCDR_20' ) start [2025-01-03 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168607', 'tblTempVendorCDR_20' ) end [2025-01-03 22:29:17] Production.INFO: ProcessCDR(1,14168607,1,1,2) [2025-01-03 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168607', 'tblTempUsageDetail_20' ) start [2025-01-03 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168607', 'tblTempUsageDetail_20' ) end [2025-01-03 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:29:21] Production.INFO: ==9744== Releasing lock... [2025-01-03 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:29:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:30:05 [end_date_ymd] => 2025-01-03 22:30:05 [RateCDR] => 1 ) [2025-01-03 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:30:05' and `end` < '2025-01-03 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:30:18] Production.INFO: count ==1058 [2025-01-03 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:30:05 - End Time 2025-01-03 22:30:05 [2025-01-03 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168613', 'tblTempUsageDetail_20' ) start [2025-01-03 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168613', 'tblTempUsageDetail_20' ) end [2025-01-03 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168613', 'tblTempVendorCDR_20' ) start [2025-01-03 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168613', 'tblTempVendorCDR_20' ) end [2025-01-03 22:30:18] Production.INFO: ProcessCDR(1,14168613,1,1,2) [2025-01-03 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168613', 'tblTempUsageDetail_20' ) start [2025-01-03 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168613', 'tblTempUsageDetail_20' ) end [2025-01-03 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:30:23] Production.INFO: ==9818== Releasing lock... [2025-01-03 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:30:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-03 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:31:05 [end_date_ymd] => 2025-01-03 22:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:31:05' and `end` < '2025-01-03 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-01-03 22:31:17] Production.INFO: count ==1013 [2025-01-03 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:31:05 - End Time 2025-01-03 22:31:05 [2025-01-03 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168618', 'tblTempUsageDetail_20' ) start [2025-01-03 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168618', 'tblTempUsageDetail_20' ) end [2025-01-03 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168618', 'tblTempVendorCDR_20' ) start [2025-01-03 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168618', 'tblTempVendorCDR_20' ) end [2025-01-03 22:31:18] Production.INFO: ProcessCDR(1,14168618,1,1,2) [2025-01-03 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168618', 'tblTempUsageDetail_20' ) start [2025-01-03 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168618', 'tblTempUsageDetail_20' ) end [2025-01-03 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:31:21] Production.INFO: ==9895== Releasing lock... [2025-01-03 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:32:05 [end_date_ymd] => 2025-01-03 22:32:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:32:05' and `end` < '2025-01-03 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-01-03 22:32:18] Production.INFO: count ==1015 [2025-01-03 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:32:05 - End Time 2025-01-03 22:32:05 [2025-01-03 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168623', 'tblTempUsageDetail_20' ) start [2025-01-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168623', 'tblTempUsageDetail_20' ) end [2025-01-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168623', 'tblTempVendorCDR_20' ) start [2025-01-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168623', 'tblTempVendorCDR_20' ) end [2025-01-03 22:32:19] Production.INFO: ProcessCDR(1,14168623,1,1,2) [2025-01-03 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168623', 'tblTempUsageDetail_20' ) start [2025-01-03 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168623', 'tblTempUsageDetail_20' ) end [2025-01-03 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:32:22] Production.INFO: ==9968== Releasing lock... [2025-01-03 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:32:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:33:04 [end_date_ymd] => 2025-01-03 22:33:04 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:33:04' and `end` < '2025-01-03 22: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-01-03 22:33:18] Production.INFO: count ==1019 [2025-01-03 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:33:04 - End Time 2025-01-03 22:33:04 [2025-01-03 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168628', 'tblTempUsageDetail_20' ) start [2025-01-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168628', 'tblTempUsageDetail_20' ) end [2025-01-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168628', 'tblTempVendorCDR_20' ) start [2025-01-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168628', 'tblTempVendorCDR_20' ) end [2025-01-03 22:33:18] Production.INFO: ProcessCDR(1,14168628,1,1,2) [2025-01-03 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168628', 'tblTempUsageDetail_20' ) start [2025-01-03 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168628', 'tblTempUsageDetail_20' ) end [2025-01-03 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:33:21] Production.INFO: ==10045== Releasing lock... [2025-01-03 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:33:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:34:05 [end_date_ymd] => 2025-01-03 22:34:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:34:05' and `end` < '2025-01-03 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-01-03 22:34:18] Production.INFO: count ==1019 [2025-01-03 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:34:05 - End Time 2025-01-03 22:34:05 [2025-01-03 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168633', 'tblTempUsageDetail_20' ) start [2025-01-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168633', 'tblTempUsageDetail_20' ) end [2025-01-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168633', 'tblTempVendorCDR_20' ) start [2025-01-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168633', 'tblTempVendorCDR_20' ) end [2025-01-03 22:34:18] Production.INFO: ProcessCDR(1,14168633,1,1,2) [2025-01-03 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168633', 'tblTempUsageDetail_20' ) start [2025-01-03 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168633', 'tblTempUsageDetail_20' ) end [2025-01-03 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:34:21] Production.INFO: ==10161== Releasing lock... [2025-01-03 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:34:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:35:05 [end_date_ymd] => 2025-01-03 22:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:35:05' and `end` < '2025-01-03 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-01-03 22:35:19] Production.INFO: count ==1023 [2025-01-03 22:35:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:35:05 - End Time 2025-01-03 22:35:05 [2025-01-03 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168638', 'tblTempUsageDetail_20' ) start [2025-01-03 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168638', 'tblTempUsageDetail_20' ) end [2025-01-03 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168638', 'tblTempVendorCDR_20' ) start [2025-01-03 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168638', 'tblTempVendorCDR_20' ) end [2025-01-03 22:35:19] Production.INFO: ProcessCDR(1,14168638,1,1,2) [2025-01-03 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168638', 'tblTempUsageDetail_20' ) start [2025-01-03 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168638', 'tblTempUsageDetail_20' ) end [2025-01-03 22:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:35:24] Production.INFO: ==10238== Releasing lock... [2025-01-03 22:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:35:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:36:05 [end_date_ymd] => 2025-01-03 22:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:36:05' and `end` < '2025-01-03 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-01-03 22:36:18] Production.INFO: count ==1023 [2025-01-03 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:36:05 - End Time 2025-01-03 22:36:05 [2025-01-03 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168643', 'tblTempUsageDetail_20' ) start [2025-01-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168643', 'tblTempUsageDetail_20' ) end [2025-01-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168643', 'tblTempVendorCDR_20' ) start [2025-01-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168643', 'tblTempVendorCDR_20' ) end [2025-01-03 22:36:18] Production.INFO: ProcessCDR(1,14168643,1,1,2) [2025-01-03 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168643', 'tblTempUsageDetail_20' ) start [2025-01-03 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168643', 'tblTempUsageDetail_20' ) end [2025-01-03 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:36:21] Production.INFO: ==10311== Releasing lock... [2025-01-03 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:36:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:37:05 [end_date_ymd] => 2025-01-03 22:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:37:05' and `end` < '2025-01-03 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-01-03 22:37:18] Production.INFO: count ==1024 [2025-01-03 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:37:05 - End Time 2025-01-03 22:37:05 [2025-01-03 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168648', 'tblTempUsageDetail_20' ) start [2025-01-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168648', 'tblTempUsageDetail_20' ) end [2025-01-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168648', 'tblTempVendorCDR_20' ) start [2025-01-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168648', 'tblTempVendorCDR_20' ) end [2025-01-03 22:37:18] Production.INFO: ProcessCDR(1,14168648,1,1,2) [2025-01-03 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168648', 'tblTempUsageDetail_20' ) start [2025-01-03 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168648', 'tblTempUsageDetail_20' ) end [2025-01-03 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:37:23] Production.INFO: ==10389== Releasing lock... [2025-01-03 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:37:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:38:05 [end_date_ymd] => 2025-01-03 22:38:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:38:05' and `end` < '2025-01-03 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-01-03 22:38:17] Production.INFO: count ==1023 [2025-01-03 22:38:17] Production.ERROR: pbx CDR StartTime 2025-01-03 19:38:05 - End Time 2025-01-03 22:38:05 [2025-01-03 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168653', 'tblTempUsageDetail_20' ) start [2025-01-03 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168653', 'tblTempUsageDetail_20' ) end [2025-01-03 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168653', 'tblTempVendorCDR_20' ) start [2025-01-03 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168653', 'tblTempVendorCDR_20' ) end [2025-01-03 22:38:17] Production.INFO: ProcessCDR(1,14168653,1,1,2) [2025-01-03 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168653', 'tblTempUsageDetail_20' ) start [2025-01-03 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168653', 'tblTempUsageDetail_20' ) end [2025-01-03 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:38:21] Production.INFO: ==10464== Releasing lock... [2025-01-03 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:39:05 [end_date_ymd] => 2025-01-03 22:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:39:05' and `end` < '2025-01-03 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-01-03 22:39:18] Production.INFO: count ==1022 [2025-01-03 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:39:05 - End Time 2025-01-03 22:39:05 [2025-01-03 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168658', 'tblTempUsageDetail_20' ) start [2025-01-03 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168658', 'tblTempUsageDetail_20' ) end [2025-01-03 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168658', 'tblTempVendorCDR_20' ) start [2025-01-03 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168658', 'tblTempVendorCDR_20' ) end [2025-01-03 22:39:18] Production.INFO: ProcessCDR(1,14168658,1,1,2) [2025-01-03 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168658', 'tblTempUsageDetail_20' ) start [2025-01-03 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168658', 'tblTempUsageDetail_20' ) end [2025-01-03 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:39:21] Production.INFO: ==10540== Releasing lock... [2025-01-03 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:40:05 [end_date_ymd] => 2025-01-03 22:40:05 [RateCDR] => 1 ) [2025-01-03 22: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-01-03 19:40:05' and `end` < '2025-01-03 22: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-01-03 22:40:18] Production.INFO: count ==1023 [2025-01-03 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:40:05 - End Time 2025-01-03 22:40:05 [2025-01-03 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168663', 'tblTempUsageDetail_20' ) start [2025-01-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168663', 'tblTempUsageDetail_20' ) end [2025-01-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168663', 'tblTempVendorCDR_20' ) start [2025-01-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168663', 'tblTempVendorCDR_20' ) end [2025-01-03 22:40:18] Production.INFO: ProcessCDR(1,14168663,1,1,2) [2025-01-03 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168663', 'tblTempUsageDetail_20' ) start [2025-01-03 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168663', 'tblTempUsageDetail_20' ) end [2025-01-03 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:40:21] Production.INFO: ==10621== Releasing lock... [2025-01-03 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:40:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-03 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:41:05 [end_date_ymd] => 2025-01-03 22:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:41:05' and `end` < '2025-01-03 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-01-03 22:41:17] Production.INFO: count ==1001 [2025-01-03 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:41:05 - End Time 2025-01-03 22:41:05 [2025-01-03 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168669', 'tblTempUsageDetail_20' ) start [2025-01-03 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168669', 'tblTempUsageDetail_20' ) end [2025-01-03 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168669', 'tblTempVendorCDR_20' ) start [2025-01-03 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168669', 'tblTempVendorCDR_20' ) end [2025-01-03 22:41:18] Production.INFO: ProcessCDR(1,14168669,1,1,2) [2025-01-03 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168669', 'tblTempUsageDetail_20' ) start [2025-01-03 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168669', 'tblTempUsageDetail_20' ) end [2025-01-03 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:41:21] Production.INFO: ==10701== Releasing lock... [2025-01-03 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:41:21] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:42:06 [end_date_ymd] => 2025-01-03 22:42:06 [RateCDR] => 1 ) [2025-01-03 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:42:06' and `end` < '2025-01-03 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:42:19] Production.INFO: count ==1003 [2025-01-03 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:42:06 - End Time 2025-01-03 22:42:06 [2025-01-03 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168674', 'tblTempUsageDetail_20' ) start [2025-01-03 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168674', 'tblTempUsageDetail_20' ) end [2025-01-03 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168674', 'tblTempVendorCDR_20' ) start [2025-01-03 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168674', 'tblTempVendorCDR_20' ) end [2025-01-03 22:42:19] Production.INFO: ProcessCDR(1,14168674,1,1,2) [2025-01-03 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168674', 'tblTempUsageDetail_20' ) start [2025-01-03 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168674', 'tblTempUsageDetail_20' ) end [2025-01-03 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:42:23] Production.INFO: ==10774== Releasing lock... [2025-01-03 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:42:23] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:43:05 [end_date_ymd] => 2025-01-03 22:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:43:05' and `end` < '2025-01-03 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-01-03 22:43:18] Production.INFO: count ==1005 [2025-01-03 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:43:05 - End Time 2025-01-03 22:43:05 [2025-01-03 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168679', 'tblTempUsageDetail_20' ) start [2025-01-03 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168679', 'tblTempUsageDetail_20' ) end [2025-01-03 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168679', 'tblTempVendorCDR_20' ) start [2025-01-03 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168679', 'tblTempVendorCDR_20' ) end [2025-01-03 22:43:18] Production.INFO: ProcessCDR(1,14168679,1,1,2) [2025-01-03 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168679', 'tblTempUsageDetail_20' ) start [2025-01-03 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168679', 'tblTempUsageDetail_20' ) end [2025-01-03 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:43:21] Production.INFO: ==10851== Releasing lock... [2025-01-03 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:43:21] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:44:05 [end_date_ymd] => 2025-01-03 22:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:44:05' and `end` < '2025-01-03 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-01-03 22:44:18] Production.INFO: count ==1004 [2025-01-03 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:44:05 - End Time 2025-01-03 22:44:05 [2025-01-03 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168684', 'tblTempUsageDetail_20' ) start [2025-01-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168684', 'tblTempUsageDetail_20' ) end [2025-01-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168684', 'tblTempVendorCDR_20' ) start [2025-01-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168684', 'tblTempVendorCDR_20' ) end [2025-01-03 22:44:18] Production.INFO: ProcessCDR(1,14168684,1,1,2) [2025-01-03 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168684', 'tblTempUsageDetail_20' ) start [2025-01-03 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168684', 'tblTempUsageDetail_20' ) end [2025-01-03 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:44:23] Production.INFO: ==10932== Releasing lock... [2025-01-03 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:44:23] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:45:05 [end_date_ymd] => 2025-01-03 22:45:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:45:05' and `end` < '2025-01-03 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-01-03 22:45:18] Production.INFO: count ==1006 [2025-01-03 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:45:05 - End Time 2025-01-03 22:45:05 [2025-01-03 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168689', 'tblTempUsageDetail_20' ) start [2025-01-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168689', 'tblTempUsageDetail_20' ) end [2025-01-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168689', 'tblTempVendorCDR_20' ) start [2025-01-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168689', 'tblTempVendorCDR_20' ) end [2025-01-03 22:45:18] Production.INFO: ProcessCDR(1,14168689,1,1,2) [2025-01-03 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168689', 'tblTempUsageDetail_20' ) start [2025-01-03 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168689', 'tblTempUsageDetail_20' ) end [2025-01-03 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:45:21] Production.INFO: ==11006== Releasing lock... [2025-01-03 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:45:21] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:46:05 [end_date_ymd] => 2025-01-03 22:46:05 [RateCDR] => 1 ) [2025-01-03 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:46:05' and `end` < '2025-01-03 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:46:19] Production.INFO: count ==1007 [2025-01-03 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:46:05 - End Time 2025-01-03 22:46:05 [2025-01-03 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168694', 'tblTempUsageDetail_20' ) start [2025-01-03 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168694', 'tblTempUsageDetail_20' ) end [2025-01-03 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168694', 'tblTempVendorCDR_20' ) start [2025-01-03 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168694', 'tblTempVendorCDR_20' ) end [2025-01-03 22:46:19] Production.INFO: ProcessCDR(1,14168694,1,1,2) [2025-01-03 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168694', 'tblTempUsageDetail_20' ) start [2025-01-03 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168694', 'tblTempUsageDetail_20' ) end [2025-01-03 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:46:24] Production.INFO: ==11088== Releasing lock... [2025-01-03 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:46:24] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:47:05 [end_date_ymd] => 2025-01-03 22:47:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:47:05' and `end` < '2025-01-03 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-01-03 22:47:18] Production.INFO: count ==1008 [2025-01-03 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:47:05 - End Time 2025-01-03 22:47:05 [2025-01-03 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168699', 'tblTempUsageDetail_20' ) start [2025-01-03 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168699', 'tblTempUsageDetail_20' ) end [2025-01-03 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168699', 'tblTempVendorCDR_20' ) start [2025-01-03 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168699', 'tblTempVendorCDR_20' ) end [2025-01-03 22:47:18] Production.INFO: ProcessCDR(1,14168699,1,1,2) [2025-01-03 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168699', 'tblTempUsageDetail_20' ) start [2025-01-03 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168699', 'tblTempUsageDetail_20' ) end [2025-01-03 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:47:23] Production.INFO: ==11161== Releasing lock... [2025-01-03 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:47:23] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:48:05 [end_date_ymd] => 2025-01-03 22:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:48:05' and `end` < '2025-01-03 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-01-03 22:48:18] Production.INFO: count ==995 [2025-01-03 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:48:05 - End Time 2025-01-03 22:48:05 [2025-01-03 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168704', 'tblTempUsageDetail_20' ) start [2025-01-03 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168704', 'tblTempUsageDetail_20' ) end [2025-01-03 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168704', 'tblTempVendorCDR_20' ) start [2025-01-03 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168704', 'tblTempVendorCDR_20' ) end [2025-01-03 22:48:18] Production.INFO: ProcessCDR(1,14168704,1,1,2) [2025-01-03 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168704', 'tblTempUsageDetail_20' ) start [2025-01-03 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168704', 'tblTempUsageDetail_20' ) end [2025-01-03 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:48:21] Production.INFO: ==11234== Releasing lock... [2025-01-03 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:48:21] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:49:05 [end_date_ymd] => 2025-01-03 22:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:49:05' and `end` < '2025-01-03 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-01-03 22:49:19] Production.INFO: count ==992 [2025-01-03 22:49:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:49:05 - End Time 2025-01-03 22:49:05 [2025-01-03 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168709', 'tblTempUsageDetail_20' ) start [2025-01-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168709', 'tblTempUsageDetail_20' ) end [2025-01-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168709', 'tblTempVendorCDR_20' ) start [2025-01-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168709', 'tblTempVendorCDR_20' ) end [2025-01-03 22:49:19] Production.INFO: ProcessCDR(1,14168709,1,1,2) [2025-01-03 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168709', 'tblTempUsageDetail_20' ) start [2025-01-03 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168709', 'tblTempUsageDetail_20' ) end [2025-01-03 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:49:22] Production.INFO: ==11308== Releasing lock... [2025-01-03 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:49:22] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:50:06 [end_date_ymd] => 2025-01-03 22:50:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:50:06' and `end` < '2025-01-03 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-01-03 22:50:19] Production.INFO: count ==992 [2025-01-03 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:50:06 - End Time 2025-01-03 22:50:06 [2025-01-03 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168715', 'tblTempUsageDetail_20' ) start [2025-01-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168715', 'tblTempUsageDetail_20' ) end [2025-01-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168715', 'tblTempVendorCDR_20' ) start [2025-01-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168715', 'tblTempVendorCDR_20' ) end [2025-01-03 22:50:19] Production.INFO: ProcessCDR(1,14168715,1,1,2) [2025-01-03 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168715', 'tblTempUsageDetail_20' ) start [2025-01-03 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168715', 'tblTempUsageDetail_20' ) end [2025-01-03 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:50:22] Production.INFO: ==11429== Releasing lock... [2025-01-03 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:50:22] Production.INFO: 35 MB #Memory Used# [2025-01-03 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:51:05 [end_date_ymd] => 2025-01-03 22:51:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:51:05' and `end` < '2025-01-03 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-01-03 22:51:19] Production.INFO: count ==964 [2025-01-03 22:51:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:51:05 - End Time 2025-01-03 22:51:05 [2025-01-03 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168720', 'tblTempUsageDetail_20' ) start [2025-01-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168720', 'tblTempUsageDetail_20' ) end [2025-01-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168720', 'tblTempVendorCDR_20' ) start [2025-01-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168720', 'tblTempVendorCDR_20' ) end [2025-01-03 22:51:19] Production.INFO: ProcessCDR(1,14168720,1,1,2) [2025-01-03 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168720', 'tblTempUsageDetail_20' ) start [2025-01-03 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168720', 'tblTempUsageDetail_20' ) end [2025-01-03 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:51:22] Production.INFO: ==11510== Releasing lock... [2025-01-03 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:51:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:52:06 [end_date_ymd] => 2025-01-03 22:52:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:52:06' and `end` < '2025-01-03 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-01-03 22:52:18] Production.INFO: count ==963 [2025-01-03 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:52:06 - End Time 2025-01-03 22:52:06 [2025-01-03 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168725', 'tblTempUsageDetail_20' ) start [2025-01-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168725', 'tblTempUsageDetail_20' ) end [2025-01-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168725', 'tblTempVendorCDR_20' ) start [2025-01-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168725', 'tblTempVendorCDR_20' ) end [2025-01-03 22:52:18] Production.INFO: ProcessCDR(1,14168725,1,1,2) [2025-01-03 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168725', 'tblTempUsageDetail_20' ) start [2025-01-03 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168725', 'tblTempUsageDetail_20' ) end [2025-01-03 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:52:22] Production.INFO: ==11594== Releasing lock... [2025-01-03 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:53:05 [end_date_ymd] => 2025-01-03 22:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:53:05' and `end` < '2025-01-03 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-01-03 22:53:17] Production.INFO: count ==960 [2025-01-03 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:53:05 - End Time 2025-01-03 22:53:05 [2025-01-03 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168730', 'tblTempUsageDetail_20' ) start [2025-01-03 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168730', 'tblTempUsageDetail_20' ) end [2025-01-03 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168730', 'tblTempVendorCDR_20' ) start [2025-01-03 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168730', 'tblTempVendorCDR_20' ) end [2025-01-03 22:53:18] Production.INFO: ProcessCDR(1,14168730,1,1,2) [2025-01-03 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168730', 'tblTempUsageDetail_20' ) start [2025-01-03 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168730', 'tblTempUsageDetail_20' ) end [2025-01-03 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:53:21] Production.INFO: ==11673== Releasing lock... [2025-01-03 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:53:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:54:05 [end_date_ymd] => 2025-01-03 22:54:05 [RateCDR] => 1 ) [2025-01-03 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 19:54:05' and `end` < '2025-01-03 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 22:54:18] Production.INFO: count ==959 [2025-01-03 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:54:05 - End Time 2025-01-03 22:54:05 [2025-01-03 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168735', 'tblTempUsageDetail_20' ) start [2025-01-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168735', 'tblTempUsageDetail_20' ) end [2025-01-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168735', 'tblTempVendorCDR_20' ) start [2025-01-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168735', 'tblTempVendorCDR_20' ) end [2025-01-03 22:54:18] Production.INFO: ProcessCDR(1,14168735,1,1,2) [2025-01-03 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168735', 'tblTempUsageDetail_20' ) start [2025-01-03 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168735', 'tblTempUsageDetail_20' ) end [2025-01-03 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:54:21] Production.INFO: ==11748== Releasing lock... [2025-01-03 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:55:05 [end_date_ymd] => 2025-01-03 22:55:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:55:05' and `end` < '2025-01-03 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-01-03 22:55:17] Production.INFO: count ==960 [2025-01-03 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:55:05 - End Time 2025-01-03 22:55:05 [2025-01-03 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168740', 'tblTempUsageDetail_20' ) start [2025-01-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168740', 'tblTempUsageDetail_20' ) end [2025-01-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168740', 'tblTempVendorCDR_20' ) start [2025-01-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168740', 'tblTempVendorCDR_20' ) end [2025-01-03 22:55:18] Production.INFO: ProcessCDR(1,14168740,1,1,2) [2025-01-03 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168740', 'tblTempUsageDetail_20' ) start [2025-01-03 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168740', 'tblTempUsageDetail_20' ) end [2025-01-03 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:55:22] Production.INFO: ==11822== Releasing lock... [2025-01-03 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:56:05 [end_date_ymd] => 2025-01-03 22:56:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:56:05' and `end` < '2025-01-03 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-01-03 22:56:18] Production.INFO: count ==964 [2025-01-03 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:56:05 - End Time 2025-01-03 22:56:05 [2025-01-03 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168745', 'tblTempUsageDetail_20' ) start [2025-01-03 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168745', 'tblTempUsageDetail_20' ) end [2025-01-03 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168745', 'tblTempVendorCDR_20' ) start [2025-01-03 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168745', 'tblTempVendorCDR_20' ) end [2025-01-03 22:56:18] Production.INFO: ProcessCDR(1,14168745,1,1,2) [2025-01-03 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168745', 'tblTempUsageDetail_20' ) start [2025-01-03 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168745', 'tblTempUsageDetail_20' ) end [2025-01-03 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:56:23] Production.INFO: ==11903== Releasing lock... [2025-01-03 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:56:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:57:05 [end_date_ymd] => 2025-01-03 22:57:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:57:05' and `end` < '2025-01-03 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-01-03 22:57:19] Production.INFO: count ==967 [2025-01-03 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-03 19:57:05 - End Time 2025-01-03 22:57:05 [2025-01-03 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168750', 'tblTempUsageDetail_20' ) start [2025-01-03 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168750', 'tblTempUsageDetail_20' ) end [2025-01-03 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168750', 'tblTempVendorCDR_20' ) start [2025-01-03 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168750', 'tblTempVendorCDR_20' ) end [2025-01-03 22:57:20] Production.INFO: ProcessCDR(1,14168750,1,1,2) [2025-01-03 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168750', 'tblTempUsageDetail_20' ) start [2025-01-03 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168750', 'tblTempUsageDetail_20' ) end [2025-01-03 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:57:23] Production.INFO: ==11980== Releasing lock... [2025-01-03 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:57:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:58:05 [end_date_ymd] => 2025-01-03 22:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:58:05' and `end` < '2025-01-03 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-01-03 22:58:18] Production.INFO: count ==966 [2025-01-03 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:58:05 - End Time 2025-01-03 22:58:05 [2025-01-03 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168755', 'tblTempUsageDetail_20' ) start [2025-01-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168755', 'tblTempUsageDetail_20' ) end [2025-01-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168755', 'tblTempVendorCDR_20' ) start [2025-01-03 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168755', 'tblTempVendorCDR_20' ) end [2025-01-03 22:58:19] Production.INFO: ProcessCDR(1,14168755,1,1,2) [2025-01-03 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168755', 'tblTempUsageDetail_20' ) start [2025-01-03 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168755', 'tblTempUsageDetail_20' ) end [2025-01-03 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:58:22] Production.INFO: ==12053== Releasing lock... [2025-01-03 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 19:59:05 [end_date_ymd] => 2025-01-03 22:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 19:59:05' and `end` < '2025-01-03 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-01-03 22:59:18] Production.INFO: count ==966 [2025-01-03 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 19:59:05 - End Time 2025-01-03 22:59:05 [2025-01-03 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168760', 'tblTempUsageDetail_20' ) start [2025-01-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168760', 'tblTempUsageDetail_20' ) end [2025-01-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168760', 'tblTempVendorCDR_20' ) start [2025-01-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168760', 'tblTempVendorCDR_20' ) end [2025-01-03 22:59:18] Production.INFO: ProcessCDR(1,14168760,1,1,2) [2025-01-03 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168760', 'tblTempUsageDetail_20' ) start [2025-01-03 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168760', 'tblTempUsageDetail_20' ) end [2025-01-03 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 22:59:21] Production.INFO: ==12129== Releasing lock... [2025-01-03 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 22:59:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:00:06 [end_date_ymd] => 2025-01-03 23:00:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:00:06' and `end` < '2025-01-03 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-01-03 23:00:21] Production.INFO: count ==967 [2025-01-03 23:00:21] Production.ERROR: pbx CDR StartTime 2025-01-03 20:00:06 - End Time 2025-01-03 23:00:06 [2025-01-03 23:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168766', 'tblTempUsageDetail_20' ) start [2025-01-03 23:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168766', 'tblTempUsageDetail_20' ) end [2025-01-03 23:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168766', 'tblTempVendorCDR_20' ) start [2025-01-03 23:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168766', 'tblTempVendorCDR_20' ) end [2025-01-03 23:00:21] Production.INFO: ProcessCDR(1,14168766,1,1,2) [2025-01-03 23:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168766', 'tblTempUsageDetail_20' ) start [2025-01-03 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168766', 'tblTempUsageDetail_20' ) end [2025-01-03 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:00:24] Production.INFO: ==12206== Releasing lock... [2025-01-03 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-03 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:01:05 [end_date_ymd] => 2025-01-03 23:01:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:01:05' and `end` < '2025-01-03 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-01-03 23:01:17] Production.INFO: count ==938 [2025-01-03 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:01:05 - End Time 2025-01-03 23:01:05 [2025-01-03 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168771', 'tblTempUsageDetail_20' ) start [2025-01-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168771', 'tblTempUsageDetail_20' ) end [2025-01-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168771', 'tblTempVendorCDR_20' ) start [2025-01-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168771', 'tblTempVendorCDR_20' ) end [2025-01-03 23:01:18] Production.INFO: ProcessCDR(1,14168771,1,1,2) [2025-01-03 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168771', 'tblTempUsageDetail_20' ) start [2025-01-03 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168771', 'tblTempUsageDetail_20' ) end [2025-01-03 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:01:21] Production.INFO: ==12292== Releasing lock... [2025-01-03 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:01:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:02:05 [end_date_ymd] => 2025-01-03 23:02:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:02:05' and `end` < '2025-01-03 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-01-03 23:02:18] Production.INFO: count ==936 [2025-01-03 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:02:05 - End Time 2025-01-03 23:02:05 [2025-01-03 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168776', 'tblTempUsageDetail_20' ) start [2025-01-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168776', 'tblTempUsageDetail_20' ) end [2025-01-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168776', 'tblTempVendorCDR_20' ) start [2025-01-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168776', 'tblTempVendorCDR_20' ) end [2025-01-03 23:02:18] Production.INFO: ProcessCDR(1,14168776,1,1,2) [2025-01-03 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168776', 'tblTempUsageDetail_20' ) start [2025-01-03 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168776', 'tblTempUsageDetail_20' ) end [2025-01-03 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:02:23] Production.INFO: ==12444== Releasing lock... [2025-01-03 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:02:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:03:04 [end_date_ymd] => 2025-01-03 23:03:04 [RateCDR] => 1 ) [2025-01-03 23: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-01-03 20:03:04' and `end` < '2025-01-03 23: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-01-03 23:03:17] Production.INFO: count ==938 [2025-01-03 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:03:04 - End Time 2025-01-03 23:03:04 [2025-01-03 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168781', 'tblTempUsageDetail_20' ) start [2025-01-03 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168781', 'tblTempUsageDetail_20' ) end [2025-01-03 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168781', 'tblTempVendorCDR_20' ) start [2025-01-03 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168781', 'tblTempVendorCDR_20' ) end [2025-01-03 23:03:17] Production.INFO: ProcessCDR(1,14168781,1,1,2) [2025-01-03 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168781', 'tblTempUsageDetail_20' ) start [2025-01-03 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168781', 'tblTempUsageDetail_20' ) end [2025-01-03 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:03:20] Production.INFO: ==12516== Releasing lock... [2025-01-03 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:03:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:04:06 [end_date_ymd] => 2025-01-03 23:04:06 [RateCDR] => 1 ) [2025-01-03 23: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-01-03 20:04:06' and `end` < '2025-01-03 23: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-01-03 23:04:18] Production.INFO: count ==939 [2025-01-03 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:04:06 - End Time 2025-01-03 23:04:06 [2025-01-03 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168786', 'tblTempUsageDetail_20' ) start [2025-01-03 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168786', 'tblTempUsageDetail_20' ) end [2025-01-03 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168786', 'tblTempVendorCDR_20' ) start [2025-01-03 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168786', 'tblTempVendorCDR_20' ) end [2025-01-03 23:04:18] Production.INFO: ProcessCDR(1,14168786,1,1,2) [2025-01-03 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168786', 'tblTempUsageDetail_20' ) start [2025-01-03 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168786', 'tblTempUsageDetail_20' ) end [2025-01-03 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:04:22] Production.INFO: ==12594== Releasing lock... [2025-01-03 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:04:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:05:04 [end_date_ymd] => 2025-01-03 23:05:04 [RateCDR] => 1 ) [2025-01-03 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:05:04' and `end` < '2025-01-03 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:05:17] Production.INFO: count ==938 [2025-01-03 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:05:04 - End Time 2025-01-03 23:05:04 [2025-01-03 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168791', 'tblTempUsageDetail_20' ) start [2025-01-03 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168791', 'tblTempUsageDetail_20' ) end [2025-01-03 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168791', 'tblTempVendorCDR_20' ) start [2025-01-03 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168791', 'tblTempVendorCDR_20' ) end [2025-01-03 23:05:17] Production.INFO: ProcessCDR(1,14168791,1,1,2) [2025-01-03 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168791', 'tblTempUsageDetail_20' ) start [2025-01-03 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168791', 'tblTempUsageDetail_20' ) end [2025-01-03 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:05:20] Production.INFO: ==12788== Releasing lock... [2025-01-03 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:05:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:06:05 [end_date_ymd] => 2025-01-03 23:06:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:06:05' and `end` < '2025-01-03 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-01-03 23:06:18] Production.INFO: count ==938 [2025-01-03 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:06:05 - End Time 2025-01-03 23:06:05 [2025-01-03 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168796', 'tblTempUsageDetail_20' ) start [2025-01-03 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168796', 'tblTempUsageDetail_20' ) end [2025-01-03 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168796', 'tblTempVendorCDR_20' ) start [2025-01-03 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168796', 'tblTempVendorCDR_20' ) end [2025-01-03 23:06:18] Production.INFO: ProcessCDR(1,14168796,1,1,2) [2025-01-03 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168796', 'tblTempUsageDetail_20' ) start [2025-01-03 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168796', 'tblTempUsageDetail_20' ) end [2025-01-03 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:06:21] Production.INFO: ==12869== Releasing lock... [2025-01-03 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:06:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:07:04 [end_date_ymd] => 2025-01-03 23:07:04 [RateCDR] => 1 ) [2025-01-03 23: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-01-03 20:07:04' and `end` < '2025-01-03 23: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-01-03 23:07:17] Production.INFO: count ==936 [2025-01-03 23:07:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:07:04 - End Time 2025-01-03 23:07:04 [2025-01-03 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168801', 'tblTempUsageDetail_20' ) start [2025-01-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168801', 'tblTempUsageDetail_20' ) end [2025-01-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168801', 'tblTempVendorCDR_20' ) start [2025-01-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168801', 'tblTempVendorCDR_20' ) end [2025-01-03 23:07:17] Production.INFO: ProcessCDR(1,14168801,1,1,2) [2025-01-03 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168801', 'tblTempUsageDetail_20' ) start [2025-01-03 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168801', 'tblTempUsageDetail_20' ) end [2025-01-03 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:07:22] Production.INFO: ==12943== Releasing lock... [2025-01-03 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:08:05 [end_date_ymd] => 2025-01-03 23:08:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:08:05' and `end` < '2025-01-03 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-01-03 23:08:18] Production.INFO: count ==935 [2025-01-03 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:08:05 - End Time 2025-01-03 23:08:05 [2025-01-03 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168806', 'tblTempUsageDetail_20' ) start [2025-01-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168806', 'tblTempUsageDetail_20' ) end [2025-01-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168806', 'tblTempVendorCDR_20' ) start [2025-01-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168806', 'tblTempVendorCDR_20' ) end [2025-01-03 23:08:18] Production.INFO: ProcessCDR(1,14168806,1,1,2) [2025-01-03 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168806', 'tblTempUsageDetail_20' ) start [2025-01-03 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168806', 'tblTempUsageDetail_20' ) end [2025-01-03 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:08:21] Production.INFO: ==13021== Releasing lock... [2025-01-03 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:08:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:09:06 [end_date_ymd] => 2025-01-03 23:09:06 [RateCDR] => 1 ) [2025-01-03 23: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-01-03 20:09:06' and `end` < '2025-01-03 23: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-01-03 23:09:20] Production.INFO: count ==937 [2025-01-03 23:09:20] Production.ERROR: pbx CDR StartTime 2025-01-03 20:09:06 - End Time 2025-01-03 23:09:06 [2025-01-03 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168811', 'tblTempUsageDetail_20' ) start [2025-01-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168811', 'tblTempUsageDetail_20' ) end [2025-01-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168811', 'tblTempVendorCDR_20' ) start [2025-01-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168811', 'tblTempVendorCDR_20' ) end [2025-01-03 23:09:20] Production.INFO: ProcessCDR(1,14168811,1,1,2) [2025-01-03 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168811', 'tblTempUsageDetail_20' ) start [2025-01-03 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168811', 'tblTempUsageDetail_20' ) end [2025-01-03 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:09:23] Production.INFO: ==13164== Releasing lock... [2025-01-03 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:09:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:10:06 [end_date_ymd] => 2025-01-03 23:10:06 [RateCDR] => 1 ) [2025-01-03 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:10:06' and `end` < '2025-01-03 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:10:18] Production.INFO: count ==936 [2025-01-03 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:10:06 - End Time 2025-01-03 23:10:06 [2025-01-03 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168815', 'tblTempUsageDetail_20' ) start [2025-01-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168815', 'tblTempUsageDetail_20' ) end [2025-01-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168815', 'tblTempVendorCDR_20' ) start [2025-01-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168815', 'tblTempVendorCDR_20' ) end [2025-01-03 23:10:19] Production.INFO: ProcessCDR(1,14168815,1,1,2) [2025-01-03 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168815', 'tblTempUsageDetail_20' ) start [2025-01-03 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168815', 'tblTempUsageDetail_20' ) end [2025-01-03 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:10:23] Production.INFO: ==13238== Releasing lock... [2025-01-03 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:10:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:11:05 [end_date_ymd] => 2025-01-03 23:11:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:11:05' and `end` < '2025-01-03 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-01-03 23:11:17] Production.INFO: count ==941 [2025-01-03 23:11:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:11:05 - End Time 2025-01-03 23:11:05 [2025-01-03 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168822', 'tblTempUsageDetail_20' ) start [2025-01-03 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168822', 'tblTempUsageDetail_20' ) end [2025-01-03 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168822', 'tblTempVendorCDR_20' ) start [2025-01-03 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168822', 'tblTempVendorCDR_20' ) end [2025-01-03 23:11:17] Production.INFO: ProcessCDR(1,14168822,1,1,2) [2025-01-03 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168822', 'tblTempUsageDetail_20' ) start [2025-01-03 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168822', 'tblTempUsageDetail_20' ) end [2025-01-03 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:11:21] Production.INFO: ==13310== Releasing lock... [2025-01-03 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:12:05 [end_date_ymd] => 2025-01-03 23:12:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:12:05' and `end` < '2025-01-03 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-01-03 23:12:19] Production.INFO: count ==939 [2025-01-03 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:12:05 - End Time 2025-01-03 23:12:05 [2025-01-03 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168827', 'tblTempUsageDetail_20' ) start [2025-01-03 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168827', 'tblTempUsageDetail_20' ) end [2025-01-03 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168827', 'tblTempVendorCDR_20' ) start [2025-01-03 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168827', 'tblTempVendorCDR_20' ) end [2025-01-03 23:12:19] Production.INFO: ProcessCDR(1,14168827,1,1,2) [2025-01-03 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168827', 'tblTempUsageDetail_20' ) start [2025-01-03 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168827', 'tblTempUsageDetail_20' ) end [2025-01-03 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:12:22] Production.INFO: ==13461== Releasing lock... [2025-01-03 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:13:05 [end_date_ymd] => 2025-01-03 23:13:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:13:05' and `end` < '2025-01-03 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-01-03 23:13:18] Production.INFO: count ==938 [2025-01-03 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:13:05 - End Time 2025-01-03 23:13:05 [2025-01-03 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168832', 'tblTempUsageDetail_20' ) start [2025-01-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168832', 'tblTempUsageDetail_20' ) end [2025-01-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168832', 'tblTempVendorCDR_20' ) start [2025-01-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168832', 'tblTempVendorCDR_20' ) end [2025-01-03 23:13:18] Production.INFO: ProcessCDR(1,14168832,1,1,2) [2025-01-03 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168832', 'tblTempUsageDetail_20' ) start [2025-01-03 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168832', 'tblTempUsageDetail_20' ) end [2025-01-03 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:13:21] Production.INFO: ==13531== Releasing lock... [2025-01-03 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:14:05 [end_date_ymd] => 2025-01-03 23:14:05 [RateCDR] => 1 ) [2025-01-03 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:14:05' and `end` < '2025-01-03 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:14:18] Production.INFO: count ==938 [2025-01-03 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:14:05 - End Time 2025-01-03 23:14:05 [2025-01-03 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168837', 'tblTempUsageDetail_20' ) start [2025-01-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168837', 'tblTempUsageDetail_20' ) end [2025-01-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168837', 'tblTempVendorCDR_20' ) start [2025-01-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168837', 'tblTempVendorCDR_20' ) end [2025-01-03 23:14:18] Production.INFO: ProcessCDR(1,14168837,1,1,2) [2025-01-03 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168837', 'tblTempUsageDetail_20' ) start [2025-01-03 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168837', 'tblTempUsageDetail_20' ) end [2025-01-03 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:14:21] Production.INFO: ==13603== Releasing lock... [2025-01-03 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:14:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:15:05 [end_date_ymd] => 2025-01-03 23:15:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:15:05' and `end` < '2025-01-03 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-01-03 23:15:18] Production.INFO: count ==938 [2025-01-03 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:15:05 - End Time 2025-01-03 23:15:05 [2025-01-03 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168842', 'tblTempUsageDetail_20' ) start [2025-01-03 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168842', 'tblTempUsageDetail_20' ) end [2025-01-03 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168842', 'tblTempVendorCDR_20' ) start [2025-01-03 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168842', 'tblTempVendorCDR_20' ) end [2025-01-03 23:15:18] Production.INFO: ProcessCDR(1,14168842,1,1,2) [2025-01-03 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168842', 'tblTempUsageDetail_20' ) start [2025-01-03 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168842', 'tblTempUsageDetail_20' ) end [2025-01-03 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:15:21] Production.INFO: ==13712== Releasing lock... [2025-01-03 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:16:05 [end_date_ymd] => 2025-01-03 23:16:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:16:05' and `end` < '2025-01-03 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-01-03 23:16:19] Production.INFO: count ==936 [2025-01-03 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:16:05 - End Time 2025-01-03 23:16:05 [2025-01-03 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168847', 'tblTempUsageDetail_20' ) start [2025-01-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168847', 'tblTempUsageDetail_20' ) end [2025-01-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168847', 'tblTempVendorCDR_20' ) start [2025-01-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168847', 'tblTempVendorCDR_20' ) end [2025-01-03 23:16:19] Production.INFO: ProcessCDR(1,14168847,1,1,2) [2025-01-03 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168847', 'tblTempUsageDetail_20' ) start [2025-01-03 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168847', 'tblTempUsageDetail_20' ) end [2025-01-03 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:16:22] Production.INFO: ==13822== Releasing lock... [2025-01-03 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:16:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:17:05 [end_date_ymd] => 2025-01-03 23:17:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:17:05' and `end` < '2025-01-03 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-01-03 23:17:19] Production.INFO: count ==936 [2025-01-03 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:17:05 - End Time 2025-01-03 23:17:05 [2025-01-03 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168852', 'tblTempUsageDetail_20' ) start [2025-01-03 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168852', 'tblTempUsageDetail_20' ) end [2025-01-03 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168852', 'tblTempVendorCDR_20' ) start [2025-01-03 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168852', 'tblTempVendorCDR_20' ) end [2025-01-03 23:17:19] Production.INFO: ProcessCDR(1,14168852,1,1,2) [2025-01-03 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168852', 'tblTempUsageDetail_20' ) start [2025-01-03 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168852', 'tblTempUsageDetail_20' ) end [2025-01-03 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:17:22] Production.INFO: ==13895== Releasing lock... [2025-01-03 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:17:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:18:05 [end_date_ymd] => 2025-01-03 23:18:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:18:05' and `end` < '2025-01-03 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-01-03 23:18:18] Production.INFO: count ==935 [2025-01-03 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:18:05 - End Time 2025-01-03 23:18:05 [2025-01-03 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168857', 'tblTempUsageDetail_20' ) start [2025-01-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168857', 'tblTempUsageDetail_20' ) end [2025-01-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168857', 'tblTempVendorCDR_20' ) start [2025-01-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168857', 'tblTempVendorCDR_20' ) end [2025-01-03 23:18:18] Production.INFO: ProcessCDR(1,14168857,1,1,2) [2025-01-03 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168857', 'tblTempUsageDetail_20' ) start [2025-01-03 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168857', 'tblTempUsageDetail_20' ) end [2025-01-03 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:18:23] Production.INFO: ==13991== Releasing lock... [2025-01-03 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:18:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:19:05 [end_date_ymd] => 2025-01-03 23:19:05 [RateCDR] => 1 ) [2025-01-03 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:19:05' and `end` < '2025-01-03 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:19:18] Production.INFO: count ==936 [2025-01-03 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:19:05 - End Time 2025-01-03 23:19:05 [2025-01-03 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168862', 'tblTempUsageDetail_20' ) start [2025-01-03 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168862', 'tblTempUsageDetail_20' ) end [2025-01-03 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168862', 'tblTempVendorCDR_20' ) start [2025-01-03 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168862', 'tblTempVendorCDR_20' ) end [2025-01-03 23:19:18] Production.INFO: ProcessCDR(1,14168862,1,1,2) [2025-01-03 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168862', 'tblTempUsageDetail_20' ) start [2025-01-03 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168862', 'tblTempUsageDetail_20' ) end [2025-01-03 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:19:23] Production.INFO: ==14075== Releasing lock... [2025-01-03 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:19:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:20:05 [end_date_ymd] => 2025-01-03 23:20:05 [RateCDR] => 1 ) [2025-01-03 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:20:05' and `end` < '2025-01-03 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:20:18] Production.INFO: count ==936 [2025-01-03 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:20:05 - End Time 2025-01-03 23:20:05 [2025-01-03 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168867', 'tblTempUsageDetail_20' ) start [2025-01-03 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168867', 'tblTempUsageDetail_20' ) end [2025-01-03 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168867', 'tblTempVendorCDR_20' ) start [2025-01-03 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168867', 'tblTempVendorCDR_20' ) end [2025-01-03 23:20:18] Production.INFO: ProcessCDR(1,14168867,1,1,2) [2025-01-03 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168867', 'tblTempUsageDetail_20' ) start [2025-01-03 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168867', 'tblTempUsageDetail_20' ) end [2025-01-03 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:20:23] Production.INFO: ==14193== Releasing lock... [2025-01-03 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-03 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:21:05 [end_date_ymd] => 2025-01-03 23:21:05 [RateCDR] => 1 ) [2025-01-03 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:21:05' and `end` < '2025-01-03 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:21:18] Production.INFO: count ==914 [2025-01-03 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:21:05 - End Time 2025-01-03 23:21:05 [2025-01-03 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168873', 'tblTempUsageDetail_20' ) start [2025-01-03 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168873', 'tblTempUsageDetail_20' ) end [2025-01-03 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168873', 'tblTempVendorCDR_20' ) start [2025-01-03 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168873', 'tblTempVendorCDR_20' ) end [2025-01-03 23:21:18] Production.INFO: ProcessCDR(1,14168873,1,1,2) [2025-01-03 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168873', 'tblTempUsageDetail_20' ) start [2025-01-03 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168873', 'tblTempUsageDetail_20' ) end [2025-01-03 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:21:21] Production.INFO: ==14337== Releasing lock... [2025-01-03 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:21:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:22:04 [end_date_ymd] => 2025-01-03 23:22:04 [RateCDR] => 1 ) [2025-01-03 23:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:22:04' and `end` < '2025-01-03 23:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:22:17] Production.INFO: count ==914 [2025-01-03 23:22:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:22:04 - End Time 2025-01-03 23:22:04 [2025-01-03 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168878', 'tblTempUsageDetail_20' ) start [2025-01-03 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168878', 'tblTempUsageDetail_20' ) end [2025-01-03 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168878', 'tblTempVendorCDR_20' ) start [2025-01-03 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168878', 'tblTempVendorCDR_20' ) end [2025-01-03 23:22:17] Production.INFO: ProcessCDR(1,14168878,1,1,2) [2025-01-03 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168878', 'tblTempUsageDetail_20' ) start [2025-01-03 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168878', 'tblTempUsageDetail_20' ) end [2025-01-03 23:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:22:20] Production.INFO: ==14408== Releasing lock... [2025-01-03 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:22:20] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:23:05 [end_date_ymd] => 2025-01-03 23:23:05 [RateCDR] => 1 ) [2025-01-03 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:23:05' and `end` < '2025-01-03 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:23:18] Production.INFO: count ==911 [2025-01-03 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:23:05 - End Time 2025-01-03 23:23:05 [2025-01-03 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168883', 'tblTempUsageDetail_20' ) start [2025-01-03 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168883', 'tblTempUsageDetail_20' ) end [2025-01-03 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168883', 'tblTempVendorCDR_20' ) start [2025-01-03 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168883', 'tblTempVendorCDR_20' ) end [2025-01-03 23:23:18] Production.INFO: ProcessCDR(1,14168883,1,1,2) [2025-01-03 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168883', 'tblTempUsageDetail_20' ) start [2025-01-03 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168883', 'tblTempUsageDetail_20' ) end [2025-01-03 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:23:21] Production.INFO: ==14481== Releasing lock... [2025-01-03 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:23:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:24:04 [end_date_ymd] => 2025-01-03 23:24:04 [RateCDR] => 1 ) [2025-01-03 23:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:24:04' and `end` < '2025-01-03 23:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:24:18] Production.INFO: count ==911 [2025-01-03 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:24:04 - End Time 2025-01-03 23:24:04 [2025-01-03 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168888', 'tblTempUsageDetail_20' ) start [2025-01-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168888', 'tblTempUsageDetail_20' ) end [2025-01-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168888', 'tblTempVendorCDR_20' ) start [2025-01-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168888', 'tblTempVendorCDR_20' ) end [2025-01-03 23:24:18] Production.INFO: ProcessCDR(1,14168888,1,1,2) [2025-01-03 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168888', 'tblTempUsageDetail_20' ) start [2025-01-03 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168888', 'tblTempUsageDetail_20' ) end [2025-01-03 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:24:21] Production.INFO: ==14560== Releasing lock... [2025-01-03 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:24:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:25:05 [end_date_ymd] => 2025-01-03 23:25:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:25:05' and `end` < '2025-01-03 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-01-03 23:25:18] Production.INFO: count ==913 [2025-01-03 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:25:05 - End Time 2025-01-03 23:25:05 [2025-01-03 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168893', 'tblTempUsageDetail_20' ) start [2025-01-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168893', 'tblTempUsageDetail_20' ) end [2025-01-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168893', 'tblTempVendorCDR_20' ) start [2025-01-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168893', 'tblTempVendorCDR_20' ) end [2025-01-03 23:25:18] Production.INFO: ProcessCDR(1,14168893,1,1,2) [2025-01-03 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168893', 'tblTempUsageDetail_20' ) start [2025-01-03 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168893', 'tblTempUsageDetail_20' ) end [2025-01-03 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:25:21] Production.INFO: ==14637== Releasing lock... [2025-01-03 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:25:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:26:05 [end_date_ymd] => 2025-01-03 23:26:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:26:05' and `end` < '2025-01-03 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-01-03 23:26:18] Production.INFO: count ==914 [2025-01-03 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:26:05 - End Time 2025-01-03 23:26:05 [2025-01-03 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168898', 'tblTempUsageDetail_20' ) start [2025-01-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168898', 'tblTempUsageDetail_20' ) end [2025-01-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168898', 'tblTempVendorCDR_20' ) start [2025-01-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168898', 'tblTempVendorCDR_20' ) end [2025-01-03 23:26:18] Production.INFO: ProcessCDR(1,14168898,1,1,2) [2025-01-03 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168898', 'tblTempUsageDetail_20' ) start [2025-01-03 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168898', 'tblTempUsageDetail_20' ) end [2025-01-03 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:26:22] Production.INFO: ==14707== Releasing lock... [2025-01-03 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:26:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:27:05 [end_date_ymd] => 2025-01-03 23:27:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:27:05' and `end` < '2025-01-03 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-01-03 23:27:18] Production.INFO: count ==913 [2025-01-03 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:27:05 - End Time 2025-01-03 23:27:05 [2025-01-03 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168903', 'tblTempUsageDetail_20' ) start [2025-01-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168903', 'tblTempUsageDetail_20' ) end [2025-01-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168903', 'tblTempVendorCDR_20' ) start [2025-01-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168903', 'tblTempVendorCDR_20' ) end [2025-01-03 23:27:18] Production.INFO: ProcessCDR(1,14168903,1,1,2) [2025-01-03 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168903', 'tblTempUsageDetail_20' ) start [2025-01-03 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168903', 'tblTempUsageDetail_20' ) end [2025-01-03 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:27:23] Production.INFO: ==14779== Releasing lock... [2025-01-03 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:27:23] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:28:06 [end_date_ymd] => 2025-01-03 23:28:06 [RateCDR] => 1 ) [2025-01-03 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:28:06' and `end` < '2025-01-03 23:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:28:19] Production.INFO: count ==909 [2025-01-03 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:28:06 - End Time 2025-01-03 23:28:06 [2025-01-03 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168908', 'tblTempUsageDetail_20' ) start [2025-01-03 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168908', 'tblTempUsageDetail_20' ) end [2025-01-03 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168908', 'tblTempVendorCDR_20' ) start [2025-01-03 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168908', 'tblTempVendorCDR_20' ) end [2025-01-03 23:28:19] Production.INFO: ProcessCDR(1,14168908,1,1,2) [2025-01-03 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168908', 'tblTempUsageDetail_20' ) start [2025-01-03 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168908', 'tblTempUsageDetail_20' ) end [2025-01-03 23:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:28:24] Production.INFO: ==14852== Releasing lock... [2025-01-03 23:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:28:24] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:29:05 [end_date_ymd] => 2025-01-03 23:29:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:29:05' and `end` < '2025-01-03 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-01-03 23:29:19] Production.INFO: count ==909 [2025-01-03 23:29:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:29:05 - End Time 2025-01-03 23:29:05 [2025-01-03 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168913', 'tblTempUsageDetail_20' ) start [2025-01-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168913', 'tblTempUsageDetail_20' ) end [2025-01-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168913', 'tblTempVendorCDR_20' ) start [2025-01-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168913', 'tblTempVendorCDR_20' ) end [2025-01-03 23:29:19] Production.INFO: ProcessCDR(1,14168913,1,1,2) [2025-01-03 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168913', 'tblTempUsageDetail_20' ) start [2025-01-03 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168913', 'tblTempUsageDetail_20' ) end [2025-01-03 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:29:22] Production.INFO: ==14926== Releasing lock... [2025-01-03 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:29:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:30:05 [end_date_ymd] => 2025-01-03 23:30:05 [RateCDR] => 1 ) [2025-01-03 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:30:05' and `end` < '2025-01-03 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:30:18] Production.INFO: count ==910 [2025-01-03 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:30:05 - End Time 2025-01-03 23:30:05 [2025-01-03 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168918', 'tblTempUsageDetail_20' ) start [2025-01-03 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168918', 'tblTempUsageDetail_20' ) end [2025-01-03 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168918', 'tblTempVendorCDR_20' ) start [2025-01-03 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168918', 'tblTempVendorCDR_20' ) end [2025-01-03 23:30:18] Production.INFO: ProcessCDR(1,14168918,1,1,2) [2025-01-03 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168918', 'tblTempUsageDetail_20' ) start [2025-01-03 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168918', 'tblTempUsageDetail_20' ) end [2025-01-03 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:30:23] Production.INFO: ==14999== Releasing lock... [2025-01-03 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:30:23] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:31:05 [end_date_ymd] => 2025-01-03 23:31:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:31:05' and `end` < '2025-01-03 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-01-03 23:31:18] Production.INFO: count ==892 [2025-01-03 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:31:05 - End Time 2025-01-03 23:31:05 [2025-01-03 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168924', 'tblTempUsageDetail_20' ) start [2025-01-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168924', 'tblTempUsageDetail_20' ) end [2025-01-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168924', 'tblTempVendorCDR_20' ) start [2025-01-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168924', 'tblTempVendorCDR_20' ) end [2025-01-03 23:31:18] Production.INFO: ProcessCDR(1,14168924,1,1,2) [2025-01-03 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168924', 'tblTempUsageDetail_20' ) start [2025-01-03 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168924', 'tblTempUsageDetail_20' ) end [2025-01-03 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:31:22] Production.INFO: ==15073== Releasing lock... [2025-01-03 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:31:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:32:06 [end_date_ymd] => 2025-01-03 23:32:06 [RateCDR] => 1 ) [2025-01-03 23:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:32:06' and `end` < '2025-01-03 23:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:32:19] Production.INFO: count ==892 [2025-01-03 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:32:06 - End Time 2025-01-03 23:32:06 [2025-01-03 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168929', 'tblTempUsageDetail_20' ) start [2025-01-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168929', 'tblTempUsageDetail_20' ) end [2025-01-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168929', 'tblTempVendorCDR_20' ) start [2025-01-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168929', 'tblTempVendorCDR_20' ) end [2025-01-03 23:32:19] Production.INFO: ProcessCDR(1,14168929,1,1,2) [2025-01-03 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168929', 'tblTempUsageDetail_20' ) start [2025-01-03 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168929', 'tblTempUsageDetail_20' ) end [2025-01-03 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:32:23] Production.INFO: ==15143== Releasing lock... [2025-01-03 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:32:23] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:33:05 [end_date_ymd] => 2025-01-03 23:33:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:33:05' and `end` < '2025-01-03 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-01-03 23:33:19] Production.INFO: count ==891 [2025-01-03 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:33:05 - End Time 2025-01-03 23:33:05 [2025-01-03 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168934', 'tblTempUsageDetail_20' ) start [2025-01-03 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168934', 'tblTempUsageDetail_20' ) end [2025-01-03 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168934', 'tblTempVendorCDR_20' ) start [2025-01-03 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168934', 'tblTempVendorCDR_20' ) end [2025-01-03 23:33:19] Production.INFO: ProcessCDR(1,14168934,1,1,2) [2025-01-03 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168934', 'tblTempUsageDetail_20' ) start [2025-01-03 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168934', 'tblTempUsageDetail_20' ) end [2025-01-03 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:33:22] Production.INFO: ==15212== Releasing lock... [2025-01-03 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:33:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:34:04 [end_date_ymd] => 2025-01-03 23:34:04 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:34:04' and `end` < '2025-01-03 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-01-03 23:34:17] Production.INFO: count ==891 [2025-01-03 23:34:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:34:04 - End Time 2025-01-03 23:34:04 [2025-01-03 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168939', 'tblTempUsageDetail_20' ) start [2025-01-03 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168939', 'tblTempUsageDetail_20' ) end [2025-01-03 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168939', 'tblTempVendorCDR_20' ) start [2025-01-03 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168939', 'tblTempVendorCDR_20' ) end [2025-01-03 23:34:17] Production.INFO: ProcessCDR(1,14168939,1,1,2) [2025-01-03 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168939', 'tblTempUsageDetail_20' ) start [2025-01-03 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168939', 'tblTempUsageDetail_20' ) end [2025-01-03 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:34:22] Production.INFO: ==15287== Releasing lock... [2025-01-03 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:34:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:35:05 [end_date_ymd] => 2025-01-03 23:35:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:35:05' and `end` < '2025-01-03 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-01-03 23:35:17] Production.INFO: count ==891 [2025-01-03 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:35:05 - End Time 2025-01-03 23:35:05 [2025-01-03 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168944', 'tblTempUsageDetail_20' ) start [2025-01-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168944', 'tblTempUsageDetail_20' ) end [2025-01-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168944', 'tblTempVendorCDR_20' ) start [2025-01-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168944', 'tblTempVendorCDR_20' ) end [2025-01-03 23:35:18] Production.INFO: ProcessCDR(1,14168944,1,1,2) [2025-01-03 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168944', 'tblTempUsageDetail_20' ) start [2025-01-03 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168944', 'tblTempUsageDetail_20' ) end [2025-01-03 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:35:21] Production.INFO: ==15363== Releasing lock... [2025-01-03 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:35:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:36:05 [end_date_ymd] => 2025-01-03 23:36:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:36:05' and `end` < '2025-01-03 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-01-03 23:36:18] Production.INFO: count ==892 [2025-01-03 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:36:05 - End Time 2025-01-03 23:36:05 [2025-01-03 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168949', 'tblTempUsageDetail_20' ) start [2025-01-03 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168949', 'tblTempUsageDetail_20' ) end [2025-01-03 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168949', 'tblTempVendorCDR_20' ) start [2025-01-03 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168949', 'tblTempVendorCDR_20' ) end [2025-01-03 23:36:18] Production.INFO: ProcessCDR(1,14168949,1,1,2) [2025-01-03 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168949', 'tblTempUsageDetail_20' ) start [2025-01-03 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168949', 'tblTempUsageDetail_20' ) end [2025-01-03 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:36:22] Production.INFO: ==15436== Releasing lock... [2025-01-03 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:36:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:37:05 [end_date_ymd] => 2025-01-03 23:37:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:37:05' and `end` < '2025-01-03 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-01-03 23:37:19] Production.INFO: count ==888 [2025-01-03 23:37:20] Production.ERROR: pbx CDR StartTime 2025-01-03 20:37:05 - End Time 2025-01-03 23:37:05 [2025-01-03 23:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168954', 'tblTempUsageDetail_20' ) start [2025-01-03 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168954', 'tblTempUsageDetail_20' ) end [2025-01-03 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168954', 'tblTempVendorCDR_20' ) start [2025-01-03 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168954', 'tblTempVendorCDR_20' ) end [2025-01-03 23:37:20] Production.INFO: ProcessCDR(1,14168954,1,1,2) [2025-01-03 23:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168954', 'tblTempUsageDetail_20' ) start [2025-01-03 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168954', 'tblTempUsageDetail_20' ) end [2025-01-03 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:37:23] Production.INFO: ==15545== Releasing lock... [2025-01-03 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:37:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:38:04 [end_date_ymd] => 2025-01-03 23:38:04 [RateCDR] => 1 ) [2025-01-03 23:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:38:04' and `end` < '2025-01-03 23:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:38:19] Production.INFO: count ==887 [2025-01-03 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:38:04 - End Time 2025-01-03 23:38:04 [2025-01-03 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168959', 'tblTempUsageDetail_20' ) start [2025-01-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168959', 'tblTempUsageDetail_20' ) end [2025-01-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168959', 'tblTempVendorCDR_20' ) start [2025-01-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168959', 'tblTempVendorCDR_20' ) end [2025-01-03 23:38:19] Production.INFO: ProcessCDR(1,14168959,1,1,2) [2025-01-03 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168959', 'tblTempUsageDetail_20' ) start [2025-01-03 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168959', 'tblTempUsageDetail_20' ) end [2025-01-03 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:38:22] Production.INFO: ==15618== Releasing lock... [2025-01-03 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:38:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:39:05 [end_date_ymd] => 2025-01-03 23:39:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:39:05' and `end` < '2025-01-03 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-01-03 23:39:18] Production.INFO: count ==887 [2025-01-03 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:39:05 - End Time 2025-01-03 23:39:05 [2025-01-03 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168964', 'tblTempUsageDetail_20' ) start [2025-01-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168964', 'tblTempUsageDetail_20' ) end [2025-01-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168964', 'tblTempVendorCDR_20' ) start [2025-01-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168964', 'tblTempVendorCDR_20' ) end [2025-01-03 23:39:18] Production.INFO: ProcessCDR(1,14168964,1,1,2) [2025-01-03 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168964', 'tblTempUsageDetail_20' ) start [2025-01-03 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168964', 'tblTempUsageDetail_20' ) end [2025-01-03 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:39:22] Production.INFO: ==15687== Releasing lock... [2025-01-03 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:39:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:40:06 [end_date_ymd] => 2025-01-03 23:40:06 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:40:06' and `end` < '2025-01-03 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-01-03 23:40:19] Production.INFO: count ==887 [2025-01-03 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:40:06 - End Time 2025-01-03 23:40:06 [2025-01-03 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168970', 'tblTempUsageDetail_20' ) start [2025-01-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168970', 'tblTempUsageDetail_20' ) end [2025-01-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168970', 'tblTempVendorCDR_20' ) start [2025-01-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168970', 'tblTempVendorCDR_20' ) end [2025-01-03 23:40:19] Production.INFO: ProcessCDR(1,14168970,1,1,2) [2025-01-03 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168970', 'tblTempUsageDetail_20' ) start [2025-01-03 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168970', 'tblTempUsageDetail_20' ) end [2025-01-03 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:40:22] Production.INFO: ==15765== Releasing lock... [2025-01-03 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:40:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:41:05 [end_date_ymd] => 2025-01-03 23:41:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:41:05' and `end` < '2025-01-03 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-01-03 23:41:17] Production.INFO: count ==889 [2025-01-03 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:41:05 - End Time 2025-01-03 23:41:05 [2025-01-03 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168975', 'tblTempUsageDetail_20' ) start [2025-01-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168975', 'tblTempUsageDetail_20' ) end [2025-01-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168975', 'tblTempVendorCDR_20' ) start [2025-01-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168975', 'tblTempVendorCDR_20' ) end [2025-01-03 23:41:18] Production.INFO: ProcessCDR(1,14168975,1,1,2) [2025-01-03 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168975', 'tblTempUsageDetail_20' ) start [2025-01-03 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168975', 'tblTempUsageDetail_20' ) end [2025-01-03 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:41:22] Production.INFO: ==15837== Releasing lock... [2025-01-03 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:41:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:42:05 [end_date_ymd] => 2025-01-03 23:42:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:42:05' and `end` < '2025-01-03 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-01-03 23:42:19] Production.INFO: count ==891 [2025-01-03 23:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:42:05 - End Time 2025-01-03 23:42:05 [2025-01-03 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168980', 'tblTempUsageDetail_20' ) start [2025-01-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168980', 'tblTempUsageDetail_20' ) end [2025-01-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168980', 'tblTempVendorCDR_20' ) start [2025-01-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168980', 'tblTempVendorCDR_20' ) end [2025-01-03 23:42:19] Production.INFO: ProcessCDR(1,14168980,1,1,2) [2025-01-03 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168980', 'tblTempUsageDetail_20' ) start [2025-01-03 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168980', 'tblTempUsageDetail_20' ) end [2025-01-03 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:42:22] Production.INFO: ==15909== Releasing lock... [2025-01-03 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:42:22] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:43:05 [end_date_ymd] => 2025-01-03 23:43:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:43:05' and `end` < '2025-01-03 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-01-03 23:43:18] Production.INFO: count ==894 [2025-01-03 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:43:05 - End Time 2025-01-03 23:43:05 [2025-01-03 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168985', 'tblTempUsageDetail_20' ) start [2025-01-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168985', 'tblTempUsageDetail_20' ) end [2025-01-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168985', 'tblTempVendorCDR_20' ) start [2025-01-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168985', 'tblTempVendorCDR_20' ) end [2025-01-03 23:43:18] Production.INFO: ProcessCDR(1,14168985,1,1,2) [2025-01-03 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168985', 'tblTempUsageDetail_20' ) start [2025-01-03 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168985', 'tblTempUsageDetail_20' ) end [2025-01-03 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:43:21] Production.INFO: ==15978== Releasing lock... [2025-01-03 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:43:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:44:05 [end_date_ymd] => 2025-01-03 23:44:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:44:05' and `end` < '2025-01-03 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-01-03 23:44:18] Production.INFO: count ==890 [2025-01-03 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:44:05 - End Time 2025-01-03 23:44:05 [2025-01-03 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168990', 'tblTempUsageDetail_20' ) start [2025-01-03 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168990', 'tblTempUsageDetail_20' ) end [2025-01-03 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168990', 'tblTempVendorCDR_20' ) start [2025-01-03 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168990', 'tblTempVendorCDR_20' ) end [2025-01-03 23:44:18] Production.INFO: ProcessCDR(1,14168990,1,1,2) [2025-01-03 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168990', 'tblTempUsageDetail_20' ) start [2025-01-03 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168990', 'tblTempUsageDetail_20' ) end [2025-01-03 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:44:21] Production.INFO: ==16050== Releasing lock... [2025-01-03 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-03 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:45:04 [end_date_ymd] => 2025-01-03 23:45:04 [RateCDR] => 1 ) [2025-01-03 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:45:04' and `end` < '2025-01-03 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:45:17] Production.INFO: count ==882 [2025-01-03 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:45:04 - End Time 2025-01-03 23:45:04 [2025-01-03 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168995', 'tblTempUsageDetail_20' ) start [2025-01-03 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14168995', 'tblTempUsageDetail_20' ) end [2025-01-03 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168995', 'tblTempVendorCDR_20' ) start [2025-01-03 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14168995', 'tblTempVendorCDR_20' ) end [2025-01-03 23:45:18] Production.INFO: ProcessCDR(1,14168995,1,1,2) [2025-01-03 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14168995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14168995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14168995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14168995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168995', 'tblTempUsageDetail_20' ) start [2025-01-03 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14168995', 'tblTempUsageDetail_20' ) end [2025-01-03 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:45:21] Production.INFO: ==16121== Releasing lock... [2025-01-03 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:46:05 [end_date_ymd] => 2025-01-03 23:46:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:46:05' and `end` < '2025-01-03 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-01-03 23:46:17] Production.INFO: count ==878 [2025-01-03 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:46:05 - End Time 2025-01-03 23:46:05 [2025-01-03 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169000', 'tblTempUsageDetail_20' ) start [2025-01-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169000', 'tblTempUsageDetail_20' ) end [2025-01-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169000', 'tblTempVendorCDR_20' ) start [2025-01-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169000', 'tblTempVendorCDR_20' ) end [2025-01-03 23:46:18] Production.INFO: ProcessCDR(1,14169000,1,1,2) [2025-01-03 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169000', 'tblTempUsageDetail_20' ) start [2025-01-03 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169000', 'tblTempUsageDetail_20' ) end [2025-01-03 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:46:21] Production.INFO: ==16192== Releasing lock... [2025-01-03 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:47:04 [end_date_ymd] => 2025-01-03 23:47:04 [RateCDR] => 1 ) [2025-01-03 23: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-01-03 20:47:04' and `end` < '2025-01-03 23: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-01-03 23:47:17] Production.INFO: count ==868 [2025-01-03 23:47:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:47:04 - End Time 2025-01-03 23:47:04 [2025-01-03 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169005', 'tblTempUsageDetail_20' ) start [2025-01-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169005', 'tblTempUsageDetail_20' ) end [2025-01-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169005', 'tblTempVendorCDR_20' ) start [2025-01-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169005', 'tblTempVendorCDR_20' ) end [2025-01-03 23:47:17] Production.INFO: ProcessCDR(1,14169005,1,1,2) [2025-01-03 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169005', 'tblTempUsageDetail_20' ) start [2025-01-03 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169005', 'tblTempUsageDetail_20' ) end [2025-01-03 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:47:20] Production.INFO: ==16261== Releasing lock... [2025-01-03 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:47:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:48:05 [end_date_ymd] => 2025-01-03 23:48:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:48:05' and `end` < '2025-01-03 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-01-03 23:48:19] Production.INFO: count ==872 [2025-01-03 23:48:20] Production.ERROR: pbx CDR StartTime 2025-01-03 20:48:05 - End Time 2025-01-03 23:48:05 [2025-01-03 23:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169010', 'tblTempUsageDetail_20' ) start [2025-01-03 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169010', 'tblTempUsageDetail_20' ) end [2025-01-03 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169010', 'tblTempVendorCDR_20' ) start [2025-01-03 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169010', 'tblTempVendorCDR_20' ) end [2025-01-03 23:48:20] Production.INFO: ProcessCDR(1,14169010,1,1,2) [2025-01-03 23:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169010', 'tblTempUsageDetail_20' ) start [2025-01-03 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169010', 'tblTempUsageDetail_20' ) end [2025-01-03 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:48:23] Production.INFO: ==16332== Releasing lock... [2025-01-03 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:48:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:49:05 [end_date_ymd] => 2025-01-03 23:49:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:49:05' and `end` < '2025-01-03 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-01-03 23:49:19] Production.INFO: count ==870 [2025-01-03 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:49:05 - End Time 2025-01-03 23:49:05 [2025-01-03 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169015', 'tblTempUsageDetail_20' ) start [2025-01-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169015', 'tblTempUsageDetail_20' ) end [2025-01-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169015', 'tblTempVendorCDR_20' ) start [2025-01-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169015', 'tblTempVendorCDR_20' ) end [2025-01-03 23:49:19] Production.INFO: ProcessCDR(1,14169015,1,1,2) [2025-01-03 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169015', 'tblTempUsageDetail_20' ) start [2025-01-03 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169015', 'tblTempUsageDetail_20' ) end [2025-01-03 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:49:22] Production.INFO: ==16408== Releasing lock... [2025-01-03 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:50:05 [end_date_ymd] => 2025-01-03 23:50:05 [RateCDR] => 1 ) [2025-01-03 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:50:05' and `end` < '2025-01-03 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:50:18] Production.INFO: count ==870 [2025-01-03 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:50:05 - End Time 2025-01-03 23:50:05 [2025-01-03 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169021', 'tblTempUsageDetail_20' ) start [2025-01-03 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169021', 'tblTempUsageDetail_20' ) end [2025-01-03 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169021', 'tblTempVendorCDR_20' ) start [2025-01-03 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169021', 'tblTempVendorCDR_20' ) end [2025-01-03 23:50:18] Production.INFO: ProcessCDR(1,14169021,1,1,2) [2025-01-03 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169021', 'tblTempUsageDetail_20' ) start [2025-01-03 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169021', 'tblTempUsageDetail_20' ) end [2025-01-03 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:50:21] Production.INFO: ==16485== Releasing lock... [2025-01-03 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:50:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-03 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:51:05 [end_date_ymd] => 2025-01-03 23:51:05 [RateCDR] => 1 ) [2025-01-03 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:51:05' and `end` < '2025-01-03 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:51:20] Production.INFO: count ==843 [2025-01-03 23:51:20] Production.ERROR: pbx CDR StartTime 2025-01-03 20:51:05 - End Time 2025-01-03 23:51:05 [2025-01-03 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169026', 'tblTempUsageDetail_20' ) start [2025-01-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169026', 'tblTempUsageDetail_20' ) end [2025-01-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169026', 'tblTempVendorCDR_20' ) start [2025-01-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169026', 'tblTempVendorCDR_20' ) end [2025-01-03 23:51:20] Production.INFO: ProcessCDR(1,14169026,1,1,2) [2025-01-03 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169026', 'tblTempUsageDetail_20' ) start [2025-01-03 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169026', 'tblTempUsageDetail_20' ) end [2025-01-03 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:51:23] Production.INFO: ==16562== Releasing lock... [2025-01-03 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:51:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:52:05 [end_date_ymd] => 2025-01-03 23:52:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:52:05' and `end` < '2025-01-03 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-01-03 23:52:19] Production.INFO: count ==840 [2025-01-03 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:52:05 - End Time 2025-01-03 23:52:05 [2025-01-03 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169031', 'tblTempUsageDetail_20' ) start [2025-01-03 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169031', 'tblTempUsageDetail_20' ) end [2025-01-03 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169031', 'tblTempVendorCDR_20' ) start [2025-01-03 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169031', 'tblTempVendorCDR_20' ) end [2025-01-03 23:52:19] Production.INFO: ProcessCDR(1,14169031,1,1,2) [2025-01-03 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169031', 'tblTempUsageDetail_20' ) start [2025-01-03 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169031', 'tblTempUsageDetail_20' ) end [2025-01-03 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:52:23] Production.INFO: ==16673== Releasing lock... [2025-01-03 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:52:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:53:05 [end_date_ymd] => 2025-01-03 23:53:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:53:05' and `end` < '2025-01-03 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-01-03 23:53:18] Production.INFO: count ==842 [2025-01-03 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:53:05 - End Time 2025-01-03 23:53:05 [2025-01-03 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169036', 'tblTempUsageDetail_20' ) start [2025-01-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169036', 'tblTempUsageDetail_20' ) end [2025-01-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169036', 'tblTempVendorCDR_20' ) start [2025-01-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169036', 'tblTempVendorCDR_20' ) end [2025-01-03 23:53:18] Production.INFO: ProcessCDR(1,14169036,1,1,2) [2025-01-03 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169036', 'tblTempUsageDetail_20' ) start [2025-01-03 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169036', 'tblTempUsageDetail_20' ) end [2025-01-03 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:53:22] Production.INFO: ==16745== Releasing lock... [2025-01-03 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:54:05 [end_date_ymd] => 2025-01-03 23:54:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:54:05' and `end` < '2025-01-03 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-01-03 23:54:19] Production.INFO: count ==842 [2025-01-03 23:54:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:54:05 - End Time 2025-01-03 23:54:05 [2025-01-03 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169041', 'tblTempUsageDetail_20' ) start [2025-01-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169041', 'tblTempUsageDetail_20' ) end [2025-01-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169041', 'tblTempVendorCDR_20' ) start [2025-01-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169041', 'tblTempVendorCDR_20' ) end [2025-01-03 23:54:19] Production.INFO: ProcessCDR(1,14169041,1,1,2) [2025-01-03 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169041', 'tblTempUsageDetail_20' ) start [2025-01-03 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169041', 'tblTempUsageDetail_20' ) end [2025-01-03 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:54:22] Production.INFO: ==16817== Releasing lock... [2025-01-03 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:55:05 [end_date_ymd] => 2025-01-03 23:55:05 [RateCDR] => 1 ) [2025-01-03 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:55:05' and `end` < '2025-01-03 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:55:18] Production.INFO: count ==845 [2025-01-03 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 20:55:05 - End Time 2025-01-03 23:55:05 [2025-01-03 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169046', 'tblTempUsageDetail_20' ) start [2025-01-03 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169046', 'tblTempUsageDetail_20' ) end [2025-01-03 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169046', 'tblTempVendorCDR_20' ) start [2025-01-03 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169046', 'tblTempVendorCDR_20' ) end [2025-01-03 23:55:18] Production.INFO: ProcessCDR(1,14169046,1,1,2) [2025-01-03 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169046', 'tblTempUsageDetail_20' ) start [2025-01-03 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169046', 'tblTempUsageDetail_20' ) end [2025-01-03 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:55:21] Production.INFO: ==16891== Releasing lock... [2025-01-03 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:56:04 [end_date_ymd] => 2025-01-03 23:56:04 [RateCDR] => 1 ) [2025-01-03 23:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:56:04' and `end` < '2025-01-03 23:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:56:17] Production.INFO: count ==848 [2025-01-03 23:56:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:56:04 - End Time 2025-01-03 23:56:04 [2025-01-03 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169051', 'tblTempUsageDetail_20' ) start [2025-01-03 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169051', 'tblTempUsageDetail_20' ) end [2025-01-03 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169051', 'tblTempVendorCDR_20' ) start [2025-01-03 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169051', 'tblTempVendorCDR_20' ) end [2025-01-03 23:56:17] Production.INFO: ProcessCDR(1,14169051,1,1,2) [2025-01-03 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169051', 'tblTempUsageDetail_20' ) start [2025-01-03 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169051', 'tblTempUsageDetail_20' ) end [2025-01-03 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:56:21] Production.INFO: ==16961== Releasing lock... [2025-01-03 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:57:06 [end_date_ymd] => 2025-01-03 23:57:06 [RateCDR] => 1 ) [2025-01-03 23:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 20:57:06' and `end` < '2025-01-03 23:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-03 23:57:19] Production.INFO: count ==849 [2025-01-03 23:57:19] Production.ERROR: pbx CDR StartTime 2025-01-03 20:57:06 - End Time 2025-01-03 23:57:06 [2025-01-03 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169056', 'tblTempUsageDetail_20' ) start [2025-01-03 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169056', 'tblTempUsageDetail_20' ) end [2025-01-03 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169056', 'tblTempVendorCDR_20' ) start [2025-01-03 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169056', 'tblTempVendorCDR_20' ) end [2025-01-03 23:57:19] Production.INFO: ProcessCDR(1,14169056,1,1,2) [2025-01-03 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169056', 'tblTempUsageDetail_20' ) start [2025-01-03 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169056', 'tblTempUsageDetail_20' ) end [2025-01-03 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:57:24] Production.INFO: ==17034== Releasing lock... [2025-01-03 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:57:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:58:05 [end_date_ymd] => 2025-01-03 23:58:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:58:05' and `end` < '2025-01-03 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-01-03 23:58:17] Production.INFO: count ==845 [2025-01-03 23:58:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:58:05 - End Time 2025-01-03 23:58:05 [2025-01-03 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169060', 'tblTempUsageDetail_20' ) start [2025-01-03 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169060', 'tblTempUsageDetail_20' ) end [2025-01-03 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169060', 'tblTempVendorCDR_20' ) start [2025-01-03 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169060', 'tblTempVendorCDR_20' ) end [2025-01-03 23:58:17] Production.INFO: ProcessCDR(1,14169060,1,1,2) [2025-01-03 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169060', 'tblTempUsageDetail_20' ) start [2025-01-03 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169060', 'tblTempUsageDetail_20' ) end [2025-01-03 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:58:20] Production.INFO: ==17104== Releasing lock... [2025-01-03 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:58:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-03 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 20:59:05 [end_date_ymd] => 2025-01-03 23:59:05 [RateCDR] => 1 ) [2025-01-03 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-01-03 20:59:05' and `end` < '2025-01-03 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-01-03 23:59:17] Production.INFO: count ==848 [2025-01-03 23:59:17] Production.ERROR: pbx CDR StartTime 2025-01-03 20:59:05 - End Time 2025-01-03 23:59:05 [2025-01-03 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-03 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169066', 'tblTempUsageDetail_20' ) start [2025-01-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169066', 'tblTempUsageDetail_20' ) end [2025-01-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169066', 'tblTempVendorCDR_20' ) start [2025-01-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169066', 'tblTempVendorCDR_20' ) end [2025-01-03 23:59:18] Production.INFO: ProcessCDR(1,14169066,1,1,2) [2025-01-03 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-03 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-03 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169066', 'tblTempUsageDetail_20' ) start [2025-01-03 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169066', 'tblTempUsageDetail_20' ) end [2025-01-03 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-03 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-03 23:59:21] Production.INFO: ==17174== Releasing lock... [2025-01-03 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-03 23:59:21] Production.INFO: 33.5 MB #Memory Used#